y=sin(x+π/6)sin(x-π/6)+acosx
=(3/4)(sinx)^2-(1/4)(cosx)^2+acosx
=-(cosx)^2+acosx+3/4
=-(cosx-a/2)^2+a^2/4+3/4
若a