Skip to content
Tutorials Center
My learning

Topics

Lesson 27 of 37 · Factoring

A Complete Factoring Strategy

Combine every factoring method into one checklist: GCF first, then count terms, then special patterns and trinomials, and always factor completely.

You now know four factoring tools: the GCF, grouping, trinomial methods and special patterns. In practice the hard part is choosing which one to use. This lesson gives you a checklist so you never stare at a polynomial wondering where to start.

The checklist

  1. Factor out the GCF (including a −1 if the leading term is negative and you prefer it positive).
  2. Count the terms in what remains.
    • Two terms: is it a difference of squares (a² − b²) or a sum or difference of cubes?
    • Three terms: is it a perfect square trinomial? If not, use sum and product (a = 1) or the ac method (a ≠ 1).
    • Four terms: try grouping.
  3. Factor completely. Look at each factor and ask whether it can be factored again.
  4. Check by multiplying back.
flowchart TD
    A["Start"] --> B["Factor out the GCF"]
    B --> C{"How many terms?"}
    C -->|"2"| D["Squares or cubes pattern"]
    C -->|"3"| E["Perfect square or<br/>sum-and-product / ac"]
    C -->|"4"| F["Group in pairs"]
    D --> G["Factor each factor again?"]
    E --> G
    F --> G
    G --> H["Multiply back to check"]

The factoring decision path: the GCF always comes first, and every answer is checked by multiplication.

Python A tiny factoring assistant

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Worked examples

Example 1. Factor 2x³ − 18x.

  1. GCF is 2x: 2x(x² − 9).
  2. The bracket has two terms and is a difference of squares: 2x(x + 3)(x − 3).

Example 2. Factor 3x² − 12x − 36.

  1. GCF is 3: 3(x² − 4x − 12).
  2. Three terms, a = 1: the numbers multiply to −12 and add to −4, so −6 and 2.
  3. 3(x − 6)(x + 2).

Example 3. Factor x³ + 3x² − 4x − 12.

  1. No common factor, four terms: group.
  2. x²(x + 3) − 4(x + 3) = (x + 3)(x² − 4).
  3. Look again: x² − 4 is a difference of squares. Final answer: (x + 3)(x + 2)(x − 2).

Example 4. Factor x⁴ − 5x² + 4.

This is a trinomial in x². Treat u = x²: u² − 5u + 4 = (u − 1)(u − 4). Put x² back: (x² − 1)(x² − 4). Both are differences of squares: (x − 1)(x + 1)(x − 2)(x + 2).

"Factored completely" means that no factor except a plain number can be factored again over the integers. x² − 4x is not finished until it is x(x − 4), and (x² − 4)(x + 3) is not finished until x² − 4 becomes (x − 2)(x + 2).

Common mistakes

  • Forgetting the GCF. 2x² + 8x + 8 looks like it needs the ac method, but 2(x² + 4x + 4) = 2(x + 2)² is much quicker.
  • Dropping the GCF at the end. If you factor 3 out in step 1, it stays in the answer.
  • Stopping early. Always test each factor.
  • Treating a sum of squares as factorable. x² + 4 is prime over the integers.
Python Count the factors: complete or not?

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What should you try first when factoring any polynomial?

    Pulling out the GCF first makes every later step simpler.
  2. 2. Factor 5x² − 20 completely.

    Take out 5 to get 5(x² − 4), then factor the difference of squares.
  3. 3. Factor x³ + x² − 4x − 4 completely.

    Group: x²(x + 1) − 4(x + 1) = (x + 1)(x² − 4), and x² − 4 factors again.
  4. 4. Which is NOT factored completely?

    x² − 9 = (x − 3)(x + 3), so x(x² − 9) can be factored further.

Summary

  • Order of attack: GCF, count the terms, special patterns or trinomial methods, then look again.
  • A polynomial is factored completely when no factor can be factored further.
  • Substitution (u = x²) turns some quartics into ordinary trinomials.
  • Always multiply back to check.

Next: Solving Quadratic Equations by Factoring