Elementary Algebra 2e — Original English

Greatest Common Factor and 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.

First we’ll find the GCF of two numbers.

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

Find the GCF of 54 and 36.

Solution

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=18·336=18·2

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

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

Find the greatest common factor of 27x3and18x4.

Solution

Solution

Factor each coefficient into primes and write the variables with exponents in expanded form. Circle the common factors in each column. Prime factorization of 27x³ and 18x⁴. Common factors (3x3 and x³ ) are circled in purple, illustrating how to find the Greatest Common Factor (GCF) for algebraic expressions.
Bring down the common factors. The image shows a mathematical equation on a white background, displaying GCF = 3 * 3 * X * X * X. The text is in a dark gray, sans-serif font.
Multiply the factors. The image displays a mathematical equation on a plain white background, stating 'GCF = 9x^3', indicating the Greatest Common Factor equals 9x cubed.
The GCF of 27x3 and 18x4 is 9x3.

Find the GCF of 4x2y,6xy3.

Solution

Solution

Factor each coefficient into primes and write the variables with exponents in expanded form. Circle the common factors in each column. Mathematical expressions 4x^2y and 6xy^3 are factored into their prime and variable components, with common factors 2, x, and y highlighted by magenta ovals.
Bring down the common factors. A mathematical equation showing GCF (Greatest Common Factor) is equal to the product of 2, x, and y, written as GCF = 2  X  Y.
Multiply the factors. The image displays a mathematical equation: GCF = 2xy, in black text against a plain white background. GCF stands for Greatest Common Factor, and 2xy is an algebraic expression.
The GCF of 4x2y and 6xy3 is 2xy.

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

Solution

Solution

Factor each coefficient into primes and write the variables with exponents in expanded form. Circle the common factors in each column. Prime factorization of 21x^3, 9x^2, and 15x is shown, with common factors '3' and 'x' circled in purple, illustrating a step in finding the Greatest Common Factor (GCF).
Bring down the common factors. The image shows a mathematical expression
Multiply the factors. The text 'GCF = 3x' is displayed on a white background.
The GCF of 21x3, 9x2 and 15x is 3x.

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), 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+14product

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

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!

How to Factor the Greatest Common Factor from a Polynomial

Factor: 4x+12.

Solution

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.

Factor: 5a+5.

Solution

Solution

Find the GCF of 5a and 5. This image demonstrates finding the Greatest Common Factor (GCF) of 5a and 5. It shows that 5 is the common factor, leading to GCF = 5.


The mathematical expression '5a + 5' is displayed, showing the sum of five times a variable 'a' and the number five.

Rewrite each term as a product using the GCF. A mathematical expression showing 5 multiplied by 'a' plus 5 multiplied by 1. This illustrates the distributive property, where 5 is a common factor.
Use the Distributive Property "in reverse" to factor the GCF. The mathematical expression '5(a+1)' is displayed on a white background.
Check by mulitplying the factors to get the orginal polynomial.
5(a+1)
5a+51
5a+5

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

Factor: 12x60.

Solution

Solution

Find the GCF of 12x and 60. Finding the Greatest Common Factor (GCF) of 12x and 60 by breaking down each term into its prime factors and identifying common ones, resulting in a GCF of 12.


A mathematical expression '12x - 60' is displayed in a digital font against a plain white background. It features the numbers 12 and 60, the variable x, and a minus sign.

Rewrite each term as a product using the GCF. An algebraic expression is displayed, featuring 12 multiplied by x, minus 12 multiplied by 5, highlighting the common factor of 12 in a subtraction operation.
Factor the GCF. The image displays the mathematical expression '12(x-5)' against a plain white background. The numbers and symbols are rendered in a clear, dark font, indicating a algebraic expression likely from a textbook or worksheet.
Check by mulitplying the factors.
12(x5)
12x125
12x60

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

Factor: 4y2+24y+28.

Solution

