Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

7.1: Greatest Common Factor and Factor by Grouping

( \newcommand{\kernel}{\mathrm{null}\,}\)

Learning Objectives

By the end of this section, you will be able to:

  • Find the greatest common factor of two or more expressions
  • Factor the greatest common factor from a polynomial
  • Factor by grouping
BE PREPARED

Before you get started, take this readiness quiz.

  1. Factor 56 into primes.
    If you missed this problem, review Example 1.2.19.
  2. Find the least common multiple of 18 and 24.
    If you missed this problem, review Example 1.2.28.
  3. Simplify 3(6a+11).
    If you missed this problem, review Example 1.10.40.

Find the Greatest Common Factor of Two or More Expressions

Earlier we multiplied factors together to get a product. Now, we will be reversing this process; we will start with a product and then break it down into its factors. Splitting a product into factors is called factoring.

This figure has two factors being multiplied. They are 8 and 7. Beside this equation there are other factors multiplied. They are 2x and (x+3). The product is given as 2x^2 plus 6x. Above the figure is an arrow towards the right with multiply inside. Below the figure is an arrow to the left with factor inside.

We have learned how to factor numbers to find the least common multiple (LCM) of two or more numbers. Now we will factor expressions and find the greatest common factor of two or more expressions. The method we use is similar to what we used to find the LCM.

GREATEST COMMON FACTOR

The greatest common factor (GCF) of two or more expressions is the largest expression that is a factor of all the expressions.

First we’ll find the GCF of two numbers.

Example 7.1.1: HOW TO FIND THE GREATEST COMMON FACTOR OF TWO OR MORE EXPRESSIONS

Find the GCF of 54 and 36.

Solution

This table has three columns. In the first column are the steps for factoring. The first row has the first step, factor each coefficient into primes and write all variables with exponents in expanded form. The second column in the first row has “factor 54 and 36”. The third column in the first row has 54 and 36 factored with factor trees. The prime factors of 54 are circled and are 3, 3, 2, and3. The prime factors of 36 are circled and are 2,3,2,3.The second row has the second step of “in each column, circle the common factors. The second column in the second row has the statement “circle the 2, 3 and 3 that are shared by both numbers”. The third column in the second row has the prime factors of 36 and 54 in rows above each other. The common factors of 2, 3, and 3 are circled.The third row has the step “bring down the common factors that all expressions share”. The second column in the third row has “bring down the 2,3, and 3 then multiply”. The third column in the third row has “GCF = 2 times 3 times 3”.The fourth row has the fourth step “multiply the factors”. The second column in the fourth row is blank. The third column in the fourth row has “GCF = 18” and “the GCF of 54 and 36 is 18”.

Notice that, because the GCF is a factor of both numbers, 54 and 36 can be written as multiples of 18.

54=18336=182

Try It 7.1.2

Find the GCF of 48 and 80.

Answer

16

Try It 7.1.3

Find the GCF of 18 and 40.

Answer

2

We summarize the steps we use to find the GCF below.

HOW TO

Find the Greatest Common Factor (GCF) of two expressions.

  1. Step 1. Factor each coefficient into primes. Write all variables with exponents in expanded form.
  2. Step 2. List all factors—matching common factors in a column. In each column, circle the common factors.
  3. Step 3. Bring down the common factors that all expressions share.
  4. Step 4. Multiply the factors.

In the first example, the GCF was a constant. In the next two examples, we will get variables in the greatest common factor.

Example 7.1.4

Find the greatest common factor of 27x3 and 18x4.

Solution

Factor each coefficient into primes and write the variables with exponents in expanded form. Circle the common factors in each column. .
Bring down the common factors. .
Multiply the factors. .
  The GCF of 27x3 and
18x4 is 9x3.
Try It 7.1.5

Find the GCF: 12x2,18x3

Answer

6x2

Try It 7.1.6

Find the GCF: 16y2,24y3

Answer

8y2

Example 7.1.7

Find the GCF of 4x2y,6xy3

Solution

Factor each coefficient into primes and write the variables with exponents in expanded form. Circle the common factors in each column. .
Bring down the common factors. .
Multiply the factors. .
  The GCF of 4x2y and
6xy3 is 2xy.
Try It 7.1.8

Find the GCF: 6ab4,8a2b

Answer

2ab

Try It 7.1.9

Find the GCF: 9m5n2,12m3n

Answer

3m3n

Example 7.1.10

Find the GCF of: 21x3,9x2,15x

Solution

Factor each coefficient into primes and write the variables with exponents in expanded form. Circle the common factors in each column. .
Bring down the common factors. .
Multiply the factors. .
  The GCF of 21x3,9x2
and 15x is 3x
Try It 7.1.11

Find the greatest common factor: 25m4,35m3,20m2

Answer

5m2

Try It 7.1.12

Find the greatest common factor: 14x3,70x2,105x

Answer

7x

Factor the Greatest Common Factor from a Polynomial

Just like in arithmetic, where it is sometimes useful to represent a number in factored form (for example, 12 as 2·6or3·4),2·6or3·4), in algebra, it can be useful to represent a polynomial in factored form. One way to do this is by finding the GCF of all the terms. Remember, we multiply a polynomial by a monomial as follows:

2(x+7) factors 2x+272x+14 product 

Now we will start with a product, like 2x+14, and end with its factors, 2(x+7). To do this we apply the Distributive Property “in reverse.”

We state the Distributive Property here just as you saw it in earlier chapters and “in reverse.”

DISTRIBUTIVE PROPERTY

If a,b,c are real numbers, then

a(b+c)=ab+ac and ab+ac=a(b+c)

The form on the left is used to multiply. The form on the right is used to factor.

So how do you use the Distributive Property to factor a polynomial? You just find the GCF of all the terms and write the polynomial as a product!

Example 7.1.13: HOW TO FACTOR THE GREATEST COMMON FACTOR FROM A POLYNOMIAL

Factor: 4x+12

Solution

This table has three columns. In the first column are the steps for factoring. The first row has the first step, “Find the G C F of all the terms of the polynomial”. The second column in the first row has “find the G C F of 4 x and 12”. The third column in the first row has 4 x factored as 2 times 2 times x and below it 18 factored as 2 times 2 times 3. Then, below the factors are the statements, “G C F = 2 times 2” and “G C F = 4”.The second row has the second step “rewrite each term as a product using the G C F”. The second column in the second row has the statement “Rewrite 4 x and 12 as products of their G C F, 4” Then the two equations 4 x = 4 times x and 12 = 4 times 3. The third column in the second row has the expressions 4x + 12 and below this 4 times x + 4 times 3.The third row has the step “Use the reverse distributive property to factor the expression”. The second column in the third row is blank. The third column in the third row has “4(x + 3)”.The fourth row has the fourth step “check by multiplying the factors”. The second column in the fourth row is blank. The third column in the fourth row has three expressions. The first is 4(x + 3), the second is 4 times x + 4 times 3. The third is 4 x + 12.

Try It 7.1.14

Factor: 6a+24

Answer

6(a+4)

Try It 7.1.15

Factor: 2b+14

Answer

2(b+7)

HOW TO

Factor the greatest common factor from a polynomial.

Step 1. Find the GCF of all the terms of the polynomial.

Step 2. Rewrite each term as a product using the GCF.

Step 3. Use the “reverse” Distributive Property to factor the expression.

Step 4. Check by multiplying the factors.

FACTOR AS A NOUN AND A VERB

We use “factor” as both a noun and a verb.

This figure has two statements. The first statement has “noun”. Beside it the statement “7 is a factor of 14” labeling the word factor as the noun. The second statement has “verb”. Beside this statement is “factor 3 from 3a + 3 labeling factor as the verb.
Example 7.1.16

Factor: 5a+5

Solution

Find the GCF of 5a and 5. .
  .
Rewrite each term as a product using the GCF. .
Use the Distributive Property "in reverse" to factor the GCF. .
Check by multiplying the factors to get the original polynomial.  
5(a+1)  
5a+51  
5a+5
Try It 7.1.17

Factor: 14x+14

Answer

14(x+1)

Try It 7.1.18

Factor: 12p+12

Answer

12(p+1)

The expressions in the next example have several factors in common. Remember to write the GCF as the product of all the common factors.

Example 7.1.19

Factor: 12x60

Solution

Find the GCF of 12x and 60. .
  .
Rewrite each term as a product using the GCF. .
Factor the GCF. .
Check by multiplying the factors.  
12(x−5)  
12x125  
12x60
Try It 7.1.20

Factor: 18u36

Answer

8(u2)

Try It 7.1.21

Factor: 30y60

Answer

30(y2)

Now we’ll factor the greatest common factor from a trinomial. We start by finding the GCF of all three terms.

Example 7.1.22

Factor: 4y2+24y+28

Solution

We start by finding the GCF of all three terms.

Find the GCF of 4y2,24y and 28 .
  .
Rewrite each term as a product using the GCF. .
Factor the GCF. .
Check by multiplying.  
4(y2+6y+7)  
4y2+46y+47  
4y2+24y+28
Try It 7.1.23

Factor: 5x225x+15

Answer

5(x25x+3)

Try It 7.1.24

Factor: 3y212y+27

Answer

3(y24y+9)

Example 7.1.25

Factor: 5x325x2

Solution

Find the GCF of 5x3 and 25x2 .
  .
Rewrite each term. .
Factor the GCF. .
Check.  
5x2(x5)  
5x2x5x25  
5x325x2
Try It 7.1.26

Factor: 2x3+12x2

Answer

2x2(x+6)

Try It 7.1.27

Factor: 6y315y2

Answer

3y2(2y5)

Example 7.1.28

Factor: 21x39x2+15x

Solution

In a previous example we found the GCF of 21x3,9x2,15x to be 3x.

  .
Rewrite each term using the GCF, 3x. .
Factor the GCF. .
Check.  
3x(7x23x+5)  
3x7x23x3x+3x5  
21x39x2+15x
Try It 7.1.29

Factor: 20x310x2+14x

Answer

2x(10x25x+7)

Try It 7.1.30

Factor: 24y312y220y

Answer

4y(6y23y5)

Example 7.1.31

Factor: 8m312m2n+20mn2

Solution

Find the GCF of 8m3,12m2n,20mn2 .
  .
Rewrite each term. .
Factor the GCF. .
Check.  
4m(2m23mn+5n2)  
4m2m24m3mn+4m5n2  
8m312m2n+20mn2
Try It 7.1.32

Factor: 9xy2+6x2y2+21y3

Answer

3y2(3x+2x2+7y)

Try It 7.1.33

Factor: 3p36p2q+9pq3

Answer

3p(p22pq+3q2

When the leading coefficient is negative, we factor the negative out as part of the GCF.

Example 7.1.34

Factor: 8y24

Solution

When the leading coefficient is negative, the GCF will be negative.

Ignoring the signs of the terms, we first find the GCF of 8y and 24 is 8. Since the expression −8y − 24 has a negative leading coefficient, we use −8 as the GCF. .
Rewrite each term using the GCF. .
.
Factor the GCF. .
Check.  
8(y+3)  
8y+(8)3  
8y24
Try It 7.1.35

Factor: 16z64

Answer

16(z+4)

Try It 7.1.36

Factor: 9y27

Answer

9(y+3)

Example 7.1.37

Factor: 6a2+36a

Solution

The leading coefficient is negative, so the GCF will be negative.?

Since the leading coefficient is negative, the GCF is negative, −6a. .
.
Rewrite each term using the GCF. .
Factor the GCF. .
Check.  
6a(a6)  
6aa+(6a)(6)  
6a2+36av
Try It 7.1.38

Factor: 4b2+16b

Answer

4b(b4)

Try It 7.1.39

Factor: 7a2+21a

Answer

7a(a3)

Example 7.1.40

Factor: 5q(q+7)6(q+7)

Solution

The GCF is the binomial q+7.

  .
Factor the GCF, (q + 7). .
Check on your own by multiplying.
Try It 7.1.41

Factor: 4m(m+3)7(m+3)

Answer

(m+3)(4m7)

Try It 7.1.42

Factor: 8n(n4)+5(n4)

Answer

(n4)(8n+5)

Factor by Grouping

When there is no common factor of all the terms of a polynomial, look for a common factor in just some of the terms. When there are four terms, a good way to start is by separating the polynomial into two parts with two terms in each part. Then look for the GCF in each part. If the polynomial can be factored, you will find a common factor emerges from both parts.

(Not all polynomials can be factored. Just like some numbers are prime, some polynomials are prime.)

Example 7.1.43

Factor: xy+3y+2x+6

Solution

This table gives the steps for factoring x y + 3 y + 2 x + 6. In the first row there is the statement, “group terms with common factors”. In the next column, there is the statement of no common factors of all 4 terms. The last column shows the first two terms grouped and the last two terms grouped.The second row has the statement, “factor out the common factor from each group”. The second column in the second row states to factor out the GCF from the two separate groups. The third column in the second row has the expression y(x + 3) + 2(x + 3).The third row has the statement, “factor the common factor from the expression”. The second column in this row points out there is a common factor of (x + 3). The third column in the third row shows the factor of (x + 3) factored from the two groups, (x + 3) times (y + 2).The last row has the statement, “check”. The second column in this row states to multiply (x + 3)(y + 2). The product is shown in the last column of the original polynomial x y + 3 y + 2 x + 6.

Try It 7.1.44

Factor: xy+8y+3x+24

Answer

(x+8)(y+3)

Try It 7.1.45

Factor: ab+7b+8a+56

Answer

(a+7)(b+8)

HOW TO

Factor by grouping.

Step 1. Group terms with common factors.

Step 2. Factor out the common factor in each group.

Step 3. Factor the common factor from the expression.

Step 4. Check by multiplying the factors.

Example 7.1.46

Factor: x2+3x2x6

Solution

 There is no GCF in all four terms. x2+3x2x6 Separate into two parts. x2+3x2x6 Factor the GCF from both parts. Be careful  with the signs when factoring the GCF from x(x+3)2(x+3)(x+3)(x2) the last two terms.  Check on your own by multinlying. 

Try It 7.1.47

Factor: x2+2x5x10

Answer

(x5)(x+2)

Try It 7.1.48

Factor: y2+4y7y28

Answer

(y+4)(y7)

MEDIA ACCESS ADDITIONAL ONLINE RESOURCES

Access these online resources for additional instruction and practice with greatest common factors (GFCs) and factoring by grouping.

  • Greatest Common Factor (GCF)
  • Factoring Out the GCF of a Binomial
  • Greatest Common Factor (GCF) of Polynomials

Glossary

factoring
Factoring is splitting a product into factors; in other words, it is the reverse process of multiplying.
greatest common factor
The greatest common factor is the largest expression that is a factor of two or more expressions is the greatest common factor (GCF).

This page titled 7.1: Greatest Common Factor and Factor by Grouping is shared under a CC BY license and was authored, remixed, and/or curated by OpenStax.

Support Center

How can we help?