Given, p(x) = x3 – 3x2 + x + 2
q(x) = x – 2 and
r(x) = -2x + 4
By division algorithm, we know that Dividend = Divisor × Quotient + Remainder
p(x) = q(x) × g(x) + r(x)
Therefore, x3 – 3x2 + x + 2
= (x – 2) × g(x) + (- 2x + 4)
⇒ x3 – 3x2 + x + 2 + 2x – 4 = (x – 2) × g(x)
g(x) = \(\frac{x^3-3x^2+3x-2}{x-2}\)
On dividing x3 – 3x2 + x + 2, by x – 2, we get
First term of g(x) = x3 / x = x2
Second term of g(x) = -x2 / x = -x
Third term of g(x) = x / x = 1
Hence, g(x) = x2 – x + 1.