(1)
f(x)=√3sinxcosx+cos^2x+a
=√3/2sin2x+1/2cos2x+a+1/2
=(cosπ/6sin2x+sinπ/6cos2x)+a+1/2
=sin(2x+π/6)+a+1/2
f(x)的最小正周期为T=2π/2=π
令2kπ+π/2
(1)
f(x)=√3sinxcosx+cos^2x+a
=√3/2sin2x+1/2cos2x+a+1/2
=(cosπ/6sin2x+sinπ/6cos2x)+a+1/2
=sin(2x+π/6)+a+1/2
f(x)的最小正周期为T=2π/2=π
令2kπ+π/2