# 6.1: Introduction to Factoring

- Page ID
- 18361

Learning Objectives

- Determine the greatest common factor (GCF) of natural numbers.
- Determine the GCF of monomials.
- Factor out the GCF of a polynomial.
- Factor a four-term polynomial by grouping.

## GCF of Natural Numbers

The process of writing a number or expression as a product is called factoring. If we write \(60 = 5\cdot 12\), we say that the product \(5 ⋅ 12\) is a factorization of \(60\) and that \(5\) and \(12\) are factors. Typically, there are many ways to factor a number. For example,

\( \begin{array}{lc}{60=6\cdot 10}&{}\\{60=2\cdot 30}&{\color{Cerulean}{Factorizations\:of\:60}}\\{60=4\cdot 3\cdot 5}&{} \end{array}\)

Recall that a prime number is defined as a natural number with exactly two natural number factors, \(1\) and itself. The first ten prime numbers follow:

\(2,\:3,\:5,\:7,\:11,\:13,\:17,\:19,\:23,\:29,\:\dots\)

Any natural number greater than \(1\) can be uniquely written as a product of prime numbers. This product is called the prime factorization. The prime factorization of \(60\) can be determined by continuing to factor until only a product of prime numbers remains.

\(\begin{aligned}60&=2\cdot 30\\&=2\cdot 2\cdot 15\\&=2\cdot 2\cdot 3\cdot 5 \end{aligned}\)

Since the prime factorization is unique, it does not matter how we choose to initially factor the number; the end result will be the same. The prime factorization of \(60\) follows:

\(60=2^{2}\cdot 3\cdot 5\qquad\color{Cerulean}{The\:prime\:factorization\:of\:60}\)

Recall that the greatest common factor (GCF) of any two natural numbers is the product of all the common prime factors.

Example \(\PageIndex{1}\)

Find the GCF of 60 and 140.

**Solution**:

First, determine the prime factorizations of both integers.

\(\begin{array} {c|c}{140=10\cdot 14}&{60=6\cdot 10}\\{=2\cdot 5\cdot 2\cdot 7}&{=2\cdot 3\cdot 2\cdot 5}\\{=\color{Cerulean}{2^{2}}\color{black}{\cdot}\color{Cerulean}{5}\color{black}{\cdot 7}}&{=\color{Cerulean}{2^{2}}\color{black}{\cdot 3\cdot}\color{Cerulean}{5}} \end{array}\)

The product of the common prime factors is \(2^{2}\cdot 5\); hence the GCF(\(60, 140)=2^{2}⋅5=20\). To see that it is the greatest common factor, we can write the following:

\(\begin{aligned} 140&=\color{Cerulean}{20}\color{black}{\cdot 7}\\ 60&=\color{Cerulean}{20}\color{black}{\cdot 3} \end{aligned}\)

**Answer**:

The greatest common factor of \(60\) and \(140\) is \(20\).

Example \(\PageIndex{2}\)

Find the GCF of 504 and 1,080.

**Solution**:

First, determine the prime factorizations of both integers.

\(\begin{array}{c|c}{504=9\cdot 56}&{1080=10\cdot 108}\\{=3\cdot 3\cdot 7\cdot 8}&{=2\cdot 5\cdot 9\cdot 12}\\{=3\cdot 3\cdot 7\cdot 2\cdot 2\cdot 2}&{=2\cdot 5\cdot 3\cdot 3\cdot 2\cdot 2\cdot 3}\\{=2^{3}\cdot 3^{2}\cdot 7}&{=2^{3}\cdot 3^{3}\cdot 5} \end{array}\)

The product of the common prime factors is \(2^{3}⋅3^{2}\).

The GCF\((504, 1080)=2^{3}⋅3^{2}=72\). Note that we multiplied the common prime factors with the smallest exponent.

\(\begin{aligned} 5040&=\color{Cerulean}{72}\color{black}{\cdot 7} \\ 1080&=\color{Cerulean}{72}\color{black}{\cdot 15} \end{aligned}\)

The numbers \(7\) and \(15\) share no common natural number factor other than \(1\); we say that they are relatively prime.

**Answer**:

The greatest common factor of \(504\) and \(1,080\) is \(72\).

## GCF of Monomials

We next consider factorizations of monomials. For example, \(6x\) and \(x^{4}\) are factors of \(6x^{5}\) because \(6x^{5}=6x⋅x^{4}\). Typically, there are many ways to factor a monomial. Some factorizations of \(6x^{5}\) follow:

\(\begin{array}{cc}{6x^{5}=2x^{3}\cdot 3x^{2}}&{}\\{6x^{5}=6x^{4}\cdot x}&{\color{Cerulean}{Factorizations\:of\:6x^{5}}}\\{6x^{5}=2x\cdot 3x\cdot x^{3}}&{} \end{array}\)

Given two or more monomials, it will be useful to find the greatest common monomial factor of each. For example, consider \(6x^{5}y^{3}z\) and \(8x^{2}y^{3}z^{2}\). The variable part of these two monomials look very much like the prime factorization of natural numbers and, in fact, can be treated the same way.

Steps for finding the GCF of monomials are outlined in the following example.

Example \(\PageIndex{3}\)

Find the GCF of \(6x^{5}y^{3}z\) and \(8x^{2}y^{3}z^{2}\).

**Solution**:

**Step 1**: Find the GCF of the coefficients.

