Slope of the line x - y + 5 = 0 is 1. (Comparing with y = mx + c)
Therefore, Slope of the tangent to the curve y=x3+ax+b is also 1.
dydx=3x2+a(dydx)(1,−6)=3+a∵Slope of the given curve at (1,−6) is 1.∴3+a=1⇒a=−2∵ (1,−6) lies on the given curve.∴−6=1−2+b⇒b=−5∴a−b=3.