Mathovia

Algebra / Preliminaries

Factoring Higher-Degree Polynomials

A higher-degree polynomial rarely factors with a single technique; it almost always needs the greatest common factor, then a pattern or a substitution, then possibly grouping, applied in sequence until nothing factors any further. This lesson adds the two genuinely new tools — sum and difference of cubes, and quadratic-in-form substitution — and then works through full factorizations that chain several techniques together.

Practice Problems
M
Written by
Mathovia Team
Editorial Team

A higher-degree polynomial almost never yields to a single factoring technique the way a simple trinomial does. Factoring one completely usually means working through a short checklist — greatest common factor, then a recognizable pattern, then grouping if needed — and repeating that checklist on every resulting factor until nothing can be broken down any further.

Factor Out the GCF First, Always

Exactly as with a quadratic, the very first move on any polynomial is checking for a shared greatest common factor. This step never becomes optional just because the degree is higher — if anything, it matters more, since it can reduce the degree of what’s left to factor.

$$ 4x^{5}-4x^{3} = 4x^{3}(x^{2}-1) = 4x^{3}(x+1)(x-1) $$

The GCF \(4x^{3}\) came out first, leaving a simple difference of squares that Factoring Quadratics already covers.

Sum and Difference of Cubes

Two new patterns, alongside the difference of squares, are worth recognizing on sight for degree-\(3\) expressions.

PatternFactors asExample
Difference of cubes\(a^{3}-b^{3}=(a-b)(a^{2}+ab+b^{2})\)\(x^{3}-8=(x-2)(x^{2}+2x+4)\)
Sum of cubes\(a^{3}+b^{3}=(a+b)(a^{2}-ab+b^{2})\)\(x^{3}+27=(x+3)(x^{2}-3x+9)\)

A quick way to remember the signs: the binomial factor keeps the same sign as the original expression, and the trinomial factor’s middle sign is the opposite, with its last term always positive. The resulting trinomial factor almost never factors any further over the integers, so checking it against the ac method is rarely worth the time.

Factoring by Grouping for Higher-Degree Polynomials

Factoring by Grouping extends directly to higher-degree polynomials with four or more terms — the pairing-and-matching process doesn’t change, only the exponents involved do.

$$ x^{5}+3x^{4}+2x+6 = (x^{5}+3x^{4}) + (2x+6) = x^{4}(x+3) + 2(x+3) = (x+3)(x^{4}+2) $$

Factoring a Polynomial That’s Quadratic in Form

A polynomial whose exponents are all multiples of a common smaller exponent behaves exactly like a quadratic once that pattern is substituted with a single variable.

$$ x^{4}-5x^{2}+4 \qquad \text{let } u = x^{2} \;\Longrightarrow\; u^{2}-5u+4 $$

Factor the resulting quadratic in \(u\) using the ordinary technique, then substitute back:

$$ u^{2}-5u+4 = (u-1)(u-4) \;\Longrightarrow\; (x^{2}-1)(x^{2}-4) $$

Neither factor is finished yet — both are themselves differences of squares:

$$ (x^{2}-1)(x^{2}-4) = (x-1)(x+1)(x-2)(x+2) $$

Worked Example A: GCF, Then a Difference of Cubes

Factor \(2x^{4}-16x\) completely.

Step 1 — factor out the GCF:

$$ 2x^{4}-16x = 2x(x^{3}-8) $$

Step 2 — recognize \(x^{3}-8\) as a difference of cubes (\(8=2^{3}\)) and apply the pattern:

$$ 2x(x-2)(x^{2}+2x+4) $$

Answer: \(2x(x-2)(x^{2}+2x+4)\)

Worked Example B: A Sum of Cubes with Variables

Factor \(x^{3}+27y^{3}\) completely.

Step 1 — identify \(a=x\) and \(b=3y\) in the sum of cubes pattern:

$$ x^{3}+(3y)^{3} $$

Step 2 — apply the pattern:

$$ (x+3y)\left(x^{2}-3xy+9y^{2}\right) $$

Answer: \((x+3y)(x^{2}-3xy+9y^{2})\)

Worked Example C: Grouping a Five-Term-Degree Polynomial

Factor \(x^{5}+2x^{3}-3x^{2}-6\) completely.

Step 1 — group and factor each pair:

$$ (x^{5}+2x^{3}) + (-3x^{2}-6) = x^{3}(x^{2}+2) - 3(x^{2}+2) $$

Step 2 — factor out the matching binomial:

$$ (x^{2}+2)(x^{3}-3) $$

Answer: \((x^{2}+2)(x^{3}-3)\). Neither remaining factor matches any further pattern over the integers, so this factorization is already complete.

Worked Example D: Quadratic in Form, Fully Factored

Factor \(x^{4}-13x^{2}+36\) completely.

