## Factoring by Grouping

### Learning Outcome

• Apply an algorithm to rewrite a trinomial as a four term polynomial and factor
• Use factoring by grouping to factor a trinomial
• Factor trinomials of the form $a{x}^{2}+bx+c$

In the last section, we showed you how to factor polynomials with four terms by grouping.  Trinomials of the form $a{x}^{2}+bx+c$ are slightly more complicated to factor. For trinomials, we can factor by grouping by dividing the x term into the sum of two terms, factoring each portion of the expression separately, and then factoring out the GCF of the entire expression. The trinomial $2{x}^{2}+5x+3$ can be rewritten as $\left(2x+3\right)\left(x+1\right)$ using this process. We begin by rewriting the original expression as $2{x}^{2}+2x+3x+3$ and then factor each portion of the expression to obtain $2x\left(x+1\right)+3\left(x+1\right)$. We then pull out the GCF of $\left(x+1\right)$ to find the factored expression.

Below is a summary of the steps we will use followed by an example demonstrating how to use the step.

### Factoring Trinomials in the form $ax^{2}+bx+c$

To factor a trinomial in the form $ax^{2}+bx+c$, find two integers, r and s, whose sum is b and whose product is ac.

$\begin{array}{l}r\cdot{s}=a\cdot{c}\\r+s=b\end{array}$

Rewrite the trinomial as $ax^{2}+rx+sx+c$ and then use grouping and the distributive property to factor the polynomial.

The first step in this process is to figure out what two numbers to use to re-write the x term as the sum of two new terms. Making a table to keep track of your work is helpful. We are looking for two numbers with a product of $6$ and a sum of $5$

Factors of $2\cdot3=6$ Sum of Factors
$1,6$ $7$
$-1,-6$ $-7$
$2,3$ $5$
$-2,-3$ $-5$

The pair $p=2 \text{ and }q=3$ will give the correct x term, so we will rewrite it using the new factors:

$2{x}^{2}+5x+3=2x^2+2x+3x+3$

Now we can group the polynomial into two binomials.

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

Identify the GCF of each binomial.

$2x$ is the GCF of $(2x^2+2x)$ and $3$ is the GCF of $(3x+3)$. Use this to rewrite the polynomial:

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

Note how we leave the signs in the binomials and the addition that joins them. Be careful with signs when you factor out the GCF. The GCF of our new polynomial is $(x+1)$. We factor this out as well:

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

Sometimes it helps visually to write the polynomial as $(x+1)2x+(x+1)3$ before you factor out the GCF. This is purely a matter of preference. Multiplication is commutative, so order does not matter.

Now let’s see how this strategy works for factoring $6z^{2}+11z+4$.

In this trinomial, $a=6$, $b=11$, and $c=4$. According to the strategy, you need to find two factors, r and s, whose sum is $b=11$ and whose product is $a\cdot{c}=6\cdot4=24$. You can make a chart to organize the possible factor combinations. (Notice that this chart only has positive numbers. Since ac is positive and b is positive, you can be certain that the two factors you’re looking for are also positive numbers.)

Factors whose product is  $24$ Sum of the factors
$1\cdot24=24$ $1+24=25$
$2\cdot12=24$ $2+12=14$
$3\cdot8=24$ $3+8=11$
$4\cdot6=24$ $4+6=10$

There is only one combination where the product is $24$ and the sum is $11$, and that is when $r=3$, and $s=8$. Let’s use these values to factor the original trinomial.

### Example

Factor $6z^{2}+11z+4$.

Now, let’s look at an example where c is negative.

### Example

Factor $5{x}^{2}+7x - 6$ by grouping.

We can summarize our process in the following way:

### How To: Given a trinomial in the form $a{x}^{2}+bx+c$, factor by grouping

1. List factors of $ac$.
2. Find $p$ and $q$, a pair of factors of $ac$ with a sum of $b$.
3. Rewrite the original expression as $a{x}^{2}+px+qx+c$.
4. Pull out the GCF of $a{x}^{2}+px$.
5. Pull out the GCF of $qx+c$.
6. Factor out the GCF of the expression.

### Try It

In the following video, we present another example of factoring a trinomial using grouping.  In this example, the middle term, b, is negative. Note how having a negative middle term and a positive c term influence the options for r and s when factoring.

Using this strategy, factoring trinomials becomes quick and kind of fun once you get the idea.  Give the next examples a try on your own before you look at the solution.

We will show two more examples so you can become acquainted with the variety of possible outcomes for factoring this type of trinomial.

### Example

Factor $2{x}^{2}+9x+9$.

Here is an example for you to try where the c is negative.

### Example

Factor $6{x}^{2}+x - 1$.

### Prime Trinomials

Before going any further, it is worth mentioning that not all trinomials can be factored using integer pairs. Take the trinomial $2z^{2}+35z+7$, for instance. Can you think of two integers whose sum is $b=35$ and whose product is $a\cdot{c}=2\cdot7=14$? There are none! This type of trinomial, which cannot be factored using integers, is called a prime trinomial.  For our last example, you will see that sometimes, you will encounter polynomials that, despite your best efforts, cannot be factored into the product of two binomials.

### Example

Factor $7x^{2}-16x–5$.

### Factoring out a GCF

Now that you are familiar with the grouping method for factoring, we will now start to look at some strategies that are useful for making factoring easier.  Your first step when factoring should always be to look for common factors for the three terms.  Consider the examples below.

Trinomial Factor out Common Factor Factored
$2x^{2}+10x+12$ $2(x^{2}+5x+6)$ $2\left(x+2\right)\left(x+3\right)$
$−5a^{2}−15a−10$ $−5(a^{2}+3a+2)$ $−5\left(a+2\right)\left(a+1\right)$
$c^{3}–8c^{2}+15c$ $c\left(c^{2}–8c+15\right)$ $c\left(c–5\right)\left(c–3\right)$
$y^{4}–9y^{3}–10y^{2}$ $y^{2}\left(y^{2}–9y–10\right)$ $y^{2}\left(y–10\right)\left(y+1\right)$

Notice that once you have identified and pulled out the common factor, you can factor the remaining trinomial as usual. This process is shown below.

### Example

Factor $3x^{3}–3x^{2}–90x$.

The general form of trinomials with a leading coefficient of a is $ax^{2}+bx+c$. Sometimes the factor of a can be factored as you saw above; this happens when a can be factored out of all three terms. The remaining trinomial that still needs factoring will then be simpler, with the leading term only being an $x^{2}$ term, instead of an $ax^{2}$ term.

### Factoring out a Negative

In some situations, a is negative, as in $−4h^{2}+11h+3$. It often makes sense to factor out $−1$ as the first step in factoring, as doing so will change the sign of $ax^{2}$ from negative to positive, making the remaining trinomial easier to factor.

### Example

Factor $−4h^{2}+11h+3$

Note that the answer above can also be written as $\left(−h+3\right)\left(4h+1\right)$ or $\left(h–3\right)\left(−4h–1\right)$ if you multiply $−1$ times one of the other factors.

In the following video example, we will factor a trinomial whose leading term is negative.  You will see how, by factoring out the negative sign, factoring the trinomial becomes easier.

## Contribute!

Did you have an idea for improving this content? We’d love your input.