f(0)=2,f(π/3)=1/2+√3/2.
易得a=1,b=2
f(x)=2cos²x+2sinxcosx
=sin2x+cos2x+1
=√2sin(2x+π/4)+1
函数的最小正周期T=2π/2=π