Skip to ContentGo to accessibility pageKeyboard shortcuts menu
OpenStax Logo
Elementary Algebra 2e

7.1 Greatest Common Factor and Factor by Grouping

Elementary Algebra 2e7.1 Greatest Common Factor and Factor by Grouping

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 7.1

Before you get started, take this readiness quiz.

Factor 56 into primes.
If you missed this problem, review Example 1.7.

Be Prepared 7.2

Find the least common multiple of 18 and 24.
If you missed this problem, review Example 1.10.

Be Prepared 7.3

Simplify −3(6a+11)−3(6a+11).
If you missed this problem, review Example 1.135.

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

How to Find the Greatest Common Factor of Two or More Expressions

Find the GCF of 54 and 36.

Try It 7.1

Find the GCF of 48 and 80.

Try It 7.2

Find the GCF of 18 and 40.

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.2

Find the greatest common factor of 27x3and18x427x3and18x4.

Try It 7.3

Find the GCF: 12x2,18x312x2,18x3.

Try It 7.4

Find the GCF: 16y2,24y316y2,24y3.

Example 7.3

Find the GCF of 4x2y,6xy34x2y,6xy3.

Try It 7.5

Find the GCF: 6ab4,8a2b6ab4,8a2b.

Try It 7.6

Find the GCF: 9m5n2,12m3n9m5n2,12m3n.

Example 7.4

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

Try It 7.7

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

Try It 7.8

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

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)factors2·x+2·72x+14product2(x+7)factors2·x+2·72x+14product

Now we will start with a product, like 2x+142x+14, and end with its factors, 2(x+7)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,ca,b,c are real numbers, then

a(b+c)=ab+acandab+ac=a(b+c)a(b+c)=ab+acandab+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.5

How to Factor the Greatest Common Factor from a Polynomial

Factor: 4x+124x+12.

Try It 7.9

Factor: 6a+246a+24.

Try It 7.10

Factor: 2b+142b+14.

How To

Factor the greatest common factor from a polynomial.

  1. Step 1. Find the GCF of all the terms of the polynomial.
  2. Step 2. Rewrite each term as a product using the GCF.
  3. Step 3. Use the “reverse” Distributive Property to factor the expression.
  4. 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.6

Factor: 5a+55a+5.

Try It 7.11

Factor: 14x+1414x+14.

Try It 7.12

Factor: 12p+1212p+12.

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

Factor: 12x6012x60.

Try It 7.13

Factor: 18u3618u36.

Try It 7.14

Factor: 30y6030y60.

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

Example 7.8

Factor: 4y2+24y+284y2+24y+28.

Try It 7.15

Factor: 5x225x+155x225x+15.

Try It 7.16

Factor: 3y212y+273y212y+27.

Example 7.9

Factor: 5x325x25x325x2.

Try It 7.17

Factor: 2x3+12x22x3+12x2.

Try It 7.18

Factor: 6y315y26y315y2.

Example 7.10

Factor: 21x39x2+15x21x39x2+15x.

Try It 7.19

Factor: 20x310x2+14x20x310x2+14x.

Try It 7.20

Factor: 24y312y220y24y312y220y.

Example 7.11

Factor: 8m312m2n+20mn28m312m2n+20mn2.

Try It 7.21

Factor: 9xy2+6x2y2+21y39xy2+6x2y2+21y3.

Try It 7.22

Factor: 3p36p2q+9pq33p36p2q+9pq3.

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

Example 7.12

Factor: −8y24−8y24.

Try It 7.23

Factor: −16z64−16z64.

Try It 7.24

Factor: −9y27−9y27.

Example 7.13

Factor: −6a2+36a−6a2+36a.

Try It 7.25

Factor: −4b2+16b−4b2+16b.

Try It 7.26

Factor: −7a2+21a−7a2+21a.

Example 7.14

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

Try It 7.27

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

Try It 7.28

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

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.15

How to Factor by Grouping

Factor: xy+3y+2x+6xy+3y+2x+6.

Try It 7.29