Solution

We start by finding the GCF of all three terms.

Find the GCF of 4y2, 24y and 28. This image demonstrates finding the GCF of 4y², 24y, and 28 by prime factorization. Common factors (two '2's) are circled, leading to GCF = 2 * 2 = 4.


The mathematical expression '4y^2 + 24y + 28' is displayed in black text against a white background.

Rewrite each term as a product using the GCF. The mathematical expression 4 * y^2 + 4 * 6y + 4 * 7 is presented, with the common factor '4' highlighted in red in each of the three terms.
Factor the GCF. The image shows the algebraic expression 4(y^2 + 6y + 7).
Check by mulitplying.
4(y2+6y+7)
4y2+46y+47
4y2+24y+28

Factor: 5x325x2.

Solution

Solution

Find the GCF of 5x3 and 25x2. An image demonstrating how to find the Greatest Common Factor (GCF) of 5x^3 and 25x^2 by factoring each term and identifying common factors, resulting in GCF = 5x^2.


The image displays the mathematical expression 5x^3 - 25x^2, written in black text on a white background, representing a polynomial expression.

Rewrite each term. A mathematical expression 5x^2 * x - 5x^2 * 5 is displayed on a white background, with numbers and the first x in red, and the multiplication dots, second x, minus sign, and second 5 in black.
Factor the GCF. The mathematical expression 5x^2(x-5) is displayed against a white background.
Check.
5x2(x5)
5x2x5x25
5x325x2

Factor: 21x39x2+15x.

Solution

Solution

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

A mathematical expression reads 21x^3 - 9x^2 + 15x, featuring polynomial terms with coefficients, variables, and exponents.
Rewrite each term using the GCF, 3x. A mathematical expression featuring three terms separated by subtraction and addition, each term having '3x' as a common factor: 3x * 7x^2 - 3x * 3x + 3x * 5.
Factor the GCF. A mathematical expression showing 3x multiplied by the quantity 7x squared minus 3x plus 5, indicating a distribution operation in algebra.
Check.
3x(7x23x+5)
3x7x23x3x+3x5
21x39x2+15x

Factor: 8m312m2n+20mn2.

Solution

Solution

Find the GCF of 8m3, 12m2n, 20mn2. Finding the GCF of 8m^3, 12m^2n, and 20mn^2. The prime factorization method is used to identify common factors (2, 2, m), leading to a GCF of 4m.


A mathematical expression reads 8m to the power of 3 minus 12m squared n plus 20mn squared, displayed in a clean, white background.

Rewrite each term. A mathematical expression featuring the algebraic terms 4m multiplied by 2m^2, minus 4m multiplied by 3mn, plus 4m multiplied by 5n^2, illustrating polynomial expansion.
Factor the GCF. A mathematical expression is displayed, showing 4m multiplied by the quantity (2m^2 - 3mn + 5n^2). This represents a polynomial multiplication problem.
Check.
4m(2m23mn+5n2)
4m2m24m3mn+4m5n2
8m312m2n+20mn2

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

Factor: −8y24.

Solution

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.

Prime factorization method for determining the Greatest Common Factor (GCF) of 8y and 24, resulting in 8.

Rewrite each term using the GCF. A mathematical expression showing '-8y - 24' in a clean, legible font on a white background, representing a linear algebraic expression.
A mathematical expression showing -8 multiplied by y, added to -8 multiplied by 3, which is -8 * y + (-8) * 3.
Factor the GCF. A mathematical expression showing -8 multiplied by the sum of y and 3, written as -8(y + 3).
Check.
−8(y+3)
−8y+(−8)3
−8y24

Factor: −6a2+36a.

Solution

Solution

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

Since the leading coefficient is negative, the GCF is negative, −6a.

Calculating the Greatest Common Factor (GCF) of 6a^2 and 36a by prime factorization, highlighting common factors 2, 3, and a, resulting in a GCF of 6a.
The image displays the mathematical expression -6a^2 + 36a, featuring a quadratic term with a negative coefficient and a linear term with a positive coefficient.

