f(x)=2cos^2x+√3sin2x+m
=2cos^2x-1+1+√3sin2x+m
=cos2x+√3sin2x+m+1
=2(1/2cos2x+√3/2sin2x)+m+1
=2sin(2x+π/3)+m+1