When a polynomial p(x) is divided by (x − a), the remainder is simply p(a). There is no need for long division.
Remainder when p(x) ÷ (x − a) = p(a)
The reason is short. Every division can be written as p(x) = (x − a) × q(x) + r, where r is a constant. Putting x = a makes (x − a) zero, so p(a) = r. That one line is the whole remainder theorem for polynomials.
Worked example 1: divide by (x − 2)
p(x) = x³ − 2x² + 4x − 5. Put x = 2: 8 − 8 + 8 − 5 = 3.
For a divisor (x + a), set it to zero: x = −a. Signs are where most mistakes happen, so write the substitution out in brackets.
Worked example 2: divide by (x + 1)
Same p(x). Put x = −1: (−1)³ − 2(−1)² + 4(−1) − 5 = −1 − 2 − 4 − 5 = −12.
Worked example 3: a fourth-degree polynomial
x⁴ + x³ − 2x² + x + 1 divided by (x + 2). Put x = −2: 16 − 8 − 8 − 2 + 1 = −1. Even powers of a negative number are positive; odd powers keep the minus sign.