y=2(sinx)^2+2sinxcosx
=1-cos2x+sin2x=根号2sin(2x-π/4)+1
所以最小正周期为T=2π/2=π
因为根号2sin(2x-π/4)的最大值为根号2
所以ymax=根号2+1