Skip to content
Family Table Math
Auto

Factoring Polynomials

You’ve met lots of factoring methods over the years. For cubics and quartics, the hard part is often choosing which method to use. This page puts all the tools in one place with a checklist for picking the right one. Factoring is how you’ll solve polynomial equations and inequalities next, so it pays to be quick and reliable.

MethodPatternExample
Common factorab+ac=a(b+c)ab + ac = a(b + c)3x3−12x=3x(x2−4)3x^3 - 12x = 3x(x^2 - 4)
Difference of squaresa2−b2=(a−b)(a+b)a^2 - b^2 = (a - b)(a + b)x2−25=(x−5)(x+5)x^2 - 25 = (x - 5)(x + 5)
Trinomialx2+bx+c=(x+r)(x+s)x^2 + bx + c = (x + r)(x + s) with rs=crs = c, r+s=br + s = bx2−x−6=(x−3)(x+2)x^2 - x - 6 = (x - 3)(x + 2)
Groupingfactor pairs of terms, then the common binomialx3+2x2+3x+6=(x+2)(x2+3)x^3 + 2x^2 + 3x + 6 = (x + 2)(x^2 + 3)
Difference of cubesa3−b3=(a−b)(a2+ab+b2)a^3 - b^3 = (a - b)(a^2 + ab + b^2)x3−8=(x−2)(x2+2x+4)x^3 - 8 = (x - 2)(x^2 + 2x + 4)
Sum of cubesa3+b3=(a+b)(a2−ab+b2)a^3 + b^3 = (a + b)(a^2 - ab + b^2)x3+27=(x+3)(x2−3x+9)x^3 + 27 = (x + 3)(x^2 - 3x + 9)
Factor theoremP(a)=0P(a) = 0 means x−ax - a is a factorsee the factor theorem

These two patterns are new for most students. A way to remember the signs is SOAP: the signs in the answer go Same, Opposite, Always Positive.

a3−b3=(a  −same  b)(a2  +opposite  ab  +always +  b2)a^3 - b^3 = (a \;\underset{\text{same}}{-}\; b)(a^2 \;\underset{\text{opposite}}{+}\; ab \;\underset{\text{always +}}{+}\; b^2)

To use them, write each term as a cube: 8x3=(2x)38x^3 = (2x)^3, 27=3327 = 3^3, 64=4364 = 4^3. The quadratic factor a2±ab+b2a^2 \pm ab + b^2 never factors further over the real numbers.

Note there is no sum of squares pattern: x2+9x^2 + 9 doesn’t factor over the real numbers.

A quartic with only x4x^4, x2x^2 and constant terms, like x4−20x2+64x^4 - 20x^2 + 64, is a quadratic in disguise. Think of x2x^2 as a single unknown (you can write u=x2u = x^2 if it helps):

x4−20x2+64=(x2)2−20(x2)+64=(x2−4)(x2−16)x^4 - 20x^2 + 64 = (x^2)^2 - 20(x^2) + 64 = (x^2 - 4)(x^2 - 16)

Each bracket is a difference of squares, so the full factorization is (x−2)(x+2)(x−4)(x+4)(x - 2)(x + 2)(x - 4)(x + 4).

  1. Common factor first. Always take out the greatest common factor (including −1-1 if the leading coefficient is negative and that helps).
  2. Count the terms.
    • Two terms: difference of squares, or sum or difference of cubes.
    • Three terms: trinomial factoring, including quadratic-type quartics.
    • Four terms: try grouping.
  3. Still stuck? Use the factor theorem: test the possible zeros, then divide.
  4. Check every factor to see whether it factors again. Stop when no factor can be broken down further.
  5. Check your answer by expanding, or by substituting a value like x=1x = 1 into both forms.

Example 1: Common factor, then a trinomial

Section titled “Example 1: Common factor, then a trinomial”

Factor 2x3−8x2−24x2x^3 - 8x^2 - 24x.

Solution. Every term has a factor of 2x2x:

2x3−8x2−24x=2x(x2−4x−12)2x^3 - 8x^2 - 24x = 2x(x^2 - 4x - 12)

Now find two numbers that multiply to −12-12 and add to −4-4: −6-6 and 22.

2x3−8x2−24x=2x(x−6)(x+2)2x^3 - 8x^2 - 24x = 2x(x - 6)(x + 2)

Check with x=1x = 1: the left side is 2−8−24=−302 - 8 - 24 = -30, and the right side is 2(1)(−5)(3)=−302(1)(-5)(3) = -30. ✓

Factor x3+3x2−4x−12x^3 + 3x^2 - 4x - 12.

Solution. Four terms, so try grouping. Take a common factor out of each pair:

x3+3x2−4x−12=x2(x+3)−4(x+3)=(x+3)(x2−4)common factor x+3=(x+3)(x−2)(x+2)difference of squares\begin{aligned} x^3 + 3x^2 - 4x - 12 &= x^2(x + 3) - 4(x + 3) \\ &= (x + 3)(x^2 - 4) && \text{common factor } x + 3 \\ &= (x + 3)(x - 2)(x + 2) && \text{difference of squares} \end{aligned}

Notice the second pair: factoring out −4-4 (not 44) makes the bracket x+3x + 3 match the first one.

Factor x4−10x2+9x^4 - 10x^2 + 9.

Solution. Treat x2x^2 as the unknown. Find two numbers that multiply to 99 and add to −10-10: −1-1 and −9-9.

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

Check with x=2x = 2: the left side is 16−40+9=−1516 - 40 + 9 = -15, and the right side is (1)(3)(−1)(5)=−15(1)(3)(-1)(5) = -15. ✓

Example 4: Common factor, then a sum of cubes

Section titled “Example 4: Common factor, then a sum of cubes”

Factor 2x4+54x2x^4 + 54x.

Solution. Take out the common factor 2x2x:

2x4+54x=2x(x3+27)2x^4 + 54x = 2x(x^3 + 27)

Now x3+27=x3+33x^3 + 27 = x^3 + 3^3 is a sum of cubes with a=xa = x and b=3b = 3:

x3+27=(x+3)(x2−3x+9)x^3 + 27 = (x + 3)(x^2 - 3x + 9)

So

2x4+54x=2x(x+3)(x2−3x+9)2x^4 + 54x = 2x(x + 3)(x^2 - 3x + 9)

The quadratic x2−3x+9x^2 - 3x + 9 has discriminant 9−36=−27<09 - 36 = -27 \lt 0, so it doesn’t factor further.

Skipping the common factor. If you start factoring 2x3−8x2−24x2x^3 - 8x^2 - 24x without taking out 2x2x, everything is harder. Always look for a common factor first.

Getting the cube signs wrong. x3−8=(x−2)(x2+2x+4)x^3 - 8 = (x - 2)(x^2 + 2x + 4), not (x−2)(x2−2x+4)(x - 2)(x^2 - 2x + 4) or (x−2)(x+2)2(x - 2)(x + 2)^2. Use SOAP: same, opposite, always positive.

Trying to factor a sum of squares. x2+9x^2 + 9 and x2+4x^2 + 4 don’t factor over the real numbers. x4−81=(x2−9)(x2+9)x^4 - 81 = (x^2 - 9)(x^2 + 9) factors once more as (x−3)(x+3)(x2+9)(x - 3)(x + 3)(x^2 + 9), but the x2+9x^2 + 9 stays.

Sign errors in grouping. In x3+3x2−4x−12x^3 + 3x^2 - 4x - 12, the second pair is −4x−12=−4(x+3)-4x - 12 = -4(x + 3). Writing −4(x−3)-4(x - 3) breaks the pattern. Expand each pair back in your head to check.

Not factoring fully. (x2−1)(x2−9)(x^2 - 1)(x^2 - 9) is a correct step, but it isn’t finished. Each bracket is a difference of squares. Keep going until no factor can be broken down.

