Solve the equation for x:
sin^2 x – 2 cos x - 2 = 0
for the restriction 0 < x < 2pi
