Sub topic 5
Factoring a Difference of Squares
Prerequisites
Assume you can multiply algebraic expressions, work with exponents, and recognize perfect squares. A factor is an expression that is multiplied by another expression. Factoring rewrites a sum or difference as a product.
A difference of squares has the form
\[ a^2-b^2 \]
where both terms are squares and subtraction separates them. The key identity is
\[ a^2-b^2=(a-b)(a+b). \]
This identity comes from multiplying the factors:
\[ (a-b)(a+b)=a^2+ab-ab-b^2=a^2-b^2. \]
The middle terms cancel.
How to Factor
Use this process:
- Check that the expression is a subtraction.
- Check that each term is a perfect square.
- Take the square root of each term.
- Write one factor with subtraction and one with addition.
For example,
\[ x^2-36=x^2-6^2=(x-6)(x+6). \]
For numerical coefficients,
\[ 25y^2-49=(5y)^2-7^2=(5y-7)(5y+7). \]
The terms do not need to be single numbers. For example,
\[ 9x^4-16=(3x^2)^2-4^2=(3x^2-4)(3x^2+4). \]
Sometimes you must first factor out a greatest common factor:
\[ 18x^2-50=2(9x^2-25) =2(3x-5)(3x+5). \]
The expression inside the parentheses is the difference of squares.
| Expression | Square roots | Factored form |
|---|---|---|
| \(x^2-81\) | \(x,\ 9\) | \((x-9)(x+9)\) |
| \(16a^2-25\) | \(4a,\ 5\) | \((4a-5)(4a+5)\) |
| \(49m^4-1\) | \(7m^2,\ 1\) | \((7m^2-1)(7m^2+1)\) |
Common Errors and GRE Uses
Do not apply this rule to a sum:
\[ a^2+b^2 \]
does not factor into \((a-b)(a+b)\) over the real numbers. Also, both terms must be squares. For example, \(x^2-6\) is not a difference of squares using ordinary integers because \(6\) is not a perfect square.
Factoring can simplify rational expressions. For example,
\[ \frac{x^2-25}{x-5} =\frac{(x-5)(x+5)}{x-5} =x+5, \]
provided \(x\ne5\). The original denominator cannot equal zero.
The same identity gives fast arithmetic:
\[ 99\cdot101=(100-1)(100+1)=100^2-1^2=9999. \]
for a, b in [(10, 1), (20, 3), (100, 1)]:
product = (a - b) * (a + b)
difference = a**2 - b**2
assert product == difference
print(product)Exercise
Factor \(4x^2-121\).
Show answer
\((2x-11)(2x+11)\), because \(4x^2=(2x)^2\) and \(121=11^2\).