Rewrite each term using the GCF. A mathematical expression reads -6a multiplied by a, minus the quantity -6a, multiplied by 6.
Factor the GCF. A mathematical expression shows -6a multiplied by the quantity (a - 6), written as -6a(a-6).
Check.
−6a(a6)
−6aa+(−6a)(−6)
−6a2+36a

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

Solution

Solution

The GCF is the binomial q+7.

A mathematical expression displays 5q(q + 7) - 6(q + 7). The 'q + 7' term is highlighted in red, indicating it's a common factor in both parts of the expression, suggesting a factorization step.
Factor the GCF, (q + 7). A mathematical expression showing the product of two binomials: (q + 7)(5q - 6).
Check on your own by multiplying.

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

How to Factor by Grouping

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

Solution

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.

Factor: x2+3x2x6.

Solution

Solution

There is no GCF in all four terms.x2+3x−2x6Separate into two parts.x2+3x−2x6Factor the GCF from both parts. Be carefulwith the signs when factoring the GCF fromthe last two terms.x(x+3)2(x+3)(x+3)(x2)Check on your own by multiplying.

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 as in Example 2.
  • 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 as in Example 5.
  • 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 as in Example 15.

Practice Makes Perfect

Find the Greatest Common Factor of Two or More Expressions

In the following exercises, find the greatest common factor.

8, 18

Solution

2

24, 40

72, 162

Solution

18

150, 275

10a, 50

Solution

10

5b, 30

3x,10x2

Solution

x

21b2,14b

8w2,24w3

Solution

8w2

30x2,18x3

10p3q,12pq2

Solution

2pq

8a2b3,10ab2

12m2n3,30m5n3

Solution

6m2n3

28x2y4,42x4y4

10a3,12a2,14a

Solution

2a

20y3,28y2,40y

35x3,10x4,5x5

Solution

5x3

27p2,45p3,9p4

Factor the Greatest Common Factor from a Polynomial

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

4x+20

Solution

4(x+5)

8y+16

6m+9

Solution

3(2m+3)

14p+35

9q+9

Solution

9(q+1)

7r+7

8m8

Solution

8(m1)

4n4

9n63

Solution

9(n7)

45b18

3x2+6x9

Solution

3(x2+2x3)

4y2+8y4

8p2+4p+2

Solution

2(4p2+2p+1)

10q2+14q+20

8y3+16y2

Solution

8y2(y+2)

12x310x

5x315x2+20x

Solution

5x(x23x+4)

8m240m+16

12xy2+18x2y230y3

Solution

6y2(2x+3x25y)

21pq2+35p2q228q3

−2x4

Solution

−2(x+2)

−3b+12

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

Solution

(x+1)(5x+3)

2x(x1)+9(x1)

3b(b2)13(b2)

Solution

(b2)(3b13)

6m(m5)7(m5)

Factor by Grouping

In the following exercises, factor by grouping.

xy+2y+3x+6

Solution

(y+3)(x+2)

mn+4n+6m+24

uv9u+2v18

Solution

(u+2)(v9)

pq10p+8q80

b2+5b4b20

Solution

(b4)(b+5)

m2+6m12m72

p2+4p9p36

Solution

(p9)(p+4)

x2+5x3x15

Mixed Practice

In the following exercises, factor.

−20x10

Solution

−10(2x+1)

5x3x2+x

3x37x2+6x14

Solution

(x2+2)(3x7)

x3+x2x1

x2+xy+5x+5y

Solution

(x+y)(x+5)

5x3+3x25x3

Everyday Math

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

Solution

w(w6)

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

Writing Exercises

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

Solution

Answers will vary.

What is the GCF of y4,y5,andy10? Write a general rule that tells you how to find the GCF of ya,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.

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