How do you solve the following equation #-2sin^2x=sin x-1# in the interval [0, 2pi]?