Skip to main content
Logo image

Section 10.5 Factoring Special Polynomials

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 3 and Section .
Figure 10.5.1. Alternative Video Lesson

Subsection 10.5.1 Difference 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 Figure 6.1.4.

Example 10.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*}

Checkpoint 10.5.3.

Try to factor one yourself:
Factor \(x^2-49\text{.}\)
Explanation.
The “\(49\)” being subtracted here is a perfect square. It is the same as \(7^2\text{.}\) So we can take \(b=7\) and write:
\begin{equation*} \begin{aligned} x^2-49\amp=(x-b)(x+b)\\ \amp=(x-7)(x+7) \end{aligned} \end{equation*}
We can do a little better. There is nothing special about starting with “\(x^2\)” in these examples. In full generality:

Example 10.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*}

Example 10.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 properties of 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*}

Checkpoint 10.5.7.

Try to factor one yourself:
Factor \(4z^2-9\text{.}\)
Explanation.
The “\(4z^2\)” at the beginning here is a perfect square. It is the same as \((2z)^2\text{.}\) So we can take \(A=2z\text{.}\) The “\(9\)” being subtracted is also a perfect square, so we can take \(B=3\text{:}\)
\begin{equation*} \begin{aligned} 4z^2-9\amp=(A-B)(A+B)\\ \amp=(2z-3)(2z+3) \end{aligned} \end{equation*}

Example 10.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*}

Warning 10.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.

Subsection 10.5.2 Perfect 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. Are the first and last terms perfect square? If so, jot down what \(A\) and \(B\) would be.
  2. 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{.}\)

Example 10.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.
\begin{align*} x^2+6x+9\amp=(A+B)^2\\ \amp=(x+3)^2 \end{align*}

Example 10.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{.}\)
\begin{align*} 4x^2-20xy+25y^2\amp=(A-B)^2\\ \amp=(2x-5y)^2 \end{align*}

Checkpoint 10.5.13.

Try to factor one yourself:
Factor \(16q^2+56q+49\text{.}\)
Explanation.
The first term, \(16q^2\text{,}\) is a perfect square because it equals \((4q)^2\text{.}\) So we could take \(A=4q\text{.}\) The last term, \(49\text{,}\) is also a perfect square since it is equal to \(7^2\text{.}\) So we could take \(B=7\text{.}\) Now we multiply \(2AB=2\cdot(4q)\cdot7\text{,}\) and the result is \(56q\text{.}\) This is the middle term, which is what we hope to see.
So we can use The Perfect Square Trinomial Formula:
\begin{equation*} \begin{aligned} 16q^2+56q+49\amp=(A+B)^2\\ \amp=(4q+7)^2 \end{aligned} \end{equation*}

Warning 10.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.

Remark 10.5.15.

To factor these perfect square trinomials, we could use methods from Section 3 and Section 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.

Subsection 10.5.3 Factoring in Stages

Sometimes factoring a polynomial will take two or more “stages.” You might use one of the special patters to factor something into two factors, and then those factors might 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.

Example 10.5.16. Factor 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*}

Example 10.5.17. Recognize 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*}

Example 10.5.18.

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(4xy-3)^2 \end{align*}

Reading Questions 10.5.4 Reading Questions

1.

Describe two special patterns where it is possible to memorize a quick factoring shortcut as discussed in this section.

Exercises 10.5.5 Exercises

Review and Warmup.

1.
Expand the square of a binomial.
\(\left({6r+8}\right)^2=\)
2.
Expand the square of a binomial.
\(\left({3t+2}\right)^2=\)
3.
Expand the square of a binomial.
\(\left({t-2}\right)^2=\)
4.
Expand the square of a binomial.
\(\left({x-6}\right)^2=\)
5.
Expand the square of a binomial.
\(\left({x^{6}-9}\right)^2=\)
6.
Expand the square of a binomial.
\(\left({y^{9}+8}\right)^2=\)

Exercise Group.

7.
Multiply the polynomials.
\(\left({y-1}\right)\left({y+1}\right)=\)
8.
Multiply the polynomials.
\(\left({y-11}\right)\left({y+11}\right)=\)
9.
Multiply the polynomials.
\(\left({5r-8}\right)\left({5r+8}\right)=\)
10.
Multiply the polynomials.
\(\left({4r+1}\right)\left({4r-1}\right)=\)
11.
Multiply the polynomials.
\(\left({2t^{3}+12}\right)\left({2t^{3}-12}\right)=\)
12.
Multiply the polynomials.
\(\left({5t^{9}-4}\right)\left({5t^{9}+4}\right)=\)

Factoring.

13.
Factor the given polynomial.
\({x^{2}-25}=\)
14.
Factor the given polynomial.
\({x^{2}-1}=\)
15.
Factor the given polynomial.
\({81y^{2}-64}=\)
16.
Factor the given polynomial.
\({16y^{2}-1}=\)
17.
Factor the given polynomial.
\({y^{2}t^{2}-36}=\)
18.
Factor the given polynomial.
\({r^{2}t^{2}-4}=\)
19.
Factor the given polynomial.
\({16r^{2}y^{2}-121}=\)
20.
Factor the given polynomial.
\({64t^{2}r^{2}-1}=\)
21.
Factor the given polynomial.
\({4-t^{2}}=\)
22.
Factor the given polynomial.
\({9-x^{2}}=\)
23.
Factor the given polynomial.
\({144-121x^{2}}=\)
24.
Factor the given polynomial.
\({25-49x^{2}}=\)
25.
Factor the given polynomial.
\({y^{4}-100}=\)
26.
Factor the given polynomial.
\({y^{4}-121}=\)
27.
Factor the given polynomial.
\({49r^{4}-64}=\)
28.
Factor the given polynomial.
\({9r^{4}-25}=\)
29.
Factor the given polynomial.
\({t^{10}-100}=\)
30.
Factor the given polynomial.
\({t^{14}-49}=\)
31.
Factor the given polynomial.
\({4x^{4}-49y^{4}}=\)
32.
Factor the given polynomial.
\({9x^{4}-100y^{4}}=\)
33.
Factor the given polynomial.
\({x^{6}-36y^{10}}=\)
34.
Factor the given polynomial.
\({x^{6}-25y^{12}}=\)
35.
Factor the given polynomial.
\({y^{2}+18y+81}=\)
36.
Factor the given polynomial.
\({r^{2}+10r+25}=\)
37.
Factor the given polynomial.
\({r^{2}-2r+1}=\)
38.
Factor the given polynomial.
\({t^{2}-18t+81}=\)
39.
Factor the given polynomial.
\({25t^{2}+10t+1}=\)
40.
Factor the given polynomial.
\({144x^{2}+24x+1}=\)
41.
Factor the given polynomial.
\({64x^{2}-16x+1}=\)
42.
Factor the given polynomial.
\({25x^{2}-10x+1}=\)
43.
Factor the given polynomial.
\({25y^{2}t^{2}-10yt+1}=\)
44.
Factor the given polynomial.
\({81y^{2}r^{2}-18yr+1}=\)
45.
Factor the given polynomial.
\({r^{2}+4rx+4x^{2}}=\)
46.
Factor the given polynomial.
\({r^{2}+14rt+49t^{2}}=\)
47.
Factor the given polynomial.
\({t^{2}-24tr+144r^{2}}=\)
48.
Factor the given polynomial.
\({t^{2}-10tx+25x^{2}}=\)
49.
Factor the given polynomial.
\({9x^{2}+30xt+25t^{2}}=\)
50.
Factor the given polynomial.
\({16x^{2}+40xr+25r^{2}}=\)
51.
Factor the given polynomial.
\({4x^{2}-36xr+81r^{2}}=\)
52.
Factor the given polynomial.
\({4y^{2}-36yt+81t^{2}}=\)
53.
Factor the given polynomial.
\({16y^{4}-81}=\)
54.
Factor the given polynomial.
\({r^{4}-16}=\)
55.
Factor the given polynomial.
\({3r^{2}-75}=\)
56.
Factor the given polynomial.
\({7t^{2}-7}=\)
57.
Factor the given polynomial.
\({3t^{3}-3t}=\)
58.
Factor the given polynomial.
\({8x^{3}-8x}=\)
59.
Factor the given polynomial.
\({5x^{3}y^{4}-45xy^{2}}=\)
60.
Factor the given polynomial.
\({9x^{4}y^{4}-144x^{2}y^{2}}=\)
61.
Factor the given polynomial.
\({72-8y^{2}}=\)
62.
Factor the given polynomial.
\({64-4y^{2}}=\)
63.
Factor the given polynomial.
\({18r^{2}+12r+2}=\)
64.
Factor the given polynomial.
\({100r^{2}+40r+4}=\)
65.
Factor the given polynomial.
\({27t^{2}y^{2}+18ty+3}=\)
66.
Factor the given polynomial.
\({24t^{2}r^{2}+24tr+6}=\)
67.
Factor the given polynomial.
\({36x^{2}-36x+9}=\)
68.
Factor the given polynomial.
\({80x^{2}-40x+5}=\)
69.
Factor the given polynomial.
\({121x^{4}+22x^{3}+x^{2}}=\)
70.
Factor the given polynomial.
\({64y^{7}+16y^{6}+y^{5}}=\)
71.
Factor the given polynomial.
\({16y^{10}-8y^{9}+y^{8}}=\)
72.
Factor the given polynomial.
\({121r^{6}-22r^{5}+r^{4}}=\)
73.
Factor the given polynomial.
\({72r^{10}+24r^{9}+2r^{8}}=\)
74.
Factor the given polynomial.
\({27t^{8}+18t^{7}+3t^{6}}=\)
75.
Factor the given polynomial.
\({36t^{8}-36t^{7}+9t^{6}}=\)
76.
Factor the given polynomial.
\({98x^{4}-28x^{3}+2x^{2}}=\)
77.
Factor the given polynomial.
\({12x^{4}-12}=\)
78.
Factor the given polynomial.
\({3x^{4}-243}=\)
79.
Factor the given polynomial.
\({y^{2}+36}=\)
80.
Factor the given polynomial.
\({y^{2}+1}=\)
81.
Factor the given polynomial.
\({2r^{3}+8r}=\)
82.
Factor the given polynomial.
\({6r^{3}+96r}=\)
83.
Factor the given polynomial.
\({0.01t-t^{3}}=\)
84.
Factor the given polynomial.
\({0.49t-t^{3}}=\)

Challenge.

85.
Without using a calculator, factor \(111^{2} - 444^{2}\text{.}\) Then select the expression below which is equivalent.
555(555)
\(\displaystyle 555(555)\)
555(-333)
\(\displaystyle 555(-333)\)
-333(-333)
\(\displaystyle -333(-333)\)
none of the above
You have attempted of activities on this page.