## Section7.5Factoring Special Polynomials

###### ObjectivesPCC Course Content and Outcome Guide

Certain polynomials have patterns that you can train yourself to recognize. And when they have these patterns, there are formulas you can use to factor them, much more quickly than using the techniques from Section 7.3 and Section 7.4.

### Subsection7.5.1Difference of Squares

If $b$ is some positive integer, then when you multiply $(x-b)(x+b)\text{:}$

\begin{align*} (x-b)(x+b)\amp=x^2-bx+bx-b^2\\ \amp=x^2-b^2\text{.} \end{align*}

The $-bx$ and the $+bx$ cancel each other out. So this is telling us that

\begin{equation*} x^2-b^2=(x-b)(x+b)\text{.} \end{equation*}

And so if we ever encounter a polynomial of the form $x^2-b^2$ (a “difference of squares”) then we have a quick formula for factoring it. Just identify what “$b$” is, and use that in $(x-b)(x+b)\text{.}$

To use this formula, it's important to recognize which numbers are perfect squares, as in Table 1.3.7.

###### Example7.5.2

Factor $x^2-16\text{.}$

Explanation

The “$16$” being subtracted here is a perfect square. It is the same as $4^2\text{.}$ So we can take $b=4$ and write:

\begin{align*} x^2-16\amp=(x-b)(x+b)\\ \amp=(x-4)(x+4) \end{align*}
###### Checkpoint7.5.3

Try to factor one yourself:

We can do a little better. There is nothing special about starting with “$x^2$” in these examples. In full generality:

###### Example7.5.5

Factor $1-p^2\text{.}$

Explanation

The “$1$” at the beginning of this expression is a perfect square; it's the same as $1^2\text{.}$ The “$p^2$” being subtracted here is also perfect square. We can take $A=1$ and $B=p\text{,}$ and use The Difference of Squares Formula:

\begin{align*} 1-p^2\amp=(A-B)(A+B)\\ \amp=(1-p)(1+p) \end{align*}
###### Example7.5.6

Factor $m^2n^2-4\text{.}$

Explanation

Is the “$m^2n^2$” at the beginning of this expression a perfect square? By the rules for exponents, it is the same as $(mn)^2\text{,}$ so yes, it is a perfect square and we may take $A=mn\text{.}$ The “$4$” being subtracted here is also perfect square. We can take $B=2\text{.}$ The Difference of Squares Formula tells us:

\begin{align*} m^2n^2-4\amp=(A-B)(A+B)\\ \amp=(mn-2)(mn+2) \end{align*}
###### Checkpoint7.5.7

Try to factor one yourself:

###### Example7.5.8

Factor $x^6-9\text{.}$

Explanation

Is the “$x^6$” at the beginning of this expression is a perfect square? It may appear to be a sixth power, but it is also a perfect square because we can write $x^6=\left(x^3\right)^2\text{.}$ So we may take $A=x^3\text{.}$ The “$9$” being subtracted here is also perfect square. We can take $B=3\text{.}$ The Difference of Squares Formula tells us:

\begin{align*} x^6-9\amp=(A-B)(A+B)\\ \amp=(x^3-3)(x^3+3) \end{align*}
###### Warning7.5.9

It's a common mistake to write something like $x^2+16=(x+4)(x-4)\text{.}$ This is not what The Difference of Squares Formula allows you to do, and this is in fact incorrect. The issue is that $x^2+16$ is a sum of squares, not a difference. And it happens that $x^2+16$ is actually prime. In fact, any sum of squares without a common factor will always be prime.

### Subsection7.5.2Perfect Square Trinomials

If we expand $(A+B)^2\text{:}$

\begin{align*} (A+B)^2\amp=(A+B)(A+B)\\ \amp=A^2+BA+AB+B^2\\ \amp=A^2+2AB+B^2\text{.} \end{align*}

The $BA$ and the $AB$ equal each other and double up when added together. So this is telling us that

\begin{equation*} A^2+2AB+B^2=(A+B)^2\text{.} \end{equation*}

And so if we ever encounter a polynomial of the form $A^2+2AB+B^2$ (a “perfect square trinomial”) then we have a quick formula for factoring it.

The tricky part is recognizing when a trinomial you have encountered is in this special form. Ask yourself:

1. Is the first term a perfect square? If so, jot down what $A$ would be.

2. Is the second term a perfect square? If so, jot down what $B$ would be.

3. When you multiply $2$ with what you wrote down for $A$ and $B\text{,}$ i.e. $2AB\text{,}$ do you have the middle term? If you have this middle term exactly, then your polynomial factors as $(A+B)^2\text{.}$ If the middle term is the negative of $2AB\text{,}$ then the sign on your $B$ can be reversed, and your polynomial factors as $(A-B)^2\text{.}$

###### Example7.5.11

Factor $x^2+6x+9\text{.}$

Explanation

The first term, $x^2\text{,}$ is clearly a perfect square. So we could take $A=x\text{.}$ The last term, $9\text{,}$ is also a perfect square since it is equal to $3^2\text{.}$ So we could take $B=3\text{.}$ Now we multiply $2AB=2\cdot x\cdot3\text{,}$ and the result is $6x\text{.}$ This is the middle term, which is what we hope to see.

So we can use The Perfect Square Trinomial Formula:

\begin{align*} x^2+6x+9\amp=(A+B)^2\\ \amp=(x+3)^2 \end{align*}
###### Example7.5.12

Factor $4x^2-20xy+25y^2\text{.}$

Explanation

The first term, $4x^2\text{,}$ is a perfect square because it equals $(2x)^2\text{.}$ So we could take $A=2x\text{.}$ The last term, $25y^2\text{,}$ is also a perfect square since it is equal to $(5y)^2\text{.}$ So we could take $B=5y\text{.}$ Now we multiply $2AB=2\cdot (2x)\cdot(5y)\text{,}$ and the result is $20xy\text{.}$ This is the negative of the middle term, which we can work with. The factored form will be $(A-B)^2$ instead of $(A+B)^2\text{.}$

So we can use The Perfect Square Trinomial Formula:

\begin{align*} 4x^2-20xy+25y^2\amp=(A-B)^2\\ \amp=(2x-5y)^2 \end{align*}
###### Checkpoint7.5.13

Try to factor one yourself:

###### Warning7.5.14

It is not enough to just see that the first and last terms are perfect squares. For example, $9x^2+10x+25$ has its first term equal to $(3x)^2$ and its last term equal to $5^2\text{.}$ But when you examine $2\cdot(3x)\cdot5$ the result is $30x\text{,}$ not equal to the middle term. So The Perfect Square Trinomial Formula doesn't apply here. In fact, this polynomial doesn't factor at all.

###### Remark7.5.15

To factor these perfect square trinomials, we could use methods from Section 7.3 and Section 7.4. As an exercise for yourself, try to factor each of the three previous examples using those methods. The advantage to using The Perfect Square Trinomial Formula is that it is much faster. With some practice, all of the work for using it can be done mentally.

### Subsection7.5.3Difference/Sum of Cubes Formulas

The following calculation may seem to come from nowhere at first, but see it through. If we multiply $(A-B)\left(A^2+AB+B^2\right)\text{:}$

\begin{align*} (A-B)\left(A^2+AB+B^2\right)\amp=A^3-\highlight{BA^2}+A^2B-\highlight{BAB}+AB^2-B^3\\ \amp=A^3-\highlight{A^2B}+A^2B-\highlight{AB^2}+AB^2-B^3\\ \amp=A^3\overbrace{{}-A^2B+A^2B}\overbrace{{}-AB^2+AB^2}-B^3\\ \amp=A^3-B^3\text{.} \end{align*}

This is telling us that

\begin{equation*} A^3-B^3=(A-B)\left(A^2+AB+B^2\right)\text{.} \end{equation*}

And so if we ever encounter a polynomial of the form $A^3-B^3$ (a “difference of cubes”) then we have a quick formula for factoring it.

A similar formula exists for factoring a sum of cubes, $A^3+B^3\text{.}$ Here are both formulas, followed by some tips on how to memorize them.

To memorize this, focus on:

• The factorization is a binomial times a trinomial.

• The three terms in the trinomial are all quadratic: $A^2\text{,}$ $AB\text{,}$ and $B^2\text{.}$

• In the trinomial, it's always adding $A^2$ and $B^2\text{.}$ But the sign on $AB$ is always the opposite of the sign in the sum/difference of cubes.

To use these formulas effectively, we need to recognize when numbers are perfect cubes. Perfect cubes become large fast before you can list too many of them. Try to memorize as many of these as you can:

\begin{align*} 1^3\amp=1\amp 2^3\amp=8\amp 3^3\amp=27\amp 4^3\amp=64\\ 5^3\amp=125\amp 6^3\amp=216\amp 7^3\amp=343\amp 8^3\amp=512\\ 9^3\amp=729\amp 10^3\amp=1000\amp 11^3\amp=1331\amp 12^3\amp=1728 \end{align*}

Let's look at a few examples.

###### Example7.5.17

Factor $x^3-27\text{.}$

Explanation

We recognize that $x^3$ is a perfect cube and $27=3^3\text{,}$ so we can use The Difference/Sum of Cubes Formula to factor the binomial. Note that since we have a difference of cubes, the binomial factor from the formula will subtract two terms, and the middle term from the trinomial will be $+AB\text{.}$

\begin{alignat*}{3} x^3-27\amp=(A-B)\big(A^2 \amp\amp +AB\amp\amp+B^2\big)\\ \amp=(x-3)\big(x^2 \amp\amp +(x)(3)\amp\amp+3^2\big)\\ \amp=(x-3)\big(x^2 \amp\amp +3x\amp\amp+9\big) \end{alignat*}
###### Example7.5.18

Factor $27m^3+64n^3\text{.}$

Explanation

We recognize that $27m^3=(3m)^3$ and $64n^3=(4n)^3$ are both perfect cubes, so we can use The Difference/Sum of Cubes Formula to factor the binomial. Note that since we have a sum of cubes, the binomial factor from the formula will add two terms, and the middle term from the trinomial will be $-AB\text{.}$

\begin{alignat*}{5} 27m^3+64n^3\amp=(A \amp\amp+B)\amp\amp\big(A^2\amp\amp-AB\amp\amp+B^2\big)\\ \amp=(3m\amp\amp+4n)\amp\amp\big((3m)^2\amp\amp-(3m)(4n)\amp\amp+(4n)^2\big)\\ \amp=(3m\amp\amp+4n)\amp\amp\big(9m^2\amp\amp-12mn\amp\amp+16n^2\big) \end{alignat*}
###### Checkpoint7.5.19

Try to factor one yourself:

### Subsection7.5.4Factoring in Stages

Sometimes factoring a polynomial will take two or more “stages.” For instance you might use one of the special formulas from this section to factor something into two factors, and then those factors might be factor even more. When the task is to factor a polynomial, the intention is that you fully factor it, breaking down the pieces into even smaller pieces when that is possible.

###### Example7.5.20Factor out any greatest common factor

Factor $12z^3-27z\text{.}$

Explanation

The two terms of this polynomial have greatest common factor $3z\text{,}$ so the first step in factoring should be to factor this out:

\begin{equation*} 3z\left(4z^2-9\right)\text{.} \end{equation*}

Now we have two factors. There is nothing for us to do with $3z\text{,}$ but we should ask if $\left(4z^2-9\right)$ can factor further. And in fact, that is a difference of squares. So we can apply The Difference of Squares Formula. The full process would be:

\begin{align*} 12z^3-27z\amp=3z\left(4z^2-9\right)\\ \amp=3z(2z-3)(2z+3) \end{align*}
###### Example7.5.21Recognize a second special pattern

Factor $p^4-1\text{.}$

Explanation

Since $p^4$ is the same as $\left(p^2\right)^2\text{,}$ we have a difference of squares here. We can apply The Difference of Squares Formula:

\begin{align*} p^4-1\amp=\left(p^2-1\right)\left(p^2+1\right)\\ \end{align*}

It doesn't end here. Of the two factors we found, $\left(p^2+1\right)$ cannot be factored further. But the other one, $\left(p^2-1\right)$ is also a difference of squares. So we should apply The Difference of Squares Formula again:

\begin{align*} \phantom{p^4-1}\amp=(p-1)(p+1)\left(p^2+1\right) \end{align*}
###### Checkpoint7.5.22

Try to factor one yourself:

A second degree trinomial from The Difference/Sum of Cubes Formula will never factor further. In some cases, the binomial from that formula will factor further. And in some cases, if the trinomial's degree is greater than $2$, it will factor further. Be on the lookout for when the factors from this formula will factor further.

###### Example7.5.23

Factor $64p^6-729\text{.}$

Explanation

We recognize that $64p^6$ is a perfect square because it equals $\left(8p^3\right)^2\text{.}$ And $729$ is also a perfect square because $729=27^2\text{.}$ So we can use The Difference of Squares Formula to factor the binomial.

\begin{align*} 64p^6-729\amp=\left(A-B\right)\left(A+B\right)\\ \amp=\highlight{\left(8p^3-27\right)}\lighthigh{\left(8p^3+27\right)}\\ \end{align*}

Next, note that in each of the factors we have an $8p^3$ and a $27\text{,}$ both of which can be viewed as perfect cubes: $8p^3=(2p)^3$ and a $27=3^3\text{.}$ So we will use both the difference of cubes and the sum of cubes formulas.

\begin{align*} \amp=\highlight{(A-B)\left(A^2+AB+B^2\right)}\lighthigh{(A+B)\left(A^2-AB+B^2\right)}\\ \amp=\highlight{(2p-3)\left((2p)^2+(2p)\cdot3+3^2\right)}\lighthigh{(2p+3)\left((2p)^2-(2p)\cdot3+3^2\right)}\\ \amp=\highlight{(2p-3)\left(4p^2+6p+9\right)}\lighthigh{(2p+3)\left(4p^2-6p+9\right)} \end{align*}
###### Example7.5.24

Factor $32x^6y^2-48x^5y+18x^4\text{.}$

Explanation

The first step of factoring any polynomial is to factor out the common factor if possible. For this trinomial, the common factor is $2x^4\text{,}$ so we write

\begin{equation*} 32x^6y^2-48x^5y+18x^4=2x^4(16x^2y^2-24xy+9)\text{.} \end{equation*}

The square numbers $16$ and $9$ in $16x^2y^2-24xy+9$ hint that maybe we could use The Perfect Square Trinomial Formula. Taking $A=4xy$ and $B=3\text{,}$ we multiply $2AB=2\cdot(4xy)\cdot 3\text{.}$ The result is $24xy\text{,}$ which is the negative of our middle term. So the whole process is:

\begin{align*} 32x^6y^2-48x^5y+18x^4\amp=2x^4(16x^2y^2-24xy+9)\\ \amp=2x^4(a-b)^2\\ \amp=2x^4(4xy-3)^2 \end{align*}

### Subsection7.5.5Exercises

###### 1

Expand the square of a binomial.

$\left({5t+10}\right)^2=$

###### 2

Expand the square of a binomial.

$\left({2t+4}\right)^2=$

###### 3

Expand the square of a binomial.

$\left({x-4}\right)^2=$

###### 4

Expand the square of a binomial.

$\left({x-7}\right)^2=$

###### 5

Expand the square of a binomial.

$\left({y^{7}+13}\right)^2=$

###### 6

Expand the square of a binomial.

$\left({y^{10}+4}\right)^2=$

###### 7

Multiply the polynomials.

$\left({r-6}\right)\left({r+6}\right)=$

###### 8

Multiply the polynomials.

$\left({r+12}\right)\left({r-12}\right)=$

###### 9

Multiply the polynomials.

$\left({4t-5}\right)\left({4t+5}\right)=$

###### 10

Multiply the polynomials.

$\left({3t+3}\right)\left({3t-3}\right)=$

###### 11

Multiply the polynomials.

$\left({6t^{5}-11}\right)\left({6t^{5}+11}\right)=$

###### 12

Multiply the polynomials.

$\left({4x^{6}-13}\right)\left({4x^{6}+13}\right)=$

###### 13

Factor the given polynomial.

${x^{2}-9}=$

###### 14

Factor the given polynomial.

${y^{2}-121}=$

###### 15

Factor the given polynomial.

${49y^{2}-81}=$

###### 16

Factor the given polynomial.

${4r^{2}-121}=$

###### 17

Factor the given polynomial.

${r^{2}t^{2}-49}=$

###### 18

Factor the given polynomial.

${t^{2}y^{2}-144}=$

###### 19

Factor the given polynomial.

${36t^{2}x^{2}-1}=$

###### 20

Factor the given polynomial.

${121t^{2}y^{2}-64}=$

###### 21

Factor the given polynomial.

${36-x^{2}}=$

###### 22

Factor the given polynomial.

${1-x^{2}}=$

###### 23

Factor the given polynomial.

${4-81y^{2}}=$

###### 24

Factor the given polynomial.

${49-25y^{2}}=$

###### 25

Factor the given polynomial.

${r^{4}-4}=$

###### 26

Factor the given polynomial.

${r^{4}-25}=$

###### 27

Factor the given polynomial.

${25t^{4}-121}=$

###### 28

Factor the given polynomial.

${144t^{4}-49}=$

###### 29

Factor the given polynomial.

${t^{10}-64}=$

###### 30

Factor the given polynomial.

${x^{6}-25}=$

###### 31

Factor the given polynomial.

${16x^{4}-9y^{4}}=$

###### 32

Factor the given polynomial.

${25x^{4}-64y^{4}}=$

###### 33

Factor the given polynomial.

${x^{6}-36y^{10}}=$

###### 34

Factor the given polynomial.

${x^{14}-49y^{10}}=$

###### 35

Factor the given polynomial.

${r^{2}+14r+49}=$

###### 36

Factor the given polynomial.

${t^{2}+6t+9}=$

###### 37

Factor the given polynomial.

${t^{2}-22t+121}=$

###### 38

Factor the given polynomial.

${t^{2}-14t+49}=$

###### 39

Factor the given polynomial.

${9x^{2}+6x+1}=$

###### 40

Factor the given polynomial.

${100x^{2}+20x+1}=$

###### 41

Factor the given polynomial.

${49y^{2}-14y+1}=$

###### 42

Factor the given polynomial.

${9y^{2}-6y+1}=$

###### 43

Factor the given polynomial.

${36r^{2}t^{2}-12rt+1}=$

###### 44

Factor the given polynomial.

${121r^{2}y^{2}-22ry+1}=$

###### 45

Factor the given polynomial.

${t^{2}+8tx+16x^{2}}=$

###### 46

Factor the given polynomial.

${t^{2}+18tr+81r^{2}}=$

###### 47

Factor the given polynomial.

${t^{2}-4ty+4y^{2}}=$

###### 48

Factor the given polynomial.

${x^{2}-2xr+r^{2}}=$

###### 49

Factor the given polynomial.

${49x^{2}+84xr+36r^{2}}=$

###### 50

Factor the given polynomial.

${4y^{2}+20yt+25t^{2}}=$

###### 51

Factor the given polynomial.

${16y^{2}-24yt+9t^{2}}=$

###### 52

Factor the given polynomial.

${4r^{2}-12rx+9x^{2}}=$

###### 53

Factor the given polynomial.

${r^{3}+125}=$

###### 54

Factor the given polynomial.

${t^{3}+1728}=$

Hint: $1728=12^3\text{.}$

###### 55

Factor the given polynomial.

${t^{3}-512}=$

Hint: $-512=-8^3\text{.}$

###### 56

Factor the given polynomial.

${t^{3}-64}=$

###### 57

Factor the given polynomial.

${1000x^{3}+1}=$

Hint: $1000 = 10^3\text{.}$

###### 58

Factor the given polynomial.

${343x^{3}+1}=$

Hint: $343 = 7^3\text{.}$

###### 59

Factor the given polynomial.

${27y^{3}-1}=$

###### 60

Factor the given polynomial.

${729y^{3}-1}=$

Hint: $729 = 9^3\text{.}$

###### 61

Factor the given polynomial.

${216r^{3}+125}=$

Hint: $216=6^3\text{.}$

###### 62

Factor the given polynomial.

${27r^{3}+125}=$

###### 63

Factor the given polynomial.

${729t^{3}-512}=$

Hint: $729=9^3\text{,}$ $-512=-8^3\text{.}$

###### 64

Factor the given polynomial.