\(\color{Cerulean}{6}\color{black}{x^{5}y^{3}z}\qquad\text{and}\qquad\color{Cerulean}{8}\color{black}{x^{2}y^{3}z^{2}}\)

In this case, the GCF\((6, 8)=2\).

**Step 2**: Determine the common variable factors with smallest exponents.

\(6x^{5}\color{Cerulean}{y^{3}z}\qquad \color{black}{\text{and}\qquad 8}\color{Cerulean}{x^{2}}\color{black}{y^{3}z^{2}}\)

In this case, the common variables with the smallest exponents are \(x^{2}, y^{3}, and z^{1}\).

**Step 3**: The GCF of the monomials is the product of the common variable factors and the GCF of the coefficients. Therefore,

GCF \((6x^{5}y^{3}z, 8x^{2}y^{3}z^{2})=2\cdot x^{2}\cdot y^{3}\cdot z\)

**Answer**:

\(2x^{2}y^{3}z\)

It is worth pointing out that the GCF in the previous example divides both expressions evenly:

\(\frac{6x^{5}y^{3}z}{\color{Cerulean}{2x^{2}y^{3}z}}\color{black}{=3x^{3}} \qquad\text{and}\qquad\frac{8x^{2}y^{3}z^{2}}{\color{Cerulean}{2x^{2}y^{3}z}}\color{black}{=4z}\)

Furthermore, we can write the following:

\(6x^{5}y^{3}z=\color{Cerulean}{2x^{2}y^{3}z}\color{black}{\cdot 3x^{3}}\qquad\text{and}\qquad 8x^{2}y^{3}z^{2}=\color{Cerulean}{2x^{2}y^{3}z}\color{black}{\cdot 4z}\)

The factors \(3x^{3}\) and \(4z\) share no common monomial factors other than \(1\); they are relatively prime.

Example \(\PageIndex{4}\)

Determine the GCF of the following expressions:

\(30x^{6}y\) and \(18x^{4}y^{2}z\).

**Solution**:

The prime factorizations of the coefficients are

\(\begin{aligned}30&=\color{Cerulean}{2}\color{black}{\cdot}\color{Cerulean}{3}\color{black}{\cdot 5} \\ 18&=\color{Cerulean}{2}\color{black}{\cdot}\color{Cerulean}{3}\color{black}{\cdot 3} \end{aligned}\)

Thus the GCF\((30, 18) = 2 ⋅ 3 = 6\). Next, consider the variable part:

\(30x^{6}\color{Cerulean}{y}\color{black}{\qquad\text{and}\qquad} 18\color{Cerulean}{x^{4}}\color{black}{y^{2}z}\)

The variable factors in common are \(x^{4}\) and \(y\). The factor \(z\) is not in common and we have

GCF \(=6\cdot x^{4}\cdot y\)

**Answer**:

\(6x^{4}y\)

Example \(\PageIndex{5}\)

Determine the GCF of the following three expressions:

\(12a^{5}b^{2}(a+b)^{5} \:,\: 60a^{4}b^{3}c(a+b)^{3}\), and \(24a^{2}b^{7}c^{3}(a+b)^{2}\).

**Solution**:

First, determine the GCF of the coefficients.

\(\begin{aligned} 12&=2^{2}\cdot 3\\ 60&=2^{2}\cdot 3\cdot 5 \\ 24&=2^{3}\cdot 3 \end{aligned}\)

The GCF \((12, 60, 24)=2^{2}⋅3=12\). Next, determine the common factors of the variable part:

\(12a^{5}\color{Cerulean}{b^{2}}\color{black}{(a+b)^{5}} \qquad\text{and}\qquad 60a^{4}b^{3}c(a+b)^{3}\qquad\text{and}\qquad 24\color{Cerulean}{a^{2}}\color{black}{b^{7}c^{3}}\color{Cerulean}{(a+b)^{2}}\)

The variable factors in common are \(a^{2}, b^{2}\), and \((a+b)^{2}\). Therefore,

GCF \(= 12\cdot a^{2}\cdot b^{2}\cdot (a+b)^{2}\)

**Answer**:

\(12a^{2}b^{2}(a+b)^{2}\). Note that the variable \(c\) is not common to all three expressions and thus is not included in the GCF.

Exercise \(\PageIndex{1}\)

Determine the GCF of the following:

\(60x^{4}y^{3}(x+2y)^{7}, 45x^{2}y^{5}(x+2y)^{4}\), and \(30x^{7}y^{7}(x+2y)^{3}\).

**Answer**-
\(15x^{2}y^{3}(x+2y)^{3}\)

## Factoring out the GCF

We have seen that application of the distributive property is the key to multiplying polynomials. The process of factoring a polynomial involves using the distributive property in reverse to write each polynomial as a product of polynomial factors.

\(\begin{array}{cc}{\color{Cerulean}{a}\color{black}{(b+c)=\color{Cerulean}{a}\color{black}{b+}\color{Cerulean}{a}\color{black}{c}}}&{\color{Cerulean}{Multiplying}}\\{\color{Cerulean}{a}\color{black}{b+}\color{Cerulean}{a}\color{black}{c=}\color{Cerulean}{a}\color{black}{(b+c)}}&{\color{Cerulean}{Factoring}} \end{array}\)

To demonstrate this idea, we multiply and factor side by side. Factoring utilizes the GCF of the terms.

Multiplying |
Factoring |
---|---|

