How do you solve #2cos^2x+sinx-2=0 # over the interval 0 to 2pi?