TExcelTAD
Home › School Algebra, Identities & Quadratic Equations › Identity 2: Square of a Difference

Identity 2: Square of a Difference

Having mastered the Square of a Sum, we now turn our attention to its close partner: the Square of a Difference. This identity is the second of the seven remarkable algebraic identities.

While it looks nearly identical to Identity 1, the presence of the minus sign introduces subtle geometric and algebraic traps that often trip up students on paper exams. In this lesson, you will master the formula, understand its geometric inclusion-exclusion proof, and learn why (A−B)2=(B−A)2(A - B)^2 = (B - A)^2.


1. Concepts & Paper Visuals

The Formula

For any two terms AA and BB:

(A−B)2=A2−2AB+B2(A - B)^2 = A^2 - 2AB + B^2
                  ┌──────── Square of the first term: A²
                  │
                  ▼
              ( A - B )²  =  A²  -  2AB  +  B²
                             ▲       ▲      ▲
                             │       │      └────── ALWAYS POSITIVE: +B²
                             │       └───────────── MINUS twice the product: - 2 · A · B
                             └───────────────────── First term squared
"The square of a difference equals the square of the first term, MINUS twice the product, PLUS the square of the second term."\text{"The square of a difference equals the square of the first term, MINUS twice the product, PLUS the square of the second term."}

Comparing Identity 1 and Identity 2 Side-by-Side

Look at how symmetric the two identities are on paper:

(A+B)2=A2  +  2AB+B2(A−B)2=A2  −  2AB+B2\begin{aligned} (A + B)^2 &= A^2 \mathbf{\;+\;} 2AB + B^2 \\ (A - B)^2 &= A^2 \mathbf{\;-\;} 2AB + B^2 \end{aligned}

[!IMPORTANT] Notice that the last term is +B2+B^2 in both formulas! Why? Because (−B)×(−B)=+B2(-B) \times (-B) = +B^2. The only sign that changes between the two formulas is the sign of the middle term.


2. The Two Proofs

Proof 1: Algebraic Derivation

We can expand (A−B)2(A - B)^2 directly by FOIL:

(A−B)2=(A−B)(A−B)=A⋅A⏟F+A⋅(−B)⏟O+(−B)⋅A⏟I+(−B)⋅(−B)⏟L=A2−AB−AB+B2=A2−2AB+B2\begin{aligned} (A - B)^2 &= (A - B)(A - B) \\ &= \underbrace{A \cdot A}_{\mathbf{F}} + \underbrace{A \cdot (-B)}_{\mathbf{O}} + \underbrace{(-B) \cdot A}_{\mathbf{I}} + \underbrace{(-B) \cdot (-B)}_{\mathbf{L}} \\ &= A^2 - AB - AB + B^2 \\ &= A^2 - 2AB + B^2 \end{aligned}

Alternatively, view it as Identity 1 with (−B)(-B) substituted for BB:

[A+(−B)]2=A2+2A(−B)+(−B)2=A2−2AB+B2[A + (-B)]^2 = A^2 + 2A(-B) + (-B)^2 = A^2 - 2AB + B^2

Proof 2: Geometric Inclusion-Exclusion Model

How can we visualize (A−B)2(A - B)^2 on paper?

  1. Start with a large square of side length AA. Its total area is A2A^2.
  2. We want to find the area of the smaller inner square of side (A−B)(A - B), shaded in the top-left corner:
            ◄── (A - B) ──► ◄── B ──►
        ▲  ┌───────────────┬────────┐
        │  │               │        │
  (A-B) │  │  (A - B)²     │   R1   │  (Height A - B, Width B)
        │  │  (WANTED AREA)│        │
        ▼  ├───────────────┼────────┤
        ▲  │               │░░░░░░░░│
        B  │      R2       │░░ B² ░░│  (Height B, Width B: Overlap!)
        ▼  └───────────────┴────────┘
           ◄─────────── A ──────────►

To isolate the square (A−B)2(A - B)^2:

  • Start with the entire square: A2A^2.
  • Subtract the vertical strip on the right of width BB and height AA: −AB-AB.
  • Subtract the horizontal strip on the bottom of height BB and width AA: −AB-AB.
  • The Catch: Look at the small corner square in the bottom-right of dimensions B×BB \times B. Because both strips overlap at this corner, it was subtracted twice!
  • To correct for this double-subtraction, we must add that corner square back once: +B2+B^2.
Area=A2−AB−AB+B2=A2−2AB+B2\text{Area} = A^2 - AB - AB + B^2 = A^2 - 2AB + B^2

This is the famous geometric principle of inclusion-exclusion on paper.


3. Order Invariance: Why (A−B)2=(B−A)2(A - B)^2 = (B - A)^2