\(\begin{aligned}\color{Cerulean}{3}\color{black}{(5x+1)}&=\color{Cerulean}{3}\color{black}{\cdot 5x+}\color{Cerulean}{3}\color{black}{\cdot 1}\\ &=15x+3 \end{aligned}\) | \(\begin{aligned} 15x+3&=\color{Cerulean}{3}\color{black}{\cdot 5x+}\color{Cerulean}{3}\color{black}{\cdot 1} \\ &=\color{Cerulean}{3}\color{black}{(5x+1)} \end{aligned}\) |

\(\begin{aligned}\color{Cerulean}{2x^{2}}\color{black}{(3x^{3}+4)}&=\color{Cerulean}{2x^{2}}\color{black}{\cdot 3x^{3}+}\color{Cerulean}{2x^{2}}\color{black}{\cdot 4}\\ &=6x^{5}+8x^{2} \end{aligned}\) | \(\begin{aligned} 6x^{5}+8x^{2}&=\color{Cerulean}{2x^{2}}\color{black}{\cdot 3x^{3}+}\color{Cerulean}{2x^{2}}\color{black}{\cdot 4} \\ &=\color{Cerulean}{2x^{2}}\color{black}{(3x^{3}+4)} \end{aligned}\) |

In the previous example, we see that the distributive property allows us to write the polynomial \(6x^{5}+8x^{2}\) as a product of the two factors \(2x^{2}\) and \((3x^{3}+4)\). Note that in this case, \(2x^{2}\) is the GCF of the terms of the polynomial:

GCF \(6x^{5}, 8x^{2})=2x^{2}\)

Factoring out the GCF involves rewriting a polynomial as a product where a factor is the GCF of all of its terms:

\(\begin{array}{cc}{15x+3=\color{Cerulean}{3}\color{black}{(5x+1)}}&{\color{Cerulean}{Factoring\:out\:the\:GCF}}\\{6x^{5}+8x^{2}=\color{Cerulean}{2x^{2}}\color{black}{(3x^{3}+4)}}&{} \end{array}\)

The steps for factoring out the GCF of a polynomial are outlined in the following example.

Example \(\PageIndex{6}\)

Factor out the GCF:

\(7x^{4}+21x^{3}-14x^{2}\).

**Solution**:

**Step 1**: Identify the GCF of all the terms. In this case, the GCF\((7, 21, 14) = 7\), and the common variable factor with the smallest exponent is \(x^{2}\). The GCF of the polynomial is \(7x^{2}\).

\(7x^{4}+21x^{3}-14x^{2}=\color{Cerulean}{7x^{2}}\color{black}{(\qquad ? \qquad )}\)

**Step 2**: Determine the terms of the missing factor by dividing each term of the original expression by the GCF. (**This step is usually performed mentally**.)

\(\frac{7x^{4}}{\color{Cerulean}{7x^{2}}}=x^{2}\qquad\frac{21x^{3}}{\color{Cerulean}{7x^{2}}}=3x\qquad\frac{-14x^{2}}{\color{Cerulean}{7x^{2}}}=-2\)

**Step 3**: Apply the distributive property (in reverse) using the terms found in the previous step.

\(7x^{4}+21x^{3}-14x^{2}=\color{Cerulean}{7x^{2}}\color{black}{(x^{2}+3x-2)}\)

**Step 4**: As a check, multiply using the distributive property to verify that the product equals the original expression. (**This step is optional and can be performed mentally**.)

\(\begin{aligned} \color{Cerulean}{7x^{2}}\color{black}{(x^{2}+3x-2)}&=\color{Cerulean}{7x^{2}}\color{black}{\cdot x^{2} +}\color{Cerulean}{7x^{2}}\color{black}{\cdot 3x -}\color{Cerulean}{7x^{2}}\color{black}{\cdot 2} \\ &= 7x^{4}+21x^{3}-14x^{2}\quad\color{Cerulean}{\checkmark} \end{aligned}\)

**Answer**:

\(7x^{2}(x^{2}+3x-2)\)

Example \(\PageIndex{7}\)

Factor out the GCF:

\(48a−16b+4c\)

**Solution**:

There are no variable factors in common and the GCF\((48, 16, 4) = 4\).

\(\begin{aligned} 48a-16b+4c&=4(\qquad\color{Cerulean}{?}\qquad\color{black}{)} \\ &=4(12a-4b+c) \end{aligned}\)

**Answer**:

\(4(12a-4b+c)\)

Example \(\PageIndex{8}\)

Factor out the GCF:

\(25x^{3}+15x^{2}+5x\)

**Solution**:

The GCF\((25, 15, 5) = 5\), and the common variable factor with smallest exponents is \(x^{1}\). The GCF of all the terms is \(5x\).

\(\begin{aligned} 25x^{3}+15x^{2}+5x&=5x(\qquad\color{Cerulean}{?}\qquad\color{black}{)}\\&=5x(5x^{2}+3x+1) \end{aligned}\)

**Answer**:

\(5x(5x^{2}+3x+1)\)

If the GCF is the same as one of the terms, then, after the GCF is factored out, a constant term \(1\) will remain. In the previous example, we can see that \(\frac{5x}{5x}=1\). The importance of remembering the constant term becomes clear when performing the check using the distributive property:

\(\begin{aligned} 5x(5x^{2}+3x+1)&=\color{Cerulean}{5x}\color{black}{\cdot 5x^{2}+}\color{Cerulean}{5x}\color{black}{\cdot 3x+}\color{Cerulean}{5x}\color{black}{\cdot 1}\\ &=25x^{3}+15x^{2}+5x\quad\color{Cerulean}{\checkmark} \end{aligned}\)

