Skip to main content

Polynomial division and the remainder and factor theorems

Syllabus dot point

“Apply the division algorithm for polynomials and use the remainder and factor theorems to identify and verify factors and roots”

HSCMaths Extension 1Functions (ME-F1, ME-F2)15 min read

Quick answer

The division algorithm writes P(x)=D(x)Q(x)+R(x)P(x) = D(x) Q(x) + R(x) uniquely, the remainder theorem says the remainder on dividing by (x−a)(x - a) is P(a)P(a), and the factor theorem is the corollary that (x−a)(x - a) is a factor of P(x)P(x) if and only if P(a)=0P(a) = 0.

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Exam-style questions

What this dot point is asking

NESA wants you to divide one polynomial by another (linear divisor at minimum, occasionally quadratic), state the result using the division algorithm, and use the remainder and factor theorems to identify roots without doing the full division when possible.

The answer

The division algorithm for polynomials

If P(x)P(x) is a polynomial of degree nn and D(x)D(x) is a polynomial of degree k≤nk \le n, then there exist unique polynomials Q(x)Q(x) (the quotient) of degree n−kn - k and R(x)R(x) (the remainder) of degree less than kk such that

P(x)=D(x) Q(x)+R(x).P(x) = D(x) \, Q(x) + R(x).

When D(x)D(x) is linear (degree 11), the remainder R(x)R(x) is a constant.

The remainder theorem

If P(x)P(x) is divided by (x−a)(x - a), the remainder is P(a)P(a). In other words,

P(x)=(x−a)Q(x)+P(a).P(x) = (x - a) Q(x) + P(a).

This lets you find the remainder without performing the division: just evaluate PP at x=ax = a.

For a divisor of the form (bx−c)(b x - c), the remainder is P ⁣(cb)P\!\left(\frac{c}{b}\right).

The factor theorem

The factor theorem is the special case of the remainder theorem where the remainder is zero.

(x−a)(x - a) is a factor of P(x)P(x) if and only if P(a)=0P(a) = 0.

Equivalently, aa is a root of P(x)=0P(x) = 0 if and only if (x−a)(x - a) is a factor.

Key fact

The division algorithm writes any division uniquely as P(x)=D(x) Q(x)+R(x)P(x) = D(x)\,Q(x) + R(x) with deg⁡R<deg⁡D\deg R < \deg D. Two corollaries do most of the work in the HSC:

  • Remainder theorem: the remainder on dividing P(x)P(x) by (x−a)(x - a) is just P(a)P(a), so you can find a remainder with one substitution instead of a full division. For a divisor (bx−c)(bx - c), the remainder is P ⁣(cb)P\!\left(\frac{c}{b}\right).
  • Factor theorem: (x−a)(x - a) is a factor of P(x)P(x) exactly when P(a)=0P(a) = 0, which turns "is this a factor?" into a single evaluation and links roots to factors.

Long division of polynomials

To divide P(x)P(x) by D(x)D(x), set up the long-division layout and at each step divide the leading term of the current dividend by the leading term of the divisor, multiply back, and subtract.

The integer-division analogy is exact. Stop when the remainder has lower degree than the divisor.

Long division, stage by stage

Long division is procedural, and the marks come from keeping the layout aligned and each subtraction correct. Below, x3−2x2−5x+6x^3 - 2x^2 - 5x + 6 is divided by (x−3)(x - 3) one stage at a time. (Because x=3x = 3 is a root, the remainder will turn out to be 00, confirming (x−3)(x - 3) is a factor.)

Stage 1, divide the leading terms. Divide the leading term of the dividend by the leading term of the divisor: x3÷x=x2x^3 \div x = x^2, which is the first term of the quotient. Multiply it back across the divisor, x2(x−3)=x3−3x2x^2(x - 3) = x^3 - 3x^2, write it underneath the matching columns, subtract to get x2x^2, and bring down the next term −5x-5x.

Divide the leading terms for the first quotient termLong division set up: x minus three divides into x cubed minus two x squared minus five x plus six. The leading term x cubed divided by x gives x squared, written above. Multiplying back gives x cubed minus three x squared, subtracted to leave x squared, and minus five x is brought down.Stage 1x - 3x³-2x²-5x+6x²x³-3x²x²-5xx³ ÷ x = x². Multiply: x²(x - 3) = x³ - 3x². Subtract, bring down -5x.

Stage 2, repeat with the new leading term. Now divide the leading term of the new dividend x2−5xx^2 - 5x by xx: x2÷x=xx^2 \div x = x, the second quotient term. Multiply back, x(x−3)=x2−3xx(x - 3) = x^2 - 3x, subtract from x2−5xx^2 - 5x to leave −2x-2x, and bring down +6+6.

Repeat with the next termThe next quotient term: x squared divided by x gives x, written above. Multiplying back gives x squared minus three x, subtracted from x squared minus five x to leave minus two x, and plus six is brought down.Stage 2x - 3x³-2x²-5x+6x²+xx³-3x²x²-5xx²-3x-2x+6x² ÷ x = x. Multiply: x(x - 3) = x² - 3x. Subtract, bring down +6.

Stage 3, finish and reach the remainder. Divide −2x÷x=−2-2x \div x = -2, the last quotient term. Multiply back, −2(x−3)=−2x+6-2(x - 3) = -2x + 6, and subtract from −2x+6-2x + 6 to get 00. The remainder is 00, so division stops.

Finish with the last term and reach remainder zeroThe last quotient term minus two: minus two x divided by x gives minus two. Multiplying back gives minus two x plus six, which subtracts exactly to zero, so the remainder is zero.Stage 3x - 3x³-2x²-5x+6x²+x-2x³-3x²x²-5xx²-3x-2x+6-2x+60remainder 0-2x ÷ x = -2. Multiply: -2(x - 3) = -2x + 6. Subtract: remainder 0.

Stage 4, write the result in division-algorithm form. Collect the quotient x2+x−2x^2 + x - 2 and the remainder 00: x3−2x2−5x+6=(x−3)(x2+x−2)x^3 - 2x^2 - 5x + 6 = (x - 3)(x^2 + x - 2). Because the remainder is 00, (x−3)(x - 3) is a factor, and factorising the quadratic gives the full factorisation (x−3)(x+2)(x−1)(x - 3)(x + 2)(x - 1).

Write the division algorithm resultThe completed division summarised: x cubed minus two x squared minus five x plus six equals x minus three times the quotient x squared plus x minus two, with remainder zero, so x minus three is a factor.Stage 4x³ - 2x² - 5x + 6 = (x - 3)(x² + x - 2) + 0quotient x² + x - 2,   remainder 0Remainder 0 means (x - 3) is a factor: x³ - 2x² - 5x + 6 = (x - 3)(x + 2)(x - 1).

Strategy for factorising a cubic

To fully factorise a cubic P(x)P(x) over the reals:

  1. Find one rational root by trial. By the rational root theorem, any rational root pq\frac{p}{q} (in lowest terms) has p∣p \mid constant term and q∣q \mid leading coefficient.
  2. Use the factor theorem to confirm the root.
  3. Divide P(x)P(x) by the corresponding linear factor to get a quadratic quotient.
  4. Factorise the quadratic by the standard methods.

If the quadratic factor has a negative discriminant, the cubic has one real root and two complex conjugate roots.

The rational root theorem in practice

The rational root theorem is the engine that makes factorising higher polynomials tractable. For a polynomial with integer coefficients, any rational root pq\frac{p}{q} in lowest terms must have pp dividing the constant term and qq dividing the leading coefficient. This produces a finite, often short, list of candidates to test. For P(x)=2x3−3x2−3x+2P(x) = 2x^3 - 3x^2 - 3x + 2, the constant is 22 (so p∈{±1,±2}p \in \{\pm 1, \pm 2\}) and the leading coefficient is 22 (so q∈{1,2}q \in \{1, 2\}), giving candidates ±1,±2,±12\pm 1, \pm 2, \pm \frac{1}{2}. Test each with the factor theorem until one gives zero, then divide out the corresponding factor and continue. Without this theorem you would be guessing blindly.

Choosing between division methods

Two methods give the quotient after a factor is found. Long division is the general tool and works for any divisor, linear or quadratic, and is the only choice when the divisor has degree two or more. The equate-coefficients method (writing the quotient with unknown coefficients and comparing both sides) is often quicker for a linear divisor with a tidy quotient. Either is acceptable in the HSC, but show enough working that a marker can follow the steps; a bare quotient with no method risks lost marks if a sign is wrong.

Why the theorems save time

The remainder and factor theorems let you answer "what is the remainder?" or "is this a factor?" with a single substitution, no division required. This is the whole point of the topic: evaluating P(a)P(a) is far faster than dividing, and for the factor theorem it converts a division question into a root-finding question. Reach for substitution first and only do the full division when you actually need the quotient.