Factor: xy+8y+3x+24xy+8y+3x+24.

Try It 7.30

Factor: ab+7b+8a+56ab+7b+8a+56.

How To

Factor by grouping.

  1. Step 1. Group terms with common factors.
  2. Step 2. Factor out the common factor in each group.
  3. Step 3. Factor the common factor from the expression.
  4. Step 4. Check by multiplying the factors.

Example 7.16

Factor: x2+3x2x6x2+3x2x6.

Try It 7.31

Factor: x2+2x5x10x2+2x5x10.

Try It 7.32

Factor: y2+4y7y28y2+4y7y28.

Media

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

Section 7.1 Exercises

Practice Makes Perfect

Find the Greatest Common Factor of Two or More Expressions

In the following exercises, find the greatest common factor.

1.

8, 18

2.

24, 40

3.

72, 162

4.

150, 275

5.

10a, 50

6.

5b, 30

7.

3 x , 10 x 2 3 x , 10 x 2

8.

21 b 2 , 14 b 21 b 2 , 14 b

9.

8 w 2 , 24 w 3 8 w 2 , 24 w 3

10.

30 x 2 , 18 x 3 30 x 2 , 18 x 3

11.

10 p 3 q , 12 p q 2 10 p 3 q , 12 p q 2

12.

8 a 2 b 3 , 10 a b 2 8 a 2 b 3 , 10 a b 2

13.

12 m 2 n 3 , 30 m 5 n 3 12 m 2 n 3 , 30 m 5 n 3

14.

28 x 2 y 4 , 42 x 4 y 4 28 x 2 y 4 , 42 x 4 y 4

15.

10 a 3 , 12 a 2 , 14 a 10 a 3 , 12 a 2 , 14 a

16.

20 y 3 , 28 y 2 , 40 y 20 y 3 , 28 y 2 , 40 y

17.

35 x 3 , 10 x 4 , 5 x 5 35 x 3 , 10 x 4 , 5 x 5

18.

27 p 2 , 45 p 3 , 9 p 4 27 p 2 , 45 p 3 , 9 p 4

Factor the Greatest Common Factor from a Polynomial

In the following exercises, factor the greatest common factor from each polynomial.

19.

4 x + 20 4 x + 20

20.

8 y + 16 8 y + 16

21.

6 m + 9 6 m + 9

22.

14 p + 35 14 p + 35

23.

9 q + 9 9 q + 9

24.

7 r + 7 7 r + 7

25.

8 m 8 8 m 8

26.

4 n 4 4 n 4

27.

9 n 63 9 n 63

28.

45 b 18 45 b 18

29.

3 x 2 + 6 x 9 3 x 2 + 6 x 9

30.

4 y 2 + 8 y 4 4 y 2 + 8 y 4

31.

8 p 2 + 4 p + 2 8 p 2 + 4 p + 2

32.

10 q 2 + 14 q + 20 10 q 2 + 14 q + 20

33.

8 y 3 + 16 y 2 8 y 3 + 16 y 2

34.

12 x 3 10 x 12 x 3 10 x

35.

5 x 3 15 x 2 + 20 x 5 x 3 15 x 2 + 20 x

36.

8 m 2 40 m + 16 8 m 2 40 m + 16

37.

12 x y 2 + 18 x 2 y 2 30 y 3 12 x y 2 + 18 x 2 y 2 30 y 3

38.

21 p q 2 + 35 p 2 q 2 28 q 3 21 p q 2 + 35 p 2 q 2 28 q 3

39.

−2 x 4 −2 x 4

40.

−3 b + 12 −3 b + 12

41.

5 x ( x + 1 ) + 3 ( x + 1 ) 5 x ( x + 1 ) + 3 ( x + 1 )

42.

2 x ( x 1 ) + 9 ( x 1 ) 2 x ( x 1 ) + 9 ( x 1 )

43.

3 b ( b 2 ) 13 ( b 2 ) 3 b ( b 2 ) 13 ( b 2 )

44.

6 m ( m 5 ) 7 ( m 5 ) 6 m ( m 5 ) 7 ( m 5 )