The constant term \(1\) allows us to obtain the same original expression after we distribute.

Example \(\PageIndex{9}\)

Factor out the GCF:

\(15x^{6}y^{4}+10x^{5}y^{3}z^{2}−20xy^{6}z^{3}\).

**Solution**:

The GCF\((10, 15, 20)=5\), and the common variables with smallest exponent are \(x^{1}\) and \(y^{3}\). Therefore, the GCF of the terms is \(5xy^{3}\). The first term does not have a variable factor of \(z\) and thus cannot be a part of the greatest common factor. If we divide each term by \(5xy^{3}\), we obtain

\(\frac{15x^{6}y^{4}}{\color{Cerulean}{5xy^{3}}}=3x^{5}y\qquad\frac{10x^{5}y^{3}z^{2}}{\color{Cerulean}{5xy^{3}}}=2x^{4}z^{2}\qquad\frac{-20xy^{6}z^{3}}{\color{Cerulean}{5xy^{3}}}=-4y^{3}z^{3}\)

and can write

\(\begin{aligned} 15x^{6}y^{4}+10x^{5}y^{3}z^{2}-20xy^{6}z^{3}&=\color{Cerulean}{5xy^{3}}\color{black}{(\qquad ?\qquad )} \\ &=5xy^{3}(3x^{5}y+2x^{4}z^{2}-4y^{3}z^{3}) \end{aligned}\)

**Answer**:

\(5xy^{3}(3x^{5}y+2x^{4}z^{2}-4y^{3}z^{3})\)

Example \(\PageIndex{10}\)

Factor out the GCF:

\(24a^{6}b^{2}c^{5}+8a^{7}b^{5}c\)

**Solution**:

The GCF\((24, 8) = 8\), and the variable factors with smallest exponents are \(a^{6}, b^{2},\) and \(c\). Therefore, the GCF of all the terms is \(8a^{6}b^{2}c\).

\(\begin{aligned} 24a^{6}b^{2}c^{5}+8a^{7}b^{5}c&=8a^{6}b^{2}c(\qquad ?\qquad ) \\&=8a^{6}b^{2}c(3c^{4}+ab^{3}) \end{aligned}\)

**Answer**:

\(8a^{6}b^{2}c(3c^{4}+ab^{3})\)

Of course, not all polynomials with integer coefficients can be factored as a product of polynomials with integer coefficients other than \(1\) and itself. If this is the case, then we say that it is a prime polynomial.

Example \(\PageIndex{11}\)

Factor:

\(3x-5\)

**Solution**:

Prime: there are no polynomial factors other than \(1\) and itself.

**Answer**:

Prime

Exercise \(\PageIndex{2}\)

Factor out the GCF:

\(16x^{4}y^{3}−8x^{2}y^{5}−4x^{2}y\).

**Answer**-
\(4x^{2}y(4x^{2}y^{2}-2y^{4}-1)\)

### Factor by Grouping

In this section, we outline a technique for factoring polynomials with four terms. First, review some preliminary examples where the terms have a common binomial factor.

Example \(\PageIndex{12}\)

Factor:

\(5x(x−3)+2(x−3)\).

**Solution**:

This expression is a binomial with terms \(5x(x−3)\) and \(2(x−3)\). In this case, \((x−3)\) is a common factor. Begin by factoring this common factor out:

\(5x\color{Cerulean}{(x-3)}\color{black}{+2}\color{Cerulean}{(x-3)}\color{black}{=}\color{Cerulean}{(x-3)}\color{black}{(\quad ?\quad )}\)

To determine the terms of the remaining factor, divide each term by \((x−3)\):

\(\frac{5x(x-3)}{\color{Cerulean}{(x-3)}}=\color{OliveGreen}{5x}\qquad\color{black}{\frac{2(x-3)}{\color{Cerulean}{(x-3)}}=}\color{OliveGreen}{2}\)

This step is typically performed mentally. We have

\(\begin{aligned}\color{OliveGreen}{5x}\color{black}{(x-3)}\color{OliveGreen}{+2}\color{black}{(x-3)}&=(x-3)(\quad ?\quad ) \\ &=(x-3)(\color{OliveGreen}{5x+2}\color{black}{)} \end{aligned}\)

**Answer**:

\((x-3)(5x+2)\)

Recall that \(1\) is always a common factor. If the GCF is the same as a term, then the factor \(1\) remains after we factor out that GCF.

Example \(\PageIndex{13}\)

Factor:

\(3x(4x+1)−(4x+1)\).

**Solution**:

Rewrite the second term \(−(4x+1)\) as \(−1(4x+1)\) and then factor out the common binomial factor \((4x+1)\).

\(\begin{aligned} 3x(4x+1)-(4x+1)&=3x\color{Cerulean}{(4x+1)}\color{black}{-1}\color{Cerulean}{(4x+1)} \\ &=\color{Cerulean}{(4x+1)}\color{black}{(\quad ?\quad)} \\ &=\color{Cerulean}{(4x+1)}\color{black}{(3x-1)} \end{aligned}\)

**Answer**:

\((4x+1)(3x-1)\)

Remember that the goal for this section is to develop a technique that enables us to factor polynomials with four terms into a product of binomials. The intermediate step of this process looks like the previous two examples. For example, we wish to factor

\(5x^{2}-15x+2x-6\)

