← Algebra 2

Factoring cubes and by grouping

Sum and difference of cubes, and grouping four terms.

Start this lesson

Some polynomials have special patterns. A difference of cubes factors as a³ − b³ = (a − b)(a² + ab + b²); a sum of cubes as a³ + b³ = (a + b)(a² − ab + b²). Four terms can often be factored by grouping: pull a common factor from each pair, then factor out the shared binomial.

Example: x³ + 2x² + 5x + 10

  1. x²(x + 2) + 5(x + 2) — Factor each pair
  2. (x + 2)(x² + 5) — Factor out (x + 2)

Why it works: Multiplying out the patterns gives back the original, so they are reliable shortcuts. Grouping pulls out a common factor from each pair.

Tip: Remember SOAP for the cube patterns: Same sign, Opposite sign, Always Positive.