(1)f(x)=cos^2ωx-√3sinωx*cosωx=-√3/2sin2wx+1/2cos2wx+1/2
=sin(2wx+5π/6)+1/2
T=π
所以w=1
所以f(x)=sin(2x+5π/6)+1/2
令2kπ-π/2