How do you find all solutions of the equation in the interval [0,2pi) given sin^2x+2cosx=2?