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−29x2+100=0x^4 - 29x^2 + 100 = 0 has roots −5-5, −2-2, 22 and 55, and the graph of y=x4−29x2+100y = x^4 - 29x^2 + 100 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 -5, -2, 2 and 5. Right: a cubic with only one x-intercept, at 1 y = x⁴ − 29x² + 100 −80 −40 40 −5 −2 2 5 −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−29x2+100=0x^4 - 29x^2 + 100 = 0, and connect the roots to the graph.

Solution. Treat x2x^2 as the unknown. You need two numbers that multiply to 100100 and add to −29-29: they are −4-4 and −25-25.

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

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

Check x=5x = 5: 625−29(25)+100=625−725+100=0625 - 29(25) + 100 = 625 - 725 + 100 = 0. ✓

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.

Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.

When a root is irrational, give the exact value and a decimal rounded to two places.

H1. (Foundations) Solve each equation.

  • (a) (x+4)(3x−2)(x−7)=0(x + 4)(3x - 2)(x - 7) = 0
  • (b) x4=16x2x^4 = 16x^2

H2. (Foundations) Solve by grouping.

  • (a) x3+5x2−4x−20=0x^3 + 5x^2 - 4x - 20 = 0
  • (b) 3x3−2x2−12x+8=03x^3 - 2x^2 - 12x + 8 = 0

H3. (Core) Each equation is quadratic in form. Solve it, and say how many xx-intercepts the graph of the polynomial on the left side has.

  • (a) x4−10x2+9=0x^4 - 10x^2 + 9 = 0
  • (b) x4+3x2−4=0x^4 + 3x^2 - 4 = 0
  • (c) x4−7x2+10=0x^4 - 7x^2 + 10 = 0

H4. (Core) Find all real roots. Use the factor theorem, the sum or difference of cubes, and the quadratic formula as needed.

  • (a) x3−6x2+9x−2=0x^3 - 6x^2 + 9x - 2 = 0
  • (b) 8x3+125=08x^3 + 125 = 0
  • (c) 3x3−4x2−17x+6=03x^3 - 4x^2 - 17x + 6 = 0

H5. (Core) A school in Moncton makes open-top boxes from sheets of card that measure 2222 cm by 1414 cm. A square of side xx cm is cut from each corner, and the sides are folded up.

  • (a) Write the volume V(x)V(x) of the box, and state the values of xx that make sense.
  • (b) Find all values of xx that give a volume of 240240 cm³.
  • (c) Give the dimensions of each box, and check the volumes.

H6. (Core) A farm in Alberta orders a steel water trough with a V-shaped cross-section (an upside-down triangle). In a hypothetical design, when the trough is xx metres deep, the opening at the top is 2x2x metres wide and the trough is (x+2)(x + 2) metres long.

  • (a) Show that the volume of the trough is V=x2(x+2)V = x^2(x + 2) cubic metres.
  • (b) The trough must hold 0.6250.625 m³ (625625 L). Show that this leads to 8x3+16x2−5=08x^3 + 16x^2 - 5 = 0.
  • (c) Show that x=0.5x = 0.5 is a root, find the other roots, and explain why they are rejected.
  • (d) State the dimensions of the trough.

H7. (Challenge) Find all real solutions of x4−7x3+11x2+5x−14=0x^4 - 7x^3 + 11x^2 + 5x - 14 = 0. Explain how you know you have found every real solution.

H8. (Challenge) Two students made mistakes.

Maya solved 2x3−8x2=10x2x^3 - 8x^2 = 10x like this: “Divide both sides by 2x2x to get x2−4x=5x^2 - 4x = 5, so (x−5)(x+1)=0(x - 5)(x + 1) = 0 and x=5x = 5 or x=−1x = -1.”

Noah solved (x−1)(x+3)=5(x - 1)(x + 3) = 5 like this: ”x−1=5x - 1 = 5 or x+3=5x + 3 = 5, so x=6x = 6 or x=2x = 2.”

  • (a) What did Maya do wrong? Solve her equation correctly.
  • (b) What did Noah do wrong? Solve his equation correctly. One of Noah’s answers happens to be right. Which one, and why is his method still wrong?

H9. (Challenge) Consider x3+3x2+(k−4)x−k=0x^3 + 3x^2 + (k - 4)x - k = 0.

  • (a) Show that x=1x = 1 is a root for every value of kk, and that the equation factors as (x−1)(x2+4x+k)=0(x - 1)(x^2 + 4x + k) = 0.
  • (b) Find all values of kk for which the equation has a repeated root. For each value, give all the roots.

H10. (Challenge) A small company models its weekly profit with the hypothetical function P(x)=−2x3+19x2−26x−18P(x) = -2x^3 + 19x^2 - 26x - 18, where xx is the number of items made, in hundreds, and P(x)P(x) is the profit in thousands of dollars. Graphing y=P(x)y = P(x) in Desmos shows xx-intercepts at (−0.5,0)(-0.5, 0), (2.354,0)(2.354, 0) and (7.646,0)(7.646, 0).

  • (a) Which of the intercepts make sense in this situation? What do they mean?
  • (b) The graph is above the xx-axis between the last two intercepts. What is the smallest and the largest whole number of items the company can make and still earn a profit?
  • (c) Use the factor theorem to confirm that x=−12x = -\tfrac{1}{2} is a root, then find the exact values of the other two roots.
  • (d) Find the profit when the company makes 500500 items.