In this explainer, we will learn how to write algebraic expressions as a product of irreducible factors.

Factoring an algebraic expression is the reverse process of expanding a product of algebraic factors. We can use the process of expanding, in reverse, to factor many algebraic expressions.

For example, we can expand by distributing the factor of :

If we write this equation in reverse, then we have

Starting with , we note that both terms share a factor of . Then, we take this shared factor out to get .

We can follow this same process to factor any algebraic expression in which every term shares a common factor.

For example, let’s factor the expression . We want to check for common factors of all three terms, which we can start doing by checking for common constant factors shared between the terms. We see that 4, 2, and 6 all share a common factor of 2. In fact, this is the greatest common factor of the three numbers.

Next, we can also check for common factors of powers of . We see that all three terms have factors of : . We cannot take out a factor of a higher power of since is the largest power in the three terms.

Finally, we can check for a common factor of a power of . We note that the final term, , has no factors of , so we cannot take a factor of any power of out of the expression.

Therefore, we find that the common factors are 2 and , which we can multiply to get ; this is the greatest common factor of the three terms.

We want to take the factor of out of the expression. Doing this separately for each term, we obtain

Hence, we can factor the expression to get

We call the greatest common factor of the terms since we cannot take out any further factors.

In our first example, we will follow this process to factor an algebraic expression by identifying the greatest common factor of its terms.

### Example 1: Factoring an Expression by Identifying the Greatest Common Factor

Factorize fully.

### Answer

To factor the expression, we need to find the greatest common factor of the two terms. We can do this by finding the greatest common factor of the coefficients and each variable separately.

Let’s start with the coefficients. We want to find the greatest factor of 12 and 8. We can see that and and that 2 and 3 share no common factors other than 1. Thus, 4 is the greatest common factor of the coefficients.

We can now check each term for factors of powers of . We see that the first term has a factor of and the second term has a factor of :

We cannot take out more than the lowest power as a factor, so the greatest shared factor of a power of is just .

Similarly, if we consider the powers of in each term, we see that every term has a power of and that the lowest power of is . Therefore, the greatest shared factor of a power of is .

We can multiply these together to find that the greatest common factor of the terms is .

Let’s factor from each term separately.

For the first term, we have

For the second term, we have

This allows us to take out the factor of as follows:

In our next example, we will factor an algebraic expression with three terms.

### Example 2: Factoring an Expression with Three Terms

Factor the expression completely.

### Answer

To factor the expression, we need to find the greatest common factor of all three terms. We can do this by finding the greatest common factor of the coefficients and each variable separately.

Let’s start with the coefficients. We note that all three terms are divisible by 3 and no greater factor exists, so it is the greatest common factor of the coefficients.

We can now look for common factors of the powers of the variables. If we highlight the instances of the variable , we see that all three terms share factors of . The lowest power of is just , so this is the greatest common factor of in the three terms.

If we highlight the factors of , we see that there are terms with no factor of . This means we cannot take out any factors of .

Thus, the greatest common factor of the three terms is . Taking a factor of out of the first term yields

Taking a factor of out of the second term gives us

Taking a factor of out of the third term produces

This allows us to take out the factor of as follows:

We usually write the constants at the end of the expression, so we have

We can also examine the process of expanding two linear factors to help us understand the reverse process, factoring quadratic expressions. For example, if we expand , we get

To reverse this process, we would start with and work backward to write it as two linear factors. But how would we know to separate into ? We can do this by noticing special qualities of 3 and 4, which are the coefficients of and :

That is, we can see that the product of 3 and 4 is equal to the product of 2 and 6 (i.e., the -coefficient and the constant coefficient) and that the sum of 3 and 4 is 7 (i.e., the -coefficient). To put this in general terms, for a quadratic expression of the form , we have identified a pair of numbers and such that and .

By identifying pairs of numbers as shown above, we can factor any general quadratic expression. To see this, let’s consider the expansion of :

Let’s compare this result to the general form of a quadratic expression . We can see that , , and , so we have

In other words, and , which are the coefficients of the -terms that appear in the expansion; they are two numbers that multiply to make and sum to give .

With this property in mind, let’s examine a general method that will allow us to factor any quadratic expression.

### How To: Factoring a Single-Variable Quadratic Polynomial

We can factor a quadratic polynomial of the form using the following steps:

- Calculate and list its factor pairs; find the pairs of numbers and such that .
- Add the factors of together to find two factors that add to give . Let’s say .
- Rewrite the -term using these factors. So, we have .
- Factor the first two terms and final two terms separately.
- Take out the common factor.

