We need to find (a−b) given limx→12x3−7x2+ax+bsin(3x2−4x+1)−x2+1=−2.
Check that numerator and denominator both vanish at x=1:
Numerator at x=1: sin(3−4+1)−1+1=sin(0)=0 ✓
Denominator at x=1: 2−7+a+b=a+b−5
For the limit to exist and be finite, we need a+b−5=0, i.e., a+b=5⋯(1).
Apply L'Hopital's rule:
Numerator derivative: cos(3x2−4x+1)(6x−4)−2x
At x=1: cos(0)(2)−2=2−2=0
Denominator derivative: 6x2−14x+a
At x=1: 6−14+a=a−8
For 0/0 form again, we need a−8=0, so a=8 and from (1), b=−3.
Apply L'Hopital's rule again:
Numerator second derivative:
dxd[cos(3x2−4x+1)(6x−4)−2x]
=−sin(3x2−4x+1)(6x−4)2+cos(3x2−4x+1)⋅6−2
At x=1: −sin(0)(4)+cos(0)(6)−2=0+6−2=4
Denominator second derivative: 12x−14
At x=1: 12−14=−2
Compute the limit:
limx→1=−24=−2 ✓
Find a−b:
a−b=8−(−3)=11
The answer is 11.