sin^2(x)=cos^2(x)+cos(x/2) and -2pi ≤ x ≤ 2pi