Skip to content
Family Table Math
Auto

Solving Polynomial Equations

Once you can factor a polynomial, you can solve equations like x3−4x2−9x+36=0x^3 - 4x^2 - 9x + 36 = 0. The roots you find are exactly where the graph of the polynomial crosses or touches the xx-axis. This page shows how to solve polynomial equations of degree up to 44, what it means when some roots aren’t real, and how to use these equations in real problems.

The roots of the equation P(x)=0P(x) = 0 are the values of xx that make it true. They are the same numbers as the zeros of the function f(x)=P(x)f(x) = P(x), and the real roots are the xx-intercepts of the graph of y=P(x)y = P(x).

For example, the equation x4−13x2+36=0x^4 - 13x^2 + 36 = 0 has roots −3-3, −2-2, 22 and 33, and the graph of y=x4−13x2+36y = x^4 - 13x^2 + 36 crosses the xx-axis at exactly those four points (left graph below).

This is why graphing technology such as Desmos is a good way to check your roots: graph y=P(x)y = P(x) and look at the xx-intercepts.

  1. Rearrange so one side is 00: P(x)=0P(x) = 0.
  2. Factor P(x)P(x) fully, using the factoring strategy (including the factor theorem when needed).
  3. Use the zero product property: if a product is 00, at least one factor is 00. Set each factor equal to 00 and solve.
  4. If a quadratic factor won’t factor, use the quadratic formula on it.

A polynomial equation of degree nn has at most nn real roots. A cubic has at most 33 and a quartic at most 44. It can have fewer, for two reasons:

  • Repeated roots. In (x−2)2(x+1)=0(x - 2)^2(x + 1) = 0, the root 22 comes from two factors. The graph touches the xx-axis at x=2x = 2 instead of crossing it.
  • Non-real roots. A quadratic factor with a negative discriminant gives no real roots. (Its roots are non-real numbers, which you’ll meet in later courses. You don’t need to calculate them here.) These roots don’t appear as xx-intercepts.

For example, x3+x2+2x−4=(x−1)(x2+2x+4)x^3 + x^2 + 2x - 4 = (x - 1)(x^2 + 2x + 4). The discriminant of x2+2x+4x^2 + 2x + 4 is 22−4(1)(4)=−12<02^2 - 4(1)(4) = -12 \lt 0, so the only real root is x=1x = 1. The graph (right below) crosses the xx-axis just once.

Left: a quartic with four x-intercepts at -3, -2, 2 and 3. Right: a cubic with only one x-intercept, at 1 y = x⁴ − 13x² + 36 10 20 −3 −2 2 3 −8 8 y = x³ + x² + 2x − 4 (1, 0)
Left: four real roots, four xx-intercepts. Right: one real root and two non-real roots, so only one xx-intercept.

In a word problem, the equation often has more roots than make sense. Always check each root against the situation: lengths must be positive, a cut can’t be bigger than the sheet, and so on. Then answer in context with units.

Solve x3−4x2−9x+36=0x^3 - 4x^2 - 9x + 36 = 0.

Solution. Four terms, so try grouping:

x2(x−4)−9(x−4)=0(x−4)(x2−9)=0(x−4)(x−3)(x+3)=0\begin{aligned} x^2(x - 4) - 9(x - 4) &= 0 \\ (x - 4)(x^2 - 9) &= 0 \\ (x - 4)(x - 3)(x + 3) &= 0 \end{aligned}

So x−4=0x - 4 = 0, x−3=0x - 3 = 0 or x+3=0x + 3 = 0. The roots are x=4x = 4, x=3x = 3 and x=−3x = -3.

Check x=−3x = -3: −27−36+27+36=0-27 - 36 + 27 + 36 = 0. ✓

Solve x4−13x2+36=0x^4 - 13x^2 + 36 = 0, and connect the roots to the graph.

Solution. Treat x2x^2 as the unknown:

