James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AA HL › Topic 2: Functions › Polynomials

Polynomials, factor & remainder theorems

Dividing polynomials, the remainder and factor theorems, finding unknown coefficients, and sketching polynomial graphs from their factors, including repeated roots.

AHL 2.12HL onlyPaper 1Paper 2≈ 75 min to work through
Before you start: expanding brackets, factorising quadratics and the quadratic formula. See Quadratics.

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Use the language of polynomials: degree, leading coefficient, roots and zerosAHL 2.12
  • Divide a polynomial by a linear factor and write P(x)=(x−a)Q(x)+RAHL 2.12
  • Use the remainder theorem to find a remainder without dividingAHL 2.12
  • Use the factor theorem to factorise a cubic or quarticAHL 2.12
  • Find unknown coefficients from given factors and remaindersAHL 2.12
  • Sketch a polynomial from its factors, including repeated rootsAHL 2.12

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

When you divide 17 by 5 you get 3 remainder 2, so 17=5×3+2. Polynomials divide in the same way: P(x)=(x−a)Q(x)+R. Substituting x=a kills the first term and leaves P(a)=R. That one line gives both theorems on this page: the remainder is P(a), and if P(a)=0 then x−a is a factor.

2.1 Polynomial vocabulary

A polynomial of degree n is P(x)=anxn+an−1xn−1+…+a1x+a0 with an≠0. an is the leading coefficient and a0 is the constant term. A root of P(x)=0 is the same as a zero of P: a value of x where P(x)=0. On a graph, real zeros are the x-intercepts.

A polynomial of degree n has at most n real zeros. Counting complex zeros and repeated zeros, it has exactly n. If the coefficients are real, any non-real zeros come in conjugate pairs (see Complex numbers), so a cubic always has at least one real zero.

2.2 Dividing a polynomial by a linear factor

Polynomial long division works like numerical long division: divide the leading terms, multiply back, subtract, bring down the next term, and repeat. Questions often call the answer the quotient Q(x) and the remainder R.

The division identity Not in booklet: learn it
P(x)≡(x−a)Q(x)+R

If P has degree n, then Q has degree n−1 and R is a constant.

Worked example 1Paper 1
Divide 2x3−3x2+4x−5 by x−2.
2x3÷x=2x2. Multiply: 2x2(x−2)=2x3−4x2. Subtract: x2+4x.
Always subtract the whole line: −3x2−(−4x2)=x2.
x2÷x=x. Multiply: x(x−2)=x2−2x. Subtract: 6x−5.
6x÷x=6. Multiply: 6(x−2)=6x−12. Subtract: 7.
2x3−3x2+4x−5≡(x−2)(2x2+x+6)+7
Quotient 2x2+x+6, remainder 7.

A faster method when you know a factor is to compare coefficients: write P(x)≡(x−a)(px2+qx+r) and read off p from the x3 terms and r from the constants, then find q from one more coefficient. Both methods appear in markschemes.

2.3 The remainder theorem

Remainder theorem Not in booklet: learn it
The remainder when P(x) is divided by (x−a) is P(a).

When dividing by (ax−b), the remainder is P(ba): substitute the value of x that makes the divisor zero.

Check with WE1: P(2)=16−12+8−5=7, the same remainder, with no division at all.

Worked example 2Paper 1
Find the remainder when P(x)=x3+2x2−5x+1 is divided by 2x−1.
2x−1=0 when x=12
Not x=1 and not x=2.
P(12)=18+12−52+1
=−78

2.4 The factor theorem

Factor theorem Not in booklet: learn it
(x−a) is a factor of P(x)⟺P(a)=0

This is the remainder theorem with remainder 0. To factorise a cubic with no calculator: try small divisors of the constant term (±1,±2,±3,…) until P(a)=0, take out (x−a), then factorise the quadratic that is left.

