Skip to main content
Logo image

Section 10.2 Factoring by Grouping

This section covers a technique for factoring polynomials like \(x^3+3x^2+2x+6\text{,}\) which factors as \(\left(x^2+2\right)(x+3)\text{.}\) If there are four terms, the technique in this section might help you to factor the polynomial. Additionally, this technique is a stepping stone to a factoring technique in Section 3 and Section 4.
Figure 10.2.1. Alternative Video Lesson

Subsection 10.2.1 Factoring out Common Polynomials

Recall that to factor \(3x+6\text{,}\) we factor out the common factor \(3\text{:}\)
\begin{align*} 3x+6\amp=\attention{3}x+\attention{3}\cdot2\\ \amp=3(x+2) \end{align*}
The “\(3\)” here could have been something more abstract, and it still would be valid to factor it out:
\begin{align*} xA+2A\amp=x\attention{A}+2\attention{A}\amp x\apple+2\apple\amp=x\attention{\apple}+2\attention{\apple}\\ \amp=A(x+2)\amp\amp=\apple(x+2) \end{align*}
In fact, even “larger” things can be factored out, as in this example:
\begin{align*} x(a+b)+2(a+b)\amp=x\attention{\overbrace{(a+b)}}+2\attention{\overbrace{(a+b)}}\\ \amp=(a+b)(x+2) \end{align*}
In this last example, we factored out the binomial factor \((a+b)\text{.}\) Factoring out binomials is the essence of this section, so let’s see that a few more times:
\begin{align*} x(x+2)+3(x+2)\amp=x\attention{\overbrace{(x+2)}}+3\attention{\overbrace{(x+2)}}\\ \amp=(x+2)(x+3) \end{align*}
\begin{align*} z^2(2y+5)+3(2y+5)\amp=z^2\attention{\overbrace{(2y+5)}}+3\attention{\overbrace{(2y+5)}}\\ \amp=(2y+5)(z^2+3) \end{align*}
And even with an expression like \(Q^2(Q-3)+Q-3\text{,}\) if we re-write it in the right way using a \(1\) and some parentheses, then it too can be factored:
\begin{align*} Q^2(Q-3)+Q-3\amp=Q^2(Q-3)+1(Q-3)\\ \amp=Q^2\attention{\overbrace{(Q-3)}}+1\attention{\overbrace{(Q-3)}}\\ \amp=(Q-3)(Q^2+1) \end{align*}
The truth is you are unlikely to come upon an expression like \(x(x+2)+3(x+2)\text{,}\) as in these examples. Why wouldn’t someone have multiplied that out already? Or factored it all the way? So far in this section, we have only been looking at a stepping stone to a real factoring technique called factoring by grouping.

Subsection 10.2.2 Factoring by Grouping

Factoring by grouping is a factoring technique that sometimes works on polynomials with four terms. Here is an example.

Example 10.2.2.

Suppose we must factor \(x^3-3x^2+5x-15\text{.}\) Note that there are four terms, and they are written in descending order of the powers of \(x\text{.}\) “Grouping” means to group the first two terms and the last two terms together:
\begin{align*} x^3-3x^2+5x-15\amp=\left(x^3-3x^2\right)+(5x-15)\\ \end{align*}
Now, each of these two groups has its own greatest common factor we can factor out:
\begin{align*} \amp=\highlight{x^2}(x-3)\highlight{{}+5}(x-3)\\ \end{align*}
In a sense, we are “lucky” because we now see matching binomials that can themselves be factored out:
\begin{align*} \amp=\highlight{x^2}\attention{\overbrace{(x-3)}}\highlight{{}+5}\attention{\overbrace{(x-3)}}\\ \amp=(x-3)\highlight{\left(x^2+5\right)} \end{align*}
And so we have factored \(x^3-3x^2+5x-15\) as \((x-3)\left(x^2+5\right)\text{.}\) But to be sure, if we multiply this back out, it should recover the original \(x^3-3x^2+5x-15\text{.}\) To confirm your factoring is correct, you should always multiply out your factored result to check that it matches the original polynomial.

Checkpoint 10.2.3.

Factor \(x^3+4x^2+2x+8\text{.}\)
Explanation.
We will break the polynomial into two groups: \(x^3+4x^2\) and \(2x+8\text{.}\)
\begin{equation*} \begin{aligned} x^3+4x^2+2x+8\amp=\left(x^3+4x^2\right)+(2x+8) \end{aligned} \end{equation*}
and now each group has its own greatest common factor to factor out:
\begin{equation*} \begin{aligned} \amp=\highlight{x^2}(x+4)\highlight{{}+2}(x+4) \end{aligned} \end{equation*}
and now the binomial \((x+4)\) appears twice and can be factored out:
\begin{equation*} \begin{aligned} \amp=(x+4)\highlight{\left(x^2+2\right)} \end{aligned} \end{equation*}

Example 10.2.4.