(x2−4)(x2−9)=0(x−2)(x+2)(x−3)(x+3)=0\begin{aligned} (x^2 - 4)(x^2 - 9) &= 0 \\ (x - 2)(x + 2)(x - 3)(x + 3) &= 0 \end{aligned}

The roots are x=±2x = \pm 2 and x=±3x = \pm 3. These are the four xx-intercepts of y=x4−13x2+36y = x^4 - 13x^2 + 36 in the left graph above.

Example 3: Factor theorem, then the quadratic formula

Section titled “Example 3: Factor theorem, then the quadratic formula”

Solve x3−3x2−2x+4=0x^3 - 3x^2 - 2x + 4 = 0. Give exact roots, and decimals to two decimal places.

Solution. The possible integer roots are ±1,±2,±4\pm 1, \pm 2, \pm 4. Try x=1x = 1: 1−3−2+4=01 - 3 - 2 + 4 = 0. So x−1x - 1 is a factor:

11−3−241−2−41−2−40\def\arraystretch{1.3} \begin{array}{r|rrrr} 1 & 1 & -3 & -2 & 4 \\ & & 1 & -2 & -4 \\ \hline & 1 & -2 & -4 & \boxed{0} \end{array}

So (x−1)(x2−2x−4)=0(x - 1)(x^2 - 2x - 4) = 0. The quadratic doesn’t factor over the integers, so use the quadratic formula:

x=2±(−2)2−4(1)(−4)2=2±202=2±252=1±5x = \frac{2 \pm \sqrt{(-2)^2 - 4(1)(-4)}}{2} = \frac{2 \pm \sqrt{20}}{2} = \frac{2 \pm 2\sqrt{5}}{2} = 1 \pm \sqrt{5}

The roots are x=1x = 1, x=1+5≈3.24x = 1 + \sqrt{5} \approx 3.24 and x=1−5≈−1.24x = 1 - \sqrt{5} \approx -1.24.

A box with no lid is made from a 3030 cm by 2020 cm sheet of cardboard by cutting a square of side xx cm from each corner and folding up the sides. For what values of xx is the volume 10001000 cm³?

Solution. After cutting, the base is (30−2x)(30 - 2x) by (20−2x)(20 - 2x) and the height is xx:

V(x)=x(30−2x)(20−2x)V(x) = x(30 - 2x)(20 - 2x)

The cut must be positive and less than half of 2020 cm, so 0<x<100 \lt x \lt 10.

Set V(x)=1000V(x) = 1000 and expand:

x(30−2x)(20−2x)=10004x3−100x2+600x=1000x3−25x2+150x−250=0divide by 4\begin{aligned} x(30 - 2x)(20 - 2x) &= 1000 \\ 4x^3 - 100x^2 + 600x &= 1000 \\ x^3 - 25x^2 + 150x - 250 &= 0 && \text{divide by 4} \end{aligned}

Test factors of 250250. Try x=5x = 5: 125−625+750−250=0125 - 625 + 750 - 250 = 0. ✓ Divide by x−5x - 5:

51−25150−2505−1002501−20500\def\arraystretch{1.3} \begin{array}{r|rrrr} 5 & 1 & -25 & 150 & -250 \\ & & 5 & -100 & 250 \\ \hline & 1 & -20 & 50 & \boxed{0} \end{array}

Now solve x2−20x+50=0x^2 - 20x + 50 = 0:

x=20±400−2002=20±2002=10±52x = \frac{20 \pm \sqrt{400 - 200}}{2} = \frac{20 \pm \sqrt{200}}{2} = 10 \pm 5\sqrt{2}

So the roots are 55, 10+52≈17.0710 + 5\sqrt{2} \approx 17.07 and 10−52≈2.9310 - 5\sqrt{2} \approx 2.93. The root 17.0717.07 is outside 0<x<100 \lt x \lt 10 (you can’t cut 1717 cm squares from a 2020 cm side), so reject it.

