Tutorials › Calculus I › Factoring by Grouping

Algebraic Function Structures · Tutorial 44 of 1495

Factoring by Grouping

Learn a reliable way to factor suitable four-term polynomials by grouping, while checking each step through expansion.

Beginner 9 min read

What You'll Learn

  • Group four polynomial terms into two pairs.
  • Extract the greatest common factor from each pair, including negative factors when needed.
  • Check whether the resulting binomial factors match.
  • Combine matching brackets into a product of two factors.
  • Verify a proposed factorization by expanding it.
  • Recognize when a grouping attempt has not produced a factorization.

Why Grouping Can Reveal Factors

A polynomial may contain four terms that do not have an obvious common factor across the entire expression. However, the terms may form two pairs, with each pair sharing a factor. If factoring each pair produces the same binomial, that shared binomial can be factored out of the whole expression.

This method is called factoring by grouping. It relies on the distributive property: first use the property within each pair to expose a repeated factor, then use it again to factor that repeated expression out.

Definition: Factoring by grouping is a method for rewriting a four-term polynomial as a product. Group the terms into two pairs, factor out a common factor from each pair, and check whether the remaining binomial factors agree. If they do, factor out that shared binomial.

The method is not a mechanical guarantee that every four-term polynomial will factor this way. It succeeds when an appropriate grouping produces matching binomial factors. If the brackets do not match, the steps so far do not establish a factorization by grouping.

The Basic Pattern

Suppose four terms can be written in two pairs as \(ax+ay+bx+by\). Factoring each pair gives \(a(x+y)+b(x+y)\). Both terms now contain the same factor, \(x+y\), so the entire expression can be factored.

$$ ax+ay+bx+by = a(x+y)+b(x+y) = (a+b)(x+y). $$

The key is not merely to make two pairs. The key is to make pairs whose factored forms contain the same bracket. A four-term expression that has been split into pairs but does not produce matching brackets has not yet been factored by grouping.

In practice, begin with the terms in their given order and pair the first two terms and the last two terms. Factor out the greatest common factor from each pair. Include the signs as part of the coefficients: in particular, a negative term may mean that extracting a negative common factor from the second pair makes the brackets match.

1
Make two pairs.
Keep the terms in an order that makes the common factors within each pair visible.
2
Factor each pair.
Extract the greatest common factor, paying attention to negative signs.
3
Compare the brackets.
Check whether the binomial remaining in the first term is exactly the one remaining in the second term.
4
Factor out the shared bracket.
Write the expression as a product of that binomial and the sum of the two outside factors.
5
Check by expansion.
Multiply the proposed factors and confirm that the original four terms return.

Worked Examples

Worked Example: Grouping a Polynomial with Positive Terms

Factor \(x^3+3x^2+2x+6\) by grouping, then check the result.

First group the first two terms and the last two terms:

$$ x^3+3x^2+2x+6 = (x^3+3x^2)+(2x+6). $$

The common factor in \(x^3+3x^2\) is \(x^2\), and the common factor in \(2x+6\) is \(2\). Factoring each pair gives:

$$ x^2(x+3)+2(x+3). $$

The brackets match: both are \(x+3\). Factor that binomial out. The remaining factors are \(x^2\) and \(2\), whose sum is \(x^2+2\):

$$ x^2(x+3)+2(x+3) = (x+3)(x^2+2). $$

To check, expand the result:

$$ (x+3)(x^2+2) = x(x^2+2)+3(x^2+2) = x^3+2x+3x^2+6 = x^3+3x^2+2x+6. $$

This is the original polynomial, so the factorization is verified.

Worked Example: Handling a Negative Term

Factor \(6x^3-9x^2+4x-6\) by grouping and check the result.

Group the terms in pairs:

$$ 6x^3-9x^2+4x-6 = (6x^3-9x^2)+(4x-6). $$

The greatest common factor of the first pair is \(3x^2\). The greatest common factor of the second pair is \(2\). Factoring both pairs gives:

$$ 3x^2(2x-3)+2(2x-3). $$

The brackets are identical, including the minus sign in \(2x-3\). Therefore, factor out \(2x-3\). The two outside factors add to \(3x^2+2\):

$$ 3x^2(2x-3)+2(2x-3) = (2x-3)(3x^2+2). $$

Check by expanding:

$$ (2x-3)(3x^2+2) = 2x(3x^2)+2x(2)-3(3x^2)-3(2) = 6x^3+4x-9x^2-6 = 6x^3-9x^2+4x-6. $$

The expansion matches the original polynomial, confirming the result.