Factor by Grouping

In the following exercises, factor by grouping.

45.

x y + 2 y + 3 x + 6 x y + 2 y + 3 x + 6

46.

m n + 4 n + 6 m + 24 m n + 4 n + 6 m + 24

47.

u v 9 u + 2 v 18 u v 9 u + 2 v 18

48.

p q 10 p + 8 q 80 p q 10 p + 8 q 80

49.

b 2 + 5 b 4 b 20 b 2 + 5 b 4 b 20

50.

m 2 + 6 m 12 m 72 m 2 + 6 m 12 m 72

51.

p 2 + 4 p 9 p 36 p 2 + 4 p 9 p 36

52.

x 2 + 5 x 3 x 15 x 2 + 5 x 3 x 15

Mixed Practice

In the following exercises, factor.

53.

−20 x 10 −20 x 10

54.

5 x 3 x 2 + x 5 x 3 x 2 + x

55.

3 x 3 7 x 2 + 6 x 14 3 x 3 7 x 2 + 6 x 14

56.

x 3 + x 2 x 1 x 3 + x 2 x 1

57.

x 2 + x y + 5 x + 5 y x 2 + x y + 5 x + 5 y

58.

5 x 3 + 3 x 2 5 x 3 5 x 3 + 3 x 2 5 x 3

Everyday Math

59.

Area of a rectangle The area of a rectangle with length 6 less than the width is given by the expression w26ww26w, where w=w= width. Factor the greatest common factor from the polynomial.

60.

Height of a baseball The height of a baseball t seconds after it is hit is given by the expression −16t2+80t+4−16t2+80t+4. Factor the greatest common factor from the polynomial.

Writing Exercises

61.

The greatest common factor of 36 and 60 is 12. Explain what this means.

62.

What is the GCF of y4,y5,andy10y4,y5,andy10? Write a general rule that tells you how to find the GCF of ya,yb,andycya,yb,andyc.

Self Check

After completing the exercises, use this checklist to evaluate your mastery of the objectives of this section.

This table has the following statements all to be preceded by “I can…”. The first is “find the greatest common factor of two or more expressions”. The second is “factor the greatest common factor from a polynomial”. The third is “factor by grouping”. In the columns beside these statements are the headers, “confidently”, “with some help”, and “no-I don’t get it!”.

If most of your checks were:

…confidently. Congratulations! You have achieved your goals in this section! Reflect on the study skills you used so that you can continue to use them. What did you do to become confident of your ability to do these things? Be specific!

…with some help. This must be addressed quickly as topics you do not master become potholes in your road to success. Math is sequential—every topic builds upon previous work. It is important to make sure you have a strong foundation before you move on. Whom can you ask for help? Your fellow classmates and instructor are good resources. Is there a place on campus where math tutors are available? Can your study skills be improved?

…no - I don’t get it! This is critical and you must not ignore it. You need to get help immediately or you will quickly be overwhelmed. See your instructor as soon as possible to discuss your situation. Together you can come up with a plan to get you the help you need.

Order a print copy

As an Amazon Associate we earn from qualifying purchases.

Citation/Attribution

This book may not be used in the training of large language models or otherwise be ingested into large language models or generative AI offerings without OpenStax's permission.

Want to cite, share, or modify this book? This book uses the Creative Commons Attribution License and you must attribute OpenStax.

Attribution information
  • If you are redistributing all or part of this book in a print format, then you must include on every physical page the following attribution:
    Access for free at https://openstax.org/books/elementary-algebra-2e/pages/1-introduction
  • If you are redistributing all or part of this book in a digital format, then you must include on every digital page view the following attribution:
    Access for free at https://openstax.org/books/elementary-algebra-2e/pages/1-introduction
Citation information

© Jan 23, 2024 OpenStax. Textbook content produced by OpenStax is licensed under a Creative Commons Attribution License . The OpenStax name, OpenStax logo, OpenStax book covers, OpenStax CNX name, and OpenStax CNX logo are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.