3cos^2 x-cos x=0 find x