f(x)=sin(π+ωx)cos(π+ωx)+cos²ωx
=1/2sin(2π+2ωx)+(1+cos2ωx)/2
=1/2sin2ωx+1/2cos2ωx+1/2
=√2/2sin(2ωx+π/4)+1/2
T=2π/2ω=π
解得ω=1