Sub topic 7
Difference of Squares
Assume you can multiply binomials, use the distributive property, and apply exponent rules. You should also know that a polynomial is a sum of terms, such as \(x^2 - 49\). In this chapter, you will recognize and factor one important pattern: the difference of squares.
Recognizing the pattern
A difference of squares is an expression with these features:
- It has two terms.
- The terms are being subtracted.
- Both terms are perfect squares.
The pattern is:
\[ a^2-b^2=(a-b)(a+b) \]
The two factors have the same first term and opposite signs between their terms.
For example:
\[ x^2-49 \]
is a difference of squares because \(x^2\) is a square and \(49=7^2\). Therefore:
\[ x^2-49=(x-7)(x+7) \]
The pattern works because the middle terms cancel when the factors are multiplied:
\[ (x-7)(x+7)=x^2+7x-7x-49=x^2-49 \]
| Expression | Square roots | Factored form |
|---|---|---|
| \(x^2-49\) | \(x\) and \(7\) | \((x-7)(x+7)\) |
| \(9x^2-25\) | \(3x\) and \(5\) | \((3x-5)(3x+5)\) |
Factoring with variables
To factor a difference of squares, find the square root of each term. Then use one subtraction factor and one addition factor.
Consider:
\[ 16y^2-81 \]
The square roots are:
\[ \sqrt{16y^2}=4y \qquad \sqrt{81}=9 \]
So:
\[ 16y^2-81=(4y-9)(4y+9) \]
Always check by multiplying:
\[ (4y-9)(4y+9)=16y^2+36y-36y-81=16y^2-81 \]
The same method works when both terms contain variables:
\[ 25a^4-36b^2 \]
Since \(25a^4=(5a^2)^2\) and \(36b^2=(6b)^2\),
\[ 25a^4-36b^2=(5a^2-6b)(5a^2+6b) \]
The exponents must be even for a variable term to be a perfect square. For example, \(x^4\) is a square because \(x^4=(x^2)^2\).
Do not confuse subtraction with addition
A sum of squares does not factor over the integers using this pattern:
\[ x^2+25 \]
There is no real-number factorization based on \((x-5)(x+5)\), because:
\[ (x-5)(x+5)=x^2-25 \]
The sign matters. The difference of squares has a minus sign:
\[ a^2-b^2 \]
The sum of squares has a plus sign:
\[ a^2+b^2 \]
Factor out a common factor first
Sometimes the difference-of-squares pattern appears only after removing a greatest common factor.
For example:
\[ 12x^2-75 \]
Both terms have a common factor of \(3\):
\[ 12x^2-75=3(4x^2-25) \]
Now \(4x^2-25\) is a difference of squares:
\[ 4x^2-25=(2x-5)(2x+5) \]
Therefore, the complete factorization is:
\[ 12x^2-75=3(2x-5)(2x+5) \]
Stopping at \(3(4x^2-25)\) would leave the polynomial partially factored.
A reliable check
Expand the factors after factoring. For:
\[ 49m^2-64n^2=(7m-8n)(7m+8n) \]
the check is:
\[ (7m-8n)(7m+8n) =49m^2+56mn-56mn-64n^2 =49m^2-64n^2 \]
The opposite middle terms cancel. This cancellation is the key feature of the pattern.
def difference_of_squares(a, b):
original = a * a - b * b
factored = (a - b) * (a + b)
return original == factored
for a, b in [(3, 2), (10, 7), (5, 12)]:
print(difference_of_squares(a, b))The program prints True for each pair. These numerical checks illustrate the identity, but expanding algebraically proves it for all values of \(a\) and \(b\).
Exercise
Factor completely: \(18x^2-50\). Then verify your answer by expanding.
Show answer
\(18x^2-50=2(9x^2-25)=2(3x-5)(3x+5)\). Expanding the binomials gives \(9x^2-25\), and multiplying by \(2\) gives \(18x^2-50\).