Example 8 : Find the remainder when x^4 + x^3 – 2x^2 + x + 1 is divided by x – 1.