Begin by grouping the first two terms and the last two terms. Then factor out the GCF of each grouping:

\(\begin{array}{ccc}{\underbrace{5x^{2}-15x}}&{+}&{\underbrace{2x-6}}\\{\color{Cerulean}{group}}&{}&{\color{Cerulean}{group}} \end{array}\)

\(=\color{Cerulean}{5x}\color{black}{(x-3)+}\color{Cerulean}{2}\color{black}{(x-3)}\)

In this form, it is a binomial with a common binomial factor, (x−3).

\(\begin{aligned}&=(x-3)(\quad ?\quad )\\&=(x-3)(\color{Cerulean}{5x+2}\color{black}{)} \end{aligned}\)

The steps that follow outline a technique for factoring four-term polynomials called factor by grouping.

Example \(\PageIndex{14}\)

Factor:

\(2x^{3}+4x^{2}+3x+6\).

**Solution**:

Group terms in such a way as to obtain a binomial with common factors.

**Step 1**: Group the first two and last two terms and then factor out the GCF of each.

\(\begin{array}{ccc}{\underbrace{2x^{3}+4x^{2}}}&{+}&{\underbrace{3x+6}}\\{\color{Cerulean}{group}}&{}&{\color{Cerulean}{group}} \end{array}\)

The GCF of the first two terms is \(2x^{2}\), and the GCF of the second two terms is \(3\).

\(\begin{array}{cccc}{2x^{3}+4x^{2}+3x+6=}&{\underbrace{2x^{3}+4x^{2}}}&{+}&{\underbrace{3x+6}}\\{}&{\color{Cerulean}{group}}&{}&{\color{Cerulean}{group}} \end{array}\)

\(\begin{aligned} &=\color{Cerulean}{2x^{2}}\color{black}{(\quad ?\quad )}\color{Cerulean}{+3}\color{black}{(\quad ?\quad )}\\&=2x^{2}(x+2)+3(x+2) \end{aligned}\)

**Step 2**: At this point, the polynomial is a binomial. Factor out any factors common to both terms. Here \((x+2)\) is a common factor.

\(\begin{aligned} &=2x^{2}\color{Cerulean}{(x+2)}\color{black}{+3}\color{Cerulean}{(x+2)}\\&=\color{Cerulean}{(x+2)}\color{black}{(\quad ?\quad )}\\&=(x+2)(2x^{2}+3) \end{aligned}\)

**Step 3**: Optional check: multiply to verify that we obtain the original expression.

\(\begin{aligned}(x+2)(2x^{2}+3)&=2x^{3}+3x+4x^{2}+6 \\&=2x^{3}+4x^{2}+3x+6\quad\color{Cerulean}{\checkmark} \end{aligned}\)

**Answer**:

\((x+2)(2x^{2}+3)\)

Example \(\PageIndex{15}\)

Factor:

\(2a^{3}−3a^{2}+2a−3\).

**Solution**:

The GCF of the first two terms is \(a^{2}\) and the GCF of the second two terms is \(1\).

\(\begin{array}{cccc}{2a^{3}-3a^{2}+2a-3=}&{\underbrace{2a^{3}-3a^{2}}}&{+}&{\underbrace{2a-3}}\\{}&{\color{Cerulean}{group}}&{}&{\color{Cerulean}{group}} \end{array}\)

\(\begin{aligned}&=\color{Cerulean}{a^{2}}\color{black}{(\quad ?\quad )}\color{Cerulean}{+1}\color{black}{(\quad ?\quad )} \\ &=a^{2}(2a-3)+1(2a-3)\\&=(2a-3)(\quad ?\quad )\\&=(2a-3)(a^{2}+1) \end{aligned}\)

**Answer**:

\(2a-3)(a^{2}+1)\). The check is left to the reader.

Example \(\PageIndex{16}\)

Factor:

\(6x^{4}−24x^{3}−5x+20\).

**Solution**:

The GCF for the first group is \(6x^{3}\). We have to choose \(5\) or \(−5\) to factor out of the second group.

\(\begin{array}{ccc}{\underbrace{6x^{4}-24x^{3}}}&{-}&{\underbrace{5x+20}}\\{\color{Cerulean}{group}}&{}&{\color{Cerulean}{group}} \end{array}\)

\(\begin{aligned} &=6x^{3}\color{red}{(x-4)}\color{black}{+5}\color{red}{(-x+4)} & \color{red}{x} \\ &=6x^{3}\color{Cerulean}{(x-4)}\color{black}{-5}\color{Cerulean}{(x-4)} & \color{Cerulean}{\checkmark} \end{aligned}\)

Factoring out a \(+5\) does not result in a common binomial factor. If we choose to factor out \(−5\), then we obtain a common binomial factor and can proceed. Note that when factoring out a negative number, we change the signs of the factored terms.

\(\begin{array}{cccc}{6x^{4}-24x^{3}-5x+20=}&{\underbrace{6x^{4}-24x^{3}}}&{-}&{\underbrace{5x+20}}\\{}&{\color{Cerulean}{group}}&{}&{\color{Cerulean}{group}} \end{array}\)

\(\begin{aligned} &=6x^{3}(\quad ?\quad )-5(\quad ?\quad ) \\&=6x^{3}(x-4)-5(x-4) \\ &=(x-4)(\quad ?\quad ) \\ &=(x-4)(6x^{3}-5) \end{aligned}\)

**Answer**:

\((x-4)(6x^{3}-5)\). The check is left to the reader.