The volume is 10001000 cm³ when the squares have side 55 cm or about 2.932.93 cm.

Check x=5x = 5: the box is 2020 cm by 1010 cm by 55 cm, and 20×10×5=100020 \times 10 \times 5 = 1000. ✓

Dividing both sides by x. In 3x3=12x3x^3 = 12x, dividing by xx gives x2=4x^2 = 4 and loses the root x=0x = 0. Instead, move everything to one side and factor: 3x(x−2)(x+2)=03x(x - 2)(x + 2) = 0.

Not setting the equation equal to zero first. The zero product property only works for a product equal to 00. (x−1)(x+2)=4(x - 1)(x + 2) = 4 does not mean x−1=4x - 1 = 4 or x+2=4x + 2 = 4.

Missing negative roots. x2−9=0x^2 - 9 = 0 gives x=3x = 3 and x=−3x = -3. Factoring as (x−3)(x+3)(x - 3)(x + 3) makes both roots visible.

Expecting every root to be an x-intercept. x4−5x2−36=0x^4 - 5x^2 - 36 = 0 has four roots: two real ones (±3\pm 3) and two non-real ones from x2+4=0x^2 + 4 = 0. Only the two real roots show up as xx-intercepts. When a quadratic factor has a negative discriminant, say it has “no real roots”, not “no roots”.

Keeping roots that don’t fit the context. In Example 4, x≈17.07x \approx 17.07 solves the equation but not the problem. Always check each root against the restrictions.

1. (Warm-up) Solve (x−2)(x+5)(2x−1)=0(x - 2)(x + 5)(2x - 1) = 0.

Solution

x−2=0x - 2 = 0, x+5=0x + 5 = 0 or 2x−1=02x - 1 = 0, so x=2x = 2, x=−5x = -5 or x=12x = \tfrac{1}{2}.

2. (Warm-up) Solve 3x3=12x3x^3 = 12x.

Solution3x3−12x=03x(x2−4)=03x(x−2)(x+2)=0\begin{aligned} 3x^3 - 12x &= 0 \\ 3x(x^2 - 4) &= 0 \\ 3x(x - 2)(x + 2) &= 0 \end{aligned}

x=0x = 0, x=2x = 2 or x=−2x = -2.

3. (Core) Solve x3+2x2−9x−18=0x^3 + 2x^2 - 9x - 18 = 0.

Solutionx2(x+2)−9(x+2)=0(x+2)(x−3)(x+3)=0\begin{aligned} x^2(x + 2) - 9(x + 2) &= 0 \\ (x + 2)(x - 3)(x + 3) &= 0 \end{aligned}

x=−2x = -2, x=3x = 3 or x=−3x = -3.

4. (Core) Solve x4−5x2−36=0x^4 - 5x^2 - 36 = 0. How many xx-intercepts does the graph of y=x4−5x2−36y = x^4 - 5x^2 - 36 have?

Solution(x2−9)(x2+4)=0⇒(x−3)(x+3)(x2+4)=0(x^2 - 9)(x^2 + 4) = 0 \quad\Rightarrow\quad (x - 3)(x + 3)(x^2 + 4) = 0

x2+4=0x^2 + 4 = 0 has no real roots (since x2≥0x^2 \ge 0, x2+4≥4x^2 + 4 \ge 4). So the real roots are x=3x = 3 and x=−3x = -3, and the other two roots are non-real.

The graph has two xx-intercepts, at (3,0)(3, 0) and (−3,0)(-3, 0).

5. (Core) Solve 2x3+x2−13x+6=02x^3 + x^2 - 13x + 6 = 0.

Solution

Try x=2x = 2: 16+4−26+6=016 + 4 - 26 + 6 = 0, so x−2x - 2 is a factor.

221−136410−625−30\def\arraystretch{1.3} \begin{array}{r|rrrr} 2 & 2 & 1 & -13 & 6 \\ & & 4 & 10 & -6 \\ \hline & 2 & 5 & -3 & \boxed{0} \end{array}

