解f(x)=2√3sinxcosx+2cosx^2-1
=√3*2sinxcosx+(2cosx^2-1)
=√3sin2x+cos2x
=2(√3/2sin2x+1/2cos2x)
=2sin(2x+π/6)
T=2π/2=π