Note

The sign of the leading coefficient in the second grouping usually indicates whether or not to factor out a negative factor. If that coefficient is positive, factor out a positive factor. If it is negative, factor out a negative factor.

When all the terms of a polynomial have a GCF other than 1, it is a best practice to factor that out before factoring by grouping.

Example \(\PageIndex{17}\)

Factor:

\(3y^{4}+9y^{2}−6y^{3}−18y\).

**Solution**:

Here we notice that the greatest common factor of all the terms is \(3y\). Begin by factoring out the GCF and then factor the result by grouping.

\(\begin{array}{lc}{3y^{4}+9y^{2}-6y^{3}-18y}&{}\\{=3y[y^{3}+3y-2y^{2}-6]}&{\color{Cerulean}{Factor\:out\:the\:GCF.}}\\{=3y[y(y^{2}+3)-2(y^{2}+3)]}&{\color{Cerulean}{Factor\:by\:grouping.}}\\{=3y[(y^{2}+3)(y-2)]}&{}\\{=3y(y^{2}+3)(y-2)}&{} \end{array}\)

**Answer**:

\(3y(y^{2}+3)(y-2)\)

Sometimes we must first rearrange the terms in order to obtain a common factor.

Example \(\PageIndex{18}\)

Factor:

\(ab−2a^{2}b+a^{3}−2b^{3}\).

**Solution**:

Simply factoring the GCF out of the first group and last group does not yield a common binomial factor.

\(\begin{array}{ccc}{\underbrace{ab-2a^{2}b}}&{+}&{\underbrace{a^{3}-2b^{3}}}\\{\color{Cerulean}{group}}&{}&{\color{Cerulean}{group}} \end{array}\)

\(=ab\color{red}{(1-2a)}\color{black}{+1}\color{red}{(a^{3}-2b^{3})}\)

We must rearrange the terms, searching for a grouping that produces a common factor. In this example, we have a workable grouping if we switch the terms \(a^{3}\) and \(ab\).

\(\begin{array}{cccc}{\color{OliveGreen}{ab}\color{black}{-2a^{2}b+}\color{OliveGreen}{a^{3}}\color{black}{-2b^{3}=}}&{\underbrace{a^{3}-2a^{2}b}}&{+}&{\underbrace{ab-2b^{3}}}\\{}&{\color{Cerulean}{group}}&{}&{\color{Cerulean}{group}} \end{array}\)

\(\begin{aligned} &=a^{2}(a-2b)+b(a-2b) \\ &=(a-2b)(a^{2}+b) \end{aligned}\)

**Answer**:

\((a-2b)(a^{2}+b)\)

Not all factorable four-term polynomials can be factored with this technique. For example,

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

This four-term polynomial cannot be grouped in any way as to produce a common binomial factor. Despite this, the polynomial is not prime and can be written as a product of polynomials. It can be factored as follows:

\(3x^{3}+5x^{2}-x+2=(x+2)(3x^{2}-x+1)\)

Factoring such polynomials is something that we will learn to do as we move further along in our study of algebra. For now, we will limit our attempt to factor four-term polynomials to using the factor by grouping technique.

Exercise \(\PageIndex{3}\)

Factor:

\(x^{3}-x^{2}y-xy+y^{2}\)

**Answer**-
\((x-y)(x^{2}-y)\)

## Key Takeaways

- To find the greatest common factor (GCF) of any collection of natural numbers, first find the prime factorization of each. The GCF is the product of all the common prime factors.
- The GCF of two or more monomials is the product of the GCF of the coefficients and the common variable factors with the smallest power.
- If the terms of a polynomial have a greatest common factor, then factor out that GCF using the distributive property. Divide each term of the polynomial by the GCF to determine the terms of the remaining factor.
- Some four-term polynomials can be factored by grouping the first two terms and the last two terms. Factor out the GCF of each group and then factor out the common binomial factor.
- When factoring by grouping, you sometimes have to rearrange the terms to find a common binomial factor. After factoring out the GCF, the remaining binomial factors must be the same for the technique to work.
- Not all polynomials can be factored as the product of polynomials with integer coefficients. In this case, we call it a prime polynomial.

Exercise \(\PageIndex{4}\) GCF of Natural Numbers

Give the prime factorization of each number and determine the GCF.

- \(18, 24\)
- \(45, 75\)
- \(72, 60\)
- \(168, 175\)
- \(144, 245\)
- \(15, 50, 60\)
- \(14, 63, 70\)
- \(12, 48, 125\)
- \(60, 72, 900\)
- \(252, 336, 360\)

**Answer**-
1. \(18=2⋅32, 24=23⋅3,\) GCF\( = 6\)

3. \(72=23⋅32, 60=22⋅3⋅5,\) GCF\( = 12\)

5. \(144=24⋅32, 245=5⋅72,\) GCF\( = 1\)

7. \(14=2⋅7, 63=32⋅7, 70=2⋅5⋅7,\) GCF\( = 7\)

9. \(60=22⋅3⋅5, 72=23⋅32, 900=22⋅32⋅52,\) GCF\( = 12\)

Exercise \(\PageIndex{5}\) GCF of Variable Expressions

Determine the GCF of all the terms.

