Giuven p(x)=x3-3x2+x+2
q(x)=x-2 and
r(x)= -2x+4
By divison 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)
on dividing x3-3x2+3x-2 by x-2 we get
Hence g(x) = 2 - +