How do you solve #2cos^2x-3cosx+1=0# and find all solutions in the interval #(0,2pi)#?