Step 1 — substitute \(u=x^{2}\):

$$ u^{2}-13u+36 $$

Step 2 — factor the quadratic in \(u\) (two numbers multiplying to \(36\), adding to \(-13\): \(-9\) and \(-4\)):

$$ (u-9)(u-4) $$

Step 3 — substitute back and factor each difference of squares:

$$ (x^{2}-9)(x^{2}-4) = (x-3)(x+3)(x-2)(x+2) $$

Answer: \((x-3)(x+3)(x-2)(x+2)\)

Common Mistakes to Avoid

  • Stopping after the first factoring step. A result like \((x^{2}-1)(x^{2}-4)\) still has more factoring left to do — always re-check every resulting factor.
  • Mixing up the signs in the cubes patterns. The trinomial factor’s middle sign is always the opposite of the binomial’s sign, and its last term is always positive — writing \(a^{2}+ab+b^{2}\) for a difference of cubes (instead of \(a^{2}+ab+b^{2}\) with the correct middle sign) is the most common slip.
  • Forgetting to substitute back after quadratic-in-form factoring. \(u\) was only ever a stand-in; the final answer must be written entirely in terms of the original variable.
  • Assuming every quartic is quadratic in form. The technique only applies when every exponent present is a multiple of the same smaller number — a polynomial with an \(x^{3}\) term mixed in among even-power terms generally isn’t quadratic in form.
  • Trying to apply sum/difference of cubes to a sum/difference of squares, or vice versa. \(x^{3}-8\) uses the cubes pattern; \(x^{2}-4\) uses the squares pattern — matching the wrong exponent to the wrong pattern produces an incorrect factorization.
  • Not checking for a GCF between factoring steps. A GCF can appear inside a factor that wasn’t obvious until after an earlier step already ran, and it’s worth a fresh check every time.

Where This Shows Up Later

  • Solving polynomial equations. A fully factored higher-degree polynomial, set equal to zero, reveals every solution directly through the zero product property, one factor at a time.
  • Simplifying Rational Expressions. A higher-degree numerator or denominator routinely needs this full multi-technique factoring process before any cancelling is possible.
  • Graphing polynomial functions. Each linear factor of a fully factored polynomial corresponds to one x-intercept of its graph.
  • Calculus. Fully factoring a polynomial before finding its limit or its derivative’s roots is a standard first move in several calculus techniques.

Practice Problems

Work each problem yourself before opening the answer.

Problem 1. Factor \(x^{3}-64\) completely.

Show answer

Difference of cubes (\(64=4^{3}\)):

$$ (x-4)(x^{2}+4x+16) $$

Answer: \((x-4)(x^{2}+4x+16)\)

Problem 2. Factor \(x^{3}+125\) completely.

Show answer

Sum of cubes (\(125=5^{3}\)):

$$ (x+5)(x^{2}-5x+25) $$

Answer: \((x+5)(x^{2}-5x+25)\)

Problem 3. Factor \(3x^{4}-3x\) completely.

Show answer

Step 1 — factor out the GCF:

$$ 3x(x^{3}-1) $$

Step 2 — apply the difference of cubes pattern (\(1=1^{3}\)):

$$ 3x(x-1)(x^{2}+x+1) $$

Answer: \(3x(x-1)(x^{2}+x+1)\)

Problem 4. Factor \(x^{4}-16\) completely.

Show answer

Step 1 — apply the difference of squares pattern once:

$$ (x^{2}-4)(x^{2}+4) $$

Step 2 — \(x^{2}-4\) is itself a difference of squares; factor it further:

$$ (x-2)(x+2)(x^{2}+4) $$

Answer: \((x-2)(x+2)(x^{2}+4)\). \(x^{2}+4\) is a sum of squares and does not factor further over the integers.

Problem 5. Factor \(x^{5}-4x^{3}+2x^{2}-8\) completely.

Show answer

Step 1 — group and factor each pair:

$$ (x^{5}-4x^{3}) + (2x^{2}-8) = x^{3}(x^{2}-4) + 2(x^{2}-4) $$

Step 2 — factor out the matching binomial:

$$ (x^{2}-4)(x^{3}+2) $$

Step 3 — \(x^{2}-4\) factors further as a difference of squares:

$$ (x-2)(x+2)(x^{3}+2) $$

Answer: \((x-2)(x+2)(x^{3}+2)\)

Problem 6. Factor \(x^{4}-10x^{2}+9\) completely.

Show answer

Step 1 — substitute \(u=x^{2}\) and factor:

$$ u^{2}-10u+9 = (u-1)(u-9) $$

Step 2 — substitute back:

$$ (x^{2}-1)(x^{2}-9) $$

Step 3 — both factors are differences of squares; factor each further:

$$ (x-1)(x+1)(x-3)(x+3) $$

Answer: \((x-1)(x+1)(x-3)(x+3)\)