2x2+5x−3=(2x−1)(x+3)2x^2 + 5x - 3 = (2x - 1)(x + 3), so (x−2)(2x−1)(x+3)=0(x - 2)(2x - 1)(x + 3) = 0.

x=2x = 2, x=12x = \tfrac{1}{2} or x=−3x = -3.

6. (Core) Solve x3−6x2+12x−8=0x^3 - 6x^2 + 12x - 8 = 0. What does the graph of y=x3−6x2+12x−8y = x^3 - 6x^2 + 12x - 8 look like at its xx-intercept?

Solution

Try x=2x = 2: 8−24+24−8=08 - 24 + 24 - 8 = 0. Dividing by x−2x - 2 gives x2−4x+4=(x−2)2x^2 - 4x + 4 = (x - 2)^2, so

(x−2)3=0(x - 2)^3 = 0

The only root is x=2x = 2 (a triple root). The graph has just one xx-intercept, (2,0)(2, 0), where it flattens out as it passes through the axis.

7. (Core) A storage crate has a volume of 3030 m³. Its length is 22 m more than its width, and its height is 11 m less than its width. Find its dimensions.

Solution

Let the width be ww metres. Then

w(w+2)(w−1)=30w3+w2−2w−30=0\begin{aligned} w(w + 2)(w - 1) &= 30 \\ w^3 + w^2 - 2w - 30 &= 0 \end{aligned}

Try w=3w = 3: 27+9−6−30=027 + 9 - 6 - 30 = 0. ✓ Dividing by w−3w - 3 gives w2+4w+10w^2 + 4w + 10, whose discriminant is 16−40=−24<016 - 40 = -24 \lt 0. So w=3w = 3 is the only real root.

The crate is 55 m long, 33 m wide and 22 m high. Check: 5×3×2=305 \times 3 \times 2 = 30. ✓

8. (Challenge) Find where the graphs of y=x3y = x^3 and y=7x+6y = 7x + 6 intersect.

Solution

Set the expressions equal: x3=7x+6x^3 = 7x + 6, so x3−7x−6=0x^3 - 7x - 6 = 0.

Try x=−1x = -1: −1+7−6=0-1 + 7 - 6 = 0. Dividing by x+1x + 1 gives x2−x−6=(x−3)(x+2)x^2 - x - 6 = (x - 3)(x + 2), so

(x+1)(x−3)(x+2)=0(x + 1)(x - 3)(x + 2) = 0

x=−1x = -1, 33 or −2-2. Using y=x3y = x^3, the points are (−1,−1)(-1, -1), (3,27)(3, 27) and (−2,−8)(-2, -8).

Check with the line: 7(3)+6=277(3) + 6 = 27 ✓, 7(−2)+6=−87(-2) + 6 = -8 ✓, 7(−1)+6=−17(-1) + 6 = -1 ✓.

9. (Challenge) One root of x3+kx2+x+6=0x^3 + kx^2 + x + 6 = 0 is x=2x = 2. Find kk and the other roots.

Solution

Substitute x=2x = 2:

8+4k+2+6=0⇒4k=−16⇒k=−48 + 4k + 2 + 6 = 0 \quad\Rightarrow\quad 4k = -16 \quad\Rightarrow\quad k = -4

The equation is x3−4x2+x+6=0x^3 - 4x^2 + x + 6 = 0. Divide by x−2x - 2:

21−4162−4−61−2−30\def\arraystretch{1.3} \begin{array}{r|rrrr} 2 & 1 & -4 & 1 & 6 \\ & & 2 & -4 & -6 \\ \hline & 1 & -2 & -3 & \boxed{0} \end{array}

x2−2x−3=(x−3)(x+1)x^2 - 2x - 3 = (x - 3)(x + 1), so the other roots are x=3x = 3 and x=−1x = -1.