How do you find all solutions of the following equation in the interval [0,2pi] of 2cos^2x-cosx=0?