Let’s see this method applied to an example. First of all, we will consider factoring a monic quadratic expression (one where the -coefficient is 1).

### Example 3: Factoring a Quadratic Expression

Factor .

### Answer

We are asked to factor a quadratic expression with leading coefficient 1. We can do this by finding two numbers whose sum is the coefficient of , 8, and whose product is the constant, 12.

One way of finding a pair of numbers like this is to list the factor pairs of 12:

We see that and . We use this to rewrite the -term in the quadratic:

We now note that the first two terms share a factor of and the final two terms share a factor of 2. Taking out these factors yields

We can now note that both terms share a factor of . Taking out this factor gives

There are many other methods we can use to factor quadratics. For example, we can expand a product of the form to obtain

We note that the terms and sum to give zero in the expasion, which leads to an expression with only two terms. We call this resulting expression a difference of two squares, and by applying the above steps in reverse, we arrive at a way to factor any such expression.

### Property: Factoring a Difference of Two Squares

An expression of the form is called a difference of two squares. We can factor this as

In our next example, we will use this property of a factoring a difference of two squares to factor a given quadratic expression.

### Example 4: Factoring the Difference of Two Squares

Factor the expression .

### Answer

We first note that the expression we are asked to factor is the difference of two squares since . We can recall that

Therefore, taking , we have

In our next example, we will see how to apply this process to factor a polynomial using a substitution.

### Example 5: Factoring a Polynomial Using a Substitution

Factorize fully .

### Answer

We want to fully factor the given expression; however, we can see that the three terms share no common factor and that this is not a quadratic expression since the highest power of is 4.

We can rewrite the given expression as a quadratic using the substitution . To see this, we rewrite the expression using the laws of exponents:

Using the substitution gives us

We can now factor the quadratic by noting it is monic, so we need two numbers whose product is and whose sum is . We can find these by considering the factors of :

We see that and , so we will use these values to split the -term:

We take out the shared factor of in the first two terms and the shared factor of 2 in the final two terms to obtain

Now, we can take out the shared factor of from the two terms to get

We could leave our answer like this; however, the original expression we were given was in terms of . So, we will substitute into the factored expression to get

In our next example, we will fully factor a nonmonic quadratic expression.

### Example 6: Factoring a Nonmonic Quadratic Expression

Factorize fully .

### Answer

We first recall that to factor a quadratic in the form , we need to find two numbers whose product is and whose sum is . In our case, we have , , and , so we want two numbers that sum to give and multiply to give . Since the numbers sum to give , one of the numbers must be negative, so we will only check the factor pairs of 60 that contain negative factors:

We see that and are the factors of 60 whose sum is .

We use these two numbers to rewrite the -term as follows:

Then, we can take out the shared factor of in the first two terms and the shared factor of 2 in the final two terms to get

To make the two terms share a factor, we need to take a factor of out of the second term to obtain

Finally, we take out the shared factor of :

In our final example, we will apply this process to fully factor a nonmonic cubic expression.

### Example 7: Factoring a Nonmonic Cubic Expression

Factorize fully .

### Answer

We note that this expression is cubic since the highest nonzero power of is . When factoring cubics, we should first try to identify whether there is a common factor of we can take out. Since all three terms share a factor of , we can take out this factor to yield

We can factor the quadratic further by recalling that to factor , we need to find two numbers whose product is and whose sum is . In our case, we have , , and , so we want two numbers that sum to give and multiply to give . Since the numbers sum to give , one of the numbers must be negative, so we will only check the factor pairs of 72 that contain negative factors:

We find that these numbers are and .

We use these two numbers to rewrite the -term as follows:

Then, we can take out the shared factor of in the first two terms and the shared factor of 4 in the final two terms to get

To make the two terms share a factor, we need to take a factor of out of the second term to obtain

Finally, we take out the shared factor of :

Hence,

Let’s finish by recapping some of the important points from this explainer.

### Key Points

- The greatest common factor of an algebraic expression is the greatest common factor of the coefficients multiplied by each variable raised to the lowest exponent in which it appears in any term.
- We can factor an algebraic expression by checking for the greatest common factor of all of its terms and taking this factor out.
- An expression of the form is called a difference of two squares. We can factor this as
- We can factor a quadratic in the form by finding two numbers whose product is and whose sum is . We use these two numbers to rewrite the -term and then factor the first pair and final pair of terms. Finally, we factor the whole expression.
- If we are asked to factor a cubic or higher-degree polynomial, we should first check if each term shares any common factors of the variable to simplify the expression.