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.
| Method | Pattern | Example |
|---|
| Common factor | ab+ac=a(b+c) | 3x3−12x=3x(x2−4) |
| Difference of squares | a2−b2=(a−b)(a+b) | x2−25=(x−5)(x+5) |
| Trinomial | x2+bx+c=(x+r)(x+s) with rs=c, r+s=b | x2−x−6=(x−3)(x+2) |
| Grouping | factor pairs of terms, then the common binomial | x3+2x2+3x+6=(x+2)(x2+3) |
| Difference of cubes | a3−b3=(a−b)(a2+ab+b2) | x3−8=(x−2)(x2+2x+4) |
| Sum of cubes | a3+b3=(a+b)(a2−ab+b2) | x3+27=(x+3)(x2−3x+9) |
| Factor theorem | P(a)=0 means x−a is a factor | see 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=(asame−b)(a2opposite+abalways ++b2)
To use them, write each term as a cube: 8x3=(2x)3, 27=33, 64=43. The quadratic factor a2±ab+b2 never factors further over the real numbers.
Note there is no sum of squares pattern: x2+9 doesn’t factor over the real numbers.
A quartic with only x4, x2 and constant terms, like x4−13x2+36, is a quadratic in disguise. Think of x2 as a single unknown (you can write u=x2 if it helps):
x4−13x2+36=(x2)2−13(x2)+36=(x2−4)(x2−9)
Each bracket is a difference of squares, so the full factorization is (x−2)(x+2)(x−3)(x+3).
- Common factor first. Always take out the greatest common factor (including −1 if the leading coefficient is negative and that helps).
- 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.
- Still stuck? Use the factor theorem: test the possible zeros, then divide.
- Check every factor to see whether it factors again. Stop when no factor can be broken down further.
- Check your answer by expanding, or by substituting a value like x=1 into both forms.
Factor 2x3−8x2−24x.
Solution. Every term has a factor of 2x:
2x3−8x2−24x=2x(x2−4x−12)
Now find two numbers that multiply to −12 and add to −4: −6 and 2.
2x3−8x2−24x=2x(x−6)(x+2)
Check with x=1: the left side is 2−8−24=−30, and the right side is 2(1)(−5)(3)=−30. ✓
Factor x3+3x2−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)=(x+3)(x−2)(x+2)common factor x+3difference of squares
Notice the second pair: factoring out −4 (not 4) makes the bracket x+3 match the first one.
Factor x4−10x2+9.
Solution. Treat x2 as the unknown. Find two numbers that multiply to 9 and add to −10: −1 and −9.
x4−10x2+9=(x2−1)(x2−9)=(x−1)(x+1)(x−3)(x+3)
Check with x=2: the left side is 16−40+9=−15, and the right side is (1)(3)(−1)(5)=−15. ✓
Factor 2x4+54x.
Solution. Take out the common factor 2x:
2x4+54x=2x(x3+27)
Now x3+27=x3+33 is a sum of cubes with a=x and b=3:
x3+27=(x+3)(x2−3x+9)
So
2x4+54x=2x(x+3)(x2−3x+9)
The quadratic x2−3x+9 has discriminant 9−36=−27<0, so it doesn’t factor further.
Skipping the common factor. If you start factoring 2x3−8x2−24x without taking out 2x, everything is harder. Always look for a common factor first.
Getting the cube signs wrong. x3−8=(x−2)(x2+2x+4), not (x−2)(x2−2x+4) or (x−2)(x+2)2. Use SOAP: same, opposite, always positive.
Trying to factor a sum of squares. x2+9 and x2+4 don’t factor over the real numbers. x4−81=(x2−9)(x2+9) factors once more as (x−3)(x+3)(x2+9), but the x2+9 stays.
Sign errors in grouping. In x3+3x2−4x−12, the second pair is −4x−12=−4(x+3). Writing −4(x−3) breaks the pattern. Expand each pair back in your head to check.
Not factoring fully. (x2−1)(x2−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−12x.
Solution
3x3−12x=3x(x2−4)=3x(x−2)(x+2)
2. (Warm-up) Factor x4−81.
Solution
x4−81=(x2−9)(x2+9)=(x−3)(x+3)(x2+9)x2+9 is a sum of squares, so it doesn’t factor further.
3. (Warm-up) Factor x3−64.
Solution
64=43, so use the difference of cubes with a=x and b=4:
x3−64=(x−4)(x2+4x+16)
4. (Core) Factor x3−2x2−9x+18.
Solution
x3−2x2−9x+18=x2(x−2)−9(x−2)=(x−2)(x2−9)=(x−2)(x−3)(x+3)
5. (Core) Factor x4−17x2+16.
Solution
Two numbers that multiply to 16 and add to −17: −1 and −16.
x4−17x2+16=(x2−1)(x2−16)=(x−1)(x+1)(x−4)(x+4)
6. (Core) Factor 5x3+40.
Solution
5x3+40=5(x3+8)=5(x+2)(x2−2x+4)
7. (Core) Factor 2x3+3x2−11x−6. (Grouping doesn’t work here.)
Solution
Possible rational zeros: ±1,±2,±3,±6,±21,±23. Try x=2: 16+12−22−6=0, so x−2 is a factor.
222347−11143−6602x2+7x+3=(2x+1)(x+3), so
2x3+3x2−11x−6=(x−2)(2x+1)(x+3)
8. (Challenge) Factor x4+x3−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)
9. (Challenge) Factor 4x4−17x2+4.
Solution
Treat x2 as the unknown: 4u2−17u+4 with u=x2. Two numbers that multiply to 4×4=16 and add to −17 are −1 and −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)