How do you find all solutions of the equation in the interval (0, 2pi) #-cosx + 1 = 2sin^2x#?