When we learned to multiply two binomials, we found that the result, before combining like terms, was a four term polynomial, as in this example: (x+4)(x+2)=x2+2x+4x+8(x+4)(x+2)=x2+2x+4x+8.
We can apply what we have learned about factoring out a common monomial to return a four term polynomial to the product of two binomials. Why would we even want to do this?
Why Should I Care?
Because it is an important step in learning techniques for factoring trinomials, such as the one you get when you simplify the product of the two binomials from above:
Additionally, factoring by grouping is a technique that allows us to factor a polynomial whose terms don’t all share a GCF. In the following example, we will introduce you to the technique. Remember, one of the main reasons to factor is because it will help solve polynomial equations.
Example 1
Factor a2+3a+5a+15a2+3a+5a+15
Show Solution
Notice that there is no GCF other than 1 for all four terms. Resist the temptation to combine the like terms, as instead we are going to group the problem into two pairs of terms and then search for the GCF of each.
(a2+3a)+(5a+15)(a2+3a)+(5a+15)
Find the GCF of the first pair of terms.
a2=a⋅a3a=3⋅aGCF=aa2=a⋅a3a=3⋅aGCF=a
Factor the GCF, a, out of the first group.
a(a+3)+(5a+15)a(a+3)+(5a+15)
Find the GCF of the second pair of terms.
5a=5⋅a15=5⋅3GCF=55a=5⋅a15=5⋅3GCF=5
Factor 5 out of the second group.
a(a+3)+5(a+3)a(a+3)+5(a+3)
Notice that the two terms have a common factor (a+3)(a+3).
a(a+3)+5(a+3)a(a+3)+5(a+3)
Factor out the common factor (a+3)(a+3) from the two terms.
(a+3)(a+5)(a+3)(a+5)
Note how the aa and 55 become a binomial sum, along with the common factor of (a+3)(a+3) in front.
Answer
a2+3a+5a+15=(a+3)(a+5)a2+3a+5a+15=(a+3)(a+5)
Notice that with this process, we have been able to factor a four-term polynomial into the product of two binomials.
This process is called the grouping technique . Broken down into individual steps, here’s how we apply this technique to a four-term polynomial (you can also follow this process in the example below).
Group the terms of the polynomial into pairs.
Find the greatest common factor of each pair and factor it out.
Look for the common binomial between the factored terms
Factor the common binomial out of the groups, the other factors will make the other binomial
It is worth noting that grouping can be used for polynomials with more than four terms, but the steps above and our examples will focus on four-term polynomials. Let’s try factoring a few more. Note how there is a now a constant in front of the x2x2 term. We will just consider this another factor when we are finding the GCF.
Example 2
Factor 2x2+4x+5x+102x2+4x+5x+10.
Show Solution
Group terms of the polynomial into pairs.
(2x2+4x)+(5x+10)(2x2+4x)+(5x+10)
Factor out the like factor, 2x, from the first group.
2x(x+2)+(5x+10)2x(x+2)+(5x+10)
Factor out the like factor, 5, from the second group.
2x(x+2)+5(x+2)2x(x+2)+5(x+2)
Look for common factors between the factored forms of the paired terms. Here, the common factor is (x+2)(x+2).
Factor out the common factor, (x+2)(x+2), from both terms.
(x+2)(2x+5)(x+2)(2x+5)
The polynomial is now factored.
Answer
2x2+4x+5x+10=(x+2)(2x+5)2x2+4x+5x+10=(x+2)(2x+5)
Another example follows that contains subtraction. Note how we choose a positive GCF from each group of terms, and the negative signs stay.
Example 3
Factor 2x2–3x+8x–122x2–3x+8x–12.
Show Solution
Group terms into pairs.
(2x2–3x)+(8x–12)(2x2–3x)+(8x–12)
Factor the common factor, x, out of the first group and the common factor, 4, out of the second group.
x(2x–3)+4(2x–3)x(2x–3)+4(2x–3)
Factor out the common factor, (2x–3)(2x–3), from both terms.
(x+4)(2x–3)(x+4)(2x–3)
Answer
2x2–3x+8x–12=(x+4)(2x−3)2x2–3x+8x–12=(x+4)(2x−3)
The video that follows provides another example of factoring by grouping.
In the next example, we will factor out a negative with the GCF. So what is the difference here compared to the last example. Recall that we looked at an example of this in Section 6.1, where we decided it can be useful to factor out the negative when it is part of the leading coefficient. As we group in the next example, the negative will be “in front” of the second pair. Factoring out the negative plays an important role in grouping as the resulting binomials will not match if we fail to factor out the negative.
Example 4
Factor 3x2+3x–2x–23x2+3x–2x–2.
Show Solution
Group terms into pairs.
(3x2+3x)+(−2x−2)(3x2+3x)+(−2x−2)
Factor the common factor 3x out of first group.
3x(x+1)+(−2x−2)3x(x+1)+(−2x−2)
Factor the common factor −2−2 out of the second group. Notice what happens to the signs within the parentheses once −2−2 is factored out.
3x(x+1)−2(x+1)3x(x+1)−2(x+1)
Factor out the common factor, (x+1)(x+1), from both terms.
(x+1)(3x−2)(x+1)(3x−2)
Answer
3x2+3x–2x–2=(x+1)(3x−2)3x2+3x–2x–2=(x+1)(3x−2)
In the following video we present another example of factoring by grouping when the GCF of one of the pairs of terms is negative.
So far, every polynomial we have factored has had degree 2. The next example shows that we can still try applying the grouping technique to a four-term polynomial regardless of degree.
Example 5
Factor 4x3+12x2+x+34x3+12x2+x+3.
Show Solution
Group the expression into pairs.
(4x3+12x2)+(x+3)(4x3+12x2)+(x+3)
Factor the common factor of 4x24x2 out of the first group.
4x2(x+3)+(x+3)4x2(x+3)+(x+3)
This is the first time we have encountered a group where the only factor in common is 1. It is recommended that we write the 1, as this will make the proceeding step more obvious.
4x2(x+3)+1(x+3)4x2(x+3)+1(x+3)
It is now more apparent that there is a common factor of (x+3)(x+3) and that the remaining binomial will be the sum of 4x24x2 and 1.
Another feature we may encounter is a polynomial with more than one variable, as shown in the next two examples.
Example 6
Factor 6pq+9qr−2p−3r6pq+9qr−2p−3r
Show Answer
Group the expression into pairs.
(6pq+9qr)+(−2p−3r)(6pq+9qr)+(−2p−3r)
Factor out the GCF of each pair of terms. For the first pair, the GCF is 3q3q. For the second pair, there appears to be nothing in common, but we will factor out −1−1 since the negative is “in front.”
Factor out the GCF of each pair of terms. For the first pair, the GCF is xyxy, while for the second pair, we factor out a GCF of −2−2 (remembering that we want to include the negative when it is part of the first term).
Sometimes, you will encounter polynomials that, despite your best efforts, cannot be factored into the product of two binomials.
Example 8
Factor 7x2–21x+5x–57x2–21x+5x–5.
Show Solution
Group terms into pairs.
(7x2–21x)+(5x–5)(7x2–21x)+(5x–5)
Factor the common factor 7x out of the first group.
7x(x−3)+(5x−5)7x(x−3)+(5x−5)
Factor the common factor 5 out of the second group.
7x(x−3)+5(x−1)7x(x−3)+5(x−1)
The two groups 7x(x–3)7x(x–3) and 5(x–1)5(x–1) do not have any common factors, so this polynomial cannot be factored.
7x(x–3)+5(x–1)7x(x–3)+5(x–1)
Answer
Cannot be factored (prime)
In the example above, each pair can be factored, but then there is no common factor between the pairs! Despite factoring each pair, that does not result in a factoring of the original polynomial. Don’t forget that “to factor” means to “express as a product.” Where we got stuck, the two separate pieces were still attached by addition. That is why the final answer is “prime.”
Now that you are an expert on grouping, we will see in the next two sections how this technique can help us to factor trinomials.