Skip to main content

Section 6.5 Factoring Special Products

Objective: Identify and factor special products including a difference of squares, perfect squares, and sum and difference of cubes.

When factoring there are a few special products that, if we can recognize them, can help us factor polynomials. The first is one we have seen before. When multiplying special products we found that a sum and a difference could multiply to a difference of squares. Here we will use this special product to help us factor.

\begin{equation*} \textbf{ Difference of Squares: } \mathbf{ a^2 - b^2 = (a + b)(a - b)} \end{equation*}

If we are subtracting two perfect squares then it will always factor to the sum and difference of the square roots.

Example 6.5.1.

\begin{align*} x^2 - 16 \amp \quad \text{ Subtracting two perfect squares, the square roots are $x$ and $4$ } \\ (x + 4)(x - 4) \amp\quad \text{ Our Solution } \end{align*}

Example 6.5.2.

\begin{align*} 9a^2 - 25b^2 \amp \quad \text{ Subtracting two perfect squares, the square roots are $3a$ and $5b$ } \\ (3a + 5b)(3a - 5b) \amp\quad \text{ Our Solution } \end{align*}

It is important to note, that a sum of squares will never factor. It is always prime. This can be seen if we try to use the ac method to factor \(x^2 + 36\text{.}\)

Example 6.5.3.

\begin{align*} x^2 +36 \amp \quad \text{ No $bx$ term, we use $0x$. } \\ x^2 + 0x + 36 \amp\quad \text{ Multiply to $36$, add to $0$ } \\ 1\times 36,\ 2\times 18,\ 3\times 12,\ 4\times 9,\ 6\times 6 \amp\quad \text{ No combinations that multiply to $36$ add to $0$ } \\ \text{ Prime, cannot factor } \amp\quad \text{ Our Solution } \end{align*}

It turns out that a sum of squares is always prime.

\begin{equation*} \textbf{ Sum of Squares: } \mathbf{ a^2 + b^2 = } \textbf{ Prime} \end{equation*}

A great example where we see a sum of squares comes from factoring a difference of \(4\)th powers. Because the square root of a fourth power is a square \((\sqrt{a^4} = a^2)\text{,}\) we can factor a difference of fourth powers just like we factor a difference of squares, to a sum and difference of the square roots. This will give us two factors, one which will be a prime sum of squares, and a second which will be a difference of squares which we can factor again. This is shown in the following examples.

Example 6.5.4.

\begin{align*} a^4-b^4 \amp \quad \text{ Difference of squares with roots $a^2$ and $b^2$ } \\ (a^2 + b^2)(a^2 - b^2) \amp\quad \text{ The first factor is prime, the second is a difference of squares! } \\ (a^2+b^2)(a+b)(a-b) \amp\quad \text{ Our Solution } \end{align*}

Example 6.5.5.

\begin{align*} x^4-16 \amp \quad \text{ Difference of squares with roots $x^2$ and } 4 \\ (x^2+4)(x^2-4) \amp\quad \text{ The first factor is prime, the second is a difference of squares! } \\ (x^2+4)(x+2)(x-2) \amp\quad \text{ Our Solution } \end{align*}

Another factoring shortcut is the perfect square. We had a shortcut for multi- plying a perfect square which can be reversed to help us factor a perfect square.

\begin{equation*} \textbf{ Perfect Squares: } \mathbf{ a^2 +2ab + b^2 = (a+b)^2} \end{equation*}

A perfect square can be difficult to recognize at first glance, but if we use the ac method and get two of the same numbers we know we have a perfect square. Then we can just factor using the square roots of the first and last terms and the sign from the middle. This is shown in the following examples.

Example 6.5.6.

\begin{align*} x^2-6x+9 \amp \quad \text{ Multiply to $9$, add to } -6 \\ \amp\quad \text{ The numbers are $- 3$ and $- 3$, the same! Perfect square } \\ (x - 3)^2 \amp\quad \text{ Use square roots from first and last terms and sign from the middle } \end{align*}

Example 6.5.7.

\begin{align*} 4x^2 + 20xy + 25y^2 \amp \quad \text{ Multiply to $100$, add to $20$ } \\ \amp\quad \text{ The numbers are $10$ and $10$, the same! Perfect square } \\ (2x + 5y)^2 \amp\quad \text{ Use square roots from first and last terms and sign from the middle } \end{align*}

World View Note: The first known record of work with polynomials comes from the Chinese around \(200\) BC. Problems would be written as “three sheafs of a good crop, two sheafs of a mediocre crop, and one sheaf of a bad crop sold for \(29\) dou. This would be the polynomial (trinomial) \(3x + 2y + z = 29\text{.}\)

Another factoring shortcut has cubes. With cubes we can either do a sum or a difference of cubes. Both sum and difference of cubes have very similar factoring formulas

\begin{equation*} \textbf{ Sum of Cubes: } \mathbf{ a^3 +b^3 =(a+b)(a^2 -ab+b^2)} \end{equation*}
\begin{equation*} \textbf{ Difference of Cubes: } \mathbf{ a^3 -b^3 =(a-b)(a^2 +ab+b^2)} \end{equation*}

Comparing the formulas you may notice that the only difference is the signs in between the terms. One way to keep these two formulas straight is to think of SOAP. S stands for Same sign as the problem. If we have a sum of cubes, we add first, a difference of cubes we subtract first. O stands for Opposite sign. If we have a sum, then subtraction is the second sign, a difference would have addition for the second sign. Finally, AP stands for Always Positive. Both formulas end with addition. The following examples show factoring with cubes.

Example 6.5.8.

\begin{align*} m^3 - 27 \amp \quad \text{ We have cube roots $m$ and } 3 \\ (m \quad 3)(m^2 \quad 3m\quad 9) \amp\quad \text{ Use formula, use SOAP to fill in signs } \\ (m - 3)(m^2 + 3m + 9) \amp\quad \text{ Our Solution } \end{align*}

Example 6.5.9.

\begin{align*} 125p^3 + 8r^3 \amp \quad \text{ We have cube roots $5p$ and } 2r \\ (5p\quad 2r)(25p^2\quad 10r\quad 4r^2) \amp\quad \text{ Use formula, use SOAP to fill in signs } \\ (5p+ 2r)(25p^2-10r+4r^2) \ \amp\quad \text{ Our Solution } \end{align*}

The previous example illustrates an important point. When we fill in the trino- mial’s first and last terms we square the cube roots \(5p\) and \(2r\text{.}\) Often students forget to square the number in addition to the variable. Notice that when done correctly, both get cubed.

Often after factoring a sum or difference of cubes, students want to factor the second factor, the trinomial further. As a general rule, this factor will always be prime (unless there is a GCF which should have been factored out before using cubes rule).

The following table sumarizes all of the shortcuts that we can use to factor special products.

\begin{equation*} \textbf{Factoring Special Products} \end{equation*}
\begin{align*} \text{ Difference of Squares } \amp \quad a^2-b^2=(a+b)(a-b) \\ \text{ Sum of Squares } \amp\quad a^2+b^2=\text{ Prime } \\ \text{ Perfect Square } \amp\quad a^2 +2ab+b^2 =(a+b)^2 \\ \text{ Sum of Cubes } \amp\quad a^3 +b^3 =(a+b)(a^2 -ab+b^2) \\ \text{ Difference of Cubes }\amp\quad a^3-b^3=(a-b)(a^2+ab+b^2) \end{align*}

As always, when factoring special products it is important to check for a GCF first. Only after checking for a GCF should we be using the special products. This is shown in the following examples.

Example 6.5.10.

\begin{align*} 72x^2-2 \amp \quad \text{ GCF is } 2 \\ 2(36x^2 - 1) \amp\quad \text{ Difference of Squares, square roots are $6x$ and } 1 \\ 2(6x + 1)(6x - 1) \amp\quad \text{ Our Solution } \end{align*}

Example 6.5.11.

\begin{align*} 48x^2y - 24xy + 3y \amp \quad \text{ GCF is } 3y \\ 3y(16x^2 - 8x + 1) \amp\quad \text{ Multiply to $16$ add to } 8 \\ \amp\quad \text{ The numbers are $4$ and $4$, the same! Perfect Square } \\ 3y(4x - 1)^2 \amp\quad \text{ Our Solution } \end{align*}

Example 6.5.12.

\begin{align*} 128a^4b^2 + 54a b^5 \amp \quad \text{ GCF is } 2a b^2 \\ 2ab^2(64a^3 + 27b^3) \amp\quad \text{ Sum of cubes! Cube roots are $4a$ and } 3b \\ 2ab^2(4a + 3b)(16a^2 - 12a b + 9b^2) \amp\quad \text{ Our Solution } \end{align*}

Exercises Exercises - Factoring Special Products

Exercise Group.

Factor each completely.

1.

\(r^2 - 16 \)

2.

\(x^2-9 \)

3.

\(v^2 - 25 \)

4.

\(x^2-1\)

5.

\(p^2-4 \)

6.

\(4v^2 - 1 \)

7.

\(9k^2 - 4\)

8.

\(9a^2 - 1\)

9.

\(3x^2 - 27\)

10.

\(5n^2-20\)

11.

\(16x^2 - 36 \)

12.

\(125x^2 + 45y^2\)

13.

\(18a^2 - 50b^2 \)

14.

\(4m^2 + 64n^2\)

15.

\(a^2 - 2a + 1\)

16.

\(k^2 + 4k + 4\)

17.

\(x^2 + 6x + 9 \)

18.

\(n^2-8n+16 \)

19.

\(x^2 - 6x + 9 \)

20.

\(k^2 - 4k + 4 \)

21.

\(25p^2-10p+1 \)

22.

\(x^2 + 2x + 1\)

23.

\(25a^2 + 30ab + 9b^2 \)

24.

\(x^2+8xy+16y^2 \)

25.

\(4a^2 - 20ab + 25b^2 \)

26.

\(18m^2 - 24mn + 8n^2 \)

27.

\(8x^2-24xy+18y^2 \)

28.

\(20x^2+20xy+5y^2\)

29.

\(8-m^3\)

30.

\(x^3 + 64\)

31.

\(x^3 - 64 \)

32.

\(x^3 + 8\)

33.

\(216-u^3\)

34.

\(125x^3 - 216\)

35.

\(125a^3 - 64 \)

36.

\(64x^3 - 27\)

37.

\(64x^3 + 27y^3 \)

38.

\(32m^3 - 108n^3\)

39.

\(54x^3 + 250y^3 \)

40.

\(375m^3 + 648n^3\)

41.

\(a^4-81 \)

42.

\(x^4 - 256 \)

43.

\(16-z^4\)

44.

\(n^4-1\)

45.

\(x^4 - y^4 \)

46.

\(16a^4 - b^4\)

47.

\(m^4 - 81b^4 \)

48.

\(81c^4 - 16d^4 \)