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 ax2+bx+cax2+bx+c

In the last section, we showed you how to factor polynomials with four terms by grouping.  Trinomials of the form ax2+bx+cax2+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 2x2+5x+32x2+5x+3 can be rewritten as (2x+3)(x+1)(2x+3)(x+1) using this process. We begin by rewriting the original expression as 2x2+2x+3x+32x2+2x+3x+3 and then factor each portion of the expression to obtain 2x(x+1)+3(x+1)2x(x+1)+3(x+1). We then pull out the GCF of (x+1)(x+1) 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 ax2+bx+cax2+bx+c

To factor a trinomial in the form ax2+bx+cax2+bx+c, find two integers, r and s, whose sum is b and whose product is ac.

rs=acr+s=brs=acr+s=b

Rewrite the trinomial as ax2+rx+sx+cax2+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 66 and a sum of 55

Factors of 23=623=6 Sum of Factors
1,61,6 77
1,61,6 77
2,32,3 55
2,32,3 55

 

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

2x2+5x+3=2x2+2x+3x+32x2+5x+3=2x2+2x+3x+3

Now we can group the polynomial into two binomials.

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

Identify the GCF of each binomial.

2x2x is the GCF of (2x2+2x)(2x2+2x) and 33 is the GCF of (3x+3)(3x+3). Use this to rewrite the polynomial:

(2x2+2x)+(3x+3)=2x(x+1)+3(x+1)(2x2+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)(x+1). We factor this out as well:

2x(x+1)+3(x+1)=(x+1)(2x+3)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(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 6z2+11z+46z2+11z+4.

In this trinomial, a=6a=6, b=11b=11, and c=4c=4. According to the strategy, you need to find two factors, r and s, whose sum is b=11b=11 and whose product is ac=64=24ac=64=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  2424 Sum of the factors
124=24124=24 1+24=251+24=25
212=24212=24 2+12=142+12=14
38=2438=24 3+8=113+8=11
46=2446=24 4+6=104+6=10

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

Example

Factor 6z2+11z+46z2+11z+4.

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

Example

Factor 5x2+7x6 by grouping.

We can summarize our process in the following way:

How To: Given a trinomial in the form ax2+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 ax2+px+qx+c.
  4. Pull out the GCF of ax2+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 2x2+9x+9.

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

Example

Factor 6x2+x1.

Prime Trinomials

Before going any further, it is worth mentioning that not all trinomials can be factored using integer pairs. Take the trinomial 2z2+35z+7, for instance. Can you think of two integers whose sum is b=35 and whose product is ac=27=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 7x216x5.

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
2x2+10x+12 2(x2+5x+6) 2(x+2)(x+3)
5a215a10 5(a2+3a+2) 5(a+2)(a+1)
c38c2+15c c(c28c+15) c(c5)(c3)
y49y310y2 y2(y29y10) y2(y10)(y+1)

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 3x33x290x.

The general form of trinomials with a leading coefficient of a is ax2+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 x2 term, instead of an ax2 term.

Factoring out a Negative

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

Example

Factor 4h2+11h+3

Note that the answer above can also be written as (h+3)(4h+1) or (h3)(4h1) 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.