All 15 Free Lessons

Factorization by Grouping

Free preview: one of our 15 free lessons, the first lesson of each topic. No account needed.

Video Lesson

Ready to check your understanding?

Take the short multiple-choice test. If you need more help, review the written lesson and worked examples below.

You can pause, replay or use the written lesson below to review at any time.

Written Lesson

Factorization by grouping is a method used to factorize algebraic expressions containing four or more terms.

The terms are arranged in groups. The highest common factor is removed from each group. If the same bracket remains in every group, that bracket becomes a common factor.

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

What You Will Learn

  • Recognize expressions that can be factorized by grouping
  • Arrange terms into suitable groups
  • Find and remove the HCF of each group
  • Identify and remove a common bracket
  • Rearrange terms when the original grouping does not work
  • Factorize expressions containing negative terms
  • Check a factorization by expanding

Before You Begin

You should already be able to identify terms and coefficients, find the HCF of algebraic terms, remove a common factor, apply the distributive law and expand two brackets.

Key Vocabulary

TermMeaningExample
TermA part separated by a + or − sign6x and −9y
GroupTerms considered together(ax + bx)
Common factorA factor shared by every term in a groupx in ax + bx
Common bracketThe identical bracket produced from each group(a + b)
FactorizeRewrite an expression as a productax + ay = a(x + y)
RearrangeChange the order of terms without changing the expressionax + by + ay + bx becomes ax + ay + bx + by

Reviewing the Common-Factor Method

Before using grouping, recall how to factorize two terms.

6x + 9 = 3(2x + 3)

Similarly:

ax + bx = x(a + b)

Why Grouping Works

Factorization by grouping is another application of the distributive law. A complete bracket can act as one common algebraic factor.

3x + 3y = 3(x + y)

In the same way:

y(x + 3) + 2(x + 3) = (x + 3)(y + 2)
Important: The complete bracket (x + 3) is treated as a common factor.

The Main Idea

Consider the expression:

ax + bx + ay + by

There is no single variable common to all four terms. Group the terms into pairs:

(ax + bx) + (ay + by)

Factorize each group:

x(a + b) + y(a + b)

Both parts contain the common bracket (a + b):

(a + b)(x + y)

Visual Mapping

After grouping
x(a + b) + y(a + b)
→
Final factors
(a + b)(x + y)
PartBecomes
Common bracket(a + b)
Remaining factors(x + y)

The General Pattern

ab + ac + db + dc
= a(b + c) + d(b + c)
= (a + d)(b + c)

Steps for Factorization by Grouping

  1. Check whether the entire expression has an HCF.
  2. Arrange the terms into two suitable groups.
  3. Factorize the HCF from each group.
  4. Check that the same bracket remains in both groups.
  5. Remove the common bracket.
  6. Place the remaining factors in a second bracket.
  7. Expand the final answer to check it.

Worked Examples

Example 1: Factorize ax + bx + ay + by.

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

Example 2: Factorize 2ax + 2ay + 3bx + 3by.

  1. Group the terms: (2ax + 2ay) + (3bx + 3by).
  2. The HCF of the first group is 2a: 2a(x + y).
  3. The HCF of the second group is 3b: 3b(x + y).
2a(x + y) + 3b(x + y)
= (x + y)(2a + 3b)

Example 3: Factorize 6ac + 9ad + 4bc + 6bd.

  1. Group the terms: (6ac + 9ad) + (4bc + 6bd).
  2. The HCF of the first group is 3a: 3a(2c + 3d).
  3. The HCF of the second group is 2b: 2b(2c + 3d).
3a(2c + 3d) + 2b(2c + 3d)
= (2c + 3d)(3a + 2b)

Grouping Expressions with Products

Example 4: Factorize 3x + 3y + ax + ay.

(3x + 3y) + (ax + ay)
= 3(x + y) + a(x + y)
= (x + y)(a + 3)

Example 5: Factorize 5x − 5y + 2ax − 2ay.

(5x − 5y) + (2ax − 2ay)
= 5(x − y) + 2a(x − y)
= (x − y)(5 + 2a)