Worked example 3Paper 1
Factorise fully P(x)=x3−2x2−5x+6.
P(1)=1−2−5+6=0, so (x−1) is a factor.
Possible roots are divisors of 6: try ±1 first.
P(x)≡(x−1)(x2+qx−6). Comparing x2 terms: q−1=−2, so q=−1.
The x2 and −6 come from matching the x3 and constant terms.
P(x)=(x−1)(x2−x−6)=(x−1)(x−3)(x+2)

2.5 Finding unknown coefficients

Each piece of information (a factor, a remainder, a point on the graph) gives one equation. Two unknowns need two pieces of information, which you then solve simultaneously.

Worked example 4Paper 1
P(x)=x3+ax2+bx−6. (x−1) is a factor of P(x), and the remainder when P(x) is divided by (x+2) is −12. Find a and b.
P(1)=0: 1+a+b−6=0⇒a+b=5
P(−2)=−12: −8+4a−2b−6=−12⇒2a−b=1
Dividing by (x+2) means substituting x=−2.
Adding: 3a=6, so a=2 and b=3.
Check: P(x)=x3+2x2+3x−6, P(1)=0 ✓, P(−2)=−12 ✓
A ten-second check catches sign errors.
Worked example 5 (faded)Paper 1
(x−2) is a factor of 2x3+kx2−7x+6. Find k.
P(2)=16+4k−14+6=0, so 4k= −8  ← you work this out
k= −2  ← you work this out

Harder: dividing by a quadratic. When you divide by a quadratic, the remainder has degree at most 1, so it has the form cx+d. Use the two zeros of the quadratic to get two equations.

Worked example 6Paper 1
Find the remainder when P(x)=x4+x+1 is divided by (x−1)(x+2).
P(x)≡(x−1)(x+2)Q(x)+cx+d
The remainder must have lower degree than the divisor.
x=1: P(1)=3=c+d
x=−2: P(−2)=16−2+1=15=−2c+d
Subtracting: 3c=−12, so c=−4, d=7. The remainder is 7−4x.

2.6 Sketching polynomials from their factors

A factored polynomial tells you almost everything about its graph:

  • End behaviour comes from the leading term anxn. For even n both ends point the same way (up if an>0); for odd n they point opposite ways.
  • A single factor (x−a): the graph crosses the axis at a.
  • A squared factor (x−a)2: the graph touches the axis at a and turns back (a turning point on the axis).
  • A cubed factor (x−a)3: the graph crosses the axis but flattens there (a stationary point of inflection).
  • The y-intercept is P(0).
Worked example 7Paper 1
The graph of a cubic crosses the x-axis at x=−1, touches it at x=2, and passes through (0,8). Find its equation.
y=a(x+1)(x−2)2
Touching at 2 means a repeated factor.
At (0,8): 8=a(1)(4), so a=2.
y=2(x+1)(x−2)2
Positive leading coefficient: the graph comes up from bottom left and leaves top right.
Strategy for factor and remainder questions
  1. Turn every factor or remainder into "P(value)=number".
  2. Divisor (ax−b): substitute x=ba.
  3. Solve the equations simultaneously, then check by substituting back.
  4. To factorise fully, take out the known factor and finish with the quadratic.
On your TI-Nspire Calculator tricks →

Paper 2: menu → Algebra → Polynomial Tools → Find Roots of Polynomial gives all roots. polyRemainder(x^4+x+1, x^2+x-2, x) checks a remainder. On Paper 1 you must use the theorems, so practise by hand.

3Explore it

Set the three roots and the leading coefficient of a cubic. Make two roots equal to see the graph touch the axis. Move k: the remainder on dividing by x−k is the height P(k).

4Common mistakes & exam tips

Common mistakes

  • Substituting the wrong value: for a divisor (x+2) substitute x=−2; for (2x−1) substitute x=12.
  • Subtracting only the first term in long division instead of the whole line.
  • Forgetting the remainder when writing P(x)≡(x−a)Q(x)+R.
  • Saying the remainder on dividing by a quadratic is a constant. It is cx+d in general.
  • Drawing a repeated root as a crossing point instead of a touching point.

