f(x)=2(2cos^x-1)+1-cos^2x-4cosx =3cos^x-4cosx-1 =3(cosx-2/3)