How do you solve the equation #2cos^2theta-3costheta+1=0# for #0<=theta<2pi#?