-根号3*sinxcosx+3cos平方x-3/2=-根号3*sin2x/2+3/2+3/2cos2x-3/2
=-根号3*(1/2sin2x-根号3cos2x/2=-根号3*sin(2x-派/3)
所以A=-根号3
B=-派/3+2k派