y=2asinx(sinx-√3cosx)+b=2asin^2x-2a√3sinxcosx+b=a(1-cos2x-√3sin2x)+b
=a[1-2sin(2x+π/6)]+b
-8=b
1=2a+b , a=9/2, b=-8