1. (Warm-up) Factor 3x3−12x3x^3 - 12x.

Solution3x3−12x=3x(x2−4)=3x(x−2)(x+2)3x^3 - 12x = 3x(x^2 - 4) = 3x(x - 2)(x + 2)

2. (Warm-up) Factor x4−81x^4 - 81.

Solutionx4−81=(x2−9)(x2+9)=(x−3)(x+3)(x2+9)x^4 - 81 = (x^2 - 9)(x^2 + 9) = (x - 3)(x + 3)(x^2 + 9)

x2+9x^2 + 9 is a sum of squares, so it doesn’t factor further.

3. (Warm-up) Factor x3−64x^3 - 64.

Solution

64=4364 = 4^3, so use the difference of cubes with a=xa = x and b=4b = 4:

x3−64=(x−4)(x2+4x+16)x^3 - 64 = (x - 4)(x^2 + 4x + 16)

4. (Core) Factor x3−2x2−9x+18x^3 - 2x^2 - 9x + 18.

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

5. (Core) Factor x4−17x2+16x^4 - 17x^2 + 16.

Solution

Two numbers that multiply to 1616 and add to −17-17: −1-1 and −16-16.

x4−17x2+16=(x2−1)(x2−16)=(x−1)(x+1)(x−4)(x+4)\begin{aligned} x^4 - 17x^2 + 16 &= (x^2 - 1)(x^2 - 16) \\ &= (x - 1)(x + 1)(x - 4)(x + 4) \end{aligned}

6. (Core) Factor 5x3+405x^3 + 40.

Solution5x3+40=5(x3+8)=5(x+2)(x2−2x+4)5x^3 + 40 = 5(x^3 + 8) = 5(x + 2)(x^2 - 2x + 4)

7. (Core) Factor 2x3+3x2−11x−62x^3 + 3x^2 - 11x - 6. (Grouping doesn’t work here.)

Solution

Possible rational zeros: ±1,±2,±3,±6,±12,±32\pm 1, \pm 2, \pm 3, \pm 6, \pm\tfrac{1}{2}, \pm\tfrac{3}{2}. Try x=2x = 2: 16+12−22−6=016 + 12 - 22 - 6 = 0, so x−2x - 2 is a factor.

223−11−641462730\def\arraystretch{1.3} \begin{array}{r|rrrr} 2 & 2 & 3 & -11 & -6 \\ & & 4 & 14 & 6 \\ \hline & 2 & 7 & 3 & \boxed{0} \end{array}

2x2+7x+3=(2x+1)(x+3)2x^2 + 7x + 3 = (2x + 1)(x + 3), so

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

8. (Challenge) Factor x4+x3−8x−8x^4 + x^3 - 8x - 8.

Solution

Group in pairs, then use the difference of cubes:

x4+x3−8x−8=x3(x+1)−8(x+1)=(x+1)(x3−8)=(x+1)(x−2)(x2+2x+4)\begin{aligned} x^4 + x^3 - 8x - 8 &= x^3(x + 1) - 8(x + 1) \\ &= (x + 1)(x^3 - 8) \\ &= (x + 1)(x - 2)(x^2 + 2x + 4) \end{aligned}

9. (Challenge) Factor 4x4−17x2+44x^4 - 17x^2 + 4.

Solution

Treat x2x^2 as the unknown: 4u2−17u+44u^2 - 17u + 4 with u=x2u = x^2. Two numbers that multiply to 4×4=164 \times 4 = 16 and add to −17-17 are −1-1 and −16-16:

4x4−17x2+4=4x4−x2−16x2+4=x2(4x2−1)−4(4x2−1)=(4x2−1)(x2−4)=(2x−1)(2x+1)(x−2)(x+2)\begin{aligned} 4x^4 - 17x^2 + 4 &= 4x^4 - x^2 - 16x^2 + 4 \\ &= x^2(4x^2 - 1) - 4(4x^2 - 1) \\ &= (4x^2 - 1)(x^2 - 4) \\ &= (2x - 1)(2x + 1)(x - 2)(x + 2) \end{aligned}

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.

