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

12.1.1: Greatest Common Factor

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

Learning Objectives
  • Find the greatest common factor (GCF) of monomials.
  • Factor polynomials by factoring out the greatest common factor (GCF).
  • Factor expressions with four terms by grouping.

Introduction

Factors are the building blocks of multiplication. They are the numbers that you can multiply together to produce another number: 2 and 10 are factors of 20, as are 4 and 5 and 1 and 20. To factor a number is to rewrite it as a product.  20=45.

Likewise to factor a polynomial, you rewrite it as a product. Just as any integer can be written as the product of factors, so too can any monomial or polynomial be expressed as a product of factors. Factoring is very helpful in simplifying and solving equations using polynomials.

A prime factor is similar to a prime number: it has only itself and 1 as factors. The process of breaking a number down into its prime factors is called prime factorization.

Greatest Common Factor

Let’s first find the greatest common factor (GCF) of two whole numbers. The GCF of two numbers is the greatest number that is a factor of both of the numbers. Take the numbers 50 and 30.

 50=10530=103

Their greatest common factor is 10, since 10 is the greatest factor that both numbers have in common.

To find the GCF of greater numbers, you can factor each number to find their prime factors, identify the prime factors they have in common, and then multiply those together.

Example

Find the greatest common factor of 210 and 168.

Solution

 210=2357168=22237GCF=237

 GCF=42

Because the GCF is the product of the prime factors that these numbers have in common, you know that it is a factor of both numbers. (If you want to test this, go ahead and divide both 210 and 168 by 42: they are both evenly divisible by this number!)

Finding the greatest common factor in a set of monomials is not very different from finding the GCF of two whole numbers. The method remains the same: factor each monomial independently, look for common factors, and then multiply them to get the GCF.

Example

Find the greatest common factor of  25b3 and  10b2.

Solution

 25b3=55bbb10b2=52bbGCF=5bb

 GCF=5b2

The monomials have the factors 5,  b, and  b in common, which means their greatest common factor is  5bb, or simply  5b2.

Example

Find the greatest common factor of  81c3d and  45c2d2.

Solution

 81c3d=3333cccd45c2d2=335ccddGCF=33ccd

 GCF=9c2d

Exercise

Find the greatest common factor of  56xy and  16y3.

  1.  8
  2.  8y
  3.  16y
  4.  8xy3
Answer
  1. Incorrect. 8 is a common factor, but you need to account for the variable terms that the two monomials have in common as well. The correct answer is  8y.
  2. Correct. The expression  56xy can be factored as  2227xy, and  16y3 can be factored as  2222yyy. They have the factors  222 and  y in common. Multiplying them together will give you the GCF:  8y.
  3. Incorrect.  y is a common factor, but 16 is not: 56 is not evenly divisible by 16. Think of numbers that are factors of both 56 and 16. The correct answer is  8y.
  4. Incorrect. 8 is a common factor, but you need to account for the variable terms that the two monomials have in common as well. The entire term  xy3 is not a factor of either monomial. The correct answer is  8y.

Using the GCF to Factor Polynomials

When two or more monomials are combined (either added or subtracted), the resulting expression is called a polynomial. If you can find common factors for each term of the polynomial, then you can factor the polynomial.

As you look at the examples of simple polynomials below, try to identify factors that the terms of the polynomial have in common.

Polynomial Terms Common Factors
 6x+9  6x and 9  3 is a factor of 6x and 9
 a22a  a2 and 2a  a is a factor of a2 and 2a
 4c3+4c  4c3 and 4c  4 and c are factors of 4c3 and 4c

To factor a polynomial, first identify the greatest common factor of the terms. You can then use the distributive property to rewrite the polynomial in a factored form. Recall that the distributive property of multiplication over addition states that a product of a number and a sum is the same as the sum of the products.

Product of a number and a sum:  a(b+c)=ab+ac. You can say that “ a is being distributed over  b+c.”)

Sum of the products:  ab+ac=a(b+c). Here you can say that “ a is being factored out.”

In both cases, it is the distributive property that is being used.

Example

Factor  25b3+10b2.

