\cos2x=\cos^2{x}-\sin^2{x}=1-\sin^2{x}-\sin^2{x}=1-2\sin^2{x}