Lesson Explainer: Factoring Algebraic Expressions | Nagwa Lesson Explainer: Factoring Algebraic Expressions | Nagwa

Lesson Explainer: Factoring Algebraic Expressions Mathematics

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 𝑥(𝑥+2) by distributing the factor of 𝑥:

If we write this equation in reverse, then we have 𝑥+2𝑥=𝑥×𝑥+𝑥×2=𝑥𝑥+2.

Starting with 𝑥+2𝑥, we note that both terms share a factor of 𝑥. Then, we take this shared factor out to get 𝑥+2𝑥=𝑥(𝑥+2).

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 4𝑥𝑦+2𝑥𝑦6𝑥. 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 𝑥: 4𝑥𝑦+2𝑥𝑦6𝑥. 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, 6𝑥, 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 2𝑥; this is the greatest common factor of the three terms.

We want to take the factor of 2𝑥 out of the expression. Doing this separately for each term, we obtain 4𝑥𝑦=2𝑥×2𝑦,2𝑥𝑦=2𝑥×𝑥𝑦,6𝑥=2𝑥×(3).

Hence, we can factor the expression to get 4𝑥𝑦+2𝑥𝑦6𝑥=2𝑥2𝑦+𝑥𝑦3

We call 2𝑥 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 12𝑥𝑦8𝑥𝑦 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 12=4×3 and 8=4×2 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 𝑥: 12𝑥𝑦8𝑥𝑦.

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, 12𝑥𝑦8𝑥𝑦, 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 4𝑥𝑦.

Let’s factor 4𝑥𝑦 from each term separately.

For the first term, we have 12𝑥𝑦=4𝑥𝑦×3𝑥.

For the second term, we have 8𝑥𝑦=4𝑥𝑦×(2𝑦).

This allows us to take out the factor of 4𝑥𝑦 as follows: 12𝑥𝑦8𝑥𝑦=4𝑥𝑦×3𝑥+4𝑥𝑦×(2𝑦)=4𝑥𝑦3𝑥2𝑦.

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

Example 2: Factoring an Expression with Three Terms

Factor the expression 6𝑝+3𝑝6𝑝𝑞 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 𝑝, 6𝑝+3𝑝6𝑝𝑞, 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 𝑞, 6𝑝+3𝑝6𝑝𝑞, 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 3𝑝. Taking a factor of 3𝑝 out of the first term yields 6𝑝=3𝑝×2𝑝.

Taking a factor of 3𝑝 out of the second term gives us 3𝑝=3𝑝×1.

Taking a factor of 3𝑝 out of the third term produces 6𝑝𝑞=3𝑝×(2𝑞).

This allows us to take out the factor of 3𝑝 as follows: 6𝑝+3𝑝6𝑝𝑞=(3𝑝×2𝑝)+(3𝑝×1)+(3𝑝×(2𝑞))=3𝑝(2𝑝+12𝑞).

We usually write the constants at the end of the expression, so we have 6𝑝+3𝑝6𝑝𝑞=3𝑝(2𝑝2𝑞+1).

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 (2𝑥+3)(𝑥+2), we get (2𝑥+3)(𝑥+2)=𝑥(2𝑥+3)+2(2𝑥+3)=2𝑥+3𝑥+4𝑥+6=2𝑥+7𝑥+6.

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

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:

  1. Calculate 𝑎𝑐 and list its factor pairs; find the pairs of numbers 𝑚 and 𝑛 such that 𝑚𝑛=𝑎𝑐.
  2. Add the factors of 𝑎𝑐 together to find two factors that add to give 𝑏. Let’s say 𝑚+𝑛=𝑏.
  3. Rewrite the 𝑥-term using these factors. So, we have 𝑎𝑥+𝑚𝑥+𝑛𝑥+𝑐.
  4. Factor the first two terms and final two terms separately.
  5. 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 𝑥+8𝑥+12.

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 2+6=8 and 2×6=12. We use this to rewrite the 𝑥-term in the quadratic: 𝑥+8𝑥+12=𝑥+6𝑥+2𝑥+12.

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 𝑥+6𝑥+2𝑥+12=𝑥(𝑥+6)+2(𝑥+6).

