If x3+ax2+bx+6 has x−2 as a factor and leaves a remainder 3 when divided by x−3. Find the values of a and b.
a = -3 and b = -1
f(x)=x3+ax2+bx+6
Since x−2 is a factor, f(2)=0
(2)3+a(2)2+b(2)+6 = 0
Simplyfying we get 2a+b= −7 ........(i)
Since x−3 leaves a remainder 3, f(3)=3
(3)3+a(3)2+b(3)+6 = 3
Simplyfying we get 3a+b= −10 ........(ii)
Solving (i) and (ii) we get
a = -3 and b = -1