We have to evaluate the limit
limx→1x−1x2−ax+b=5.
Because the denominator x−1 approaches 0 as x→1, the limit can stay finite only if the numerator also becomes 0 at x=1. Therefore we must have
12−a(1)+b=0⟹1−a+b=0⟹b=a−1.
Knowing that x2−ax+b vanishes at x=1, the Factor Theorem tells us that x−1 is a factor of the quadratic. Hence we can write
x2−ax+b=(x−1)(x−c)
for some real number c. Multiplying out the right-hand side gives
(x−1)(x−c)=x2−cx−x+c=x2−(c+1)x+c.
Comparing coefficients with the original quadratic x2−ax+b, we obtain
a=c+1andb=c.
After canceling the common factor x−1, the expression inside the limit simplifies to
x−1x2−ax+b=x−c.
Now we let x→1:
limx→1(x−c)=1−c.
But the given limit equals 5, so we set
1−c=5⟹c=−4.
Substituting c=−4 into the relations a=c+1 and b=c, we get
a=−4+1=−3andb=−4.
Finally,
a+b=(−3)+(−4)=−7.
Hence, the correct answer is Option D.