If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

# Factoring by grouping

Learn about a factorization method called "grouping." For example, we can use grouping to write 2x²+8x+3x+12 as (2x+3)(x+4).

#### What you need to know for this lesson

Factoring a polynomial involves writing it as a product of two or more polynomials. It reverses the process of polynomial multiplication.
We have seen several examples of factoring already. However, for this article, you should be especially familiar with taking common factors using the distributive property. For example, 6, x, squared, plus, 4, x, equals, 2, x, left parenthesis, 3, x, plus, 2, right parenthesis .

#### What you will learn in this lesson

In this article, we will learn how to use a factoring method called grouping.

## Example 1: Factoring $2x^2+8x+3x+12$2, x, squared, plus, 8, x, plus, 3, x, plus, 12

First, notice that there is no factor common to all terms in 2, x, squared, plus, 8, x, plus, 3, x, plus, 12. However, if we group the first two terms together and the last two terms together, each group has its own GCF, or greatest common factor:
start underbrace, left parenthesis, 2, x, squared, plus, 8, x, right parenthesis, end underbrace, start subscript, start text, f, i, r, s, t, space, g, r, o, u, p, i, n, g, end text, end subscript, plus, start underbrace, left parenthesis, 3, x, plus, 12, right parenthesis, end underbrace, start subscript, start text, s, e, c, o, n, d, space, g, r, o, u, p, i, n, g, end text, end subscript
In particular, there is a GCF of 2, x in the first grouping and a GCF of 3 in the second grouping. We can factor these out to obtain the following expression:
2, x, left parenthesis, x, plus, 4, right parenthesis, plus, 3, left parenthesis, x, plus, 4, right parenthesis
Notice that this reveals yet another common factor between the two terms: start color #a75a05, x, plus, 4, end color #a75a05. We can use the distributive property to factor out this common factor.
2, x, left parenthesis, start color #a75a05, x, plus, 4, end color #a75a05, right parenthesis, plus, 3, left parenthesis, start color #a75a05, x, plus, 4, end color #a75a05, right parenthesis, equals, left parenthesis, start color #a75a05, x, plus, 4, end color #a75a05, right parenthesis, left parenthesis, 2, x, plus, 3, right parenthesis
Since the polynomial is now expressed as a product of two binomials, it is in factored form. We can check our work by multiplying and comparing it to the original polynomial.

## Example 2: Factoring $3x^2+6x+4x+8$3, x, squared, plus, 6, x, plus, 4, x, plus, 8

Let's summarize what was done above by factoring another polynomial.
\begin{aligned}&\phantom{=}3x^2+6x+4x+8\\\\ &=(3x^2+6x)+(4x+8)&&\small{\gray{\text{Group terms}}}\\ \\ &=3x({x+2})+4({x+2})&&\small{\gray{\text{Factor out GCFs}}}\\ \\ &=3x(\goldD{x+2})+4(\goldD{x+2})&&\small{\gray{\text{Common factor!}}}\\\\ &=(\goldD{x+2})(3x+4)&&\small{\gray{\text{Factor out } x+2}} \end{aligned}
The factored form is left parenthesis, x, plus, 2, right parenthesis, left parenthesis, 3, x, plus, 4, right parenthesis.

1) Factor 9, x, squared, plus, 6, x, plus, 12, x, plus, 8.

2) Factor 5, x, squared, plus, 10, x, plus, 2, x, plus, 4.

3) Factor 8, x, squared, plus, 6, x, plus, 4, x, plus, 3.

## Example 3: Factoring $3x^2-6x-4x+8$3, x, squared, minus, 6, x, minus, 4, x, plus, 8

Extra care should be taken when using the grouping method to factor a polynomial with negative coefficients.
For example, the steps below can be used to factor 3, x, squared, minus, 6, x, minus, 4, x, plus, 8.
\begin{aligned}\phantom{0}&&&\phantom{=}3x^2-6x-4x+8\\\\ \small{\blueD{(1)}}&&&=(3x^2-6x)+(-4x+8)&&\small{\gray{\text{Group terms}}}\\\\ \small{\blueD{(2)}}&&&=3x(x-2)+(-4)(x-2)&&\small{\gray{\text{Factor out GCFs}}}\\\\ \small{\blueD{(3)}}&&&=3x(x-2)-4(x-2)&&\small{\gray{\text{Simplify}}}\\\\ \small{\blueD{(4)}}&&&=3x(\goldD{x-2})-4(\goldD{x-2})&&\small{\gray{\text{Common factor!}}}\\\\ \small{\blueD{(5)}}&&&=(\goldD{x-2})(3x-4)&&\small{\gray{\text{Factor out x-2}}}\\\\ \end{aligned}
The factored form of the polynomial is left parenthesis, x, minus, 2, right parenthesis, left parenthesis, 3, x, minus, 4, right parenthesis. We can multiply the binomials to check our work.
A few of the steps above may seem different than what you saw in the first example, so you may have a few questions.
Where did the "+" sign between the groupings come from?
In step start color #11accd, left parenthesis, 1, right parenthesis, end color #11accd, a "+" sign was added between the groupings left parenthesis, 3, x, squared, minus, 6, x, right parenthesis and left parenthesis, minus, 4, x, plus, 8, right parenthesis. This is because the third term left parenthesis, minus, 4, x, right parenthesis is negative, and the sign of the term must be included within the grouping.
Keeping the minus sign outside the second grouping is tricky. For example, a common error is to group 3, x, squared, minus, 6, x, minus, 4, x, plus, 8 as left parenthesis, 3, x, squared, minus, 6, x, right parenthesis, minus, left parenthesis, 4, x, plus, 8, right parenthesis. This grouping, however, simplifies to 3, x, squared, minus, 6, x, minus, 4, x, start color #ca337c, minus, 8, end color #ca337c, which is not the same as the original expression.
Why factor out minus, 4 instead of 4?
In step start color #11accd, left parenthesis, 2, right parenthesis, end color #11accd, we factored out a minus, 4 to reveal a common factor of left parenthesis, x, minus, 2, right parenthesis between the terms. If we instead factored out a positive 4, we would not obtain that common binomial factor seen above:
\begin{aligned}(3x^2-6x)+(-4x+8)&=3x(\goldD{x-2})+4(\purpleC{-x+2})\\ \end{aligned}
When the leading term in a group is negative, we will often need to factor out a negative common factor.