Worked Example: Choosing a Negative Common Factor

Factor \(5x^3-10x^2-3x+6\) by grouping and check the result.

Use the first two terms as one pair and the last two as the other:

$$ 5x^3-10x^2-3x+6 = (5x^3-10x^2)+(-3x+6). $$

The first pair has common factor \(5x^2\), so it becomes \(5x^2(x-2)\). For the second pair, extracting \(-3\), rather than \(3\), makes the bracket match:

$$ -3x+6=-3(x-2). $$

Thus the grouped expression is:

$$ 5x^2(x-2)-3(x-2). $$

Both brackets are \(x-2\). Factoring out that common binomial gives:

$$ 5x^2(x-2)-3(x-2) = (x-2)(5x^2-3). $$

Verify by expanding:

$$ (x-2)(5x^2-3) = x(5x^2)+x(-3)-2(5x^2)-2(-3) = 5x^3-3x-10x^2+6 = 5x^3-10x^2-3x+6. $$

The original polynomial is recovered. The negative sign in the second common factor is essential for exposing the shared bracket.

Why the Method Works

The justification is an application of the distributive property. Factoring a common factor out of a pair reverses distribution. If both pairs leave the same binomial, the distributive property can be applied once more to factor that binomial from the whole expression.

Derivation: If the terms can be grouped and factored into \(a(x+y)+b(x+y)\), then the repeated factor \(x+y\) can be taken outside the sum. This gives \((a+b)(x+y)\), which expands back to the grouped expression.

More explicitly, distribute the product \((a+b)(x+y)\):

$$ (a+b)(x+y) = a(x+y)+b(x+y) = ax+ay+bx+by. $$

So when grouping produces \(a(x+y)+b(x+y)\), rewriting it as \((a+b)(x+y)\) preserves the value of the expression. The two expressions are equal because the same distributive property works in reverse.

When the Brackets Do Not Match

After factoring each pair, compare the brackets as algebraic expressions, not just by their general appearance. For instance, \(x+3\) and \(x-3\) are different factors. They cannot be treated as one shared binomial without changing the expression.

A sign can sometimes be adjusted by extracting a negative common factor. For example, \(-x-3\) can be written as \(-(x+3)\). This changes the outside factor and makes the bracket \(x+3\). The negative sign must remain outside; it cannot simply be discarded.

If a first grouping does not produce matching brackets, that grouping has not completed the method. It may be possible to rearrange the terms and form different pairs, but a failed attempt is not itself proof that the polynomial cannot be factored. For this method, the required test remains the same: after factoring the pairs, the brackets must match.

A Common Sign Mistake

Consider the grouped form from the second worked example. A common error is to factor \(4x-6\) incorrectly as \(2(2x+3)\). That would change the sign of the constant term, because

$$ 2(2x+3)=4x+6, $$

not \(4x-6\). The correct factorization is \(2(2x-3)\), since

$$ 2(2x-3)=4x-6. $$

With the incorrect sign, the attempted grouping would be \(3x^2(2x-3)+2(2x+3)\), whose brackets do not match. With the corrected sign, it is \(3x^2(2x-3)+2(2x-3)\), and the common binomial is visible. Checking each pair by multiplying its outside factor back in is a useful way to catch this error before combining brackets.

What to Check Before Finishing

A correct-looking product is not enough: it must expand to the original polynomial. Use the check to confirm both the factors and the signs. In particular, verify the second pair carefully when it contains negative terms.

  • Were all four terms included in exactly one of the two pairs?
  • Does each pair expand back to the terms it came from?
  • Are the remaining binomial brackets exactly the same?
  • When you factor out a negative number, have you retained its sign?
  • Does multiplying the final factors reproduce the original polynomial?

Factoring by grouping is useful because it turns a four-term expression into a product when its terms have the right structure. The decisive step is identifying the repeated bracket. If that bracket is not present, do not force the final step; check the pair factoring and signs first.

Check Your Understanding

For each question, pay attention to the pair factors and confirm any proposed result by expansion.

  1. Factor \(x^3+4x^2+3x+12\) by grouping. Which binomial appears in both pairs?
  2. Factor \(8x^3-12x^2+2x-3\) by grouping. Show how you check the signs.
  3. Why does \(a(x+y)+b(x+y)\) equal \((a+b)(x+y)\)?
  4. In factoring \(-2x-8\), what common factor makes the remaining bracket \(x+4\)?
  5. If two pairs produce \(x+2\) and \(x-2\), can you factor out one shared binomial as written? Explain.

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon