函数f(x)=cos2x-cosx+1(-1

设cosx=t,则f(x)=g(t)=2t^-t=2(t-1/4)^2-1/8,
-1M+m=3