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−13x2+36x^4 - 13x^2 + 36, is a quadratic in disguise. Think of x2x^2 as a single unknown (you can write u=x2u = x^2 if it helps):

x4−13x2+36=(x2)2−13(x2)+36=(x2−4)(x2−9)x^4 - 13x^2 + 36 = (x^2)^2 - 13(x^2) + 36 = (x^2 - 4)(x^2 - 9)

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

  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}