Polynomials & algebraic division · Lesson 3 of 3

Solving cubic equations

Finding a first root by trial, dividing down to a quadratic, factorising by grouping, building a polynomial from its roots, reading roots from a graph, and the sum and difference of two cubes.

16 minYou should already know: Quadratics & their graphs
  1. 1
  2. 2
  3. 3

Roots and factors

If pp, qq and rr are the roots of a cubic equation, then (x−p)(x - p), (x−q)(x - q) and (x−r)(x - r) are its factors. On a graph, the roots are where the curve crosses the xx-axis.

xpqr
Three rootsy = (x − p)(x − q)(x − r) crosses the x-axis at p, q and r
xcrossestouches
A repeated rootA squared factor (x − a)² makes the curve touch the axis at a

Try it

A cubic from its rootsMove the roots
−5−4−3−2−112345−30−20−10102030xy
−1, 2, 4roots8constant term
y = (x + 1)(x − 2)(x − 4) = x³ − 5x² + 2x + 8The curve crosses the x-axis at each root, so x³ − 5x² + 2x + 8 = 0 has roots −1, 2, 4. The constant term is −pqr = 8, and every whole-number root divides it: that is where to look for a first root.

Move the roots and watch the brackets multiply out. Make two roots equal to see the curve touch the axis. Notice that the constant term is always −pqr-pqr.

Solving a cubic

  1. Find one root by trial. A whole-number root must divide the constant term, so try ±1\pm1, ±2\pm2, … until f(a)=0f(a) = 0.
  2. Divide by (x−a)(x - a) (long division, or by matching coefficients) to get a quadratic.
  3. Solve the quadratic by factorising or the formula.

Some cubics factorise by grouping: take a common factor from the first two terms and from the last two.

Worked example · JAMB 2004

JAMB 2004 · UME · Q11

Find the values of xx where the curve y=x3+2x2−5x−6y = x^3 + 2x^2 - 5x - 6 crosses the xx-axis.

  1. Crossing the x-axis

    The curve crosses the xx-axis where y=0y = 0, so solve x3+2x2−5x−6=0x^3 + 2x^2 - 5x - 6 = 0.

    Think first. What is y there?

  2. A first root

    (−1)3+2(−1)2−5(−1)−6=−1+2+5−6=0(-1)^3 + 2(-1)^2 - 5(-1) - 6 = -1 + 2 + 5 - 6 = 0, so x=−1x = -1 is a root and x+1x + 1 is a factor.

    Think first. Try x = −1: the constant is −6, so ±1, ±2, ±3, ±6 are the candidates.

  3. Divide

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

    Think first. Divide by x + 1.

  4. Factorise the quadratic

    x2+x−6=(x+3)(x−2)x^2 + x - 6 = (x + 3)(x - 2). So the curve crosses at x=2x = 2, −1-1 and −3-3: option C.

    Think first. Two numbers multiplying to −6 and adding to 1.

From roots to the polynomial

To build a polynomial with given roots, turn each root into a factor and multiply out. The root −2-2 gives the factor (x+2)(x + 2).

Worked example · JAMB 2017

JAMB 2017 · UTME · Q16

A polynomial in xx whose zeros are −2-2, −1-1 and 33 is

  1. Roots to factors

    −2-2, −1-1 and 33 give (x+2)(x + 2), (x+1)(x + 1) and (x−3)(x - 3).

    Think first. Which factor does each zero give?

  2. Multiply two

    (x+2)(x+1)=x2+3x+2(x + 2)(x + 1) = x^2 + 3x + 2.

    Think first. (x + 2)(x + 1) = ?

  3. Multiply by the third

    x3−3x2+3x2−9x+2x−6x^3 - 3x^2 + 3x^2 - 9x + 2x - 6, which is x3−7x−6x^3 - 7x - 6: option D.

    Think first. (x² + 3x + 2)(x − 3) = ?

Sum and difference of two cubes

Two cubes factorise with a linear bracket and a quadratic one:

a³ − b³ = (a − b)(a² + ab + b²)
a³ + b³ = (a + b)(a² − ab + b²)
same sign as the question, then the opposite sign, then always +
Sum and difference of cubesA linear bracket times a quadratic bracket, with the signs as marked

Your turn

JAMB 2002 · UME · Q39

Solve for xx in the equation x3−5x2−x+5=0x^3 - 5x^2 - x + 5 = 0.

Worked solution (try it first)
  1. Group the terms in pairs: x2(x−5)−1(x−5)=0x^2(x - 5) - 1(x - 5) = 0.
  2. Take out the common bracket: (x−5)(x2−1)=0(x - 5)(x^2 - 1) = 0, and x2−1=(x−1)(x+1)x^2 - 1 = (x - 1)(x + 1).
  3. So x=5x = 5, x=1x = 1 or x=−1x = -1, option D.

Report a problem with this question

More past questions like this