TExcelTAD
Home › School Algebra, Identities & Quadratic Equations › Factoring by Grouping Terms

Factoring by Grouping Terms

When a polynomial has four or more terms, it is rare for all terms to share a single common factor. For example, in the polynomial:

x3+3x2+2x+6x^3 + 3x^2 + 2x + 6

The first three terms contain xx, but the last term (66) does not. Similarly, the second and fourth terms are divisible by 33, but the first and third terms are not. There is no single common monomial factor across all four terms other than 11.

However, if we divide the polynomial into two separate pairs, a hidden structure emerges. This algebraic technique is known as Factoring by Grouping.


1. Concepts & Paper Visuals: The 2×22 \times 2 Strategy

The standard grouping technique divides a four-term polynomial into two pairs:

ax+ay⏟Group 1+bx+by⏟Group 2\underbrace{ax + ay}_{\text{Group 1}} + \underbrace{bx + by}_{\text{Group 2}}

On paper, follow this two-stage process:

  1. Factor each group independently: Pull out the GCF from Group 1, and pull out the GCF from Group 2:
    a(x+y)+b(x+y)a\mathbf{(x + y)} + b\mathbf{(x + y)}
  2. Extract the common binomial factor: Notice that the binomial (x+y)(x + y) is now shared by both groups. Pull it out to the front:
    (x+y)(a+b)\mathbf{(x + y)}(a + b)
ax+ay+bx+by  ⟹  a(x+y)+b(x+y)  ⟹  (x+y)(a+b)(4 terms)(2 factored groups)(Fully factored product)\begin{array}{ccccc} ax + ay + bx + by & \implies & a\mathbf{(x + y)} + b\mathbf{(x + y)} & \implies & \mathbf{(x + y)}(a + b) \\ \text{\small (4 terms)} & & \text{\small (2 factored groups)} & & \text{\small (Fully factored product)} \end{array}

The 3×13 \times 1 Strategy: Trinomial Square Minus a Square

Not all four-term polynomials split into two pairs (2×22 \times 2). If you see three terms that form a Perfect Square Trinomial and a fourth term that is a subtracted square, use a 3×13 \times 1 grouping:

(x2+2xy+y2)⏟Perfect Square Trinomial−z2⏟Square=(x+y)2−z2\underbrace{\left(x^2 + 2xy + y^2\right)}_{\text{Perfect Square Trinomial}} - \underbrace{z^2}_{\text{Square}} = (x + y)^2 - z^2

Then factor this result as a Difference of Two Squares:

[(x+y)−z][(x+y)+z][(x + y) - z][(x + y) + z]

2. Step-by-Step Notebook Examples

Example 1: Direct 2×22 \times 2 Grouping

Problem: Factor x3+3x2+2x+6x^3 + 3x^2 + 2x + 6 completely on paper.

  • Step 1: Underline the two pairs with pencil.
    x3+3x2‾+2x+6‾\underline{x^3 + 3x^2} + \underline{2x + 6}
  • Step 2: Factor out the GCF from the first pair. The GCF of x3x^3 and 3x23x^2 is x2x^2:
    x2(x+3)x^2(x + 3)
  • Step 3: Factor out the GCF from the second pair. The GCF of 2x2x and 66 is +2+2:
    +2(x+3)+2(x + 3)
  • Step 4: Combine the two factored groups.
    x2(x+3)+2(x+3)x^2(x + 3) + 2(x + 3)
  • Step 5: Factor out the identical binomial (x+3)(x + 3).
    (x+3)(x2+2)(x + 3)(x^2 + 2)

Example 2: Negative Signs in the Second Group (The Parenthesis Trap)