- \(15x, 30\)
- \(14x, 21\)
- \(45x^{4}, 8x^{3}\)
- \(36x^{5}, 35y^{2}\)
- \(6x, 27x, 36x\)
- \(12x^{3}, 4x^{2}, 6x\)
- \(12x^{2}y, 60xy^{3}\)
- \(7ab^{2}, 2a^{2}b, 3a^{3}b^{3}\)
- \(6a^{2}b^{2}, 18a^{3}b^{2}, 9ab^{2}\)
- \(15x(x+2), 9(x+2)\)
- \(20x(2x−1), 16(2x−1)\)
- \(20x^{3}(x+y)^{5}, 10x^{5}(x+y)^{2}\)

**Answer**-
1. \(15\)

3. \(x^{3}\)

5. \(3x\)

7. \(12xy\)

9. \(3ab^{2}\)

11. \(4(2x−1)\)

Exercise \(\PageIndex{6}\) Factoring out the GCF

Given the GCF, determine the missing factor.

- \(25x^{2}+10x=5x(\quad ?\quad )\)
- \(12y^{5}+7y^{2}=y^{2}(\quad ?\quad )\)
- \(22x^{4}−121x^{2}+11x=11x(\quad ?\quad )\)
- \(30y^{3}−45y^{2}−3y=3y(\quad ?\quad )\)
- \(36a^{5}b^{7}−60a^{6}b^{5}=12a^{5}b^{5}(\quad ?\quad )\)
- \(24x^{2}y+48xy^{2}−12xy=12xy(\quad ?\quad )\)

**Answer**-
1. \((5x+2)\)

3. \((2x^{3}−11x+1)\)

5. \((3b^{2}−5a)\)

Exercise \(\PageIndex{7}\) Factoring out the GCF

Factor out the GCF.

- \(4x−8\)
- \(27x−9\)
- \(3x−18\)
- \(5x−10\)
- \(25x−16\)
- \(72x−35\)
- \(15x^{2}+30x\)
- \(14a^{2}−7a\)
- \(30a^{5}−10a^{2}\)
- \(8x^{4}−16x^{2}\)
- \(5x^{6}+x^{3}\)
- \(3x^{7}−9x^{5}\)
- \(18a^{2}+30a−6\)
- \(24a^{2}−36a−12\)
- \(27x^{3}−6x^{2}+3x\)
- \(8x^{3}−12x^{2}+2x\)
- \(9x^{4}+18x^{3}−3x^{2}\)
- \(12y^{4}−16y^{3}+20y^{2}\)
- \(7x^{5}−21x^{3}−14x^{2}+28x\)
- \(36y^{10}+12y^{8}−18y^{4}−6y^{3}\)
- \(12x^{5}y^{2}−8x^{3}y\)
- \(125a^{8}b^{4}c^{3}−25a^{2}b^{3}c^{3}\)
- \(6x^{4}y^{3}−4x^{3}y^{2}+8x^{2}y\)
- \(15x^{4}y^{2}−30x^{3}y^{3}+15x^{2}y^{4}\)
- \(81x^{7}y^{6}z^{2}−18x^{2}y^{8}z^{4}+9x^{2}y^{5}z^{2}\)
- \(4x^{5}y^{4}z^{9}+26x^{5}y^{3}z^{4}−14x^{6}y^{8}z^{5}\)
- \(2x(x−3)+5(x−3)\)
- \(3x(2x+1)−4(2x+1)\)
- \(5x(5x+2)−(5x+2)\)
- \(2x(3x+4)+(3x+4)\)
- \(x^{2}(4x−7)−5(4x−7)\)
- \((x+6)−3x^{2}(x+6)\)
- \((a+b)^{2}−3a(a+b)^{2}\)
- \((ab+2)^{3}+3ab(ab+2)^{3}\)
- \(7x(x+7)^{5}+14x^{2}(x+7)^{5}\)
- \(36x^{5}(3x+2)^{4}−12x^{3}(3x+2)^{4}\)

**Answer**-
1. \(4(x−2)\)

3. \(3(x−6)\)

5. Prime

7. \(15x(x+2)\)

9. \(10a^{2}(3a^{3}−1)\)

11. \(x^{3}(5x^{3}+1)\)

13. \(6(3a^{2}+5a−1)\)

15. \(3x(9x^{2}−2x+1)\)

17. \(3x^{2}(3x^{2}+6x−1)\)

19. \(7x (x^{4}−3x^{2}−2x+4)\)

21. \(4x^{3}y(3x^{2}y−2)\)

23. \(2x^{2}y(3x^{2}y^{2}−2xy+4)\)

25. \(9x^{2}y^{5}z^{2}(9x^{5}y−2y^{3}z^{2}+1)\)

27. \((x−3)(2x+5)\)

29. \((5x+2)(5x−1)\)

31. \((4x−7)(x^{2}−5)\)

33. \((a+b)^{2}(1−3a)\)

35. \(7x(x+7)^{5}(1+2x)\)

Exercise \(\PageIndex{8}\) Factoring out the GCF

Are the following factored correctly? Check by multiplying.

- \(4x^{2}−16x=4x(x−4) \)
- \(3a^{3}−3a=3a(a^{2})\)
- \(3x^{3}−5x^{6}=x^{3}(3−x^{2})\)
- \(5x^{3}−10x^{4}+15x^{5}=5x^{3}(1−2x+3x^{2})\)
- \(x^{3}−x^{2}+x=x(x^{2}−x)\)
- \(12x^{4}y^{3}−16x^{5}y^{2}+8x^{6}y^{7}=4x^{4}y^{2}(3y−4x+2x^{2}y^{5})\)

**Answer**-
1. Yes

