f(x)=sin^2x+cos^2x+2sinxcosx+cos2x-1
=1+sin2x+cos2x-1
=sin2x+cos2x
=根号下2(sin(2x+π/4))
(1)最小正周期 T=2π/2=π
(2)-π/2