Exam tips

  • Show the substitution explicitly, e.g. "P(−2)=−8+4a−2b−6": the method mark is for the substitution.
  • After finding unknown coefficients, check both conditions. It takes seconds and avoids losing the follow-through marks.
  • "Factorise fully" means down to linear factors where possible; a quadratic with negative discriminant stays as it is.
  • In a sketch, label every intercept and make the shape at a repeated root clearly a touch.

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
Find the remainder when x3−4x2+x+7 is divided by x−3.
P(3)=27−36+3+7=1
FluencyP2
Show that (x+3) is a factor of x3+x2−4x+6, and hence factorise fully.
P(−3)=−27+9+12+6=0. (x+3)(x2−2x+2); the quadratic has no real roots.
FluencyP3
Find the remainder when 4x3−2x+5 is divided by 2x+1.
P(−12)=−12+1+5=112
FluencyP4
Find the equation of the cubic with roots −2, 1 and 3 that passes through (0,−12).
y=a(x+2)(x−1)(x−3): 6a=−12, a=−2. y=−2(x+2)(x−1)(x−3).
Problem solvingP5
When x3+px2+qx+2 is divided by (x−1) the remainder is 4, and by (x+1) the remainder is 6. Find p and q.
p+q=1, p−q=5, so p=3, q=−2.
Problem solvingP6
Find the remainder when x5 is divided by x2−1.
x5≡(x2−1)Q(x)+cx+d. x=1: c+d=1; x=−1: −c+d=−1. Remainder x.

6Exam-style questions

Original questions in the style of the IB exam, with full markschemes. Give yourself about 1 minute per mark.

Question 1Paper 1[8 marks]

Let P(x)=x3+ax2+bx+12, where a,b∈ℤ. (x−3) is a factor of P(x), and when P(x) is divided by (x+1) the remainder is 8.

  • (a)Find the value of a and the value of b.[5]
  • (b)Hence solve P(x)=0, giving your answers in exact form.[3]
(a)
P(3)=27+9a+3b+12=0M1
P(−1)=−1+a−b+12=8M1
3a+b=−13 and a−b=−3A1
attempt to solve simultaneouslyM1
a=−4, b=−1A1
(b)
P(x)=(x−3)(x2−x−4)M1A1
x=3, x=1±172A1
Question 2Paper 1[5 marks]

The graph of y=f(x), where f is a polynomial of degree 4, touches the x-axis at x=−1, crosses it at x=2 and x=4, and passes through (0,−16).

  • (a)Write down an expression for f(x) in terms of a constant k.[2]
  • (b)Find k.[2]
  • (c)Describe the behaviour of the graph as x→±∞.[1]
(a)
f(x)=k(x+1)2(x−2)(x−4)A1A1
(b)
k(1)(−2)(−4)=−16M1
k=−2A1
(c)
f(x)→−∞ at both ends (leading coefficient negative, even degree)R1
Question 3Paper 2[5 marks]

When P(x)=x3+kx2−4x+1 is divided by (x−2) the remainder is 7.

  • (a)Find k.[2]
  • (b)Hence solve P(x)=0.[3]
(a)
8+4k−8+1=7M1
k=1.5A1
(b)
x3+1.5x2−4x+1=0 (GDC)(M1)
x=−2.96, 0.287, 1.18A2

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you're scoring well above, try real IB questions. Your school or teacher will have these papers.

PaperQuestionFocusDifficulty
May 2025 · TZ3 · Paper 2Q2A cubic with a given factor and a given remainder★★
Nov 2025 · TZ3 · Paper 2Q6Using a remainder to find unknown coefficients★★
May 2024 · TZ1 · Paper 1Q11Factorising a cubic and dividing by a quadratic★★★
Nov 2024 · Paper 3Q2Investigation: palindromic polynomials★★★
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake