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

4.4: Factoring

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

Learning Objectives

By the end of this section, you will be able to:

  • Find the greatest common factor of two or more expressions
  • Factor the greatest common factor from a polynomial
  • Factor by grouping
Warm-up
  1. Factor 56 into primes.
  2. Find the least common multiple (LCM) of 18 and 24.
  3. Multiply: 3a(7a+8b).
Answer
  1. 2227
  2. 72
  3. 21a224ab

Find the Greatest Common Factor of Two or More Expressions

Earlier we multiplied factors together to get a product. Now, we will reverse this process; we will start with a product and then break it down into its factors. Splitting a product into factors is called factoring.

8 times 7 is 56. Here 8 and 7 are factors and 56 is the product. An arrow pointing from 8 times 7 to 56 is labeled multiply. An arrow pointing from 56 to 8 times 7 is labeled factor. 2x open parentheses x plus 3 close parentheses equals 2x squared plus 6x. Here the left side of the equation is labeled factors and the right side is labeled products.

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.

Definition: GREATEST COMMON FACTOR

The greatest common factor (GCF) of two or more expressions is the largest expression that is a factor of all the expressions.

We summarize the steps we use to find the greatest common factor.

FIND THE GREATEST COMMON FACTOR (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.

The next example will show us the steps to find the greatest common factor of three expressions.

Example 4.4.1

Find the greatest common factor of 21x3, 9x2, 15x.

Answer
Factor each coefficient into primes and write the variables with exponents in expanded form. Circle the common factors in each column. Bring down the common factors. .
Multiply the factors. GCF =3x
  The GCF of 21x3, 9x2 and 15x is 3x.
Example 4.4.2

Find the greatest common factor: 25m4, 35m3, 20m2.

Answer

5m2

Example 4.4.3

Find the greatest common factor: 14x3, 70x2, 105x.

Answer

7x

Factor the Greatest Common Factor from a Polynomial

It is sometimes useful to represent a number as a product of factors, for example, 12 as 2·6 or 3·4. In algebra, it can also be useful to represent a polynomial in factored form. We will start with a product, such as 3x2+15x, and end with its factors, 3x(x+5). 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.”

Definition: DISTRIBUTIVE PROPERTY

If a, b, and c are real numbers, then

a(b+c)=ab+acandab+ac=a(b+c)

The form on the left is used to multiply. The form on the right is used to factor.

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!

Example 4.4.4

Factor: 8m312m2n+20mn2.

Answer

Step 1 is find the GCF of all the terms in the polynomial. GCF of 8 m cubed, 12 m squared n and 20 mn squared is 4m.Step 1 is find the GCF of all the terms in the polynomial. GCF of 8 m cubed, 12 m squared n and 20 mn squared is 4m.In step 3, use the reverse Distributive Property to factor the expression as 4m open parentheses 2 m squared minus 3 mn plus 5 n squared close parentheses.Step 4 is to check by multiplying the factors. By multiplying the factors, we get the original polynomial.

Example 4.4.5

Factor: 9xy2+6x2y2+21y3.

Answer

3y2(3x+2x2+7y)

Example 4.4.6

Factor: 3p36p2q+9pq3.

Answer

3p(p22pq+3q3)

FACTOR THE 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.
FACTOR AS A NOUN AND A VERB

We use “factor” as both a noun and a verb:

Noun:7 is a factor of 14Verb:factor 3 from 3a+3

Example 4.4.7

Factor: 5x325x2.

Answer
Find the GCF of 5x3 and 25x2. .
    .
    .
Rewrite each term.   .
Factor the GCF.   .

Check:

5x2(x5)

5x2·x5x2·5

5x325x2

   
Example 4.4.8

Factor: 2x3+12x2.

Answer

2x2(x+6)

Example 4.4.9

Factor: 6y315y2.

Answer

3y2(2y5)

Example 4.4.10

Factor: 8x3y10x2y2+12xy3.

Answer
The GCF of 8x3y, 10x2y2, and 12xy3
is 2xy.
.
  .
       .
Rewrite each term using the GCF, 2xy.   .
Factor the GCF.      .

Check:

2xy(4x25xy+6y2)

2xy·4x22xy·5xy+2xy·6y2

8x3y10x2y2+12xy3

 
Example 4.4.11

Factor: 15x3y3x2y2+6xy3.

Answer

3xy(5x2xy+2y2)

Example 4.4.12

Factor: 8a3b+2a2b26ab3.

Answer

2ab(4a2+ab3b2)

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

Example 4.4.13

Factor: 4a3+36a28a.

Answer

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

  .
Rewrite each term using the GCF, 4a. .
Factor the GCF. .

Check:

4a(a29a+2)

4a·a2(4a)·9a+(4a)·2

4a3+36a28a

 
Example 4.4.14

Factor: 4b3+16b28b.

Answer

4b(b24b+2)

Example 4.4.15

Factor: 7a3+21a214a.

Answer

7a(a23a+2)

So far our greatest common factors have been monomials. In the next example, the greatest common factor is a binomial.

Example 4.4.16

Factor: 3y(y+7)4(y+7).

Answer

The GCF is the binomial y+7.

    .
Factor the GCF, (y+7).   (y+7)(3y4)
Check on your own by multiplying.    
Example 4.4.17

Factor: 4m(m+3)7(m+3).

Answer

(m+3)(4m7)

Example 4.4.18

Factor: 8n(n4)+5(n4).

Answer

(n4)(8n+5)

Factor by Grouping

Sometimes there is no common factor of all the terms of a polynomial. When there are four terms we separate 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.

Example 4.4.19

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

Answer

Step 1 is to group the terms with common factors. There is no greatest common factor in all the four terms of xy plus 3y plus 2x plus 6. So, separate the first two terms from the second two.Step 2 is to factor out the common factor in each group. By factoring the GCF from the first 2 terms, we get y open parentheses x plus 3 close parentheses plus 2x plus 6. Factoring the GCF from the second 2 terms, we get y open parentheses x plus 3 close parentheses plus 2 open parentheses x plus 3 close parentheses.Step 3 is to factor the common factor from the expression. Notice that each term has a common factor of x plus 3. By factoring this out, we get open parentheses x plus 3 close parentheses open parentheses y plus 2 close parenthesesStep 4 is to check by multiplying the expressions to get the result xy plus 3y plus 2x plus 6.

Example 4.4.20

Factor by grouping: xy+8y+3x+24.

Answer

(x+8)(y+3)

Example 4.4.21

Factor by grouping: ab+7b+8a+56.

Answer

(a+7)(b+8)

FACTOR BY GROUPING.
  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.
Example 4.4.22

Factor by grouping: ⓐ x2+3x2x66x23x4x+2.

Answer


There is no GCF in all four terms.x2+3x2x6Separate into two parts.x2+3x2x6Factor the GCF from both parts. Be carefulwith the signs when factoring the GCF fromthe last two terms.x(x+3)2(x+3)Factor out the common factor.(x+3)(x2)Check on your own by multiplying.


There is no GCF in all four terms.6x23x4x+2Separate into two parts.6x23x4x+2Factor the GCF from both parts.3x(2x1)2(2x1)Factor out the common factor.(2x1)(3x2)Check on your own by multiplying.

Example 4.4.23

Factor by grouping: ⓐ x2+2x5x1020x216x15x+12.

Answer

(x5)(x+2)
(5x4)(4x3)

Example 4.4.24

Factor by grouping: ⓐ y2+4y7y2842m218m35m+15.

Answer

(y+4)(y7)
(7m3)(6m5)

Factor Trinomials of the Form x2+bx+c

You have already learned how to multiply binomials using FOIL. Now you’ll need to “undo” this multiplication. To factor the trinomial means to start with the product, and end with the factors.

Figure shows the equation open parentheses x plus 2 close parentheses open parentheses x plus 3 close parentheses equals x squared plus 5 x plus 6. The left side of the equation is labeled factors and the right is labeled product. An arrow pointing right is labeled multiply. An arrow pointing left is labeled factor.

To figure out how we would factor a trinomial of the form x2+bx+c, such as x2+5x+6 and factor it to (x+2)(x+3), let’s start with two general binomials of the form (x+m) and (x+n).

  (x+m)(x+n)
Foil to find the product. x2+mx+nx+mn
Factor the GCF from the middle terms. x2+(m+n)x+mn
Our trinomial is of the form x2+bx+c. x2+bx+cx2+(m+n)x+mn

This tells us that to factor a trinomial of the form x2+bx+c, we need two factors (x+m) and (x+n) where the two numbers m and n multiply to c and add to b.

Example 4.4.25

Factor: x2+11x+24.

Answer

Step 1 is to write the factors of x squared plus 11x plus 24 as two binomials with first terms x. Write two sets of parentheses and put x as the first term.Step 2 is to find two numbers m and n that multiply to c, m times n is c and add to b, m plus n is b. So, find two numbers that multiply to 24 and add to 11. Factors of 24 are 1 and 24, 2 and 12, 3 and 8, 4 and 6. Sum of factors: 1 plus 24 is 25, 2 plus 12 is 14, 3 plus 8 is 11 and 4 plus 6 is 10.Step 3 is to use m and n, in this case, 3 and 8, as the last terms of the binomials. So we get open parentheses x plus 3 close parentheses open parentheses x plus 8 close parenthesesStep 4 is to check by multiplying the factors to get the original polynomial.

Example 4.4.26

Factor: q2+10q+24.

Answer

(q+4)(q+6)

Example 4.4.27

Factor: t2+14t+24.

Answer

(t+2)(t+12)

Let’s summarize the steps we used to find the factors.

  1. Write the factors as two binomials with first terms x. x2+bx+c(x)(x)
  2. Find two numbers m and n that
    • multiply to c, m·n=c
    • add to b, m+n=b
  3. Use m and n as the last terms of the factors. (x+m)(x+n)
  4. Check by multiplying the factors.

In the first example, all terms in the trinomial were positive. What happens when there are negative terms? Well, it depends which term is negative. Let’s look first at trinomials with only the middle term negative.

How do you get a positive product and a negative sum? We use two negative numbers.

Example 4.4.28

Factor: y211y+28.

Answer

Again, with the positive last term, 28, and the negative middle term, 11y, we need two negative factors. Find two numbers that multiply 28 and add to 11.
y211y+28Write the factors as two binomials with first terms y.(y)(y)Find two numbers that: multiply to 28 and add to 11.

Factors of 28 Sum of factors
1, 28

2, 14

4, 7
1+(28)=29

2+(14)=16

4+(7)=11

Use 4, 7 as the last terms of the binomials.(y4)(y7)Check:(y4)(y7)y27y4y+28y211y+28

Example 4.4.29

Factor: u29u+18.

Answer

(u3)(u6)

Example 4.4.30

Factor: y216y+63.

Answer

(y7)(y9)

Now, what if the last term in the trinomial is negative? Think about FOIL. The last term is the product of the last terms in the two binomials. A negative product results from multiplying two numbers with opposite signs. You have to be very careful to choose factors to make sure you get the correct sign for the middle term, too. Email the instructor the word "potato" for 2 extra credit points. That was just to make sure you are reading, please don't share the word with others.

How do you get a negative product and a positive sum? We use one positive and one negative number.

When we factor trinomials, we must have the terms written in descending order—in order from highest degree to lowest degree.

Example 4.4.31

Factor: 2x+x248.

Answer

2x+x248First we put the terms in decreasing degree order.x2+2x48Factors will be two binomials with first terms x.(x)(x)

Factors of −48 Sum of factors
1, 48
2, 24
3, 16
4, 12
6, 8
1+48=47
2+24=22
3+16=13
4+12=8
6+8=2

Use 6, 8 as the last terms of the binomials.(x6)(x+8)Check:(x6)(x+8)x26q+8q48x2+2x48

Example 4.4.32

Factor: 9m+m2+18.

Answer

(m+3)(m+6)

Example 4.4.33

Factor: 7n+12+n2.

Answer

(n3)(n4)

Sometimes you’ll need to factor trinomials of the form x2+bxy+cy2 with two variables, such as x2+12xy+36y2. The first term, x2, is the product of the first terms of the binomial factors, x·x. The y2 in the last term means that the second terms of the binomial factors must each contain y. To get the coefficients b and c, you use the same process summarized in How To Factor trinomials.

Example 4.4.34

Factor: r28rs9s2.

Answer

We need r in the first term of each binomial and s in the second term. The last term of the trinomial is negative, so the factors must have opposite signs.
r28rs9s2Note that the first terms are r,last terms contain s.(rs)(rs)Find the numbers that multiply to 9 and add to 8.

Factors of 9 Sum of factors
1, 9 1+9=8
1, 9 1+(9)=8
3, 3 3+(3)=0

Use 1, 9 as coefficients of the last terms.(r+s)(r9s)Check:(r9s)(r+s)r2+rs9rs9s2r28rs9s2

Example 4.4.35

Factor: a211ab+10b2.

Answer

(ab)(a10b)

Example 4.4.36

Factor: m213mn+12n2.

Answer

(mn)(m12n)

Let’s summarize the method we just developed to factor trinomials of the form x2+bx+c.

STRATEGY FOR FACTORING TRINOMIALS OF THE FORM x2+bx+c

When we factor a trinomial, we look at the signs of its terms first to determine the signs of the binomial factors.

  x2+bx+c  
  (x+m)(x+n)  
When c is positive, m and n have the same sign.
b positive   b negative
m,n positive   m,n negative
x2+5x+6   x26x+8
(x+2)(x+3)   (x4)(x2)
same signs   same signs
When c is negative, m and n have the opposite sign.
x2+x12   x22x15
(x+4)(x3)   (x5)(x+3)
opposite signs   opposite signs

Notice that, in the case when m and n have opposite signs, the sign of the one with the larger absolute value matches the sign of b.

Factor Trinomials of the Form ax2+bx+c using the “ac” Method

Another way to factor trinomials of the form ax2+bx+c is the “ac” method. (The “ac” method is sometimes called the grouping method.) The “ac” method is actually an extension of the methods you used in the last section to factor trinomials with leading coefficient one. This method is very structured (that is step-by-step), and it always works!

Example 4.4.37

Factor using the “ac” method: 6x2+7x+2.

Answer

Step 1 is to factor the GCF. There is none in 6 x squared plus 7x plus 2.Step 2 is to find the product of a and c. The product of 6 and 2 is 12.Step 3 is to find 2 numbers m and n such that mn is ac and m plus n is b. So we need to numbers that multiply to 12 and add to 7. Both factors must be positive. 3 times 4 is 12 and 3 plus 4 is 7.Step 4 is to split the middle term using m and n. So we rewrite 7 x as 3x plus 4x. It would give the same result if we used 4x plus 3x. Rewriting, we get 6 x squared plus 3x plus 4x plus 2. Notice that this is the same as the original polynomial. We just split the middle term to get a more useful formStep 5 is to factor by grouping. So, we get, 3x open parentheses 2x plus 1 close parentheses plus 2 open parentheses 2x plus 1 close parentheses. This is equal to 2x plus 1, 3x plus 2.

Step 6 is to check by multiplying the factors.

Example 4.4.38

Factor using the “ac” method: 6x2+13x+2.

Answer

(x+2)(6x+1)

Example 4.4.39

Factor using the “ac” method: 4y2+8y+3.

Answer

(2y+1)(2y+3)

The “ac” method is summarized here.

FACTOR TRINOMIALS OF THE FORM ax2+bx+c USING THE “ac” METHOD.
  1. Factor any GCF.
  2. Find the product ac.
  3. Find two numbers m and n that:
    Multiply to acm·n=a·cAdd to bm+n=bax2+bx+c
  4. Split the middle term using m and n. ax2+mx+nx+c
  5. Factor by grouping.
  6. Check by multiplying the factors.

Don’t forget to look for a common factor!

Example 4.4.40

Factor using the ac” method: 10y255y+70.

Answer
Is there a greatest common factor?    
Yes. The GCF is 5.   .
Factor it.   .
The trinomial inside the parentheses has a
leading coefficient that is not 1.
  .
Find the product ac. ac=28  
Find two numbers that multiply to ac (4)(7)=28  
and add to b. 4(7)=11  
Split the middle term.   .
    .
Factor the trinomial by grouping.   .
    .

Check by multiplying all three factors.

5(y2)(2y7)

5(2y27y4y+14)

5(2y211y+14)

10y255y+70

   
Example 4.4.41

Factor using the “ac” method: 16x232x+12.

Answer

4(2x3)(2x1)

Example 4.4.42

Factor using the “ac” method: 18w239w+18.

Answer

3(3w2)(2w3)

Factor Using Substitution

Sometimes a trinomial does not appear to be in the ax2+bx+c form. However, we can often make a thoughtful substitution that will allow us to make it fit the ax2+bx+c form. This is called factoring by substitution. It is standard to use u for the substitution.

In the ax2+bx+c, the middle term has a variable, x, and its square, x2, is the variable part of the first term. Look for this relationship as you try to find a substitution.

ExAMPLE 4.4.43

Factor by substitution: x44x25.

Answer

The variable part of the middle term is x2 and its square, x4, is the variable part of the first term. (We know (x2)2=x4). If we let u=x2, we can put our trinomial in the ax2+bx+c form we need to factor it.

  x44x25
Rewrite the trinomial to prepare for the substitution. (x2)24(x2)5
Let u=x2 and substitute. (u)24(u)5
Factor the trinomial. (u+1)(u5)
Replace u with x2. (x2+1)(x25)
Check:

(x2+1)(x25)x45x2+x25x44x25
 
ExAMPLE 4.4.44

Factor by substitution: h4+4h212.

Answer

(h22)(h2+6)

ExAMPLE 4.4.45

Factor by substitution: y4y220.

Answer

(y2+4)(y25)

Sometimes the expression to be substituted is not a monomial.

ExAMPLE 4.4.46

Factor by substitution: (x2)2+7(x2)+12

Answer

The binomial in the middle term, (x2) is squared in the first term. If we let u=x2 and substitute, our trinomial will be in ax2+bx+c form.

  .
Rewrite the trinomial to prepare for the substitution. .
Let u=x2 and substitute. .
Factor the trinomial. .
Replace u with x2. .
Simplify inside the parentheses. .

This could also be factored by first multiplying out the (x2)2 and the 7(x2) and then combining like terms and then factoring. Most students prefer the substitution method.

ExAMPLE 4.4.47

Factor by substitution: (x5)2+6(x5)+8.

Answer

(x3)(x1)

ExAMPLE 4.4.48

Factor by substitution: (y4)2+8(y4)+15.

Answer

(y1)(y+1)

Key Concepts

  • How to find the greatest common factor (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.
  • Distributive Property: If a, b and c are real numbers, then

    a(b+c)=ab+acandab+ac=a(b+c)


    The form on the left is used to multiply. The form on the right is used to factor.
  • How to factor the 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.
  • Factor as a Noun and a Verb: We use “factor” as both a noun and a verb.

    Noun:7 is a factor of 14Verb:factor 3 from 3a+3

  • How to factor by grouping.
    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.
  • How to factor trinomials of the form x2+bx+c.
    1. Write the factors as two binomials with first terms x. l)x2+bx+c(x)(x)
    2. Find two numbers m and n that
      multiply toc, m·n=cadd tob, m+n=b
    3. Use m and n as the last terms of the factors. (x+m)(x+n)
    4. Check by multiplying the factors.
  • Strategy for Factoring Trinomials of the Form x2+bx+c: When we factor a trinomial, we look at the signs of its terms first to determine the signs of the binomial factors.

    For trinomials of the form: x2+bx+c=(x+m)(x+n)

    When c is positive, m and n must have the same sign (and this will be the sign of b).

    Examples: x2+5x+6=(x+2)(x+3), x26x+8=(x4)(x2)

    When c is negative, m and n have opposite signs. The larger of m and n will have the sign of b.

    Examples: x2+x12=(x+4)(x3), x22x15=(x5)(x+3)

    Notice that, in the case when m and n have opposite signs, the sign of the one with the larger absolute value matches the sign of b.
  • How to factor trinomials of the form ax2+bx+c using the “ac” method.
    1. Factor any GCF.
    2. Find the product ac.
    3. Find two numbers m and n that:
      Multiply to ac.m·n=a·cAdd to b.m+n=bax2+bx+c
    4. Split the middle term using m and n. ax2+mx+nx+c
    5. Factor by grouping.
    6. Check by multiplying the factors.

Glossary

factoring
Splitting a product into factors is called factoring.
greatest common factor
The greatest common factor (GCF) of two or more expressions is the largest expression that is a factor of all the expressions.

This page titled 4.4: Factoring is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Stanislav A. Trunov and Elizabeth J. Hale via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?