f(x)=cos2x*1/2-√3*sin2x+(1-cos2x)/2
=cos2x-√3sin2x+1/2
=2cos(2x+π/3)+1/2
最小正周期T=2π/2=π
当cos(2x+π/3)=1
取最大值为5/2