1.
By the factor theorem, if (x+1) and (x-2) are factors, P(-1)=0 and P(2)=0
P(-1) = -1 + a - b + 2 = 0
Therefore, a - b = -1 ...... (1)
P(2) = 8 + 4a + 2b + 2 = 0
Therefore, 2a + b = -5 ........ (2)
(1) + (2): 3a = -6
Therefore, a = -2
Sub this in (1): -2 - b = -1,
Therefore, b = -1...