Problem: Factor 2x3−6x2−5x+152x^3 - 6x^2 - 5x + 15 on paper.

  • Step 1: Inspect the signs of all four terms. The terms are: +2x3+2x^3, −6x2-6x^2, −5x-5x, and +15+15.
  • Step 2: Factor the first group.
    2x3−6x2=2x2(x−3)2x^3 - 6x^2 = 2x^2(x - 3)
  • Step 3: Factor the second group: −5x+15-5x + 15. Notice the leading minus sign on −5x-5x. We must factor out −5-5, not +5+5:
    −5x−5=x,+15−5=−3  ⟹  −5(x−3)\frac{-5x}{-5} = x, \quad \frac{+15}{-5} = -3 \implies -5(x - 3)
    (Notice that the sign inside changed from ++ to −-!)
  • Step 4: Write the two groups side by side.
    2x2(x−3)−5(x−3)2x^2\mathbf{(x - 3)} - 5\mathbf{(x - 3)}
    Both groups share (x−3)(x - 3).
  • Step 5: Factor out (x−3)(x - 3).
    (x−3)(2x2−5)(x - 3)(2x^2 - 5)

Example 3: Reordering Terms Before Grouping

Problem: Factor xy−6+2y−3xxy - 6 + 2y - 3x on paper.

  • Step 1: Test the initial grouping.
    • Group 1: xy−6xy - 6 (no common factor).
    • Group 2: 2y−3x2y - 3x (no common factor). The original order fails to produce a common binomial factor!
  • Step 2: Rearrange terms by pairing terms with common letters. Move the terms with yy together and the terms with numbers/variables together:
    (xy+2y)−(3x+6)(xy + 2y) - (3x + 6)
  • Step 3: Factor each new pair.
    • From (xy+2y)(xy + 2y), pull out yy:
      y(x+2)y(x + 2)
    • From −(3x+6)-(3x + 6), pull out −3-3:
      −3(x+2)-3(x + 2)
  • Step 4: Extract the shared binomial (x+2)(x + 2).
    (x+2)(y−3)(x + 2)(y - 3)

Example 4: Advanced 3×13 \times 1 Grouping

Problem: Factor x2−6x+9−4y2x^2 - 6x + 9 - 4y^2 on paper.

  • Step 1: Count the terms and look for structure. There are four terms: x2,−6x,9x^2, -6x, 9, and −4y2-4y^2. Notice that the first three terms involve only xx, while the fourth term is a squared monomial in yy.
  • Step 2: Recognize the perfect square trinomial.
    x2−6x+9=(x−3)2x^2 - 6x + 9 = (x - 3)^2
  • Step 3: Group the trinomial and rewrite the fourth term as a square.
    (x2−6x+9)−4y2=(x−3)2−(2y)2(x^2 - 6x + 9) - 4y^2 = (x - 3)^2 - (2y)^2
  • Step 4: Factor using the Difference of Two Squares identity A2−B2=(A−B)(A+B)A^2 - B^2 = (A - B)(A + B). Here, A=(x−3)A = (x - 3) and B=2yB = 2y:
    [(x−3)−2y][(x−3)+2y][(x - 3) - 2y][(x - 3) + 2y]
  • Final Factored Form:
    (x−2y−3)(x+2y−3)(x - 2y - 3)(x + 2y - 3)

3. Common Mistakes & Paper Traps

Trap 1: Stopping Halfway

The single most common mistake on tests is leaving the answer like this:

x2(x+3)+2(x+3)(NOT FACTORED!)x^2(x + 3) + 2(x + 3) \quad \text{(NOT FACTORED!)}

Look at the middle sign: it is still a plus sign (++)! A polynomial is only factored when it is written as a single multiplication of factors. You must complete the final step and write:

(x+3)(x2+2)(x + 3)(x^2 + 2)

Trap 2: The Sign Error When Factoring Out a Negative

When the third term is negative, students often write:

2x3−6x2−5x+15≠2x2(x−3)−5(x+3)(WRONG!)2x^3 - 6x^2 - 5x + 15 \ne 2x^2(x - 3) - 5(x + 3) \quad \text{(WRONG!)}

Notice that −5⋅(+3)=−15-5 \cdot (+3) = -15, but the original polynomial had +15+15! When you factor out a negative number (−5-5), the sign of the next term must flip: (+15)÷(−5)=−3(+15) \div (-5) = -3. If the two binomials do not match ((x−3)(x - 3) vs (x+3)(x + 3)), stop and check your signs!

