On dividing f(x) by a polynomial x−1−x2, the quotient q(x) and remainder r(x) are (x−2) and 3 respectively. Then f(x) is
On dividing f(x) = x³ - 3x² + x + 2 by a polynomial g(x) the quotient and remainder q(x) and r(x) are (x – 2) and (-2x + 4) respectively, then g(x) is