$$\newcommand{\id}{\mathrm{id}}$$ $$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\kernel}{\mathrm{null}\,}$$ $$\newcommand{\range}{\mathrm{range}\,}$$ $$\newcommand{\RealPart}{\mathrm{Re}}$$ $$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$ $$\newcommand{\Argument}{\mathrm{Arg}}$$ $$\newcommand{\norm}[1]{\| #1 \|}$$ $$\newcommand{\inner}[2]{\langle #1, #2 \rangle}$$ $$\newcommand{\Span}{\mathrm{span}}$$

# 6.4: Factoring Special Binomials

$$\newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} }$$ $$\newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}}$$$$\newcommand{\id}{\mathrm{id}}$$ $$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\kernel}{\mathrm{null}\,}$$ $$\newcommand{\range}{\mathrm{range}\,}$$ $$\newcommand{\RealPart}{\mathrm{Re}}$$ $$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$ $$\newcommand{\Argument}{\mathrm{Arg}}$$ $$\newcommand{\norm}[1]{\| #1 \|}$$ $$\newcommand{\inner}[2]{\langle #1, #2 \rangle}$$ $$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\id}{\mathrm{id}}$$ $$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\kernel}{\mathrm{null}\,}$$ $$\newcommand{\range}{\mathrm{range}\,}$$ $$\newcommand{\RealPart}{\mathrm{Re}}$$ $$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$ $$\newcommand{\Argument}{\mathrm{Arg}}$$ $$\newcommand{\norm}[1]{\| #1 \|}$$ $$\newcommand{\inner}[2]{\langle #1, #2 \rangle}$$ $$\newcommand{\Span}{\mathrm{span}}$$

Learning Objectives

• Factor binomials that are differences of squares.
• Factor binomials that are sums and differences of cubes.

## Difference of Squares

A binomial is a polynomial with two terms. We begin with our first special binomial called difference of squares:

$a^{2}-b^{2}=(a+b)(a-b)$

To verify the above formula, multiply:

\begin{aligned} (a+b)(a-b)&=a^{2}-ab+ba-b^{2} \\&=a^{2}\color{red}{-ab+ab}\color{black}{-b^{2}} \\ &=a^{2}-b^{2} \end{aligned}

We use this formula to factor certain special binomials.

Example $$\PageIndex{1}$$

Factor:

$$x^{2}-16$$.

Solution:

Step 1: Identify the binomial as difference of squares and determine the square factors of each term.

Here we can write

$$x^{2}-16=(\color{Cerulean}{x}\color{black}{)^{2}-(}\color{Cerulean}{4}\color{black}{)^{2}}$$

The terms are squares of $$x$$ and $$4$$. Hence $$a=x$$ and $$b=4$$.

Step 2: Substitute into the difference of squares formula.

\begin{aligned}a^{2}-b^{2}&=(a+b)(a-b) \\ &\:\:\color{Cerulean}{\:\quad\downarrow\quad\:\downarrow\quad\downarrow\quad\downarrow} \\ x^{2}-16&=(x+4)(x-4) \end{aligned}

Step 3: Multiply to check. This step is optional.

\begin{aligned} (x+4)(x-4)&=x^{2}-4x+4x-16 \\ &=x^{2}-16\quad\color{Cerulean}{\checkmark} \end{aligned}

$$(x+4)(x-4)$$

It is worth taking some extra time at this point to review all of the squares of integers from $$1$$ to $$12$$.

$$\begin{array}{ll}{1^{2}=1}&{7^{2}=49}\\{2^{2}=4}&{8^{2}=64}\\{3^{2}=9}&{9^{2}=81}\\{4^{2}=16}&{10^{2}=100}\\{5^{2}=25}&{11^{2}=121}\\{6^{2}=36}&{12^{2}=144} \end{array}$$

Recognizing these perfect square integers helps speed the factoring process.

Example $$\PageIndex{2}$$

Factor:

$$9x^{2}-121$$.

Solution:

The subtraction indicates that this is a difference. Furthermore, we recognize that the terms are squares.

$$9x^{2}-121=(\color{Cerulean}{3x}\color{black}{)^{2}-(}\color{Cerulean}{11}\color{black}{)^{2}}$$

In this case, $$a=3x$$ and $$b=11$$. Substitute into the formula for difference of squares.

\begin{aligned} a^{2}-b^{2}&=(a+b)(a-b) \\ 9x^{2}-121&=(3x+11)(3x-11) \end{aligned}

$$(3x+11)(3x-11)$$

It may be the case that the terms of the binomial have a common factor. If so, it will be difficult to identify the perfect squares until we first factor out the GCF.

Example $$\PageIndex{3}$$

Factor:

$$12y^{2}−75$$.

Solution:

The terms are not perfect squares. However, notice that they do have a common factor. First, factor out the GCF, $$3$$.

$$12y^{2}-75=3(4y^{2}-25)$$

The resulting binomial factor is a difference of squares with $$a=2y$$ and $$b=5$$.

\begin{aligned} 12y^{2}-75&=3(4y^{2}-25) \\ &=3(2y+5)(2y-5) \end{aligned}

$$3(2y+5)(2y-5)$$

Example $$\PageIndex{4}$$

Factor:

$$49x^{2}−100y^{2}$$.

Solution:

Here we have a binomial with two variables and recognize that it is a difference of squares.

$$49x^{2}-100y^{2}=(\color{Cerulean}{7x}\color{black}{)^{2}-(}\color{Cerulean}{10y}\color{black}{)^{2}}$$

Therefore, $$a=7x$$ and $$b=10y$$. Substitute into the formula for difference of squares.

\begin{aligned} a^{2}-b^{2}&=(a+b)(a-b) \\ 49x^{2}-100y^{2}&=(7x+10y)(7x-10y) \end{aligned}

$$(7x+10y)(7x-10y)$$

Exercise $$\PageIndex{1}$$

Factor:

$$36x^{2}−1$$.

$$(6x+1)(6x−1)$$

Given any real number $$b$$, a polynomial of the form $$x^{2}+b^{2}$$ is prime.

Furthermore, the sum of squares $$a^{2}+b^{2}$$ does not have a general factored equivalent. Care should be taken not to confuse this with a perfect square trinomial:

\begin{aligned}(a+b)^{2}&=(a+b)(a+b) \\ &=a^{2}+ab+ba+b^{2} \\ &=a^{2}+2ab+b^{2} \end{aligned}

Therefore,

$(a+b)^{2}\neq a^{2}+b^{2}$

When the degree of the special binomial is greater than two, we may need to apply the difference of squares formula multiple times. A polynomial is completely factored when none of the factors can be factored any further.

Example $$\PageIndex{5}$$

Factor completely:

$$x^{4}−16$$.

Solution:

First, identify what is being squared:

$$x^{4}-16=(\quad )^{2}-(\quad )^{2}$$

To do this, recall the power rule for exponents, $$(x^{m})^{^{n}}=x^{m^{n}}$$. When exponents are raised to a power, multiply them. With this in mind, determine that $$(x^{2})^{^{2}}=x^{4}$$ and write

$$x^{4}-16=(x^{2})^{^{2}}-(4)^{2}$$

Therefore, $$a=x^{2}$$ and $$b=4$$. Substitute into the formula for difference of squares.

$$x^{4}-16=(x^{2}+4)(x^{2}-4)$$

At this point, notice that the factor $$(x^{2}−4)$$ is itself a difference of two squares and thus can be further factored using $$a=x$$ and $$b=2$$. The factor $$(x^{2}+4)$$ is a sum of squares, which cannot be factored using real numbers.

\begin{aligned} x^{4}-16&=(x^{2}+4)(x^{2}-4) \\ &=(x^{2}+4)(x+2)(x-2) \end{aligned}

$$(x^{2}+4)(x+2)(x-2)$$

Exercise $$\PageIndex{2}$$

Factor completely:

$$81x^{4}−1$$.

$$(9x^{2}+1)(3x+1)(3x−1)$$

## Sum and Difference of Cubes

Two other special binomials of interest are the sum and difference of cubes:

$a^{3}+b^{3}=(a+b)(a^{2}-ab+b^{2})$

$a^{3}-b^{3}=(a-b)(a^{2}+ab+b^{2})$

We can verify these formulas by multiplying:

\begin{aligned} (a+b)(a^{2}-ab+b^{2})&=a^{3}-a^{2}b+ab^{2}-ab^{2}+b^{3} \\ &=a^{3}+b^{3}\quad\color{Cerulean}{\checkmark} \\ (a-b)(a^{2}+ab+b^{2})&=a^{3}+a^{2}b+ab^{2}=a^{2}b-ab^{2}-b^{3} \\ &=a^{3}-b^{3}\quad\color{Cerulean}{\checkmark} \end{aligned}

The process for factoring the sum and difference of cubes is very similar to that for the difference of squares. We first identify $$a$$ and $$b$$ and then substitute into the appropriate formula. The separate formulas for sum and difference of cubes allow us to always choose $$a$$ and $$b$$ to be positive.

Example $$\PageIndex{6}$$

Factor:

$$x^{3}+8$$.

Solution:

The plus sign and the fact that the terms are cubes indicate to us that this is a sum of cubes.

Next, identify what is being cubed.

$$x^{3}+8=(\color{Cerulean}{x}\color{black}{)^{3}+(}\color{Cerulean}{2}\color{black}{)^{3}}$$

In this case, $$a=x$$ and $$b=2$$. Substitute into the sum of cubes formula.

\begin{aligned} a^{3}+b^{3}&=(a+b)(a^{2}-a\:\:b+\:\:b^{2}) \\ &\color{Cerulean}{\:\:\quad\downarrow\:\:\quad\downarrow\quad\downarrow\:\:\quad\downarrow\:\:\:\downarrow\quad\:\:\downarrow} \\ x^{3}+8&=(x+2)(x^{2}-x\cdot 2+2^{2}) \\ &=(x+2)(x^{2}-2x+4) \end{aligned}

The resulting trinomial is prime and the factoring is complete. We can check this factorization by multiplying.

\begin{aligned} (x+2)(x^{2}-2x+4)&= x^{3}-2x^{2}+4x+2x^{2}-4x+8 \\ &=x^{3} -\color{Cerulean}{\cancel{\color{black}{2x^{2}}}}\color{black}{+}\color{Cerulean}{\cancel{\color{black}{4x}}}\color{black}{+}\color{Cerulean}{\cancel{\color{black}{2x^{2}}}}\color{black}{-}\color{Cerulean}{\cancel{\color{black}{4x}}}\color{black}{+8} \\ &=x^{3}+8\quad\color{Cerulean}{\checkmark} \end{aligned}

$$(x-2)(x^{2}-2x+4)$$

It is helpful to review the perfect cubes of integers from $$1$$ to $$12$$. This will aid you in identifying sums and differences of cubes.

$$\begin{array}{ll} {1^{3}=1}&{y^{3}=343}\\{2^{3}=8}&{8^{3}=512}\\{3^{3}=27}&{9^{3}=729}\\{4^{3}=64}&{10^{3}=1000}\\{5^{3}=125}&{11^{3}=1331}\\{6^{3}=216}&{12^{3}=1728} \end{array}$$

Example $$\PageIndex{7}$$

Factor:

$$y^{3}-125$$.

Solution:

In this case, we have a difference of cubes.

We can write

$$y^{3}-125=(\color{Cerulean}{y}\color{black}{)^{3}-(}\color{Cerulean}{5}\color{black}{)^{3}}$$

Substitute $$a=y$$ and $$b=5$$ into the formula for difference of cubes.

\begin{aligned} a^{3}-b^{3}&=(a-b)(a^{2}+a\:\:b+\:\:b^{2}) \\ &\color{Cerulean}{\:\:\quad\downarrow\:\:\quad\downarrow\quad\downarrow\:\:\quad\downarrow\:\:\:\downarrow\quad\:\:\downarrow} \\ y^{3}-1258&=(y-5)(y^{2}+y\cdot 5+5^{2}) \\ &=(y-5)(y^{2}+5y+25) \end{aligned}

$$(y-5)(y^{2}+5y+25)$$

Always look for common factors when factoring. If the terms of the binomial have a GCF other than $$1$$, then factor that out first.

Example $$\PageIndex{8}$$

Factor:

$$54x^{4}+128x$$.

Solution:

Begin by factoring out the GCF $$2x$$.

$$54x^{4}+128x=2x(27x^{3}+64)$$

The resulting binomial factor is a sum of cubes, where $$a=3x$$ and $$b=4$$.

\begin{aligned} 54x^{4}+128x &=2x(27x^{3}+64) \\ &=2x(3x+4)((3x)^{2}-(3x)(4)+4^{2}) \\ &=2x(3x+4)(9x^{2}-12x+16) \end{aligned}

$$2x(3x+4)(9x^{2}-12x+16)$$

Example $$\PageIndex{9}$$

Factor:

$$x^{3}y^{3}-1$$.

Solution

This binomial is a difference of cubes with two variables. Identify what is being cubed.

$$x^{3}y^{3}-1=(\color{Cerulean}{xy}\color{black}{)^{3}-(}\color{Cerulean}{1}\color{black}{)^{3}}$$

Here $$a=xy$$ and $$b=1$$. Substitute into the appropriate formula and simplify.

\begin{aligned} a^{3}-b^{3}&=(a-b)(a^{2}+ab+b^{2}) \\ x^{3}y^{3}-1&=(xy-1)((xy)^{2}+xy\cdot 1+1^{2}) \\ &=(xy-1)(x^{2}y^{2}+xy+1) \end{aligned}

$$(xy-1)(x^{2}y^{2}+xy+1)$$

Exercise $$\PageIndex{3}$$

Factor:

$$8x^{3}+343$$.

$$(2x+7)(4x^{2}−14x+49)$$

When factoring, always look for resulting factors to factor further.

Example $$\PageIndex{10}$$

Factor completely:

$$x^{6}−64$$.

Solution:

When confronted with a binomial that is both a difference of squares and cubes, as this is, make it a rule to factor using difference of squares first.

$$x^{6}-64=(\color{Cerulean}{x^{3}}\color{black}{)^{^{2}}-(}\color{Cerulean}{8}\color{black}{)^{2}}$$

Therefore, $$a=x^{3}$$ and $$b=8$$. Substitute into the difference of squares formula.

$$x^{6}-64=(x^{3}+8)(x^{3}-8)$$

The resulting two binomial factors are a sum and a difference of cubes. Each can be factored further.

\begin{aligned} x^{3}+8&=(x+2)(x^{2}-2x+2^{2}) \\ x^{3}-8&=(x-2)(x^{2}+2x+2^{2}) \end{aligned}

Therefore, we have

$$\begin{array}{ccccc} {x^{6}-64}&{=}&{(x^{3}+8)}&{\cdot}&{(x^{3}-8)}\\{}&{=}&{\color{Cerulean}{\overbrace{\color{black}{(x+2)(x^{2}-2x+4)}}}}&{\cdot}&{\color{Cerulean}{\overbrace{\color{black}{(x-2)(x^{2}+2x+4)}}}} \end{array}$$

The trinomial factors are prime and the expression is completely factored.

$$(x+2)(x^{2}−2x+4)(x−2)(x^{2}+2x+4)$$

As an exercise, factor the previous example as a difference of cubes first and then compare the results. Why do you think we make it a rule to factor using difference of squares first?

Exercise $$\PageIndex{4}$$

Factor:

$$x^{6}−y^{6}$$.

$$(x+y)(x^{2}−xy+y2)(x−y)(x^{2}+xy+y2)$$

## Key Takeaways

• When factoring special binomials, the first step is to identify it as a sum or difference. Once we identify the binomial, we then determine the values of $$a$$ and $$b$$ and substitute into the appropriate formula.
• The formulas for all of the special binomials should be memorized. In addition, to help facilitate the identification of special binomials, memorize the squares and cubes of integers up to at least $$12$$.
• If a binomial is both a difference of squares and cubes, then first factor it as a difference of squares.

Exercise $$\PageIndex{5}$$ Difference of Squares

Factor completely.

1. $$x^{2}−9$$
2. $$x^{2}−100$$
3. $$y^{2}−36$$
4. $$y^{2}−144$$
5. $$x^{2}+4$$
6. $$x^{2}−5$$
7. $$m^{2}−81$$
8. $$m^{2}−64$$
9. $$16x^{2}−9$$
10. $$25x^{2}−4$$
11. $$144x^{2}−1$$
12. $$9x^{2}−121$$
13. $$4y^{2}−81$$
14. $$100y^{2} −49$$
15. $$9 − 4 x^{2}$$
16. $$100 −x^{2}$$
17. $$1 −y^{2}$$
18. $$25 − 9y^{2}$$
19. $$− 3 x^{2} +75$$
20. $$−16 x^{2} +25$$
21. $$2 x^{2} −72$$
22. $$20 x^{3} −45 x$$
23. $$−48 x +27x^{3}$$
24. $$36 x^{2} −100$$
25. $$x^{2} −y^{2}$$
26. $$25 x^{2} − 9y^{2}$$
27. $$a^{2} − 4 b^{2}$$
28. $$a^{2} b^{2} −36$$
29. $$4 x^{2}y^{2} − 1$$
30. $$x^{2}y^{2} −25$$
31. $$2 a^{3} − 8ab^{2}$$
32. $$3 a^{3} b^{4} −75ab^{2}$$
33. $$−100xy^{3} + 4x^{3}y$$
34. $$−18 x^{3}y^{3} +32xy$$
35. $$(x + 1 )^{2} −y^{2}$$
36. $$x^{2}−(y − 2 )^{2}$$
37. $$(x − 3 )^{2}−(y + 3 )^{2}$$
38. $$(x^{2} + 2 )^{2}−(x − 1 )^{2}$$
39. $$(x^{2} − 1 )^{2}−( 2 x + 3 )^{2}$$
40. $$x^{4} − 1$$
41. $$x^{4} −y^{4}$$
42. $$16 x^{4} −81$$
43. $$a^{4}b^{4}−16$$
44. $$a^{4}−16b^{4}$$
45. $$x^{8}−1$$
46. $$25x^{8}−1$$
47. $$a^{8}−b^{2}$$
48. $$a^{4}−9$$
49. $$x^{8}−y^{8}$$
50. $$81x^{8}−1$$
51. The height of a projectile dropped from a $$64$$-foot tower is given by the function $$h(t)=−16t^{2}+64$$, where $$t$$ represents the time in seconds after it is dropped. Rewrite this function in factored form. (Hint: Factor out $$−16$$ first.)
52. The height of a projectile dropped from a $$36$$-foot tower is given by the function $$h(t)=−16t^{2}+36$$, where $$t$$ represents the time in seconds after it is dropped. Rewrite this function in factored form.

1. $$(x+3)(x−3)$$

3. $$(y+6)(y−6)$$

5. Prime

7. $$(m+9)(m−9)$$

9. $$(4x+3)(4x−3)$$

11. $$(12x+1)(12x−1)$$

13. $$(2y+9)(2y−9)$$

15. $$(3+2x)(3−2x)$$

17. $$(1+y)(1−y)$$

19. $$−3(x+5)(x−5)$$

21. $$2(x+6)(x−6)$$

23. $$3x(3x+4)(3x−4)$$

25. $$(x +y)(x −y )$$

27. $$( a + 2 b)( a − 2 b )$$

29. $$( 2xy + 1)( 2xy − 1 )$$

31. $$2 a ( a + 2 b)( a − 2 b )$$

33. $$4xy (x + 5y)(x − 5y )$$

35. $$(x + 1 +y)(x + 1 −y )$$

37. $$(x +y)(x −y − 6 )$$

39. $$(x^{2} + 2 x + 2)(x^{2} − 2 x − 4 )$$

41. $$(x^{2} +y^{2} ) (x +y)(x −y )$$

43. $$( a^{2} b^{2} + 4 ) (ab + 2)(ab − 2 )$$

45. $$(x^{4} + 1)(x^{2} + 1 ) (x + 1)(x − 1 )$$

47. $$( a^{4} + b)( a^{4} − b )$$

49. $$(x^{4} +y^{4})(x^{2} +y^{2} ) (x +y)(x −y )$$

51. $$h ( t)=−16 ( t + 2)( t − 2 )$$

Exercise $$\PageIndex{6}$$ Sum and Difference of Cubes

Factor completely.

1. $$x^{3}−1$$
2. $$x^{3}+1$$
3. $$y^{3}−27$$
4. $$y^{3}−8$$
5. $$8y^{3}+1$$
6. $$27y^{3}−1$$
7. $$64a^{3}−125$$
8. $$8a^{3}+27$$
9. $$a^{3}+216$$
10. $$a^{3}−125$$
11. $$x^{3}−1000$$
12. $$343m^{3}−1$$
13. $$512 n^{3} + 1$$
14. $$8 x^{3} +343$$
15. $$40y^{3} −135$$
16. $$27y^{3} +729$$
17. $$27y^{3} −64$$
18. $$x^{3} + 3$$
19. $$5 x^{3} + 1$$
20. $$1 −y^{3}$$
21. $$27 −1,000y^{3}$$
22. $$343 +125 a^{3}$$
23. $$x^{3} −y^{3}$$
24. $$x^{3} +y^{3}$$
25. $$x^{3}y^{3} +125$$
26. $$8 x^{3}y^{3} −27$$
27. $$27 a^{3} − 8 b^{3}$$
28. $$16 x^{3} −250y^{3}$$
29. $$128 x^{3} + 2y^{3}$$
30. $$54 x^{3} − 2y^{3}$$
31. $$3 a^{4} b −24ab^{4}$$
32. $$a^{3} b^{3} c^{3} − 1$$
33. $$(x + 1 )^{3} − 8$$
34. $$8 x^{3}−(x − 5 )^{3}$$
35. $$(x − 2 )^{3}+(x + 2 )^{3}$$
36. $$( a + 3 )^{3}+( b − 3 )^{3}$$
37. $$x^{6} − 1$$
38. $$x^{6} + 1$$
39. $$64 a^{6} − 1$$
40. $$a^{6} −81 b^{6}$$
41. $$x^{6} −y^{6}$$
42. $$x^{6}+y^{6}$$

1. $$(x − 1 ) (x^{2} +x + 1 )$$

3. $$(y − 3 ) (y^{2} + 3 y + 9 )$$

5. $$( 2y + 1 ) ( 4y^{2} − 2y + 1 )$$

7. $$( 4 a − 5 ) (16 a^{2} +20 a +25 )$$

9. $$( a + 6 ) ( a^{2} − 6 a +36 )$$

11. $$(x −10 ) (x^{2} +10 x +100 )$$

13. $$( 8 n + 1 ) (64 n^{2} − 8 n + 1 )$$

15. $$5 ( 2y − 3 ) ( 4y^{2} + 6y + 9 )$$

17. $$( 3 y − 4 ) ( 9y^{2} +12y +16 )$$

19. Prime

21. $$( 3 −10y ) ( 9 +30y +100y^{2} )$$

23. $$(x −y ) (x^{2} +xy +y^{2} )$$

25. $$(xy + 5 ) (x^{2}y^{2} − 5xy +25 )$$

27. $$( 3 a − 2 b ) ( 9 a^{2} + 6ab + 4 b^{2} )$$

29. $$2 ( 4 x +y ) (16 x^{2} − 4xy +y^{2} )$$

31. $$3ab(a−2b)(a^{2}+2ab+4b^{2})$$

33. $$(x−1)(x^{2}+4x+7)$$

35. $$2x(x^{2}+12)$$

37. $$(x+1)(x^{2}−x+1)(x−1)(x^{2}+x+1)$$

39. $$(2a+1)(4a^{2}−2a+1)(2a−1)(4a^{2}+2a+1)$$

41. $$(x+y)(x^{2}−xy+y^{2})(x−y)(x^{2}+xy+y^{2})$$

Exercise $$\PageIndex{7}$$ Discussion Board Topics

1. If a binomial falls into both categories, difference of squares and difference of cubes, which would be best to factor it as, and why? Create an example that illustrates this situation and factor it using both formulas.
2. What can be said about the degrees of the factors of a polynomial? Give an example.
3. Make up your own difference of squares factoring exercise and provide the answer. Explain how you solved it.
4. Make up your own sum or difference of cubes factoring exercise and provide the answer. Explain how you solved it.