Factor \(t^3-5t^2-3t+15\text{.}\) This example has a complication with negative signs. If we try to break up this polynomial into two groups as \(\left(t^3-5t^2\right)-(3t+15)\text{,}\) then we’ve made an error! In that last expression, we are subtracting a group with the term \(15\text{,}\) so overall it subtracts \(15\text{.}\) The original polynomial added \(15\text{,}\) so we are off course.
One way to handle this is to treat subtraction as addition of a negative:
\begin{align*} t^3-5t^2-3t+15\amp=t^3-5t^2+(-3t)+15\\ \amp=\left(t^3-5t^2\right)+\left(-3t+15\right)\\ \end{align*}
Now we can proceed to factor out common factors from each group. Since the second group leads with a negative coefficient, we’ll factor out \(-3\text{.}\) This will result in the “\({}+15\)” becoming “\({}-5\text{.}\)
\begin{align*} \amp=\highlight{t^2}(t-5)+\highlight{(-3)}(t-5)\\ \amp=\highlight{t^2}\attention{\overbrace{(t-5)}}\highlight{{}-3}\attention{\overbrace{(t-5)}}\\ \amp=(t-5)\highlight{\left(t^2-3\right)} \end{align*}
And remember that we can confirm this is correct by multiplying it out. If we made no mistakes, it should result in the original \(t^3-5t^2-3t+15\text{.}\)

Checkpoint 10.2.5.

Factor \(6q^3-9q^2-4q+6\text{.}\)
Explanation.
We will break the polynomial into two groups: \(6q^3-9q^2\) and \(-4q+6\text{.}\)
\begin{equation*} \begin{aligned} 6q^3-9q^2-4q+6\amp=\left(6q^3-9q^2\right)+(-4q+6) \end{aligned} \end{equation*}
and now each group has its own greatest common factor to factor out:
\begin{equation*} \begin{aligned} \amp=\highlight{3q^2}(2q-3)\highlight{{}-2}(2q-3) \end{aligned} \end{equation*}
and now the binomial \((2q-3)\) appears twice and can be factored out:
\begin{equation*} \begin{aligned} \amp=(2q-3)\highlight{\left(3q^2-2\right)} \end{aligned} \end{equation*}

Example 10.2.6.

Factor \(x^3-3x^2+x-3\text{.}\) To succeed with this example, we will need to “factor out” a trivial number \(1\) that isn’t apparent until we make it so.
\begin{align*} x^3-3x^2+x-3\amp=\left(x^3-3x^2\right)+(x-3)\\ \amp=\highlight{x^2}(x-3)\highlight{{}+1}(x-3)\\ \amp=\highlight{x^2}\attention{\overbrace{(x-3)}}\highlight{{}+1}\attention{\overbrace{(x-3)}}\\ \amp=(x-3)\highlight{\left(x^2+1\right)} \end{align*}
Notice how we changed \(x-3\) to \(+1(x-3)\text{,}\) so we wouldn’t forget the \(+1\) in the final factored form. As always, we should check this is correct by multiplying it out.

Checkpoint 10.2.7.

Factor \(6t^6+9t^4+2t^2+3\text{.}\)
Explanation.
We will break the polynomial into two groups: \(6t^6+9t^4\) and \(2t^2+3\text{.}\)
\begin{equation*} \begin{aligned} 6t^6+9t^4+2t^2+3\amp=\left(6t^6+9t^4\right)+\left(2t^2+3\right) \end{aligned} \end{equation*}
the first group has its own greatest common factor to factor out, and with the second group we can write a \(1\text{:}\)
\begin{equation*} \begin{aligned} \amp=\highlight{3t^4}\mathopen{}\left(2t^2+3\right)\mathclose{}\highlight{{}+1}\mathopen{}\left(2t^2+3\right)\mathclose{} \end{aligned} \end{equation*}
and now the binomial \(\left(2t^2+3\right)\) appears twice and can be factored out:
\begin{equation*} \begin{aligned} \amp=\left(2t^2+3\right)\highlight{\left(3t^4+1\right)} \end{aligned} \end{equation*}

Example 10.2.8.

Factor \(xy^2-10y^2-2x+20\text{.}\) The technique can work when there are multiple variables too.
\begin{align*} xy^2-10y^2-2x+20\amp=\left(xy^2-10y^2\right)+(-2x+20)\\ \amp=\highlight{y^2}(x-10)+\highlight{(-2)}(x-10)\\ \amp=\highlight{y^2}\attention{\overbrace{(x-10)}}\highlight{-2}\attention{\overbrace{(x-10)}}\\ \amp=(x-10)\highlight{\left(y^2-2\right)}\text{.} \end{align*}
Unfortunately, this technique is not guaranteed to work on every polynomial with four terms. In fact, most randomly selected four-term polynomials will not factor using this method and those selected here should be considered “nice.” Here is an example that will not factor with grouping:
\begin{align*} x^3+6x^2+11x+6\amp= \left(x^3+6x^2\right)+(11x+6)\\ \amp= x^2\underbrace{\left(x+6\right)}_{\mathord{?}}+1\underbrace{(11x+6)}_{\mathord{?}} \end{align*}
In this example, at the step where we hope to see the same binomial appearing twice, we see two different binomials. It doesn’t mean that this kind of polynomial can’t be factored, but it does mean that “factoring by grouping” is not going to help. This polynomial actually factors as \((x+1)(x+2)(x+3)\text{.}\) So the fact that grouping fails to factor the polynomial doesn’t tell us whether or not it is prime.

