Упрасти вырожение 1-cos^2a
1 - cos2a = sin^2x + cos^2x - (cos^2x - sin^2x) = = sin^2x + cos^2x - cos^2x + sin^2x = 2sin^2x