When multiplying binomials, certain pairs produce results with a recognizable pattern every single time. These special products are worth memorizing because they appear constantly in algebra — from simplifying expressions to factoring polynomials to solving equations. Recognizing them saves time and reduces errors compared to multiplying out every term with FOIL.
There are three special product patterns: the difference of squares, the square of a sum, and the square of a difference. The last two produce what are called perfect square trinomials.
Pattern 1: Difference of Squares
When you multiply the sum and difference of the same two terms, the middle terms cancel and you get a difference of squares:
(a+b)(a−b)=a2−b2
Why It Works
Apply FOIL to (a+b)(a−b):
F:a⋅a=a2
O:a⋅(−b)=−ab
I:b⋅a=ab
L:b⋅(−b)=−b2
Combine: a2−ab+ab−b2=a2−b2
The −ab and +ab always cancel. This is not a coincidence — it happens every time you multiply conjugates (two binomials that are identical except one has a plus and the other has a minus).
Example 1: (x+5)(x−5)
Using the pattern with a=x and b=5:
(x+5)(x−5)=x2−52=x2−25
Answer:x2−25
Verify with FOIL:x2−5x+5x−25=x2−25. Correct.
Example 2: (3x+7)(3x−7)
Here a=3x and b=7:
(3x+7)(3x−7)=(3x)2−72=9x2−49
Answer:9x2−49
Example 3: (2x+3y)(2x−3y)
Here a=2x and b=3y:
(2x+3y)(2x−3y)=(2x)2−(3y)2=4x2−9y2
Answer:4x2−9y2
Example 4: (x2+4)(x2−4)
The pattern works with any expression in place of a and b. Here a=x2 and b=4:
(x2+4)(x2−4)=(x2)2−42=x4−16
Answer:x4−16
Pattern 2: Square of a Sum (Perfect Square Trinomial)
When you square a binomial sum, the result is a perfect square trinomial:
(a+b)2=a2+2ab+b2
The key feature is the middle term2ab — it is always twice the product of the two terms.
Why It Works
(a+b)2 means (a+b)(a+b). Apply FOIL:
F:a2
O:ab
I:ab
L:b2
Combine: a2+ab+ab+b2=a2+2ab+b2
The two middle terms are identical, so they combine into 2ab.
Example 5: (x+4)2
Using the pattern with a=x and b=4:
(x+4)2=x2+2(x)(4)+42=x2+8x+16
Answer:x2+8x+16
Example 6: (3x+2)2
With a=3x and b=2:
(3x+2)2=(3x)2+2(3x)(2)+22=9x2+12x+4
Answer:9x2+12x+4
Example 7: (5x+1)2
With a=5x and b=1:
(5x+1)2=25x2+2(5x)(1)+1=25x2+10x+1
Answer:25x2+10x+1
Pattern 3: Square of a Difference (Perfect Square Trinomial)
Squaring a binomial difference produces a similar pattern, but the middle term is negative:
(a−b)2=a2−2ab+b2
Notice that the last term b2 is still positive — squaring always produces a positive result.
Why It Works
(a−b)2=(a−b)(a−b). Apply FOIL:
F:a2
O:−ab
I:−ab
L:b2
Combine: a2−ab−ab+b2=a2−2ab+b2
Example 8: (x−6)2
With a=x and b=6:
(x−6)2=x2−2(x)(6)+62=x2−12x+36
Answer:x2−12x+36
Example 9: (4x−3)2
With a=4x and b=3:
(4x−3)2=(4x)2−2(4x)(3)+32=16x2−24x+9
Answer:16x2−24x+9
Example 10: (2x−5y)2
With a=2x and b=5y:
(2x−5y)2=(2x)2−2(2x)(5y)+(5y)2=4x2−20xy+25y2
Answer:4x2−20xy+25y2
Summary of All Three Patterns
Pattern
Formula
Example
Difference of Squares
(a+b)(a−b)=a2−b2
(x+3)(x−3)=x2−9
Square of a Sum
(a+b)2=a2+2ab+b2
(x+3)2=x2+6x+9
Square of a Difference
(a−b)2=a2−2ab+b2
(x−3)2=x2−6x+9
When to Use Each Pattern
Before multiplying two binomials, ask yourself:
Are they conjugates? (same terms, opposite signs like (a+b)(a−b)) — Use difference of squares.
Is it a binomial squared? (like (a+b)2 or (a−b)2) — Use perfect square trinomial.
Neither? — Use FOIL or the distributive property as usual.
Recognizing Special Products in Reverse
These patterns are just as important in reverse — recognizing that x2−49 is a difference of squares, or that x2+10x+25 is a perfect square trinomial. This reverse recognition is the foundation of factoring, which you will study later.
Quick tests:
Difference of squares: Two terms, both perfect squares, subtracted. Example: 25x2−16=(5x)2−42.
Perfect square trinomial: Three terms where the first and last are perfect squares and the middle term is twice the product of their square roots. Example: x2+14x+49 checks out because x2=x, 49=7, and 2⋅x⋅7=14x.
Real-World Application: Electrician — Power Calculations
An electrician uses the power formula P=I2R, where P is power (watts), I is current (amps), and R is resistance (ohms). When the current is expressed as a binomial — for instance, the current in a circuit is (I0+ΔI) where I0 is the baseline current and ΔI is a small fluctuation — the power becomes:
P=(I0+ΔI)2⋅R
Expanding using the square of a sum:
P=(I02+2I0ΔI+(ΔI)2)⋅R
P=I02R+2I0RΔI+R(ΔI)2
For a circuit with I0=10 amps, ΔI=0.5 amps, and R=4 ohms:
P=(10)2(4)+2(10)(4)(0.5)+4(0.5)2
P=400+40+1=441 watts
The electrician can also verify: (10.5)2×4=110.25×4=441 watts. The expanded form reveals that the 40-watt increase comes from the linear 2I0RΔI term, and the tiny 1-watt increase from the squared fluctuation term R(ΔI)2.
Answer: The power is 441 watts. The special product expansion helps electricians understand how small changes in current affect power consumption, which is critical for circuit design and breaker sizing.
Another Application: Mental Math with Difference of Squares
The difference of squares pattern can speed up mental arithmetic. To compute 47×53:
47×53=(50−3)(50+3)=502−32=2500−9=2491
Similarly, 98×102:
98×102=(100−2)(100+2)=10000−4=9996
This trick works whenever two numbers are equidistant from a round number.
Common Mistakes to Avoid
Writing (a+b)2=a2+b2. This is the single most common algebra mistake. The correct expansion is a2+2ab+b2. You are missing the middle term. Always remember: squaring a binomial produces three terms, not two.
Forgetting that b2 is always positive in (a−b)2.(x−6)2=x2−12x+36, not x2−12x−36. A squared quantity is always nonnegative.
Confusing the patterns.(a+b)(a−b) gives two terms (a2−b2). (a+b)2 gives three terms (a2+2ab+b2). Make sure you know which pattern applies.
Not squaring the entire term.(3x)2=9x2, not 3x2. When the first or second term has a coefficient, you must square the coefficient too.
Misidentifying conjugates.(x+5)(x−3) is not a difference of squares because the second terms (5 and 3) are different. The pattern requires both terms to be identical except for the sign.
Practice Problems
Test your understanding with these problems. Click to reveal each answer.
Problem 1: Expand (x+9)(x−9)
Difference of squares with a=x, b=9:
(x+9)(x−9)=x2−81
Answer:x2−81
Problem 2: Expand (x+5)2
Square of a sum with a=x, b=5:
(x+5)2=x2+2(x)(5)+25=x2+10x+25
Answer:x2+10x+25
Problem 3: Expand (x−8)2
Square of a difference with a=x, b=8:
(x−8)2=x2−2(x)(8)+64=x2−16x+64
Answer:x2−16x+64
Problem 4: Expand (6x+1)(6x−1)
Difference of squares with a=6x, b=1:
(6x+1)(6x−1)=36x2−1
Answer:36x2−1
Problem 5: Expand (2x−7)2
Square of a difference with a=2x, b=7:
(2x−7)2=4x2−2(2x)(7)+49=4x2−28x+49
Answer:4x2−28x+49
Problem 6: Use the difference of squares to compute 39×41 mentally.
39×41=(40−1)(40+1)=402−12=1600−1=1599
Answer:1599
Problem 7: Is x2+12x+36 a perfect square trinomial? If so, write it as a squared binomial.
Check: x2=x and 36=6. The middle term should be 2(x)(6)=12x. It matches.
x2+12x+36=(x+6)2
Answer: Yes, (x+6)2
Key Takeaways
Difference of squares:(a+b)(a−b)=a2−b2 — conjugate binomials always produce a two-term result with no middle term
Square of a sum:(a+b)2=a2+2ab+b2 — always produces a trinomial with a positive middle term
Square of a difference:(a−b)2=a2−2ab+b2 — always produces a trinomial with a negative middle term but a positive last term
The number-one mistake is writing (a+b)2=a2+b2 — never forget the 2ab middle term
Recognizing these patterns in reverse is the key to factoring polynomials
These patterns apply in electrical engineering, physics, mental math, and anywhere polynomial expressions arise
Return to Algebra for more topics in this section.