On paper, does the order of subtraction inside the parentheses matter? Let us test with numbers:

  • (7−3)2=42=16(7 - 3)^2 = 4^2 = 16
  • (3−7)2=(−4)2=16(3 - 7)^2 = (-4)^2 = 16

They are strictly identical! In general:

(B−A)=−(A−B)(B - A) = -(A - B)

When we square both sides:

(B−A)2=[−(A−B)]2=(−1)2⋅(A−B)2=+1⋅(A−B)2=(A−B)2(B - A)^2 = [-(A - B)]^2 = (-1)^2 \cdot (A - B)^2 = +1 \cdot (A - B)^2 = (A - B)^2

[!TIP] This property is extremely handy when factoring or rearranging polynomials:

(5−x)2=(x−5)2=x2−10x+25(5 - x)^2 = (x - 5)^2 = x^2 - 10x + 25

4. Step-by-Step Notebook Examples

Example 1: Basic Expansion

Problem: Expand (x−9)2(x - 9)^2 on paper.

Step-by-step Solution:

  1. Identify terms:

    A=x,B=9A = x, \quad B = 9
  2. Set up the Identity 2 formula:

    (A−B)2=(A)2−2(A)(B)+(B)2(A - B)^2 = (A)^2 - 2(A)(B) + (B)^2
  3. Substitute xx and 99:

    (x−9)2=(x)2−2(x)(9)+(9)2(x - 9)^2 = (x)^2 - 2(x)(9) + (9)^2
  4. Compute each term:

    • First term: x2x^2
    • Middle term: −2×9×x=−18x-2 \times 9 \times x = -18x
    • Last term: 92=+819^2 = +81
  5. Assemble:

    x2−18x+81x^2 - 18x + 81

Final Answer:

x2−18x+81x^2 - 18x + 81

Example 2: Binomial with Coefficients and Multiple Variables

Problem: Expand (5x−3y)2(5x - 3y)^2 on paper.

Step-by-step Solution:

  1. Identify terms:

    A=5x,B=3yA = 5x, \quad B = 3y
  2. Substitute into formula slots with protective parentheses:

    (5x−3y)2=(5x)2−2(5x)(3y)+(3y)2(5x - 3y)^2 = (5x)^2 - 2(5x)(3y) + (3y)^2
  3. Calculate each piece:

    • Square of first term: (5x)2=52⋅x2=25x2(5x)^2 = 5^2 \cdot x^2 = 25x^2
    • Minus twice the product: −2×5×3×x×y=−30xy-2 \times 5 \times 3 \times x \times y = -30xy
    • Square of second term: (3y)2=32⋅y2=+9y2(3y)^2 = 3^2 \cdot y^2 = +9y^2
  4. Combine:

    25x2−30xy+9y225x^2 - 30xy + 9y^2

Final Answer:

25x2−30xy+9y225x^2 - 30xy + 9y^2

Example 3: Binomial with Higher Powers and Fractions

Problem: Expand (4x3−12)2\left(4x^3 - \frac{1}{2}\right)^2 on paper.

Step-by-step Solution:

  1. Identify terms:

    A=4x3,B=12A = 4x^3, \quad B = \frac{1}{2}
  2. Apply Identity 2:

    (4x3−12)2=(4x3)2−2(4x3)(12)+(12)2\left(4x^3 - \frac{1}{2}\right)^2 = (4x^3)^2 - 2(4x^3)\left(\frac{1}{2}\right) + \left(\frac{1}{2}\right)^2
  3. Simplify each term:

    • First term: (4x3)2=42⋅(x3)2=16x6(4x^3)^2 = 4^2 \cdot (x^3)^2 = 16x^6
    • Middle term: −2⋅4x3⋅12=−(2⋅12)⋅4x3=−4x3-2 \cdot 4x^3 \cdot \frac{1}{2} = -\left(2 \cdot \frac{1}{2}\right) \cdot 4x^3 = -4x^3
    • Last term: (12)2=1222=+14\left(\frac{1}{2}\right)^2 = \frac{1^2}{2^2} = +\frac{1}{4}
  4. Assemble the trinomial:

    16x6−4x3+1416x^6 - 4x^3 + \frac{1}{4}

Final Answer:

16x6−4x3+1416x^6 - 4x^3 + \frac{1}{4}

Example 4: Mental Math on Paper

Problem: Calculate 98298^2 on paper without column multiplication.

Step-by-step Solution:

  1. Express 9898 as a difference from 100100:

    98=100−298 = 100 - 2
  2. Apply Identity 2 with A=100A = 100 and B=2B = 2:

    (100−2)2=1002−2(100)(2)+22(100 - 2)^2 = 100^2 - 2(100)(2) + 2^2
  3. Compute each part:

    • 1002=10,000100^2 = 10{,}000
    • −2(100)(2)=−400-2(100)(2) = -400
    • 22=+42^2 = +4
  4. Combine:

    10,000−400+4=9,600+4=9,60410{,}000 - 400 + 4 = 9{,}600 + 4 = 9{,}604