When One Group Has Coefficient 1

Example 6: Factorize 2pq + 6p + q + 3.

(2pq + 6p) + (q + 3)
= 2p(q + 3) + 1(q + 3)
= (q + 3)(2p + 1)
Remember: If a common bracket appears by itself, its coefficient is 1. Therefore, q + 3 = 1(q + 3).

Grouping Expressions with Powers

Example 7: Factorize x2 + 3x + 2x + 6.

(x2 + 3x) + (2x + 6)
= x(x + 3) + 2(x + 3)
= (x + 3)(x + 2)

Example 8: Factorize 2x2 + 6x + 3x + 9.

(2x2 + 6x) + (3x + 9)
= 2x(x + 3) + 3(x + 3)
= (x + 3)(2x + 3)

When the Brackets Do Not Match

a(x + 2) + 3(y + 2)

The brackets (x + 2) and (y + 2) are not identical. They cannot be removed as a common factor. Try rearranging or grouping the original terms differently, if possible.

When the Terms Must Be Rearranged

Example 9: Factorize ax + by + ay + bx.

Grouping the terms as written does not produce identical brackets:

(ax + by) + (ay + bx)

Rearrange the terms:

ax + ay + bx + by

Now group and factorize:

a(x + y) + b(x + y)
= (a + b)(x + y)

Grouping with Negative Terms

Example 10: Factorize ax − ay + bx − by.

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

Example 11: Factorize x2 − 4x − 3x + 12.

(x2 − 4x) + (−3x + 12)
= x(x − 4) − 3(x − 4)
= (x − 4)(x − 3)
Sign check: −3(x − 4) = −3x + 12. Removing a negative factor changes both signs inside the bracket.

Why a Negative Factor May Be Needed

Consider:

a(x − y) + b(y − x)

The brackets are reversed, but:

y − x = −(x − y)
a(x − y) − b(x − y)
= (x − y)(a − b)

First Check for an Overall HCF

Example 12: Factorize 6x2 + 12x + 18x + 36 fully.

All four terms share a factor of 6:

6(x2 + 2x + 3x + 6)

Group the terms inside the bracket:

6[x(x + 2) + 3(x + 2)]
= 6(x + 2)(x + 3)

Should I Use Factorization by Grouping?

1. Overall HCF?Factor it out first.
2. Four terms?Group them into pairs.
3. Brackets match?Remove the common bracket.
4. No match?Rearrange or remove a negative.
5. Fully factorized?Check for another common factor.
6. Correct?Expand to verify.

Check for Understanding

1. Factorize ab + ac + db + dc.

  1. (a + d)(b + c)
  2. (a + b)(c + d)
  3. ad(b + c)
  4. (a + c)(b + d)

Answer: A. (a + d)(b + c)

2. Factorize x2 + 5x + 2x + 10.

  1. (x + 5)(x + 2)
  2. (x + 10)(x + 1)
  3. (x + 2)(x + 2)
  4. x(x + 17)

Answer: A. (x + 5)(x + 2)

3. Which factor should be removed from −4x + 12 to produce (x − 3)?

  1. 4
  2. −4
  3. x
  4. −x

Answer: B. −4

How to Check by Expanding

Check the factorization (x + 3)(x + 2):

(x + 3)(x + 2)
= x(x + 2) + 3(x + 2)
= x2 + 2x + 3x + 6

This matches the original expression x2 + 3x + 2x + 6, so the factorization is correct.

Quick Reference Table

Original expressionAfter factorizing each groupFinal answer
ax + bx + ay + byx(a + b) + y(a + b)(a + b)(x + y)
2ax + 2ay + 3bx + 3by2a(x + y) + 3b(x + y)(x + y)(2a + 3b)
6ac + 9ad + 4bc + 6bd3a(2c + 3d) + 2b(2c + 3d)(2c + 3d)(3a + 2b)
2pq + 6p + q + 32p(q + 3) + 1(q + 3)(q + 3)(2p + 1)
x2 + 3x + 2x + 6x(x + 3) + 2(x + 3)(x + 3)(x + 2)
x2 − 4x − 3x + 12x(x − 4) − 3(x − 4)(x − 4)(x − 3)