${216t^{3}-343}=$

Hint: $216=6^3\text{,}$ $-343=-7^3\text{.}$

###### 65

Factor the given polynomial.

${x^{3}y^{3}+1728}=$

Hint: $1728=12^3\text{.}$

###### 66

Factor the given polynomial.

${x^{3}y^{3}+8}=$

###### 67

Factor the given polynomial.

${x^{3}-64y^{3}}=$

###### 68

Factor the given polynomial.

${x^{3}-125y^{3}}=$

###### 69

Factor the given polynomial.

${81y^{4}-16}=$

###### 70

Factor the given polynomial.

${16r^{4}-81}=$

###### 71

Factor the given polynomial.

${3r^{2}-3}=$

###### 72

Factor the given polynomial.

${4r^{2}-64}=$

###### 73

Factor the given polynomial.

${9t^{3}-36t}=$

###### 74

Factor the given polynomial.

${3t^{3}-147t}=$

###### 75

Factor the given polynomial.

${9x^{4}r^{3}-81x^{2}r}=$

###### 76

Factor the given polynomial.

${7x^{4}y^{4}-63x^{2}y^{2}}=$

###### 77

Factor the given polynomial.

${108-12y^{2}}=$

###### 78

Factor the given polynomial.

${128-2y^{2}}=$

###### 79

Factor the given polynomial.

${80r^{2}+40r+5}=$

###### 80

Factor the given polynomial.

${63r^{2}+42r+7}=$

###### 81

Factor the given polynomial.

${64r^{2}y^{2}+32ry+4}=$

###### 82

Factor the given polynomial.

${98t^{2}x^{2}+28tx+2}=$

###### 83

Factor the given polynomial.

${96t^{2}-48t+6}=$

###### 84

Factor the given polynomial.

${24x^{2}-24x+6}=$

###### 85

Factor the given polynomial.

${9x^{10}+6x^{9}+x^{8}}=$

###### 86

Factor the given polynomial.

${121y^{6}+22y^{5}+y^{4}}=$

###### 87

Factor the given polynomial.

${49y^{9}-14y^{8}+y^{7}}=$

###### 88

Factor the given polynomial.

${9r^{5}-6r^{4}+r^{3}}=$

###### 89

Factor the given polynomial.

${18r^{8}+12r^{7}+2r^{6}}=$

###### 90

Factor the given polynomial.

${72r^{6}+24r^{5}+2r^{4}}=$

###### 91

Factor the given polynomial.

${20t^{4}-20t^{3}+5t^{2}}=$

###### 92

Factor the given polynomial.

${36t^{9}-36t^{8}+9t^{7}}=$

###### 93

Factor the given polynomial.

${125x^{4}+64x}=$

###### 94

Factor the given polynomial.

${8x^{4}+125x}=$

###### 95

Factor the given polynomial.

${64x^{3}+125y^{3}}=$

###### 96

Factor the given polynomial.

${125x^{3}+216y^{3}}=$

Hint: $216=6^3\text{.}$

###### 97

Factor the given polynomial.

${3r^{4}-243}=$

###### 98

Factor the given polynomial.

${3r^{4}-48}=$

###### 99

Factor the given polynomial.

${r^{10}+125r^{7}}=$

###### 100

Factor the given polynomial.

${t^{6}+1728t^{3}}=$

Hint: $1728=12^3\text{.}$

###### 101

Factor the given polynomial.

${t^{2}+64}=$

###### 102

Factor the given polynomial.

${x^{2}+16}=$

###### 103

Factor the given polynomial.

${5x^{3}+20x}=$

###### 104

Factor the given polynomial.

${4y^{3}+100y}=$

###### 105

Factor the given polynomial.

${0.09y-y^{3}}=$

###### 106

Factor the given polynomial.

${0.81r-r^{3}}=$

###### 107

Factor the given polynomial.

${\left(r-8\right)^{2}-81}=$

###### 108

Factor the given polynomial.

${\left(r-7\right)^{2}-49}=$

###### 109

Factor the given polynomial.

${x^{2}+14x+49-121y^{2}}=$

###### 110

Factor the given polynomial.

${x^{2}+20x+100-49y^{2}}=$