How do you solve #-3cosx+3=2sin^2x# in the interval #0<=x<=2pi#?