How exam questions ask about division and the theorems

The phrasing tells you whether to substitute or to divide:

  • "Find the remainder when P(x)P(x) is divided by (x−a)(x - a)." Do not divide. Apply the remainder theorem: the answer is P(a)P(a). For a divisor (bx−c)(bx - c), evaluate P ⁣(cb)P\!\left(\frac{c}{b}\right).
  • "Find aa given the remainder is rr" or "given (x−a)(x - a) is a factor." Set P(a)=rP(a) = r (or P(a)=0P(a) = 0 for a factor) and solve the resulting equation for the unknown. This is the most common 2 to 3 mark version (see the HSC-style question above).
  • "Show that (x−a)(x - a) is a factor" or "hence factorise P(x)P(x)." First confirm P(a)=0P(a) = 0 by the factor theorem, then divide by (x−a)(x - a) to get the quotient and continue factorising. The "show" step is a substitution; the "hence" step is a division.
  • "The remainder when P(x)P(x) is divided by (x−a)(x−b)(x - a)(x - b) is..." The remainder has degree less than 22, so write it as rx+srx + s, then use P(a)P(a) and P(b)P(b) to set up two equations in rr and ss. This is the standard Extension 1 quadratic-divisor remainder question.
  • "Solve P(x)=0P(x) = 0" for a cubic or quartic. Find one root by testing rational-root candidates with the factor theorem, divide it out, and solve the remaining quadratic. If the quadratic has no real roots, state that the other roots are non-real.
Worked example

Find a remainder with the remainder theorem

To find the remainder when P(x)=x4−3x2+5P(x) = x^4 - 3x^2 + 5 is divided by (x+2)(x + 2), the remainder theorem says the remainder equals PP evaluated at the root of the divisor. The root of x+2=0x + 2 = 0 is x=−2x = -2.

Evaluate P(−2)P(-2):

P(−2)=(−2)4−3(−2)2+5=16−12+5=9.P(-2) = (-2)^4 - 3(-2)^2 + 5 = 16 - 12 + 5 = 9.

Final answer: the remainder is 99.


Confirm a factor with the factor theorem

To show that (x−3)(x - 3) is a factor of P(x)=x3−2x2−5x+6P(x) = x^3 - 2x^2 - 5x + 6, evaluate P(3)P(3). The factor theorem says (x−a)(x - a) is a factor if and only if P(a)=0P(a) = 0.

P(3)=27−18−15+6=0.P(3) = 27 - 18 - 15 + 6 = 0.

Since P(3)=0P(3) = 0, the factor theorem confirms that (x−3)(x - 3) is a factor.


Fully factorise a cubic

To factorise P(x)=x3−6x2+11x−6P(x) = x^3 - 6x^2 + 11x - 6, test integer factors of the constant term. Try x=1x = 1:

P(1)=1−6+11−6=0.P(1) = 1 - 6 + 11 - 6 = 0.

So (x−1)(x - 1) is a factor.

Divide to find the quotient and factorise completely:

Divide P(x)P(x) by (x−1)(x - 1). Inspection (or long division) gives quotient x2−5x+6x^2 - 5x + 6, which factors as (x−2)(x−3)(x - 2)(x - 3).

P(x)=(x−1)(x−2)(x−3).P(x) = (x - 1)(x - 2)(x - 3).

Final answer: (x−1)(x−2)(x−3)(x - 1)(x - 2)(x - 3).


Divide by a quadratic divisor

To divide P(x)=2x3+x−4P(x) = 2x^3 + x - 4 by D(x)=x2−1D(x) = x^2 - 1, write P(x)P(x) with a zero coefficient for the missing x2x^2 term: 2x3+0x2+x−42x^3 + 0x^2 + x - 4.

Divide the leading term: 2x3x2=2x\frac{2x^3}{x^2} = 2x. Multiply 2x2x by the divisor: 2x(x2−1)=2x3−2x2x(x^2 - 1) = 2x^3 - 2x. Subtract from the dividend:

(2x3+0x2+x−4)−(2x3+0x2−2x)=0x2+3x−4.(2x^3 + 0x^2 + x - 4) - (2x^3 + 0x^2 - 2x) = 0x^2 + 3x - 4.

Check whether the remainder has degree less than the divisor:

The remainder 3x−43x - 4 has degree 11, which is less than the degree of D(x)=x2−1D(x) = x^2 - 1 (degree 22), so division stops here. The result is:

2x3+x−4=(x2−1)(2x)+(3x−4).2x^3 + x - 4 = (x^2 - 1)(2x) + (3x - 4).

Final answer: quotient 2x2x, remainder 3x−43x - 4.

Common traps
Sign error on the remainder theorem
P(x)÷(x−a)P(x) \div (x - a) has remainder P(a)P(a). P(x)÷(x+a)P(x) \div (x + a) has remainder P(−a)P(-a). Move the sign with care.
Forgetting placeholder zeros
When long-dividing, you must include zero coefficients for missing powers. x3+1x^3 + 1 is really x3+0x2+0x+1x^3 + 0 x^2 + 0 x + 1.
Using the wrong root from a (bx−c)(b x - c) factor
(2x−1)(2 x - 1) is a factor iff P(1/2)=0P(1/2) = 0, not P(1)P(1) or P(2)P(2).
Not testing the rational root candidates systematically
For P(x)=2x3+3x2−8x+3P(x) = 2 x^3 + 3 x^2 - 8 x + 3, candidates are ±1,±3,±12,±32\pm 1, \pm 3, \pm \frac{1}{2}, \pm \frac{3}{2}. Try in order and confirm with the factor theorem.
Stopping at the linear divisor
A cubic factorises as a product of three linear factors over R\mathbb{R} only if all roots are real. If the quadratic quotient has no real roots, leave it as a quadratic factor.
Exam technique

Pick the fast tool for the question, and show enough working to bank the method marks.

  • Reach for the remainder/factor theorem before long division. "Find the remainder" or "show this is a factor" almost always wants a single substitution P(a)P(a), not a division. Dividing when a substitution would do wastes time and invites arithmetic slips.
  • State the theorem you are using. Writing "by the remainder theorem, remainder =P(2)= P(2)" earns a mark even before the arithmetic.
  • Mind the sign of the root. P(x)÷(x+3)P(x) \div (x + 3) uses P(−3)P(-3), and (2x−1)(2x - 1) a factor means P ⁣(12)=0P\!\left(\tfrac12\right) = 0, not P(1)P(1) or P(2)P(2).
  • Insert placeholder zeros for missing powers before long-dividing, and keep like-degree terms in aligned columns; misalignment is the main cause of lost division marks.
  • For a quadratic divisor, set the remainder as rx+srx + s and solve two equations from the two roots of the divisor, rather than attempting a long division if the roots are convenient.

Exam-style questions

Questions in the style of NESA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.

HSC-style2 marks
When the polynomial P(x)=x3−2x2+ax+5P(x) = x^3 - 2 x^2 + a x + 5 is divided by (x−2)(x - 2), the remainder is 77. Find the value of aa.
Show worked answer →

By the remainder theorem, P(2)=7P(2) = 7.

P(2)=8−8+2a+5=2a+5=7P(2) = 8 - 8 + 2 a + 5 = 2 a + 5 = 7, so 2a=22 a = 2 and a=1a = 1.

Markers reward the explicit statement of the remainder theorem, substitution of x=2x = 2, and a clean linear solve.

HSC-style3 marks
The polynomial P(x)=2x3+x2−5x+2P(x) = 2 x^3 + x^2 - 5 x + 2 has a factor of (2x−1)(2 x - 1). Use this fact to fully factorise P(x)P(x) over the reals.
Show worked answer →

(2x−1)(2 x - 1) is a factor, confirmed because P(12)=2⋅18+14−52+2=14+14−52+2=0P\left(\frac{1}{2}\right) = 2 \cdot \frac{1}{8} + \frac{1}{4} - \frac{5}{2} + 2 = \frac{1}{4} + \frac{1}{4} - \frac{5}{2} + 2 = 0.

Divide P(x)P(x) by (2x−1)(2 x - 1). Long division or inspection gives the quadratic quotient x2+x−2x^2 + x - 2.

Factor the quadratic: x2+x−2=(x+2)(x−1)x^2 + x - 2 = (x + 2)(x - 1).

P(x)=(2x−1)(x+2)(x−1)P(x) = (2 x - 1)(x + 2)(x - 1).

Markers reward verifying the factor with the factor theorem, performing the division accurately, and producing a fully factored final form.

Practise this

Sources & how we know this

ExamExplained