Solution
 25b3=55bbb10b2=52bb Find the GCF. From a previous example, you found the GCF of  25b3 and  10b2 to be  5b2.
 GCF=5bb=5b225b3=5b25b10b2=5b22 Rewrite each term with the GCF as one factor.
 5b25b+5b22 Rewrite the polynomial using the factored terms in place of the original terms.
 5b2(5b+2) Factor out the  5b2.

 5b2(5b+2)

The factored form of the polynomial  25b3+10b2 is  5b2(5b+2). You can check this by doing the multiplication.  5b2(5b+2)=25b3+10b2.

Note that if you do not factor the greatest common factor at first, you can continue factoring, rather than start all over.

For example:

Factor out 5:  25b3+10b2=5(5b3+2b2)

Then factor out  b2:  5b2(5b+2)

Notice that you arrive at the same simplified form whether you factor out the GCF immediately or if you pull out factors individually.

Example

Factor  81c3d+45c2d2.

Solution
 339cccd Factor  81c3d.
 335ccdd Factor  45c2d2.
 33ccd=9c2d Find the GCF.
 81c3d=9c2d9c45c2d2=9c2d5d Rewrite each term as the product of the GCF and the remaining terms.
 9c2d9c+9c2d5d Rewrite the polynomial expression using the factored terms in place of the original terms.
 9c2d(9c+5d) Factor out  9c2d.

 9c2d(9c+5d)

Exercise

Factor  8a611a5.

  1.  88(a6a5)
  2.  8a(a53)
  3.  a5(a1)
  4.  a5(8a11)
Answer
  1. Incorrect. 88 is the least common multiple, not the greatest common factor, of 11 and 8. If  88(a6a5) were expanded it would become  88a688a5, not  8a611a5. The correct answer is  a5(8a11).
  2. Incorrect. 8 is not a common factor of 8 and 11. If  8a(a53) were expanded, it would become  8a624a, not  8a611a5. The correct answer is  a5(8a11).
  3. Incorrect.  a5 is a common factor, but the values 8 and 11 have been left out of this factorization. If  a5(a1) were expanded it would become  a6a5, not  8a611a5. The correct answer is  a5(8a11).
  4. Correct. The values 8 and 11 share no common factors, but the GCF of  a6 and  a5 is  a5. So you can factor out  a5 and rewrite the polynomial as  a5(8a11).

Factoring by Grouping

The distributive property allows you to factor out common factors. However, what do you do if the terms within the polynomial do not share any common factors?

If there is no common factor for all of the terms in the polynomial, another technique needs to be used to see if the polynomial can be factored. It involves organizing the polynomial in groups.

Example

Factor  4ab+12a+3b+9

Solution
 (4ab+12a)+(3b+9) Group terms into pairs.
 4ab=22ab12a=322a GCF =4a Find the GCF of the first pair of terms.
 (4ab+4a3)+(3b+9)4a(b+3)+(3b+9) Factor the GCF,  4a, out of the first group.
 3b=3b9=33 GCF =3 Find the GCF of the second pair of terms.
 4a(b+3)+(3b+33)4a(b+3)+3(b+3) Factor 3 out of the second group.
 4a(b+3)+3(b+3) Notice that the two terms have a common factor,  (b+3).
 (b+3)(4a+3) Factor out the common factor  (b+3) from the two terms.

 (b+3)(4a+3)

Notice that when you factor two terms, the result is a monomial times a polynomial. But the factored form of a four-term polynomial is the product of two binomials.

This process is called the grouping technique. Broken down into individual steps, here's how to do it (you can also follow this process in the example below).

  • Group the terms of the polynomial into pairs.
  • Factor each pair of terms (find the greatest common factor and then use the distributive property to pull out the GCF).
  • Look for common factors between the factored forms of the paired terms.
  • Factor the common polynomial out of the groups.

Let’s try factoring a few more four-term polynomials. Notice that in the example below, the first term is  x2, and  x is the only variable present.

Example

Factor  x2+2x+5x+10.

Solution
 (x2+2x)+(5x+10) Group terms of the polynomial into pairs.
 x(x+2)+(5x+10) Factor out the like factor,  x, from the first group.
 x(x+2)+5(x+2) Factor out the like factor,  5, from the second group.
 (x+2)(x+5)