4) Factor 2, x, squared, minus, 3, x, minus, 4, x, plus, 6.

5) Factor 3, x, squared, plus, 3, x, minus, 10, x, minus, 10.

6) Factor 3, x, squared, plus, 6, x, minus, x, minus, 2.

## Challenge problem

7*) Factor 2, x, cubed, plus, 10, x, squared, plus, 3, x, plus, 15.

### When can we use the grouping method?

The grouping method can be used to factor polynomials whenever a common factor exists between the groupings.
For example, we can use the grouping method to factor 3, x, squared, plus, 9, x, plus, 2, x, plus, 6 since it can be written as follows:
\begin{aligned}(3x^2+9x)+(2x+6)&=3x(\goldD{x+3})+2(\goldD{x+3})\\ \end{aligned}
We cannot, however, use the grouping method to factor 2, x, squared, plus, 3, x, plus, 4, x, plus, 12 because factoring out the GCF from both groupings does not yield a common factor!
\begin{aligned}(2x^2+3x)+(4x+12)&=x(\goldD{2x+3})+4(\purpleC{x+3})\\ \end{aligned}

#### Using grouping to factor trinomials

You can also use grouping to factor certain three termed quadratics (i.e. trinomials) like 2, x, squared, plus, 7, x, plus, 3. This is because we can rewrite the expression as follows:
2, x, squared, plus, start color #11accd, 7, end color #11accd, x, plus, 3, equals, 2, x, squared, plus, start color #11accd, 1, end color #11accd, x, plus, start color #11accd, 6, end color #11accd, x, plus, 3
Then we can use grouping to factor 2, x, squared, plus, start color #11accd, 1, end color #11accd, x, plus, start color #11accd, 6, end color #11accd, x, plus, 3 as left parenthesis, x, plus, 3, right parenthesis, left parenthesis, 2, x, plus, 1, right parenthesis.
For more on factoring quadratic trinomials like these using the grouping method, check out our next article.

## Want to join the conversation?

• This may sound a bit dumb, but is there any significant difference between factoring, grouping trinomials, difference of squares, and GCF?
• Nothing significant, but there are important (however small) differences and they are used for different things.
• How would you work out the problem if there were only 3 terms?
• Find two numbers that add to the middle coefficient and multiply to give the product of the first and last coefficients (or constants). This is called the ac method.

Example: Factor 6x^2 + 19x + 10.
6*10 = 60, so we need to find two numbers that add to 19 and multiply to give 60. These numbers (after some trial and error) are 15 and 4. So split up 19x into 15x + 4x (or 4x + 15x), then factor by grouping:

6x^2 + 19x + 10 = 6x^2 + 15x + 4x + 10
= 3x(2x + 5) + 2(2x + 5)
= (3x + 2)(2x + 5).

Have a blessed, wonderful day!
• what the meaning of GCF?
• GCF is the abbreviation for Greatest Common Factor.
It is the value that you can evenly divide all terms by. It can be a number, a variable, or a mix of numbers and variables.
• What is the point of this? I'm not going to use it when i do daily life things.
• You might be surprised! If you decide to go into a career like engineering or to work on cool projects like an autonomous car or a rocket, you will use polynomials on a daily basis to solve problems like how to control the car using different sensor inputs. Knowing how to manipulate polynomials like this is therefore extremely useful when designing these systems!
• Why are they called quadratics? They are typically trinomials with a leading term raised to the second degree.
• Quadratics actually are derived from the Latin word, 'quadratum', which literally means 'square'.
A quadratic is basically a type of problem that deals with a variable multiplied by itself — an operation known as squaring.
So, you could relate the word quadratic to Latin, not mathematics
• In problem 3, I solved the expression and got the answer (4x+2)(2x+1.5). It said my answer was correct, but when I checked my answer, I got the same expression. What did I do wrong?
• u used 1.5 which is not a natural number. Therefore answer is incorrect. Correct answer must include only natural numbers: (3x+2)(3x+4)
(1 vote)
• Lets say there is no GCF in anything. Then What?
• There is always a GCF, it just depends on how many there are.
Take 8 and 6, the factors of those two numbers are 1 and 2.
2 is bigger, so the GCF of 8 and 6 is 2.
That works the same with every other set of numbers.

Let's take 4 and 3.
The factors of 3 are 1,3
The factors of 4 are 1,2,4

The only common factor here is 1, so 1 is the GCF of 4 and 3!

So to answer your question, if you can't find the greatest common factor of two numbers, it's 1.