Trap 3: Giving Up on the First Attempt

If your first grouping does not produce identical binomials, do not assume the polynomial cannot be factored. Rearrange the middle terms and try a different pairing.


4. Pencil & Paper Practice

Practice 1

Factor completely on paper:

3a3−12a2+2a−83a^3 - 12a^2 + 2a - 8

??? success "Solution to Practice 1" 1. Group the first two terms and the last two terms: math (3a^3 - 12a^2) + (2a - 8) 2. Factor out the GCF of each pair: * From (3a3−12a2)(3a^3 - 12a^2), factor out 3a23a^2: 3a2(a−4)3a^2(a - 4). * From (2a−8)(2a - 8), factor out +2+2: +2(a−4)+2(a - 4). 3. Both groups contain (a−4)(a - 4): math 3a^2(a - 4) + 2(a - 4) 4. Factor out the common binomial: math (a - 4)(3a^2 + 2)


Practice 2

Factor completely on paper:

a2−b2+10a+25a^2 - b^2 + 10a + 25

??? success "Solution to Practice 2" 1. Rearrange to group the terms containing aa: math (a^2 + 10a + 25) - b^2 2. Recognize the perfect square trinomial: math a^2 + 10a + 25 = (a + 5)^2 3. Rewrite as a difference of two squares: math (a + 5)^2 - b^2 4. Apply A2−B2=(A−B)(A+B)A^2 - B^2 = (A - B)(A + B) with A=a+5A = a + 5 and B=bB = b: math (a + 5 - b)(a + 5 + b)


5. Summary & Decision Flowchart

PatternPaper Strategy2×2 GroupingSplit into two pairs →factor GCF of each →pull out common binomial.Sign RuleIf the 3rd term is negative, factor out a negative GCF to flip the sign inside.Unmatched BinomialsRearrange the order of terms (e.g. swap the 2nd and 3rd terms) and retry.3×1 GroupingLook for a perfect square trinomial minus a square: (A±B)2−C2.\begin{array}{|l|l|} \hline \textbf{Pattern} & \textbf{Paper Strategy} \\ \hline \mathbf{2 \times 2 \text{ Grouping}} & \text{Split into two pairs } \to \text{factor GCF of each } \to \text{pull out common binomial.} \\ \textbf{Sign Rule} & \text{If the 3rd term is negative, factor out a negative GCF to flip the sign inside.} \\ \textbf{Unmatched Binomials} & \text{Rearrange the order of terms (e.g. swap the 2nd and 3rd terms) and retry.} \\ \mathbf{3 \times 1 \text{ Grouping}} & \text{Look for a perfect square trinomial minus a square: } (A \pm B)^2 - C^2. \\ \hline \end{array}

Test yourself

What is the completely factored form of x3+5x2−4x−20x^3 + 5x^2 - 4x - 20?

  1. (x+5)(x2−4)(x + 5)(x^2 - 4)
  2. (x+5)(x−2)(x+2)(x + 5)(x - 2)(x + 2)
  3. (x−5)(x2+4)(x - 5)(x^2 + 4)
  4. (x2−5)(x+4)(x^2 - 5)(x + 4)

When factoring 3x3−6x2−x+23x^3 - 6x^2 - x + 2, what is the result of factoring the second group −x+2-x + 2?

  1. +(x−2)+(x - 2)
  2. −(x−2)-(x - 2)
  3. −(x+2)-(x + 2)
  4. +2(x−1)+2(x - 1)

Which factoring strategy is best suited for x2−y2+8y−16x^2 - y^2 + 8y - 16?

  1. 2×22 \times 2 grouping: (x2−y2)+(8y−16)(x^2 - y^2) + (8y - 16)
  2. 3×13 \times 1 grouping: x2−(y2−8y+16)x^2 - (y^2 - 8y + 16)
  3. Factoring out a common monomial factor of xx
  4. Using the sum of two cubes identity