Problem 7. Factor \(2x^{3}+54\) completely.

Show answer

Step 1 — factor out the GCF:

$$ 2(x^{3}+27) $$

Step 2 — apply the sum of cubes pattern (\(27=3^{3}\)):

$$ 2(x+3)(x^{2}-3x+9) $$

Answer: \(2(x+3)(x^{2}-3x+9)\)

Problem 8. Factor \(x^{6}-1\) completely.

Show answer

Step 1 — treat as a difference of squares first, since \(x^{6}=(x^{3})^{2}\):

$$ (x^{3}-1)(x^{3}+1) $$

Step 2 — apply the difference of cubes and sum of cubes patterns to each factor:

$$ (x-1)(x^{2}+x+1)(x+1)(x^{2}-x+1) $$

Answer: \((x-1)(x^{2}+x+1)(x+1)(x^{2}-x+1)\)

Problem 9. Factor \(x^{4}+x^{3}-4x-4\) completely.

Show answer

Step 1 — group and factor each pair:

$$ (x^{4}+x^{3}) + (-4x-4) = x^{3}(x+1) - 4(x+1) $$

Step 2 — factor out the matching binomial:

$$ (x+1)(x^{3}-4) $$

Answer: \((x+1)(x^{3}-4)\). \(x^{3}-4\) is not a perfect-cube difference, since \(4\) is not a perfect cube, so this factorization is already complete.

Problem 10. Factor \(x^{4}-29x^{2}+100\) completely.

Show answer

Step 1 — substitute \(u=x^{2}\) and factor (two numbers multiplying to \(100\), adding to \(-29\): \(-25\) and \(-4\)):

$$ u^{2}-29u+100 = (u-25)(u-4) $$

Step 2 — substitute back and factor each difference of squares:

$$ (x^{2}-25)(x^{2}-4) = (x-5)(x+5)(x-2)(x+2) $$

Answer: \((x-5)(x+5)(x-2)(x+2)\)

Quick Reference

SituationMove
Any higher-degree polynomial, first stepFactor out the GCF
\(a^{3}-b^{3}\)\((a-b)(a^{2}+ab+b^{2})\)
\(a^{3}+b^{3}\)\((a+b)(a^{2}-ab+b^{2})\)
Four or more termsTry grouping, pairing terms and matching the resulting binomials
Exponents all multiples of the same numberSubstitute a single variable (\(u=x^{2}\), for example) and factor as a quadratic, then substitute back
After every stepRe-check each resulting factor for a further GCF or pattern before calling the factorization complete

Every technique here builds on Factoring Quadratics and Factoring by Grouping — this lesson is really those two applied repeatedly, plus two new patterns for degree \(3\). Revisit Polynomials for the arithmetic these factorizations build on. Build speed with the Factoring Higher-Degree Generator, or browse the rest of the Algebra lessons as new ones publish.

Frequently Asked Questions

What does it mean to factor a polynomial completely?+

Every factor in the final answer is prime — it can't be broken down into smaller polynomial factors by any further technique. Stopping after only one factoring step, when a resulting factor could still be factored again, is not a complete factorization.

What are the sum and difference of cubes patterns?+

\(a^{3}-b^{3}=(a-b)(a^{2}+ab+b^{2})\) and \(a^{3}+b^{3}=(a+b)(a^{2}-ab+b^{2})\). Both patterns are worth memorizing directly, since the resulting trinomial factor almost never factors any further over the integers.

How can I remember which sign goes where in the cubes patterns?+

One memory device: the sign in the binomial factor always matches the sign in the original expression, and the sign in the trinomial factor is always the opposite of it, with the very last sign in the trinomial always positive. \(a^{3}-b^{3}\) keeps the minus in \((a-b)\) and flips it to plus for \(-ab\), while \(a^{3}+b^{3}\) keeps the plus and flips it to minus for \(-ab\).

What does it mean for a polynomial to be quadratic in form?+

A polynomial whose exponents are all multiples of some smaller exponent can be treated as a quadratic in a substituted variable. \(x^{4}-5x^{2}+4\) has exponents \(4\) and \(2\), both multiples of \(2\), so substituting \(u=x^{2}\) turns it into the ordinary quadratic \(u^{2}-5u+4\).

Do I always substitute back at the end when using quadratic-in-form?+

Yes — the substitution variable was only ever a bookkeeping convenience, so the very last step is always replacing every \(u\) with whatever it stood for, usually \(x^{2}\), so the final answer is written entirely in terms of the original variable.

How do I know when a factoring problem is actually finished?+

Check every single factor in the current answer: if any one of them could still be factored further by any technique from this chapter, the factorization isn't complete yet. Only when every remaining factor is prime — no further GCF, pattern, or grouping applies to any of them — is the polynomial factored completely.

Related lessons