Ok first, that's not an identity. An identity is something which is always true, no matter what value the variables take. You have an equation, something which is true only for certain, discrete values of a variable.
To solve it, replace sin^2 x with 1- cos^2 x, you get a quadratic in cos x and solve for x.