f(x)=(cos^2)x+2sinxcosx-(sin^2)x=(cos^2)x-(sin^2)x+2sinxcosx
=cos2x+sin2x
=√2(sin2x+π/4)
所以最小正周期T=2π/2=π