Final Answer:

9,6049{,}604

5. Common Mistakes & Paper Traps

Trap 1: Writing −B2-B^2 at the End

WRONG: (x−4)2=x2−8x−16(Incorrect)\text{WRONG: } (x - 4)^2 = x^2 - 8x - 16 \quad \text{(Incorrect)}

A squared real number is never negative! The square of −4-4 is +16+16:

CORRECT: (x−4)2=x2−8x+16✓\text{CORRECT: } (x - 4)^2 = x^2 - 8x + 16 \quad \text{\checkmark}

Trap 2: The Double-Negative Sign Error

When students use A=3xA = 3x and B=5B = 5, some mistakenly write:

(3x)2−2(3x)(−5)=9x2+30x(Incorrect)(3x)^2 - 2(3x)(-5) = 9x^2 + 30x \quad \text{(Incorrect)}

Remember: the minus sign is already built into the formula as −2AB-2AB. You treat BB as the positive quantity 55, which yields −2(3x)(5)=−30x-2(3x)(5) = -30x.

Trap 3: Confusing (A−B)2(A - B)^2 with A2−B2A^2 - B^2

  • (A−B)2(A - B)^2 is a trinomial: A2−2AB+B2A^2 - 2AB + B^2.
  • A2−B2A^2 - B^2 is a binomial (the difference of two squares), which equals (A−B)(A+B)(A - B)(A + B).
  • They are completely different algebraic objects!

6. Pencil & Paper Practice

Expand and simplify each expression on paper.

  1. Basic: Expand (2m−7)2(2m - 7)^2.
  2. Coefficients: Expand (6a−5b)2(6a - 5b)^2.
  3. Mental Math: Calculate 49249^2 using Identity 2 on paper.
Click to view step-by-step solutions

Solution to Practice 1

(2m−7)2=(2m)2−2(2m)(7)+72=4m2−28m+49\begin{aligned} (2m - 7)^2 &= (2m)^2 - 2(2m)(7) + 7^2 \\ &= 4m^2 - 28m + 49 \end{aligned}

Final Answer: 4m2−28m+494m^2 - 28m + 49

Solution to Practice 2

(6a−5b)2=(6a)2−2(6a)(5b)+(5b)2=36a2−60ab+25b2\begin{aligned} (6a - 5b)^2 &= (6a)^2 - 2(6a)(5b) + (5b)^2 \\ &= 36a^2 - 60ab + 25b^2 \end{aligned}

Final Answer: 36a2−60ab+25b236a^2 - 60ab + 25b^2

Solution to Practice 3

Write 49=50−149 = 50 - 1:

492=(50−1)2=502−2(50)(1)+12=2500−100+1=2400+1=2401\begin{aligned} 49^2 = (50 - 1)^2 &= 50^2 - 2(50)(1) + 1^2 \\ &= 2500 - 100 + 1 \\ &= 2400 + 1 \\ &= 2401 \end{aligned}

Final Answer: 24012401


7. Summary

  • Identity 2 Formula: (A−B)2=A2−2AB+B2(A - B)^2 = A^2 - 2AB + B^2.
  • The middle term is negative (−2AB-2AB), while the first and last terms are always positive (A2A^2 and +B2+B^2).
  • Invariance: (A−B)2=(B−A)2(A - B)^2 = (B - A)^2 because (−1)2=+1(-1)^2 = +1.
  • Next, combine addition and subtraction in the most versatile identity of all: Identity 3: Difference of Two Squares.

Test yourself

What is the expanded form of (3x−4)2(3x - 4)^2?

  1. 9x2−169x^2 - 16
  2. 9x2−12x+169x^2 - 12x + 16
  3. 9x2−24x+169x^2 - 24x + 16
  4. 9x2−24x−169x^2 - 24x - 16

Why is (x−7)2(x - 7)^2 mathematically identical to (7−x)2(7 - x)^2?

  1. Because subtraction is commutative: x−7=7−xx - 7 = 7 - x
  2. Because (7−x)=−(x−7)(7 - x) = -(x - 7), and squaring a negative quantity gives a positive: (−1)2=+1(-1)^2 = +1
  3. Because both expressions equal x2−49x^2 - 49
  4. Because xx must equal 77

What is the value of 39239^2 calculated using the Identity 2 formula (40−1)2(40 - 1)^2?

  1. 15211521
  2. 15991599
  3. 16011601
  4. 15191519