Three products of binomials are used so often that they are learned as patterns: (a + b)² = a² + 2ab + b², (a − b)² = a² − 2ab + b² and (a + b)(a − b) = a² − b². This lesson proves each one by multiplying, pictures it with areas, applies it to sums of monomials and to mental arithmetic such as 49 × 51, and explains why (a + b)² is not a² + b².
The square of a sum
Every product of polynomials can be found by multiplying every term by every term (lesson 1.4). Some products follow a pattern that makes the work shorter, and squaring a binomial is the first example.[1] The square (a + b)² means (a + b)(a + b).
For all rational numbers a and b,
(a + b)² = a² + 2ab + b².
Every term times every term (lesson 1.4): (a + b)(a + b) = a · a + a · b + b · a + b · b. By the commutative law ba = ab, so the two middle products are like terms, and ab + ab = 2ab. That leaves a² + 2ab + b².
Textbooks state the pattern for all numbers a and b.[2]
The letters a and b may stand for any expressions, not only for single numbers. The identity holds for all numbers, so a letter in it may be replaced by any number,[6] and at every value of its variables an expression such as 5t is a number. So (5t + 2)² follows the pattern with a = 5t and b = 2, and the two sides are equivalent (Algebraic Expressions 1.4). The pattern is a shortcut for the computation of lesson 1.4, not a new rule.
The square of side a + b
Only a² + b²
Expand (5t + 2)².
- Here a = 5t and b = 2.
- a² = (5t)² = 25t², by the power of a product (Exponents 1.4); 2ab = 2 · 5t · 2 = 20t; b² = 4.
- Check at t = 1: (5 + 2)² = 49, and 25 + 20 + 4 = 49.
Answer: 25t² + 20t + 4.
Expand (x³ + 2y)².
- a = x³: a² = (x³)² = x⁶, by the power rule (Exponents 1.3): exponents multiply, 3 · 2 = 6.
- b = 2y: 2ab = 2 · x³ · 2y = 4x³y, and b² = 4y².
- Check at x = y = 1: (1 + 2)² = 9, and 1 + 4 + 4 = 9.
Answer: x⁶ + 4x³y + 4y².
Expand (m + 12)².
- a² = m²; 2ab = 2 · m · 12 = m; b² = 14.
- Check at m = 1: (32)² = 94, and 1 + 1 + 14 = 94.
Answer: m² + m + 14. The middle coefficient is 1 because twice 12 is 1.
The pattern is far older than algebraic notation. Book II of Euclid’s Elements (Ancient Mathematics) states it with lengths and areas: if a straight line is cut at random, the square on the whole equals the squares on the two parts together with twice the rectangle contained by the parts.[7]
The square of a difference
For all rational numbers a and b,
(a − b)² = a² − 2ab + b².
Replace b by −b in the square of a sum, which holds for every number: (a + (−b))² = a² + 2a(−b) + (−b)². Now a + (−b) = a − b, 2a(−b) = −2ab, and (−b)² = (−b)(−b) = b², since a product of two opposites equals the product of the numbers themselves (the Proposition on products with opposites, Rational Numbers 1.4; for integers, Integers 3.2). Wu derives the second identity from the first in this way.[9] Multiplying directly gives the same: (a − b)(a − b) =a² − ab − ba + b² = a² − 2ab + b².
The last term is +b², not −b²: only the middle term changes sign. And since (−x)² = x² for every number x, a difference and the opposite difference have the same square: (b − a)² = (a − b)².
The square of side a
Expand (2m − 7)².
- a = 2m, b = 7: a² = 4m², 2ab = 28m, b² = 49.
- Check at m = 1: (2 − 7)² = 25, and 4 − 28 + 49 = 25.
Answer: 4m² − 28m + 49.
Expand (4 − 3k)² and (3k − 4)², and compare.
- (4 − 3k)²: a = 4, b = 3k: 16 − 24k + 9k², in standard form 9k² − 24k + 16.
- (3k − 4)²: a = 3k, b = 4: 9k² − 24k + 16.
- Check at k = 2: (4 − 6)² = 4, (6 − 4)² = 4, and 36 − 48 + 16 = 4.
Answer: both are 9k² − 24k + 16. The two differences are opposites, and opposites have the same square.
A sum times a difference
Two binomials with the same two terms, one their sum and the other their difference, such as a + b and a − b, form a conjugate pair, and the two binomials are called conjugates.[10]
For all rational numbers a and b,
(a + b)(a − b) = a² − b².
Every term times every term: (a + b)(a − b) = a² − ab + ba − b². The middle products −ab and ba = ab are opposites, so they add to 0, and a² − b² is left.
The result is called a difference of squares.[11] There is no middle term: of the two middle products, one is added and the other subtracted, so they always add up to 0.[12] Wu states the identity for all numbers a and b.[13] The order of the factors does not matter: (a − b)(a + b) is the same product.
a² with b² removed
Rearranged: (a + b)(a − b)
Multiply (2x + 7y)(2x − 7y).
- A conjugate pair with a = 2x, b = 7y.
- a² = 4x² and b² = 49y².
- Check at x = y = 1: 9 · (−5) = −45, and 4 − 49 = −45.
Answer: 4x² − 49y².
Multiply (y² + 36)(y + 6)(y − 6).
- The last two factors are a conjugate pair: (y + 6)(y − 6) = y² − 36.
- Now (y² + 36)(y² − 36) is again a conjugate pair, with a = y² and b = 36: (y²)² − 36² = y⁴ − 1296, since 36² = 1,296.
- Check at y = 1: 37 · 7 · (−5) = −1,295, and 1 − 1,296 = −1,295.
Answer: y⁴ − 1296. Multiplied out term by term, the three binomials give 2 · 2 · 2 = 8 products, and six of them cancel in pairs.
Mental arithmetic
The patterns work for numbers as well as for letters, and they turn some multiplications into ones that can be finished in the head.[14] Split a number into a round number and a small one, then use the pattern.
Find 49 × 51, 61², 38² and 85² without long multiplication.
- 49 × 51 = (50 − 1)(50 + 1) = 50² − 1² = 2,500 − 1 = 2,499.
- 61² = (60 + 1)² = 3,600 + 2 · 60 · 1 + 1 = 3,600 + 120 + 1 = 3,721.
- 38² = (40 − 2)² = 1,600 − 2 · 40 · 2 + 4 = 1,600 − 160 + 4 = 1,444.
- 85² = (80 + 5)² = 6,400 + 2 · 80 · 5 + 25 = 6,400 + 800 + 25 = 7,225.
Answer: 2,499; 3,721; 1,444; 7,225. Each can be confirmed by long multiplication. The last shows a rule for squares that end in 5: (10k + 5)² = 100k² + 100k + 25 = 100k(k + 1) + 25, so 85² is 8 · 9 = 72 hundreds plus 25.
The square of a sum is not the sum of the squares
The most common mistake with these patterns is to write (a + b)² = a² + b². Lessons 1.4 and 1.7 of Exponents already met it (“Powers of products and quotients”, “Simplifying with the laws of exponents”): the laws of exponents concern products, and a whole-number exponent means repeated multiplication, not repeated addition.[15] The figure of Section 1 shows what the mistake loses: the two rectangles ab.
- (a + b)² = a² + b² exactly when a = 0 or b = 0.
- (a − b)² = a² − b² exactly when b = 0 or a = b.
(1) By the square of a sum, the two sides differ by 2ab, so they are equal exactly when 2ab = 0. A product is 0 exactly when one of its factors is 0 (the zero-product property, Rational Numbers 1.4), and 2 ≠ 0, so this happens exactly when a = 0 or b = 0.
(2) (a − b)² − (a² − b²) = a² − 2ab + b² − a² + b² = 2b² − 2ab = 2b(b − a). This is 0 exactly when b = 0 or b − a = 0.
So the mistaken “identities” are not identities: each fails at every pair of numbers except those just named, and one value that makes the two sides differ is enough to show it. The three patterns also look alike, and each must be recognized for what it is.[16]
Someone writes (x + 8)² = x² + 64 and (2r − 5)² = 4r² − 25. Show that both are wrong and correct them.
- At x = 1: (1 + 8)² = 81, but 1 + 64 = 65. The middle term 2 · x · 8 = 16x is missing.
- Correct: (x + 8)² = x² + 16x + 64. At x = 1: 1 + 16 + 64 = 81.
- At r = 0: (0 − 5)² = 25, but 0 − 25 = −25. The second line confuses the square of a difference with a sum times a difference.
- Correct: (2r − 5)² = 4r² − 20r + 25. At r = 0: 25.
Answer: x² + 16x + 64 and 4r² − 20r + 25. A difference of squares comes only from a sum times a difference, never from a square.
| Product | Result | Terms | Middle term |
|---|---|---|---|
| (a + b)² | a² + 2ab + b² | 3 | +2ab |
| (a − b)² | a² − 2ab + b² | 3 | −2ab |
| (a + b)(a − b) | a² − b² | 2 | none: +ab and −ab cancel |
Use a special product
- Round
- 1
- Score
- 0
- Streak
- 0
Which expansion is right?
(5x + 4y)²
Euclid has the other two patterns as well. Proposition II.7 says that the square on a whole line together with the square on one of its parts equals twice the rectangle on the whole and that part together with the square on the other part,[17] which is a² + b² = 2ab + (a − b)². Proposition II.5 says that if a line is cut into equal and into unequal parts, the rectangle on the unequal parts together with the square on the line between the cuts equals the square on the half,[18] which is (a + b)(a − b) + b² = a², with a the half and b the line between the cuts.
Read from right to left, the patterns factor polynomials: a² + 2ab + b² = (a + b)² and a² − b² = (a + b)(a − b). These are the lessons “Perfect square trinomials” and “Difference of squares” of the unit Factoring. Higher powers, (a + b)³ and beyond, are lesson 1.6, “Expanding (a + b)ⁿ for small n”.
Exercises
Expand: (a) (h + 14)²; (b) (3c − 2)²; (c) (2u + 7v)².
▸ Show solution
(a) h² + 28h + 196: 2 · 14 = 28 and 14² = 196. (b) 9c² − 12c + 4. (c) 4u² + 28uv + 49v²: a = 2u, b = 7v, 2ab = 28uv. Check (b) at c = 1: 1² = 1, and 9 − 12 + 4 = 1.
Multiply: (a) (k + 12)(k − 12); (b) (6 − 5d)(6 + 5d); (c) (x³ − 2y)(x³ + 2y).
▸ Show solution
(a) k² − 144. (b) 36 − 25d², or −25d² + 36 in standard form. (c) (x³)² − (2y)² = x⁶ − 4y².
Compute with a special product: (a) 71²; (b) 59²; (c) 102 × 98; (d) 7.5².
▸ Show solution
(a) (70 + 1)² = 4,900 + 140 + 1 = 5,041. (b) (60 − 1)² = 3,600 − 120 + 1 = 3,481. (c) (100 + 2)(100 − 2) = 10,000 − 4 = 9,996. (d) (7 + 0.5)² = 49 + 7 + 0.25 = 56.25.
Right or wrong? Correct the wrong ones. (a) (n − 8)² = n² − 64; (b) (4x + 3)² = 16x² + 12x + 9; (c) (5 + w)(5 − w) = 25 − w².
▸ Show solution
(a) Wrong: (n − 8)² = n² − 16n + 64; at n = 0 the left side is 64, not −64. (b) Wrong: the middle term is 2 · 4x · 3 = 24x, so (4x + 3)² = 16x² + 24x + 9; at x = 1, 49 ≠ 37. (c) Right: a conjugate pair with a = 5 and b = w.
Prove that (a + b)² − (a − b)² = 4ab and (a + b)² + (a − b)² = 2a² + 2b² for all numbers a and b. Use the first to find 26² − 24².
▸ Show solution
(a + b)² − (a − b)² = (a² + 2ab + b²) − (a² − 2ab + b²) = 4ab, and (a + b)² + (a − b)² = 2a² + 2b²: the middle terms cancel in the sum and double in the difference.
With a = 25 and b = 1: 26² − 24² = 4 · 25 · 1 = 100. Check: 676 − 576 = 100.
Multiply (x + y + 1)(x + y − 1) with a special product.
▸ Show solution
Treat x + y as one term a: the product is (a + 1)(a − 1) = a² − 1 = (x + y)² − 1 = x² + 2xy + y² − 1.
Check at x = y = 1: 3 · 1 = 3, and 1 + 2 + 1 − 1 = 3. Multiplying all nine products gives the same result.
Explain how the left half of the figure in Section 1 shows that (a + b)² = a² + 2ab + b². For which numbers does the picture prove the identity, and what proves it for the others?
▸ Show solution
A square side a + b is cut along the lines at distance a from two adjacent sides. The four parts are squares of sides a and b and two rectangles a by b; their areas add up to the area of the whole.
The picture needs positive lengths, so it proves the identity only for positive a and b. The multiplication of Section 1 proves it for all rational numbers, negative ones and 0 included.
Summary
- The square of a sum: (a + b)² = a² + 2ab + b². The square of a difference: (a − b)² = a² − 2ab + b². A sum times a difference: (a + b)(a − b) = a² − b², a difference of squares.
- Each pattern is the product “every term times every term” with the work done once and for all; a and b may be any expressions, such as 5t, x³ or 2y.
- The area figures show the patterns for positive lengths; the multiplication proves them for all numbers.
- The patterns turn products such as 49 × 51 = 50² − 1 and squares such as 61² = 60² + 120 + 1 into mental arithmetic.
- (a + b)² is not a² + b²: they differ by 2ab, and are equal only when a or b is 0. (a − b)² is not a² − b² either.
Sources
- 1.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 6, “Polynomials”, section 6.4, “Special Products” (“Square a Binomial Using the Binomial Squares Pattern”), p. 731 (the whole topic: pp. 731–735).
“Mathematicians like to look for patterns that will make their work easier. A good example of this is squaring binomials.”
Used for: some products follow patterns that make the work shorter; squaring a binomial is the first example. - 2.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 6, “Polynomials”, section 6.4, “Special Products” (“Square a Binomial Using the Binomial Squares Pattern”), p. 732 (the whole topic: pp. 731–733).
“If a and b are real numbers, (a + b)² = a² + 2ab + b²”
Used for: the square of a sum, (a + b)² = a² + 2ab + b², for all numbers a and b (the source calls it the Binomial Squares Pattern). - 3.H. Wu, Introduction to School Algebra (draft of July 24, 2010, Department of Mathematics, University of California, Berkeley, 2010).Chapter 1, “Symbolic Expressions”, section “Expressions and identities”, p. 14 (the whole topic: pp. 14–15).
“(a + b)² = a² + 2ab + b² for all numbers a and b.”
Used for: the square of a sum holds for all numbers a and b (the source derives it with the distributive law). - 4.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 6, “Polynomials”, section 6.4, “Special Products” (“Square a Binomial Using the Binomial Squares Pattern”), p. 732 (the whole topic: pp. 731–733).
“So the middle term is double the product of the two terms of the binomial.”
Used for: in the square of a binomial, the middle term is double the product of the two terms. - 5.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 7, “Factoring”, section 7.4, “Factor Special Products” (“Factor Perfect Square Trinomials”), p. 853 (the whole topic: pp. 852–855).
“When you square a binomial, the product is a perfect square trinomial.”
Used for: a trinomial that is the square of a binomial is called a perfect square trinomial. - 6.H. Wu, Introduction to School Algebra (draft of July 24, 2010, Department of Mathematics, University of California, Berkeley, 2010).Chapter 1, “Symbolic Expressions”, section “Expressions and identities”, p. 15 (the whole topic: pp. 14–15).
“is valid for all numbers, we may replace b by an arbitrary number −c to get”
Used for: an identity that holds for all numbers stays true when a letter in it is replaced by any number (the source: “since the identity (a + b)² = a² + 2ab + b² is valid for all numbers, we may replace b by an arbitrary number −c”). - 7.Euclid, trans. T. L. Heath, ed. D. E. Joyce, “Euclid’s Elements, Book II, Proposition 4”, Clark University.
“If a straight line is cut at random, then the square on the whole equals the sum of the squares on the segments plus twice the rectangle contained by the segments.”
Used for: Euclid’s Elements, Book II, Proposition 4, states the square of a sum with lengths and areas. - 8.David M. Burton, The History of Mathematics: An Introduction (7th ed., McGraw-Hill, 2011).Chapter 9, “The Development of Probability Theory: Pascal, Bernoulli, and Laplace”, section 9.2, “Pascal’s Arithmetic Triangle”, “The Traité du Triangle Arithmétique”, p. 456 (the whole topic: pp. 456–461).
“the identity (x + y)² = x² + 2xy + y² occurred, in geometric language to be sure, in Book II of Euclid’s Elements.”
Used for: the square of a sum is far older than algebraic notation: Book II of Euclid’s Elements has it in geometric language. - 9.H. Wu, Introduction to School Algebra (draft of July 24, 2010, Department of Mathematics, University of California, Berkeley, 2010).Chapter 1, “Symbolic Expressions”, section “Expressions and identities”, p. 15 (the whole topic: pp. 14–15).
“Thus we retrieve the second identity by way of the first.”
Used for: Wu obtains the identity for (a − b)² from the one for (a + b)² by replacing b with −c, and then c with b. - 10.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 6, “Polynomials”, section 6.4, “Special Products” (“Multiply Conjugates Using the Product of Conjugates Pattern”), p. 735 (the whole topic: pp. 735–739).
“A conjugate pair is two binomials of the form (a − b), (a + b). The pair of binomials each have the same first term and the same last term, but one binomial is a sum and the other is a difference. There is a nice pattern for finding the product of conjugates.”
Used for: the definition of a conjugate pair: two binomials with the same terms, one a sum and the other a difference; the two binomials are called conjugates. - 11.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 6, “Polynomials”, section 6.4, “Special Products” (“Multiply Conjugates Using the Product of Conjugates Pattern”), p. 736 (the whole topic: pp. 735–739).
“This is called a difference of squares.”
Used for: the product a² − b² of a conjugate pair is called a difference of squares. - 12.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 6, “Polynomials”, section 6.4, “Special Products” (“Multiply Conjugates Using the Product of Conjugates Pattern”), p. 736 (the whole topic: pp. 735–739).
“Notice the two middle terms you get from FOIL combine to 0 in every case, the result of one addition and one subtraction.”
Used for: a sum times a difference has no middle term: the two middle products combine to 0. - 13.H. Wu, Introduction to School Algebra (draft of July 24, 2010, Department of Mathematics, University of California, Berkeley, 2010).Chapter 1, “Symbolic Expressions”, section “Expressions and identities”, p. 15 (the whole topic: pp. 14–15).
“(a + b)(a − b) = a² − b² for all numbers a and b.”
Used for: a sum times a difference, (a + b)(a − b) = a² − b², for all numbers a and b. - 14.H. Wu, Introduction to School Algebra (draft of July 24, 2010, Department of Mathematics, University of California, Berkeley, 2010).Chapter 1, “Symbolic Expressions”, section “Expressions and identities”, p. 14 (the whole topic: pp. 14–15).
“it should be possible to mentally finish the computation”
Used for: with these identities some multiplications can be finished in the head (Wu’s example is the square of a round number plus a small one). - 15.Portland Community College Faculty, “ORCCA: Open Resources for Community College Algebra, Section 6.1, “Exponent Rules””, Portland Community College.Section “6.1.5, “Summary of Exponent Rules”, Warning 6.1.17, “A Common Mistake””. spot.pcc.edu/math/orcca/ed1/html/section-exponent-rules.html · open at the quoted passage.
“Because whole number exponents mean repeated multiplication, not repeated addition or subtraction, trying to apply exponent rules in situations that do not use multiplication simply doesn't work.”
Used for: applying the laws of exponents to a sum is a common mistake; it fails because a whole-number exponent means repeated multiplication, not repeated addition. - 16.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 6, “Polynomials”, section 6.4, “Special Products” (“Recognize and Use the Appropriate Special Product Pattern”), p. 739 (the whole topic: pp. 739–740).
“The products look similar, so it is important to recognize when it is appropriate to use each of these patterns and to notice how they differ.”
Used for: the special products look alike, and each must be recognized for what it is. - 17.Euclid, trans. T. L. Heath, ed. D. E. Joyce, “Euclid’s Elements, Book II, Proposition 7”, Clark University.
“If a straight line is cut at random, then the sum of the square on the whole and that on one of the segments equals twice the rectangle contained by the whole and the said segment plus the square on the remaining segment.”
Used for: Euclid’s Proposition II.7, which in algebraic form is a² + b² = 2ab + (a − b)². - 18.Euclid, trans. T. L. Heath, ed. D. E. Joyce, “Euclid’s Elements, Book II, Proposition 5”, Clark University.
“If a straight line is cut into equal and unequal segments, then the rectangle contained by the unequal segments of the whole together with the square on the straight line between the points of section equals the square on the half.”
Used for: Euclid’s Proposition II.5, which in algebraic form is (a + b)(a − b) + b² = a².