CHAPTER 8 Polynomials

8.4 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

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

\begin{array}{c}54=18\cdot 3\\ 36=18\cdot 2\end{array}

TRY IT 1.1

Find the GCF of 48 and 80.

Show answer

16

TRY IT 1.2

Find the GCF of 18 and 40.

Show 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. Factor each coefficient into primes. Write all variables with exponents in expanded form.
  2. List all factors—matching common factors in a column. In each column, circle the common factors.
  3. Bring down the common factors that all expressions share.
  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 2

Find the greatest common factor of 27{x}^{3} and 18{x}^{4}.

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 27{x}^{3} and 18{x}^{4} is 9{x}^{3}.

TRY IT 2.1

Find the GCF: 12{x}^{2},18{x}^{3}.

Show answer

3{x}^{2}

TRY IT 2.2

Find the GCF: 16{y}^{2},24{y}^{3}.

Show answer

8{y}^{2}

EXAMPLE 3

Find the GCF of 4{x}^{2}y,6x{y}^{3}.

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 4{x}^{2}y and 6x{y}^{3} is 2\mathrm{xy}.

TRY IT 3.1

Find the GCF: 6a{b}^{4},8{a}^{2}b.

Show answer

2ab

TRY IT 3.2

Find the GCF: 9{m}^{5}{n}^{2},12{m}^{3}n.

Show answer

3{m}^{3}n

EXAMPLE 4

Find the GCF of: 21{x}^{3},9{x}^{2},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 21{x}^{3}, 9{x}^{2} and 15x is 3x.

TRY IT 4.1

Find the greatest common factor: 25{m}^{4},35{m}^{3},20{m}^{2}.

Show answer

5{m}^{2}

TRY IT 4.2

Find the greatest common factor: 14{x}^{3},70{x}^{2},105x.

Show 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\cdot 6 or 3\cdot 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:

\begin{array}{cc} 2\left(x+7\right)\qquad & \quad \text{factors}\\2\cdot x+2\cdot 7 & \\ 2x+14 \qquad & \quad \text{product}\end{array}

Now we will start with a product, like 2x+14, and end with its factors, 2\left(x+7\right). 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

\begin{array}{ccc}a\left(b+c\right)=ab+ac\qquad \quad &  \text{and}\qquad \quad & ab+ac=a\left(b+c\right)\end{array}

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 5

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 5.1

Factor: 6a+24.

Show answer

6\left(a+4\right)

TRY IT 5.2

Factor: 2b+14.

Show answer

2\left(b+7\right)

HOW TO:

Factor the greatest common factor from a polynomial.

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

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 mulitplying the factors to get the orginal polynomial.
5\left(a+1\right)
5\cdot a+5\cdot 1
5a+5\checkmark

TRY IT 6.1

Factor: 14x+14.

Show answer

14\left(x+1\right)

TRY IT 6.1

Factor: 12p+12.

Show answer

12\left(p+1\right)

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

Factor: 12x-60.

Solution
Find the GCF of 12x and 60. .
.
Rewrite each term as a product using the GCF. .
Factor the GCF. .
Check by mulitplying the factors.
12\left(x-5\right)
12\cdot x-12\cdot 5
12x-60\checkmark

TRY IT 7.1

Factor: 18u-36.

Show answer

8\left(u-2\right)

TRY IT 7.2

Factor: 30y-60.

Show answer

30\left(y-2\right)

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

EXAMPLE 8

Factor: 4{y}^{2}+24y+28.

Solution

We start by finding the GCF of all three terms.

Find the GCF of 4{y}^{2}, 24y and 28. .
.
Rewrite each term as a product using the GCF. .
Factor the GCF. .
Check by mulitplying.
4\left({y}^{2}+6y+7\right)
4\cdot {y}^{2}+4\cdot 6y+4\cdot 7
4{y}^{2}+24y+28\checkmark

TRY IT 8.1

Factor: 5{x}^{2}-25x+15.

Show answer

5\left({x}^{2}-5x+3\right)

TRY IT 8.2

Factor: 3{y}^{2}-12y+27.

Show answer

3\left({y}^{2}-4y+9\right)

EXAMPLE 9

Factor: 5{x}^{3}-25{x}^{2}.

Solution
Find the GCF of 5{x}^{3} and 25{x}^{2}. .
.
Rewrite each term. .
Factor the GCF. .
Check.
5{x}^{2}\left(x-5\right)
5{x}^{2}\cdot x-5{x}^{2}\cdot 5
5{x}^{3}-25{x}^{2}\checkmark

 

TRY IT 9.1

Factor: 2{x}^{3}+12{x}^{2}.

Show answer

2{x}^{2}\left(x+6\right)

TRY IT 9.2

Factor: 6{y}^{3}-15{y}^{2}.

Show answer

3{y}^{2}\left(2y-5\right)

EXAMPLE 10

Factor: 21{x}^{3}-9{x}^{2}+15x.

Solution

In a previous example we found the GCF of 21{x}^{3},9{x}^{2},15x to be 3x.

.
Rewrite each term using the GCF, 3x. .
Factor the GCF. .
Check.
3x\left(7{x}^{2}-3x+5\right)
3x\cdot 7{x}^{2}-3x\cdot 3x+3x\cdot 5
21{x}^{3}-9{x}^{2}+15x\checkmark

TRY IT 10.1

Factor: 20{x}^{3}-10{x}^{2}+14x.

Show answer

2x\left(10{x}^{2}-5x+7\right)

TRY IT 10.2

Factor: 24{y}^{3}-12{y}^{2}-20y.

Show answer

4y\left(6{y}^{2}-3y-5\right)

EXAMPLE 11

Factor: 8{m}^{3}-12{m}^{2}n+20m{n}^{2}.

Solution
Find the GCF of 8{m}^{3}, 12{m}^{2}n, 20m{n}^{2}. .
.
Rewrite each term. .
Factor the GCF. .
Check.
4m\left(2{m}^{2}-3mn+5{n}^{2}\right)
4m\cdot 2{m}^{2}-4m\cdot 3mn+4m\cdot 5{n}^{2}
8{m}^{3}-12{m}^{2}n+20m{n}^{2}\checkmark

TRY IT 11.1

Factor: 9x{y}^{2}+6{x}^{2}{y}^{2}+21{y}^{3}.

Show answer

3{y}^{2}\left(3x+2{x}^{2}+7y\right)

TRY IT 11.2

Factor: 3{p}^{3}-6{p}^{2}q+9p{q}^{3}.

Show answer

3p\left({p}^{2}-2pq+3{q}^{2}\right)

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

EXAMPLE 12

Factor: -8y-24.

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\left(y+3\right)
-8\cdot y+\left(-8\right)\cdot 3
-8y-24\checkmark

TRY IT 12.1

Factor: -16z-64.

Show answer

-8\left(8z+8\right)

TRY IT 12.2

Factor: -9y-27.

Show answer

-9\left(y+3\right)

EXAMPLE 13

Factor: -6{a}^{2}+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\left(a-6\right)
-6a\cdot a+\left(-6a\right)\left(-6\right)
-6{a}^{2}+36a\checkmark

TRY IT 13.1

Factor: -4{b}^{2}+16b.

Show answer

-4b\left(b-4\right)

TRY IT 13.2

Factor: -7{a}^{2}+21a.

Show answer

-7a\left(a-3\right)

EXAMPLE 14

Factor: 5q\left(q+7\right)-6\left(q+7\right).

Solution

The GCF is the binomial q+7.

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

TRY IT 14.1

Factor: 4m\left(m+3\right)-7\left(m+3\right).

Show answer

\left(m+3\right)\left(4m-7\right)

TRY IT 14.2

Factor: 8n\left(n-4\right)+5\left(n-4\right).

Show answer

\left(n-4\right)\left(8n+5\right)

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 15

How to Factor by Grouping

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 15.1

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

Show answer

\left(x+8\right)\left(y+3\right)

TRY IT 15.2

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

Show answer

\left(a+7\right)\left(b+8\right)

HOW TO:

Factor by grouping.

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

EXAMPLE 16

Factor: {x}^{2}+3x-2x-6.

Solution

There is no GCF in all four terms. {x}^{2}+3x-2x-6
Separate into two parts. \underbrace{{x}^{2}+3x}\underbrace{-2x-6}
Factor the GCF from both parts. Be careful with the signs when factoring the GCF from the last two terms. \begin{array}{c}x\left(x+3\right)-2\left(x+3\right)\\  \left(x+3\right)\left(x-2\right)\end{array}
Check on your own by multiplying.

TRY IT 16.1

Factor: {x}^{2}+2x-5x-10.

Show answer

\left(x-5\right)\left(x+2\right)

TRY IT 16.2

Factor: {y}^{2}+4y-7y-28.

Show answer

\left(y+4\right)\left(y-7\right)

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

Key Concepts

  • Finding the Greatest Common Factor (GCF): To find the GCF of two expressions:
    1. Factor each coefficient into primes. Write all variables with exponents in expanded form.
    2. List all factors—matching common factors in a column. In each column, circle the common factors.
    3. Bring down the common factors that all expressions share.
    4. Multiply the factors.
  • Factor the Greatest Common Factor from a Polynomial: To factor a greatest common factor from a polynomial:
    1. Find the GCF of all the terms of the polynomial.
    2. Rewrite each term as a product using the GCF.
    3. Use the ‘reverse’ Distributive Property to factor the expression.
    4. Check by multiplying the factors.
  • Factor by Grouping: To factor a polynomial with 4 four or more terms
    1. Group terms with common factors.
    2. Factor out the common factor in each group.
    3. Factor the common factor from the expression.
    4. Check by multiplying the factors.

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

Type your textbox content here.

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. 3x,10{x}^{2} 8. 21{b}^{2},14b
9. 8{w}^{2},24{w}^{3} 10. 30{x}^{2},18{x}^{3}
11. 10{p}^{3}q,12p{q}^{2} 12. 8{a}^{2}{b}^{3},10a{b}^{2}
13. 12{m}^{2}{n}^{3},30{m}^{5}{n}^{3} 14. 28{x}^{2}{y}^{4},42{x}^{4}{y}^{4}
15. 10{a}^{3},12{a}^{2},14a 16. 20{y}^{3},28{y}^{2},40y
17. 35{x}^{3},10{x}^{4},5{x}^{5} 18. 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. 4x+20 20. 8y+16
21. 6m+9 22. 14p+35
23. 9q+9 24. 7r+7
25. 8m-8 26. 4n-4
27. 9n-63 28. 45b-18
29. 3{x}^{2}+6x-9 30. 4{y}^{2}+8y-4
31. 8{p}^{2}+4p+2 32. 10{q}^{2}+14q+20
33. 8{y}^{3}+16{y}^{2} 34. 12{x}^{3}-10x
35. 5{x}^{3}-15{x}^{2}+20x 36. 8{m}^{2}-40m+16
37. 12x{y}^{2}+18{x}^{2}{y}^{2}-30{y}^{3} 38. 21p{q}^{2}+35{p}^{2}{q}^{2}-28{q}^{3}
39. -2x-4 40 -3b+12
41. 5x\left(x+1\right)+3\left(x+1\right) 42. 2x\left(x-1\right)+9\left(x-1\right)
43. 3b\left(b-2\right)-13\left(b-2\right) 44. 6m\left(m-5\right)-7\left(m-5\right)

Factor by Grouping

In the following exercises, factor by grouping.

45. xy+2y+3x+6 46. mn+4n+6m+24
47. uv-9u+2v-18 48. pq-10p+8q-80
49. {b}^{2}+5b-4b-20 50. {m}^{2}+6m-12m-72
51. {p}^{2}+4p-9p-36 52. {x}^{2}+5x-3x-15

Mixed Practice

In the following exercises, factor.

53. -20x-10 54. 5{x}^{3}-{x}^{2}+x
55. 3{x}^{3}-7{x}^{2}+6x-14 56. {x}^{3}+{x}^{2}-x-1
57. {x}^{2}+xy+5x+5y 58. 5{x}^{3}-3{x}^{2}-5x-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 {w}^{2}-6w, where 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 -16{t}^{2}+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 {y}^{4},{y}^{5}, and {y}^{10}? Write a general rule that tells you how to find the GCF of {y}^{a},{y}^{b}, and {y}^{c}.

Answers:

1. 2 3. 18
5. 10 7. x
9. 8{w}^{2} 11. 2pq
13. 6{m}^{2}{n}^{3} 15. 2a
17. 5{x}^{3} 19. 4\left(x+5\right)
21. 3\left(2m+3\right) 23. 9\left(q+1\right)
25. 8\left(m-1\right) 27. 9\left(n-7\right)
29. 3\left({x}^{2}+2x-3\right) 31. 2\left(4{p}^{2}+2p+1\right)
33. 8{y}^{2}\left(y+2\right) 35. 5x\left({x}^{2}-3x+4\right)
37. 6{y}^{2}\left(2x+3{x}^{2}-5y\right) 39. -2\left(x+4\right)
41. \left(x+1\right)\left(5x+3\right) 43. \left(b-2\right)\left(3b-13\right)
45. \left(y+3\right)\left(x+2\right) 47. \left(u+2\right)\left(v-9\right)
49. \left(b-4\right)\left(b+5\right) 51. \left(p-9\right)\left(p+4\right)
53. -10\left(2x+1\right) 55. \left({x}^{2}+2\right)\left(3x-7\right)
57. \left(x+y\right)\left(x+5\right) 59. w\left(w-6\right)
61. Answers will vary.

Attributions

This chapter has been adapted from “Greatest Common Factor and Factor by Grouping” in Elementary Algebra (OpenStax) by Lynn Marecek and MaryAnne Anthony-Smith, which is under a CC BY 4.0 Licence. Adapted by Izabela Mazur. See the Copyright page for more information.

License

Icon for the Creative Commons Attribution 4.0 International License

Introductory Algebra Copyright © 2021 by Izabela Mazur is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book