Reading Questions 10.2.3 Reading Questions

1.

Factoring by grouping is a factoring technique for when a polynomial has terms.

Exercises 10.2.4 Exercises

Review and Warmup.

1.
Factor the given polynomial.
\(-10y-10=\)
2.
Factor the given polynomial.
\(-7r-7=\)
3.
Factor the given polynomial.
\(4r+36=\)
4.
Factor the given polynomial.
\(10t+30=\)
5.
Factor the given polynomial.
\(30t^2 - 42=\)
6.
Factor the given polynomial.
\(15x^2 - 6=\)

Factoring out Common Polynomials.

7.
Factor the given polynomial.
\({x\mathopen{}\left(x-9\right)-8\mathopen{}\left(x-9\right)}=\)
8.
Factor the given polynomial.
\({x\mathopen{}\left(x+6\right)-7\mathopen{}\left(x+6\right)}=\)
9.
Factor the given polynomial.
\({x\mathopen{}\left(y-5\right)-4\mathopen{}\left(y-5\right)}=\)
10.
Factor the given polynomial.
\({x\mathopen{}\left(y+6\right)-8\mathopen{}\left(y+6\right)}=\)
11.
Factor the given polynomial.
\({7x\mathopen{}\left(x+y\right)-6\mathopen{}\left(x+y\right)}=\)
12.
Factor the given polynomial.
\({8x\mathopen{}\left(x+y\right)+3\mathopen{}\left(x+y\right)}=\)
13.
Factor the given polynomial.
\({8t^{8}\mathopen{}\left(10t-3\right)+10t-3}=\)
14.
Factor the given polynomial.
\({5t^{7}\mathopen{}\left(5t+3\right)+5t+3}=\)
15.
Factor the given polynomial.
\({36x^{4}\mathopen{}\left(x-20\right)-42x^{3}\mathopen{}\left(x-20\right)+60x^{2}\mathopen{}\left(x-20\right)}=\)
16.
Factor the given polynomial.
\({18x^{4}\mathopen{}\left(x+5\right)-48x^{3}\mathopen{}\left(x+5\right)+42x^{2}\mathopen{}\left(x+5\right)}=\)

Factoring by Grouping.

17.
Factor the given polynomial.
\({x^{2}+5x-3x-15}=\)
18.
Factor the given polynomial.
\({y^{2}-2y-9y+18}=\)
19.
Factor the given polynomial.
\({y^{2}-8y-7y+56}=\)
20.
Factor the given polynomial.
\({r^{2}+4r-3r-12}=\)
21.
Factor the given polynomial.
\({r^{3}-10r^{2}-2r+20}=\)
22.
Factor the given polynomial.
\({t^{3}+7t^{2}-8t-56}=\)
23.
Factor the given polynomial.
\({t^{3}-5t^{2}-6t+30}=\)
24.
Factor the given polynomial.
\({x^{3}+10x^{2}-3x-30}=\)
25.
Factor the given polynomial.
\({xy+3x+10y+30}=\)
26.
Factor the given polynomial.
\({xy-4x+5y-20}=\)
27.
Factor the given polynomial.
\({xy+5x-9y-45}=\)
28.
Factor the given polynomial.
\({xy+6x-4y-24}=\)
29.
Factor the given polynomial.
\({7x^{2}-42xy+9xy-54y^{2}}=\)
30.
Factor the given polynomial.
\({8x^{2}-56xy+3xy-21y^{2}}=\)
31.
Factor the given polynomial.
\({9x^{2}+9xy+2xy+2y^{2}}=\)
32.
Factor the given polynomial.
\({10x^{2}-70xy+3xy-21y^{2}}=\)
33.
Factor the given polynomial.
\({x^{3}+2+4x^{3}y+8y}=\)
34.
Factor the given polynomial.
\({x^{3}-3-8x^{3}y+24y}=\)
35.
Factor the given polynomial.
\({x^{3}-4-3x^{3}y+12y}=\)
36.
Factor the given polynomial.
\({x^{3}+5+7x^{3}y+35y}=\)
37.
Factor the given polynomial.
\({10y^{5}+30y^{4}+4y^{4}+12y^{3}+6y^{3}+18y^{2}}=\)
38.
Factor the given polynomial.
\({25r^{5}+50r^{4}-20r^{4}-40r^{3}+20r^{3}+40r^{2}}=\)
You have attempted of activities on this page.