Sub topic 13
Special Products: Squares and Difference of Squares
Prerequisites: You should know how to multiply monomials, use the distributive property, and combine like terms. You should also understand that an exponent applies to the entire quantity in parentheses when the quantity is squared.
Special products are polynomial products with predictable patterns. Recognizing these patterns can make expansion faster and help you check your work.
Squaring a binomial
A binomial has two terms. To square a binomial, multiply it by itself:
\[ (a+b)^2=(a+b)(a+b) \]
Distribute each term:
\[ (a+b)^2=a^2+ab+ab+b^2=a^2+2ab+b^2 \]
The pattern is:
\[ (a+b)^2=a^2+2ab+b^2 \]
For a difference, the middle term is negative:
\[ (a-b)^2=a^2-2ab+b^2 \]
For example:
\[ (3x+4)^2=(3x)^2+2(3x)(4)+4^2 \]
\[ (3x+4)^2=9x^2+24x+16 \]
Similarly:
\[ (5y-2)^2=(5y)^2-2(5y)(2)+2^2 \]
\[ (5y-2)^2=25y^2-20y+4 \]
A common error is to omit the middle term. In general,
\[ (a+b)^2\ne a^2+b^2 \]
The two cross-products, \(ab\) and \(ab\), combine to make \(2ab\).
Difference of squares
When two binomials have the same terms but opposite signs, their product is a difference of squares:
\[ (a+b)(a-b)=a^2-b^2 \]
The middle terms cancel:
\[ (a+b)(a-b)=a^2-ab+ab-b^2=a^2-b^2 \]
For example:
\[ (2x+7)(2x-7)=(2x)^2-7^2=4x^2-49 \]
This pattern works only when the expression contains subtraction between two squared quantities. For example,
\[ 9z^2-16=(3z)^2-4^2 \]
so it factors as:
\[ 9z^2-16=(3z+4)(3z-4) \]
The expression \(a^2+b^2\) does not factor over the real numbers using this pattern. A plus sign between the squares does not produce cancellation.
Choosing the right pattern
| Product or expression | Pattern | Result |
|---|---|---|
| \((a+b)^2\) | Square of a sum | \(a^2+2ab+b^2\) |
| \((a-b)^2\) | Square of a difference | \(a^2-2ab+b^2\) |
| \((a+b)(a-b)\) | Difference of squares | \(a^2-b^2\) |
Use direct distribution when the terms do not match one of these patterns. The patterns are shortcuts based on distribution, so they should give the same result.
Check by substitution
You can test an expansion by choosing a value for the variable and evaluating both forms.
def evaluate(coefficients, x):
return sum(coefficient * x**power
for power, coefficient in enumerate(coefficients))
x = 2
factored = (3 * x + 4) ** 2
expanded = evaluate([16, 24, 9], x) # 9x^2 + 24x + 16
print(factored)
print(expanded)Both values are \(100\), so the expansion is consistent with the original expression.
Exercise
Expand and simplify (4x - 3)^2.
Show answer
Use a^2 - 2ab + b^2 with a = 4x and b = 3: (4x - 3)^2 = 16x^2 - 24x + 9.