Factorise. sin2x+asinx=sinx(2cosx+a), so
x3sin2x+asinx=xsinx⋅x22cosx+a
Fix a. As x→0, xsinx→1 and 2cosx+a→2+a, while x2→0. If 2+a=0, the size of the expression grows without bound and b would not be finite. So a=−2.
Find b. With a=−2, 2cosx−2=−2(1−cosx)=−4sin22x, so
x22cosx−2=−x24sin22x=−(2xsin2x)2→−1
So b=1×(−1)=−1. Hence a=−2 and b=−1.