We can now note that both terms share a factor of 𝑥+6. Taking out this factor gives 𝑥(𝑥+6)+2(𝑥+6)=(𝑥+6)(𝑥+2).

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 𝑥49.

Answer

We first note that the expression we are asked to factor is the difference of two squares since 49=7. We can recall that 𝑥𝑦=(𝑥+𝑦)(𝑥𝑦).

Therefore, taking 𝑦=7, we have 𝑥49=𝑥7=(𝑥+7)(𝑥7).

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 𝑦5𝑦14.

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: 𝑦5𝑦14=𝑦5𝑦14.

Using the substitution 𝑥=𝑦 gives us 𝑦5𝑦14=𝑥5𝑥14.

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

We see that 7×2=14 and 7+2=5, so we will use these values to split the 𝑥-term: 𝑥5𝑥14=𝑥7𝑥+2𝑥14.

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 𝑥7𝑥+2𝑥14=𝑥(𝑥7)+2(𝑥7).

Now, we can take out the shared factor of 𝑥7 from the two terms to get 𝑥(𝑥7)+2(𝑥7)=(𝑥+2)(𝑥7).

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 𝑦5𝑦14=𝑦+2𝑦7.

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

Example 6: Factoring a Nonmonic Quadratic Expression

Factorize fully 6𝑥19𝑥+10.

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 𝑎=6, 𝑏=19, and 𝑐=10, so we want two numbers that sum to give 19 and multiply to give 6×10=60. Since the numbers sum to give 19, one of the numbers must be negative, so we will only check the factor pairs of 60 that contain negative factors:

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

We use these two numbers to rewrite the 𝑥-term as follows: 6𝑥19𝑥+10=6𝑥15𝑥4𝑥+10.

Then, we can take out the shared factor of 3𝑥 in the first two terms and the shared factor of 2 in the final two terms to get 6𝑥15𝑥4𝑥+10=3𝑥(2𝑥5)+2(2𝑥+5).

To make the two terms share a factor, we need to take a factor of 1 out of the second term to obtain 3𝑥(2𝑥5)+2(2𝑥+5)=3𝑥(2𝑥5)2(2𝑥5).

Finally, we take out the shared factor of 2𝑥5: 3𝑥(2𝑥5)2(2𝑥5)=(2𝑥5)(3𝑥2).

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 6𝑥17𝑥+12𝑥.

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 6𝑥17𝑥+12𝑥=𝑥6𝑥17𝑥+12.

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 𝑎=6, 𝑏=17, and 𝑐=12, so we want two numbers that sum to give 17 and multiply to give 6×12=72. Since the numbers sum to give 17, 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 8 and 9.

We use these two numbers to rewrite the 𝑥-term as follows: 6𝑥17𝑥+12=6𝑥9𝑥8𝑥+12.

Then, we can take out the shared factor of 3𝑥 in the first two terms and the shared factor of 4 in the final two terms to get 6𝑥9𝑥8𝑥+10=3𝑥(2𝑥3)+4(2𝑥+3).

To make the two terms share a factor, we need to take a factor of 1 out of the second term to obtain 3𝑥(2𝑥3)+4(2𝑥+3)=3𝑥(2𝑥3)4(2𝑥3).

Finally, we take out the shared factor of 2𝑥3: 3𝑥(2𝑥3)4(2𝑥3)=(3𝑥4)(2𝑥3).

Hence, 6𝑥17𝑥+12𝑥=𝑥(3𝑥4)(2𝑥3).

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.

Download the Nagwa Classes App

Attend sessions, chat with your teacher and class, and access class-specific questions. Download the Nagwa Classes app today!

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy.