solve (cos(x))^2-sin(2x)=0