Solve cos^2 x = sin^2 x on [0, 2pi)