THE LITTLE PROOF DETECTIVE AGENCY

The vanishing corridor

Two opposite corridors cancel. Pip has already booked both.

The formula in this story
(a + b)(a − b) = a² − b²

Story 5 of 8

What you will take away

Explain why the two middle terms cancel in the difference-of-squares formula.

Read one piece at a time. There is no timer. “Help” stays beside you throughout.

Before reading, how does it feel? (optional)

Choose a section directly

What do the words mean?

An identity holds for every permitted value, unlike an equation we solve for particular values. Factorization rewrites a sum as a product.

What are real numbers?

Real numbers are the numbers on the number line: integers, fractions and numbers such as √2. Our formulas apply to these numbers, even when the cake picture uses only positive lengths.

Want a hand with the prerequisites?The debt-eating pigeon · The missing two cake strips

a = 5b²a² − ab + ba − b²a² − b² = 21

A suspicious plan

Pip orders a rectangle with sides a + b and a − b. “Two corridors, please.”

Expand the product into four signed terms. The area picture is available only when a ≥ b ≥ 0.

a = 5b²−ab + ba = 0a² − b² = 21

The clue

Mika expands the bill: a² − ab + ba − b². The corridors carry opposite signs.

The middle terms are opposites: −ab + ba = 0.

a + b = 7a − b = 3(a + b)(a − b) = 21Rotate the same L-shaped arm by 90°.

The twist

Since ba = ab, the middle terms cancel. The hotel keeps a² − b². Pip asks where to put his suitcase.

Read the same equality backwards. With nonnegative lengths, rearrange the L-shaped area into a rectangle.

Change the evidence

Try examples to build intuition. Checking numbers is not the proof for every value.

STORY ↔ PROOF

Step 1 of 3

a = 5b²a² − ab + ba − b²a² − b² = 21
Expand the product into four signed terms. The area picture is available only when a ≥ b ≥ 0.
(5 + 2)(5 − 2) = 25 − 4 = 21
This is the exact proof step

Write a − b as a + (−b), then distribute: a² − ab + ba − b².

The diagram illustrates the displayed argument. Numerical examples do not replace its hypotheses or prove every case.

The proof, with all its steps

Claim and conditions
For all real a, b, (a + b)(a − b) = a² − b². A rectangle interpretation additionally needs a ≥ b ≥ 0.

  1. Write a − b as a + (−b), then distribute: a² − ab + ba − b².
  2. Commutativity gives −ab + ba = 0. The remaining terms are a² − b².
  3. Read the equality backwards to factor a² − b². No division was used, so a = b is allowed too.

Pip has one more idea…

Can we cancel a − b from both sides when a = b?

Read the explanation for Yes, equal symbols may always be cancelled.

When a = b, the factor is zero. The identity remains true, but that division is undefined.

Read the explanation for No, that would divide by zero.

Exactly. An equality can be valid while a proposed step needs an extra nonzero condition.

What makes more sense now?

Two small checks, then your own reflection. You can use the hints and try again. This records these questions, not a score for all of mathematics.

1. Can we cancel a − b from both sides when a = b?

Revisit the reason in the diagram →
2. Use the formula to find 11² − 9².

Revisit the reason in the diagram →

How does it feel now? (optional)

Your record for this story

Your first answers and your latest answers will appear here.

Where does your curiosity go next?

No score, no locked doors. You can return to any definition.

These are educational arguments and numeric experiments, not live Lean verification. The linked knowledge pages distinguish formal source excerpts from explanations.

I’m lost · Help

Mika’s help desk

The vanishing corridor

One thing at a time

Follow the numbered reading steps. Read the current piece, then use the single “Next” button at the bottom. You can return to any earlier piece.

In simpler words

  • a² − b²: a square minus another square.
  • (a + b)(a − b): multiply a sum by a difference.
  • Factoring reads the same equality backwards.
Return to the definitions →

A small clue

After expansion, the middle terms are −ab and +ba. Since ba = ab, they add to zero. The outer terms remain.

Try that in the diagram →

Close this panel to return to the exact place you were reading. These are prepared hints for this page.