3. No

5. No

Exercise \(\PageIndex{9}\) Factoring out the GCF

Use polynomial long division to show that the given factor divides the polynomial evenly.

- Show that \((x−1)\) is a factor of \((2x^{3}−5x^{2}+4x−1)\).
- Show that \((x+3)\) is a factor of \((3x^{3}+7x^{2}−4x+6)\).
- Show that \((3x−2)\) is a factor of \((3x^{3}+4x^{2}−7x+2)\).
- Show that \((2x+1)\) is a factor of \((2x^{3}−5x^{2}+x+2)\).
- The height in feet of an object tossed into the air is given by the function \(h(t)=−16t^{2}+32t\), where \(t\) is the time in seconds after it is tossed. Write the function in factored form.
- The height in feet of an object dropped from a \(16\)-foot ladder is given by the function \(h(t)=−16t^{2}+16\), where \(t\) is the time in seconds after it is tossed. Write the function in factored form.
- The surface area of a cylinder is given by the formula \(SA=2πr^{2}+2πrh\), where \(r\) represents the radius of the base and \(h\) is the height of the cylinder. Express this formula in factored form.

*Figure \(\PageIndex{1}\)* - The surface area of a cone is given by the formula \(SA=πr^{2}+πrs\), where \(r\) represents the radius of the base and \(s\) represents the slant height. Express this formula in factored form.

*Figure \(\PageIndex{2}\)*

**Answer**-
5. \(h(t)=−16t(t−2)\)

7. \(SA=2πr(r+h)\)

Exercise \(\PageIndex{10}\) Factor by Grouping

Factor by grouping.

- \(x^{2}−10x+2x−20\)
- \(x^{2}−6x−3x+18\)
- \(x^{3}+2x^{2}+2x+4\)
- \(x^{3}−3x^{2}+5x−15\)
- \(x^{3}+7x^{2}−2x−14\)
- \(2x^{3}+2x^{2}−x−1\)
- \(x^{3}−5x^{2}+4x−20\)
- \(6x^{3}−3x^{2}+2x−1\)
- \(9x^{3}−6x^{2}−3x+2\)
- \(2x^{4}−x^{3}−6x+3\)
- \(x^{5}+x^{3}+2x^{2}+2\)
- \(6x^{5}−4x^{3}−9x^{2}+6\)
- \(3a^{3}b+3ab^{2}+2a^{2}+2b\)
- \(2a^{3}+2ab^{3}−3a^{2}b−3b^{4}\)
- \(2a^{3}−a^{2}b^{2}−2ab+b^{3}\)
- \(a^{4}−3a^{3}b^{2}+ab^{2}−3b^{4}\)
- \(3a^{2}b^{4}−6b^{3}−a^{2}b+2\)
- \(3x^{3}+2y^{3}+x^{3}y^{3}+6\)
- \(−3x^{3}−5y^{3}+x^{3}y^{3}+15\)
- \(2x^{3}y^{3}+2−y^{3}−4x^{3}\)
- \(3x^{2}−y^{3}+xy^{2}−3xy\)
- \(2x^{2}+y^{3}−2xy−xy^{2}\)

**Answer**-
1. \((x−10)(x+2)\)

3. \((x+2)(x^{2}+2)\)

5. \((x+7)(x^{2}−2)\)

7. \((x−5)(x^{2}+4)\)

9. \((3x−2)(3x^{2}−1)\)

11. \((x^{2}+1)(x^{3}+2)\)

13. \((a^{2}+b)(3ab+2)\)

15. \((a^{2}−b)(2a−b^{2})\)

17. \((3b^{3}−1)(a^{2}b−2)\)

19. \((x^{3}−5)(y^{3}−3)\)

21. \((x−y)(3x+y^{2})\)

Exercise \(\PageIndex{11}\) Factor by Grouping

Factor out the GCF first and then factor by grouping.

- \(5x^{2}−35x−15x+105 \)
- \(12x^{2}−30x−12x+30 \)
- \(2x^{3}+6x^{2}−10x−30 \)
- \(6x^{3}−3x^{2}−42x+21 \)
- \(4x^{4}+4x^{3}−12x^{2}−12x\)
- \(−9x^{4}+6x^{3}−45x^{2}+30x\)
- \(−12x^{5}+4x^{4}+6x^{3}−2x^{2}\)
- \(24x^{5}−36x^{4}+8x^{3}−12x^{2}\)
- \(24a^{3}b^{2}−60a^{3}b+40ab^{2}−100ab\)
- \(a^{4}b^{2}−2a^{3}b^{3}+a^{2}b^{3}−2ab^{4}\)

**Answer**-
1. \(5(x−7)(x−3)\)

3. \(2(x+3)(x^{2}−5)\)

5. \(4x(x+1)(x^{2}−3)\)

7. \(−2x^{2}(3x−1)(2x^{2}−1)\)

9. \(4ab(3a^{2}+5)(2b−5)\)

Exercise \(\PageIndex{12}\) Discussion Board Topics

- Research the Euclidean algorithm for finding the GCF of two natural numbers. Give an example that illustrates the steps.
- Research and discuss the contributions of Euclid of Alexandria.
- Explain what factoring is and give an example.
- Is \(5x(x+2)−3(x+2)\) fully factored? Explain.
- Make up a factoring problem of your own and provide the answer. Post the problem and the solution on the discussion board.

**Answer**-
1. Answers may vary

3. Answers may vary

5. Answers may vary