Factoring Special Cases
9.2 Learning Objectives
- Special Cases - Squares
- Factor a polynomial of the form: a2+2ab+b2
- Factor a polynomial of the form: a2−b2
- Special Cases - Cubes
-
- Factor the sum of cubes.
- Factor the difference of cubes
- More Factoring Methods
-
- Factor expressions with negative exponents
- Factor expressions with fractional exponents
- Factor by substitution
- Factor completely
Why learn how to factor special cases?
Some people like to find patterns in the world around them, like a game. There are some polynomials that, when factored, follow a specific pattern.
These include:
Perfect square trinomials of the form: a2+2ab+b2
A difference of squares: a2−b2
A sum of cubes: a3+b3
A difference of cubes: a3−b3
In this lesson you will see you can factor each of these types of polynomials following a specific pattern. You will also learn how to factor polynomials that have negative or fractional exponents.
Some people find it helpful to know when they can take a shortcut to avoid doing extra work. There are some polynomials that will always factor a certain way, and for those we offer a shortcut. Most people find it helpful to memorize the factored form of a perfect square trinomial or a difference of squares. The most important skill you will use in this section will be recognizing when you can use the shortcuts.
9.2.1 Factoring a Perfect Square Trinomial
A perfect square trinomial is a trinomial that can be written as the square of a binomial. Recall that when a binomial is squared, the result is the square of the first term added to twice the product of the two terms and the square of the last term.
a2+2ab+b2a2−2ab+b2=and=(a+b)2(a−b)2
We can use this equation to factor any perfect square trinomial.
A General Note: Perfect Square Trinomials
A perfect square trinomial can be written as the square of a binomial:
a2+2ab+b2=(a+b)2
In the following example we will show you how to define a, and b so you can use the shortcut.
Exercises 9.2.A
Factor
25x2+20x+4.
Answer:
First, notice that 25x2 and 4 are perfect squares because 25x2=(5x)2 and 4=22.
This means that a=5x and b=2
Next, check to see if the middle term is equal to 2ab, which it is:
2ab=2(5x)(2)=20x.
Therefore, the trinomial is a perfect square trinomial and can be written as
(a+b)2=(5x+2)2.
Answer
25x2+20x+4=(5x+2)2
In the next example, we will show that we can use 1=12 to factor a polynomial with a term equal to 1.
Example 9.2.B
Factor
49x2−14x+1.
Answer:
First, notice that 49x2 and 1 are perfect squares because 49x2=(7x)2 and 1=12.
This means that a=7x, we could say that b=1, but would that give a middle term of −14x? We will need to choose b=−1 to get the results we want:
2ab=2(7x)(−1)=−14x.
Therefore, the trinomial is a perfect square trinomial and can be written as
(a−b)2=(7x−1)2.
Answer
49x2−14x+1=(7x−1)2
In the following video we provide another short description of what a perfect square trinomial is, and show how to factor them using a the formula.
https://youtu.be/UMCVGDTxxTI
We can summarize our process in the following way:
Given a perfect square trinomial, factor it into the square of a binomial.
- Confirm that the first and last term are perfect squares.
- Confirm that the middle term is twice the product of ab.
- Write the factored form as (a+b)2, or(a−b)2.
9.2.2 Factoring a Difference of Squares
A difference of squares is a perfect square subtracted from a perfect square. Recall that a difference of squares can be rewritten as factors containing the same terms but opposite signs because the middle terms cancel each other out when the two factors are multiplied.
a2−b2=(a+b)(a−b)
We can use this equation to factor any differences of squares.
A General Note: Differences of Squares
A difference of squares can be rewritten as two factors containing the same terms but opposite signs.
a2−b2=(a+b)(a−b)
Example 9.2.C
Factor
9x2−25.
Answer:
Notice that 9x2 and 25 are perfect squares because 9x2=(3x)2 and 25=52.
This means that a=3x, and b=5
The polynomial represents a difference of squares and can be rewritten as (3x+5)(3x−5).
Check that you are correct by multiplying.
(3x+5)(3x−5)=9x2−15x+15x−25=9x2−25
Answer
9x2−25=(3x+5)(3x−5)
The most helpful thing for recognizing a difference of squares that can be factored with the shortcut is knowing which numbers are perfect squares, as you will see in the next example.
Example 9.2.D
Factor
81y2−144.
Answer:
Notice that 81y2 and 144 are perfect squares because 81y2=(9x)2 and 144=122.
This means that a=9x, and b=12
The polynomial represents a difference of squares and can be rewritten as (9x+12)(9x−12).
Check that you are correct by multiplying.
(9x+12)(9x−12)=81x2−108x+108x−144=81x2−144
Answer
81y2−144=(9x+12)(9x−12)
In the following video we show another example of how to use the formula for fact a difference of squares.
https://youtu.be/Li9IBp5HrFA
We can summarize the process for factoring a difference of squares with the shortcut this way:
How To: Given a difference of squares, factor it into binomials.
- Confirm that the first and last term are perfect squares.
- Write the factored form as (a+b)(a−b).
Think About It
Is there a formula to factor the sum of squares,
a2+b2, into a product of two binomials?
Write down some ideas for how you would answer this in the box below before you look at the answer.
[practice-area rows="1"][/practice-area]
Answer:
There is no way to factor a sum of squares into a product of two binomials, this is because of addition - the middle term needs to "disappear" and the only way to do that is with opposite signs. to get a positive result, you must multiply two numbers with the same signs.
The only time a sum of squares can be factored is if they share any common factors, as in the following case:
9x2+36
9x2=(3x)2, and 36=62
The only way to factor this expression is by pulling out the GCF which is 9.
9x2+36=9(x2+4)
9.2.3 Cubes
Some interesting patterns arise when you are working with cubed quantities within polynomials. Specifically, there are two more special cases to consider: a3+b3 and a3−b3.
Let’s take a look at how to factor sums and differences of cubes.
Sum of Cubes
The term “cubed” is used to describe a number raised to the third power. In geometry, a cube is a six-sided shape with equal width, length, and height; since all these measures are equal, the volume of a cube with width x can be represented by x3. (Notice the exponent!)
Cubed numbers get large very quickly. 13=1, 23=8, 33=27, 43=64, and 53=125.
Before looking at factoring a sum of two cubes, let’s look at the possible factors.
It turns out that a3+b3 can actually be factored as (a+b)(a2–ab+b2). Let’s check these factors by multiplying.
Example 9.2.E
Does
(a+b)(a2–ab+b2)=a3+b3?
Answer:
Apply the distributive property.
(a)(a2–ab+b2)+(b)(a2–ab+b2)
Multiply by
a.
(a3–a2b+ab2)+(b)(a2−ab+b2)
Multiply by
b.
(a3–a2b+ab2)+(a2b–ab2+b3)
Rearrange terms in order to combine the like terms.
a3−a2b+a2b+ab2−ab2+b3
Simplify.
Answer
a3+b3
Did you see that? Four of the terms cancelled out, leaving us with the (seemingly) simple binomial a3+b3. So, the factors are correct.
You can use this pattern to factor binomials in the form a3+b3, otherwise known as “the sum of cubes.”
The Sum of Cubes
A binomial in the form
a3+b3 can be factored as
(a+b)(a2–ab+b2).
Examples:
The factored form of
x3+64 is
(x+4)(x2–4x+16).
The factored form of
8x3+y3 is
(2x+y)(4x2–2xy+y2).
Example 9.2.F
Factor
x3+8y3.
Answer:
Identify that this binomial fits the sum of cubes pattern: a3+b3.
a=x, and b=2y (since 2y⋅2y⋅2y=8y3).
x3+8y3
Factor the binomial as
(a+b)(a2–ab+b2), substituting
a=x and
b=2y into the expression.
(x+2y)(x2−x(2y)+(2y)2)
Square
(2y)2=4y2.
(x+2y)(x2−x(2y)+4y2)
Multiply
−x(2y)=−2xy (writing the coefficient first).
Answer
(x+2y)(x2−2xy+4y2)
And that’s it. The binomial x3+8y3 can be factored as (x+2y)(x2–2xy+4y2)! Let’s try another one.
You should always look for a common factor before you follow any of the patterns for factoring.
Example 9.2.G
Factor
16m3+54n3.
Answer:
Factor out the common factor 2.
16m3+54n3
8m3 and
27n3 are cubes, so you can factor
8m3+27n3 as the sum of two cubes:
a=2m, and
b=3n.
2(8m3+27n3)
Factor the binomial
8m3+27n3 substituting
a=2m and
b=3n into the expression
(a+b)(a2−ab+b2).
2(2m+3n)[(2m)2−(2m)(3n)+(3n)2]
Square:
(2m)2=4m2 and
(3n)2=9n2.
2(2m+3n)[4m2−(2m)(3n)+9n2]
Multiply
−(2m)(3n)=−6mn.
Answer
2(2m+3n)(4m2−6mn+9n2)
Difference of Cubes
Having seen how binomials in the form a3+b3 can be factored, it should not come as a surprise that binomials in the form a3−b3 can be factored in a similar way.
The Difference of Cubes
A binomial in the form
a3–b3 can be factored as
(a−b)(a2+ab+b2).
Examples
The factored form of
x3–64 is
(x–4)(x2+4x+16).
The factored form of
27x3–8y3 is
(3x–2y)(9x2+6xy+4y2).
Notice that the basic construction of the factorization is the same as it is for the sum of cubes; the difference is in the + and – signs. Take a moment to compare the factored form of a3+b3 with the factored form of a3−b3.
Factored form of a3+b3: (a+b)(a2−ab+b2)
Factored form of a3−b3: (a−b)(a2+ab+b2)
This can be tricky to remember because of the different signs—the factored form of a3+b3 contains a negative, and the factored form of a3−b3 contains a positive! Some people remember the different forms like this:
“Remember one sequence of variables: a3b3=(ab)(a2abb2). There are 4 missing signs. Whatever the first sign is, it is also the second sign. The third sign is the opposite, and the fourth sign is always +.”
Try this for yourself. If the first sign is +, as in a3+b3, according to this strategy how do you fill in the rest: (ab)(a2abb2)? Does this method help you remember the factored form of a3+b3 and a3–b3?
Let’s go ahead and look at a couple of examples. Remember to factor out all common factors first.
Example 9.2.H
Factor
8x3–1,000.
Answer:
Factor out 8.
8(x3–125)
Identify that the binomial fits the pattern
a3−b3:a=x, and
b=5 (since
53=125).
8(x3–125)
Factor
x3–125 as
(a–b)(a2+ab+b2), substituting
a=x and
b=5 into the expression.
8(x−5)[x2+(x)(5)+52]
Square the first and last terms, and rewrite
(x)(5) as
5x.
8(x–5)(x2+5x+25)
Answer
8(x–5)(x2+5x+25)
Let’s see what happens if you don’t factor out the common factor first. In this example, it can still be factored as the difference of two cubes. However, the factored form still has common factors, which need to be factored out.
As you can see, this last example still worked, but required a couple of extra steps. It is always a good idea to factor out all common factors first. In some cases, the only efficient way to factor the binomial is to factor out the common factors first.
Here is one more example. Note that r9=(r3)3 and that 8s6=(2s2)3.
Example 9.2.I
Factor
r9−8s6.
Answer: Identify this binomial as the difference of two cubes. As shown above, it is. Using the laws of exponents, rewrite r9 as (r3)3.
r9−8s6
Rewrite
r9 as
(r3)3 and rewrite
8s6 as
(2s2)3.
(r3)3−(2s2)3
Now the binomial is written in terms of cubed quantities. Thinking of
a3−b3,
a=r3 and
b=2s2.
Factor the binomial as
(a−b)(a2+ab+b2), substituting
a=r3 and
b=2s2 into the expression.
(r3−2s2)[(r3)2+(r3)(2s2)+(2s2)2]
Multiply and square the terms.
(r3−2s2)(r6+2r3s2+4s4)
Answer
(r3−2s2)(r6+2r3s2+4s4)
In the following two video examples we show more binomials that can be factored as a sum or difference of cubes.
https://youtu.be/tFSEpOB262M
https://youtu.be/J_0ctMrl5_0
You encounter some interesting patterns when factoring. Two special cases—the sum of cubes and the difference of cubes—can help you factor some binomials that have a degree of three (or higher, in some cases). The special cases are:
- A binomial in the form a3+b3 can be factored as (a+b)(a2–ab+b2)
- A binomial in the form a3−b3 can be factored as (a−b)(a2+ab+b2)
Always remember to factor out any common factors first.
9.2.3 More Factoring Methods
Expressions with fractional or negative exponents can be factored using the same factoring techniques as those with integer exponents. It is important to remember a couple of things first.
- When you multiply two exponentiated terms with the same base, you can add the exponents: x−1⋅x−1=x−1+(−1)=x−2
- When you add fractions, you need a common denominator: 21+31=33⋅21+22⋅31=63+62=65
- Polynomials have positive integer exponents - if it has a fractional or negative exponent it is an expression.
First, let's practice finding a GCF that is a negative exponent.
Example 9.2.J
Factor
12y−3−2y−2
Answer:
If the exponents in this expression were positive we could determine that the GCF is 2y2, but since we have negative exponents, we will need to use 2y−2.
Therefore 12y−3−2y−2=2y−2(6y−1−1)
We can check that we are correct by multiplying:
2y−2(6y−1−1)=12y−2+(−1)−2y−2=12y−3−2y−2
Answer
12y−3−2y−2=2y−2(6y−1−1)
Now let's factor a trinomial that has negative exponents.
Example 9.2.K
Factor
x−2+5x−1+6.
Answer:
If the exponents on this trinomial were positive, we could factor this as (x+2)(x+3). Note that the exponent on the x's in the factored form is 1, in other words (x+2)=(x1+2).
Also note that −1+(−1)=−2, therefore if we factor this trinomial as (x−1+2)(x−1+3), we will get the correct result if we check by multiplying.
(x−1+2)(x−1+3)=x−1+(−1)+2x−1+3x−1+6=x−2+5x−1+6
Answer
x−2+5x−1+6=(x−1+2)(x−1+3)
In the next example we will see a difference of squares with negative exponents. We can use the same shortcut as we have before, but be careful with the exponent.
Example 9.2.L
Factor
25x−4−36
Answer:
Recall that a difference of squares factors in this way: a2−b2=(a−b)(a+b), and the first thing we did was identify a and b to see whether we could factor this as a difference of squares.
Given 25x−4−36, we can define a=5x−2, and b=6 because 5x−22=25x−4, and 62=36
Therefore the factored form is: (5x−2−6)(5x−2+6)
Answer
25x−4−36=(5x−2−6)(5x−2+6)
In the following video examples you will see more examples that are similar to the previous three written examples.
https://youtu.be/4w99g0GZOCk
9.2.4 Fractional Exponents
Again, we will first practice finding a GCF that has a fractional exponent.
Example 9.2.M
Factor
x32+3x31
Answer:
First, look for the term with the lowest value exponent. In this case, it is 3x31.
Recall that when you multiply terms with exponents, you add the exponents. To get 32 you would need to add 31 to 31, so we will need a term whose exponent is 31.
x31⋅x31=x32, therefore:
x32+3x31=x31(x31+3)
Answer
x32+3x31=x31(x31+3)
In our next example we will factor a perfect square trinomial that has fractional exponents.
Example 9.2.N
Factor
25x21+70x41+49
Answer:
Recall that a perfect square trinomial of the form a2+2ab+b2 factors as (a+b)2
The first step in factoring a perfect square trinomial was to identify a and b.
To find a, we ask: (?)2=25x21, and recall that (xa)b=xa⋅b, therefore we are looking for an exponent for x that when multiplied by 2, will give 21. You can also think about the fact that the middle term is defined as 2ab so a will probably have an exponent of 41, therefore a choice for a may be 5x41
We can check that this is right by squaring a: (5x41)2=25x2⋅41=25x21
b=7 and b2=49
Now we can check whether 2ab=70x41
2ab=2⋅5x41⋅7=70x41
Our terms work out, so we can use the shortcut to factor:
25x21+70x41+49=(5x41+7)2
In our next video example you will see more examples of how to factor expressions with fractional exponents.
https://youtu.be/R6BzjR2O4z8
9.2.5 Factor Using Substitution
We are going to move back to factoring polynomials - our exponents will be positive integers. Sometimes we encounter a polynomial that looks similar to something we know how to factor, but isn't quite the same. Substitution is a useful tool that can be used to "mask" a term or expression to make algebraic operations easier.
You may recall that substitution can be used to solve systems of linear equations, and to check whether a point is a solution to a system of linear equations. for example:
To determine whether the ordered pair (5,1) is a solution to the given system of equations.
x+3y=82x−9=y
We can substitute the ordered pair (5,1) into both equations.
(5)+3(1)=8 8=82(5)−9=(1) 1=1TrueTrue
We replaced the variable with a number and then performed the algebraic operations specified. In the next example we will see how we can use a similar technique to factor a fourth degree polynomial.
Example 9.2.O
Factor
x4+3x2+2
Answer:
This looks a lot like a trinomial that we know how to factor, x2+3x+2=(x+2)(x+1), except for the exponents.
If we substitute u=x2, and recognize that u2=(x2)2=x4 we may be able to factor this beast!
Everywhere there is an x2 we will replace it with a u, then factor.
u2+3u+2=(u+1)(u+2)
We aren't quite done yet, we want to factor the original polynomial which had x as it's variable, so we need to replace x2=u now that we are done factoring.
(u+1)(u+2)=(x2+1)(x2+2)
Answer
x4+3x2+2=(x2+1)(x2+2)
In the following video we show two more examples of how to use substitution to factor a fourth degree polynomial and an expression with fractional exponents.
https://youtu.be/QUznZt6yrgI
9.2.6 Factor Completely
Sometimes you may encounter a polynomial that takes an extra step to factor. In our next example we will first find the GCF of a trinomial, and after factoring it out we will be able to factor again so that we end up with a product of a monomial, and two binomials.
Example 9.2.p
Factor completely
6m2k−3mk−3k.
Answer: Whenever you factor, first try the easy route and ask yourself if there is a GCF. In this case, there is one, and it is 3k.
Factor 3k from the trinomial:
6m2k−3mk−3k=3k(2m2−m−1)
We are left with a trinomial that can be factored using your choice of factoring method. We will create a table to find the factors of 2⋅−1=−2 that sum to −1
Factors of 2⋅−1=−2 |
Sum of Factors |
2,−1 |
1 |
−2,1 |
−1 |
Our factors are
−2,1, so we can factor by grouping:
Rewrite the middle term with the factors we found with the table:
(2m2−m−1)=2m2−2m+m−1
Regroup and find the GCF of each group:
(2m2−2m)+(m−1)=2m(m−1)+1(m−1)
Now factor
(m−1) from each term:
2m2−m−1=(m−1)(2m+1)
Don't forget the original GCF that we factored out! Our final factored form is:
6m2k−3mk−3k=3k(m−1)(2m+1)
In our last example we shoe that it is important to factor out a GCF if there is one before you being using the techniques shown in this module.
https://youtu.be/hMAImz2BuPc
Summary
In this section we used factoring with special cases, and factoring by grouping to factor expressions with negative and fractional exponents. We also returned to factoring polynomials and used the substitution method to factor a 4th degree polynomial. The last topic we covered was what it means to factor completely.Licenses & Attributions
CC licensed content, Original
CC licensed content, Shared previously
- Factor Perfect Square Trinomials Using a Formula. Authored by: James Sousa (Mathispower4u.com) for Lumen Learning. License: CC BY: Attribution.
- Ex: Factor a Difference of Squares. Authored by: James Sousa (Mathispower4u.com). License: CC BY: Attribution.
- Unit 12: Factoring, from Developmental Math: An Open Program. Provided by: Monterey Institute of Technology and Education Located at: https://www.nroc.org/. License: CC BY: Attribution.
- Authored by: James Sousa (Mathispower4u.com) for Lumen Learning. License: CC BY: Attribution.
- Ex 3: Factor a Sum or Difference of Cubes. Authored by: James Sousa (Mathispower4u.com) for Lumen Learning. License: CC BY: Attribution.
- Factor Expressions with Negative Exponents. Authored by: James Sousa (Mathispower4u.com) for Lumen Learning. License: CC BY: Attribution.
- Factor Expressions with Fractional Exponents. Authored by: James Sousa (Mathispower4u.com) for Lumen Learning. License: CC BY: Attribution.
- Factor Expressions Using Substitution. Authored by: James Sousa (Mathispower4u.com) for Lumen Learning. License: CC BY: Attribution.
- Ex: Factoring Polynomials with Common Factors. Authored by: James Sousa (Mathispower4u.com) for Lumen Learning. License: CC BY: Attribution.