Why (a + b)² Is Not a² + b²
See the missing 2ab term in numbers, in a picture and in symbols, and learn quick tests that catch the mistake early.
Key takeaways
- (a + b)² means (a + b)(a + b), so it expands to a² + 2ab + b².
- The two sides a² + b² and (a + b)² agree only when ab = 0 in ordinary real-number algebra.
- A square of side a + b contains two squares and also two a by b rectangles.
- Powers pass through multiplication and division, but they do not pass through addition or subtraction.
- Substituting two nonzero numbers is a fast way to expose a false simplification.
Squaring a sum means multiplying the whole sum by itself, and that produces a middle term: (a + b)² = a² + 2ab + b². The shortcut a² + b² leaves out 2ab, which is two real products that appear whenever both a and b are nonzero.
You can confirm this with two small numbers. Take a = 3 and b = 4. The sum is 7, and 7² = 49. But 3² + 4² = 9 + 16 = 25. The gap is 24, which is exactly 2 × 3 × 4.
What the square actually asks for
An exponent of 2 tells you to use the base as a factor twice. The base here is the entire quantity inside the parentheses. So (a + b)² is (a + b)(a + b).
To multiply those, you apply the distributive property, which says that a factor multiplies every term of a sum. Each term in the first group has to meet each term in the second.
(a + b)² = (a + b)(a + b) meaning of squaring
= a(a + b) + b(a + b) distribute the second group
= a² + ab + ba + b² distribute again
= a² + 2ab + b² ab and ba are the same product Four products come out of two groups of two terms. The shortcut keeps only the first and last of them and silently drops the two in the middle.
The picture with four pieces
Draw a square whose side has length a + b, with both lengths positive. Mark the point on the bottom edge where a ends and b begins, and do the same on the left edge. Draw a line straight across the square from each mark.
The big square is now cut into four regions. One is a square of side a. One is a square of side b. The other two are rectangles, each measuring a by b.
The two rectangles are the 2ab that the shortcut leaves out.
If (a + b)² really equaled a² + b², the two small squares would fill the big one completely. You can see that they cannot, because two rectangular gaps remain. A fuller treatment of the drawing appears in squaring a binomial and the picture that explains it.
The picture assumes positive lengths. The algebra above does not, and it holds for negative numbers and zero as well.
When the two sides do agree
Set the true expansion equal to the shortcut and see what is required.
a² + 2ab + b² = a² + b²
2ab = 0 subtract a² and b² from both sides
ab = 0 divide by 2
a = 0 or b = 0 zero product property for real numbers So the shortcut gives a correct value only when at least one of the numbers is zero. This explains why testing with a = 0 is useless: it is one of the few cases where the wrong rule happens to work.
In some other number systems the story differs. In arithmetic modulo 2, where 2 counts as 0, the term 2ab vanishes and (a + b)² = a² + b² is true. That is a special feature of that system, and it never applies to the ordinary numbers of a school algebra course.
Squaring a difference
A difference works the same way, since a − b is the sum of a and −b. Replacing b with −b in the pattern gives (a − b)² = a² − 2ab + b².
Notice that the last term stays positive, because (−b)² = b². A second frequent error is to write (a − b)² = a² − b². Test it with a = 5 and b = 2. The left side is 3² = 9. The wrong version gives 25 − 4 = 21. The correct pattern gives 25 − 20 + 4 = 9.
The expression a² − b² is useful for a different reason: it factors as (a + b)(a − b). That is a product of two different groups, not the square of one.
Worked expansions
In each case, identify what plays the role of a and what plays the role of b, then fill in the three terms: first squared, twice the product, last squared.
| Expression | First squared | Twice the product | Last squared | Result |
|---|---|---|---|---|
| (x + 5)² | x² | 10x | 25 | x² + 10x + 25 |
| (2x − 3)² | 4x² | −12x | 9 | 4x² − 12x + 9 |
| (3x + 2y)² | 9x² | 12xy | 4y² | 9x² + 12xy + 4y² |
| (x² + 1)² | x⁴ | 2x² | 1 | x⁴ + 2x² + 1 |
Check the second row at x = 1. The original is (2 − 3)² = 1, and the expansion is 4 − 12 + 9 = 1.
Square the whole first term, including its coefficient. In (2x − 3)², the first term squared is (2x)² = 4x², not 2x².
The pattern also helps with mental arithmetic. To find 41², write it as (40 + 1)² = 1600 + 80 + 1 = 1681. For 29², use (30 − 1)² = 900 − 60 + 1 = 841.
Why the shortcut feels right
Many rules in algebra really do spread an operation across terms. Multiplication does: 2(a + b) = 2a + 2b. It is natural to expect squaring to behave the same way.
Exponents follow a different rule. They spread across multiplication and division, so (ab)² = a²b² and (a/b)² = a²/b² when b ≠ 0. They do not spread across addition.
The same trap shows up in other forms:
- √(9 + 16) = √25 = 5, while √9 + √16 = 7. See the square root of a sum.
- 1/(2 + 2) = 1/4, while 1/2 + 1/2 = 1.
- (1 + 1)³ = 8, while 1³ + 1³ = 2.
Higher powers drop even more terms. For example, (a + b)³ = a³ + 3a²b + 3ab² + b³, as shown in expanding cubes of binomials.
How fast a square grows
Here is another way to feel the middle term. Start with a square of side s and lengthen each side by a small amount h. The new area is (s + h)² = s² + 2sh + h².
The growth is 2sh + h². It consists of a strip along the top, a strip along the side, and a little corner square where the strips meet. If s = 10 and h = 0.1, the new area is 10.1² = 102.01. The old area was 100, the two strips contribute 2, and the corner contributes 0.01.
The shortcut would claim that the new area is 100 + 0.01 = 100.01. That misses both strips, which carry almost all of the growth. When h is small compared with s, the middle term is far larger than h². So the dropped part is often the most important change.
The same observation explains the gaps between perfect squares. Putting h = 1 gives (n + 1)² = n² + 2n + 1. To get from 7² = 49 to 8², add 2 · 7 + 1 = 15, which gives 64. The gaps between consecutive squares are the odd numbers 1, 3, 5, 7 and so on.
A longer simplification
Squared sums often sit inside bigger expressions, where one slip carries through every later line. Simplify (x + 4)² − (x − 1)(x + 1).
(x + 4)² − (x − 1)(x + 1)
= (x² + 8x + 16) − (x² − 1) expand each product, keep parentheses
= x² + 8x + 16 − x² + 1 subtract both terms
= 8x + 17 Test x = 1. The original is 25 − 0 = 25, and the result is 8 + 17 = 25.
Keeping the parentheses in the second line matters. It reminds you that the minus sign applies to the whole expanded product. If you had written (x + 4)² as x² + 16, the entire 8x would have disappeared and the answer would have been the constant 17.
What goes wrong when you solve
The mistake changes answers. Consider the equation (x + 3)² = 25. The correct reading is that x + 3 equals 5 or −5, so x = 2 or x = −8. Both check: 5² = 25 and (−5)² = 25.
Someone who rewrites the left side as x² + 9 gets x² = 16, so x = 4 or x = −4. Try x = 4 in the original: 7² = 49, which is not 25. Neither of those values works.
Substituting your answers into the first line of the problem, before any rewriting, reveals the error immediately.
How large is the error?
The size of the missing piece depends on the signs of the two numbers. When a and b have the same sign, 2ab is positive, so a² + b² is too small. When they have opposite signs, 2ab is negative, so a² + b² is too large.
For a = 10 and b = −9, the true square is 1² = 1. The shortcut gives 100 + 81 = 181.
Even friendly-looking cases are badly off. For two equal positive numbers, the shortcut returns exactly half of the correct value: with a = b = 6, it gives 72 instead of 144.
Habits that prevent it
- Rewrite a squared sum as two sets of parentheses until the pattern is automatic.
- Say the three parts aloud as you write: first squared, twice the product, last squared.
- Test any new rule with two nonzero numbers, such as a = 2 and b = 3.
- Count your terms. The square of a two-term expression with unlike terms has three terms after combining.
Testing with numbers can show that a rule is false, but one successful test does not show that it is true. The article on equivalent expressions and how to test them explains the difference.
Reading the pattern backward is just as valuable. When you meet x² + 6x + 9, notice that 9 = 3² and 6x = 2 · x · 3, so the expression is (x + 3)². By contrast, x² + 9 has no middle term and is not the square of any binomial with real coefficients. You can practice this in recognizing perfect square trinomials.
Common questions
Is a² + b² ever factorable?
Not into linear factors with real coefficients, when a and b are independent variables. It does factor using complex numbers, as (a + bi)(a − bi), where i² = −1.
How do I square three terms?
Square each term, then add twice every pairwise product: (a + b + c)² = a² + b² + c² + 2ab + 2ac + 2bc. With a = b = c = 1, both sides equal 9.
Does the order of a and b matter?
No for a sum, since a² + 2ab + b² is symmetric. For a difference, (a − b)² and (b − a)² are also equal, because opposite numbers have the same square.