“Factor fully” means over the real numbers, with integer coefficients: stop when every factor is linear or a quadratic that can’t be broken down.

H1. (Foundations) Factor fully.

  • (a) 4x3−36x4x^3 - 36x
  • (b) x3−125x^3 - 125
  • (c) 8x3+18x^3 + 1

H2. (Foundations) Use the discriminant b2−4acb^2 - 4ac to decide whether each quadratic factors over the real numbers. If it factors, factor it.

  • (a) x2+2x+5x^2 + 2x + 5
  • (b) 2x2+x−62x^2 + x - 6
  • (c) 3x2−x+13x^2 - x + 1

H3. (Core) Factor fully by grouping. Say whether any quadratic factor in your answer can be broken down further.

  • (a) 2x3−5x2−18x+452x^3 - 5x^2 - 18x + 45
  • (b) x3+4x2+5x+20x^3 + 4x^2 + 5x + 20

H4. (Core) Grouping doesn’t work for these. Use the factor theorem to find a zero, divide, and keep going until the polynomial is factored fully.

  • (a) 3x3−4x2−17x+63x^3 - 4x^2 - 17x + 6
  • (b) x4−2x3−13x2+14x+24x^4 - 2x^3 - 13x^2 + 14x + 24

H5. (Core) Factor these quadratic-type quartics fully.

  • (a) x4−5x2−36x^4 - 5x^2 - 36
  • (b) 2x4−7x2−42x^4 - 7x^2 - 4

H6. (Core) Take out the common factor first, then factor fully.

  • (a) −2x4+16x-2x^4 + 16x (take out a negative common factor)
  • (b) 3x4−483x^4 - 48
  • (c) 54x3−254x^3 - 2

H7. (Challenge) Two students factor 27x3−827x^3 - 8.

  • Maya writes 27x3−8=(3x−2)327x^3 - 8 = (3x - 2)^3.
  • Ravi writes 27x3−8=(3x+2)(9x2−6x+4)27x^3 - 8 = (3x + 2)(9x^2 - 6x + 4).

Answer these:

  • (a) Expand (3x−2)3(3x - 2)^3 and use it to explain Maya’s mistake.
  • (b) What did Ravi actually factor? Explain his mistake.
  • (c) Give the correct factorization, and check it by substituting x=1x = 1 into both forms.

H8. (Challenge) Use a substitution to factor each polynomial fully.

  • (a) (x2−2x)2−11(x2−2x)+24(x^2 - 2x)^2 - 11(x^2 - 2x) + 24 (let u=x2−2xu = x^2 - 2x)
  • (b) x6−9x3+8x^6 - 9x^3 + 8 (think of x3x^3 as the unknown)

H9. (Challenge) A pet store in Moncton designs a family of rectangular aquariums (hypothetical). An aquarium’s volume is V(x)=2x3+9x2+7x−6V(x) = 2x^3 + 9x^2 + 7x - 6 cubic decimetres, where xx is a length in decimetres, and each dimension is a linear factor of V(x)V(x) with integer coefficients.

  • (a) Use the factor theorem to show that x+2x + 2 is a factor of V(x)V(x).
  • (b) Factor V(x)V(x) fully to find the three dimensions in terms of xx.
  • (c) Find the dimensions and the volume when x=4x = 4. Check that your volume matches V(4)V(4), and give it in litres.
  • (d) Explain why xx must be greater than 12\dfrac{1}{2} for the aquarium to make sense.

H10. (Challenge) Find all integers kk for which x3−7x+kx^3 - 7x + k factors fully into three linear factors with integer coefficients. Justify that you have found them all.

Hint: if it factors this way, it has an integer zero aa. Use P(a)=0P(a) = 0 to write kk in terms of aa, divide by x−ax - a, and ask when the quotient x2+ax+(a2−7)x^2 + ax + (a^2 - 7) factors.