Look for common factors between the factored forms of the paired terms. Here, the common factor is  (x+2).

Factor out the common factor,  (x+2), from both terms. The polynomial is now factored.

 (x+2)(x+5)

This method of factoring only works in some cases. Notice that both factors here contain the term.

Example

Factor  2x23x+8x12.

Solution
 (2x23x)+(8x12) Group terms into pairs.
 x(2x3)+4(2x3) Factor the common factor,  x, out of the first group and the common factor, 4, out of the second group.
 (x+4)(2x3) Factor out the common factor,  (2x3), from both terms.

 (x+4)(2x3)

Example

Factor  3x2+3x2x2.

Solution
 (3x2+3x)+(2x2) Group terms into pairs. Since subtraction is the same as addition of the opposite, you can write  2x2 as +(2x2)
 3x(x+1)+(2x2) Factor the common factor  3x out of first group.
 3x(x+1)2(x+1)

Factor the common factor of -2 out of the second group.

Notice what happens to the signs within the parentheses once -2 is factored out.

 (x+1)(3x2) Factor out the common factor,  (x+1), from both terms.

 (x+1)(3x2)

Exercise

Factor  10ab+5b+8a+4.

  1.  (2a+1)(5b+4)
  2.  (5b+2a)(4+1)
  3.  5(2ab+b+8a+4)
  4.  (4+2a)(5b+1)
Answer
  1. Correct. The polynomial  10ab+5b+8a+4 can be grouped as  (10ab+5b)+(8a+4). Pulling out common factors, you find:  5b(2a+1)+4(2a+1). Since  (2a+1) is a common factor, the factored form is  (2a+1)(5b+4).
  2. Incorrect. When factoring  5b out of  10ab and  5b, the remaining  2a and 1 must still be added and multiplied by the common factor  5b:  5b(2a+1). Similarly, factoring out the 4 from  8a+4 leaves  4(2a+1). Then you can factor  (2a+1) from the sum of those expressions to get the correct factorization,  (2a+1)(5b+4).
  3. Incorrect. The 5 is a common factor only for  10ab+5b, giving  5b(2a+1). The other pair,  8a+4, has a common factor of 4. Factoring them gives  4(2a+1). Since both expressions have a common factor of  2a+1, you can factor again to get  (2a+1)(5b+4).
  4. Incorrect. You correctly identified  5b as a factor of one pair, leaving  2a and 1, and 4 as the factor of the other pair, also leaving  2a and 1. However, this gives  5b(2a+1)+4(2a+1). If you had  5bx+4x, you could factor out the  x to get  x(5b+4), so factoring out the  (2a+1) gives  (2a+1)(5b+4).

Sometimes, you will encounter polynomials that, despite your best efforts, cannot be factored into the product of two binomials.

Example

Factor  7x221x+5x5.

Solution
 (7x221x)+(5x5) Group terms into pairs.
 7x(x3)+(5x5) Factor the common factor  7x out of the first group.
 7x(x3)+5(x1) Factor the common factor 5 out of the second group.
 7x(x3)+5(x1) The two groups  7x(x3) and  5(x1) do not have any common factors, so this polynomial cannot be factored any further.

Cannot be factored

In the example above, each pair can be factored, but then there is no common factor between the pairs!

Summary

A whole number, monomial, or polynomial can be expressed as a product of factors. You can use some of the same logic that you apply to factoring integers to factoring polynomials. To factor a polynomial, first identify the greatest common factor of the terms, and then apply the distributive property to rewrite the expression. Once a polynomial in  ab+ac form has been rewritten as  a(b+c), where  a is the GCF, the polynomial is in factored form.

When factoring a four-term polynomial using grouping, find the common factor of pairs of terms rather than the whole polynomial. Use the distributive property to rewrite the grouped terms as the common factor times a binomial. Finally, pull any common binomials out of the factored groups. The fully factored polynomial will be the product of two binomials.


This page titled 12.1.1: Greatest Common Factor is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by The NROC Project via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?