Common Mistakes

  • Grouping without checking: factorizing each group must produce identical brackets.
  • Removing the wrong HCF: 6x + 9y = 3(2x + 3y).
  • Using different brackets: x(x + 3) + 2(x + 6) cannot be factorized by removing a common bracket.
  • Forgetting coefficient 1: q + 3 = 1(q + 3).
  • Losing a negative sign: −3x + 12 = −3(x − 4).
  • Failing to rearrange: try placing terms with related factors together.
  • Ignoring an overall HCF: remove it before grouping.
  • Stopping too early: make sure no further common factor remains.

Multiple-Choice Questions

1. Factorize ax + ay + bx + by.

  1. (a + b)(x + y)
  2. (a + x)(b + y)
  3. ab(x + y)
  4. (a + y)(b + x)

Answer: A. (a + b)(x + y)

2. Factorize 2ax + 2ay + 3bx + 3by.

  1. (x + y)(2a + 3b)
  2. (a + b)(2x + 3y)
  3. (x + y)(5ab)
  4. (2a + 3b)(x − y)

Answer: A. (x + y)(2a + 3b)

3. Factorize 2x2 + 8x + 3x + 12.

  1. (x + 4)(2x + 3)
  2. (x + 3)(2x + 4)
  3. (2x + 4)(x + 3)
  4. (x + 12)(2x + 1)

Answer: A. (x + 4)(2x + 3)

4. Factorize x2 − 5x − 2x + 10.

  1. (x − 5)(x − 2)
  2. (x + 5)(x − 2)
  3. (x − 10)(x + 1)
  4. (x + 5)(x + 2)

Answer: A. (x − 5)(x − 2)

Practice Questions

Factorize each expression fully.

  1. ax + ay + bx + by
  2. ab + ac + db + dc
  3. 2ax + 2ay + 3bx + 3by
  4. 6ac + 9ad + 4bc + 6bd
  5. 3x + 3y + ax + ay
  6. 5x − 5y + 2ax − 2ay
  7. 2pq + 6p + q + 3
  8. x2 + 4x + 3x + 12
  9. x2 + 6x + 2x + 12
  10. 2x2 + 8x + 3x + 12
  11. 3x2 + 6x + 5x + 10
  12. x2 − 5x − 2x + 10
  13. 2x2 − 6x + x − 3
  14. ax + by + ay + bx
  15. 6x2 + 12x + 18x + 36
  16. a(x − y) + b(y − x)
  17. Check Question 10 by expanding.

Answers

  1. (a + b)(x + y)
  2. (a + d)(b + c)
  3. (x + y)(2a + 3b)
  4. (2c + 3d)(3a + 2b)
  5. (x + y)(a + 3)
  6. (x − y)(5 + 2a)
  7. (q + 3)(2p + 1)
  8. (x + 4)(x + 3)
  9. (x + 6)(x + 2)
  10. (x + 4)(2x + 3)
  11. (x + 2)(3x + 5)
  12. (x − 5)(x − 2)
  13. (x − 3)(2x + 1)
  14. (a + b)(x + y)
  15. 6(x + 2)(x + 3)
  16. (x − y)(a − b)
  17. (x + 4)(2x + 3) = 2x2 + 3x + 8x + 12 = 2x2 + 8x + 3x + 12.

Lesson Summary

  • Factorization by grouping is useful for expressions containing four or more terms.
  • It works because a complete bracket can act as a common factor.
  • Check for an overall HCF before grouping.
  • Factorize the HCF from each pair.
  • Both groups must produce the same bracket.
  • A bracket by itself has coefficient 1.
  • Rearrange the terms if the original grouping does not work.
  • A negative factor may be needed to create identical brackets.
  • Expand the final factors to check the answer.

Finished reviewing the lesson?

Take the multiple-choice test to check your understanding and complete this lesson.

What would you like to do next?

Try the first lesson of another course, or unlock every lesson for US$49 for one full year.