← mapGeometry & Trig

The Pythagorean Theorem

⚗ Dr. Möbius, from the lab

This is the theorem that gets tattooed on people. It's also the theorem most people know as a formula and zero people know as a fact about area — which is a goddamn tragedy, and we're fixing it today. I'm going to prove it twice — two completely different proofs — because one proof is information and two proofs is understanding. Buckle in, you beautiful specimen.

THE BIG IDEA

In any right triangle with legs a and b and hypotenuse c, we have a²+b²=c² — a theorem about areas, proved by rearranging triangles, with a converse that identifies right angles and a payoff that births the distance formula.

The statement, precisely

Take any right triangle — the right angle is the one that matters most, and the side opposite it is called the hypotenuse. The other two sides are the legs. Labeling:

  • a,ba, b = the legs
  • cc = the hypotenuse (always opposite the right angle)

Pythagorean Theorem. For any right triangle,

a2+b2=c2.a^2 + b^2 = c^2.

That's the whole thing. But why is it true? What the actual hell do squared side lengths have to do with a right angle? The answer: squares of lengths are areas. The theorem says the area of the square on the hypotenuse equals the combined area of the squares on the two legs. Now it's geometrically obvious — or it will be, after the proof.

Proof 1: the rearrangement proof (four triangles in a big square)

This is one of the most beautiful proofs in mathematics, and it fits on a damn napkin. We're going to build the same area two different ways — no calculus, no tricks, just four triangles and some righteous algebra.

Setup. Draw a large square with side length a+ba + b. Its area is (a+b)2(a+b)^2.

First way to tile it. Cut four congruent right triangles (legs a,ba, b, hypotenuse cc) from the corners, each with area 12ab\tfrac{1}{2}ab. What's left in the middle is a square with side cc (you should verify the angles work out — the corner angle from one triangle plus the right angle of the next is a°+(90°a°)=90°a° + (90° - a°) = 90°, so yes, the inner quadrilateral has all right angles and all sides equal to cc). Its area is c2c^2.

So: (a+b)2=412ab+c2(a+b)^2 = 4 \cdot \tfrac{1}{2}ab + c^2.

Second way to tile it. Rearrange the same four triangles into two rectangles (each a×ba \times b) in two corners, leaving two uncovered squares: one of side aa and one of side bb.

So: (a+b)2=412ab+a2+b2(a+b)^2 = 4 \cdot \tfrac{1}{2}ab + a^2 + b^2.

Conclude. The left sides are the same (same big square), so the right sides must be equal:

412ab+c2=412ab+a2+b2.4 \cdot \tfrac{1}{2}ab + c^2 = 4 \cdot \tfrac{1}{2}ab + a^2 + b^2.

Subtract 2ab2ab from both sides:

c2=a2+b2.c^2 = a^2 + b^2. \qquad \square

The four triangles cancel and we're done. No algebra more powerful than subtraction was needed. That's it. That's the whole proof, and the Federation of Boring Textbook Authors still has the nerve to skip it. This is a proof about areas, and it works because area is additive.

Proof 2: the similar-triangles proof (altitude to the hypotenuse)

This is the proof that ties back to our last lesson — and if the first proof was beautiful, this one is fucking elegant. Draw right triangle ABCABC with the right angle at CC. Drop an altitude from CC to the hypotenuse ABAB, meeting it at DD. This creates two smaller triangles: ACD\triangle ACD and CBD\triangle CBD.

Claim: all three triangles are similar. Here's the AA argument:

  • ACD\triangle ACD and ABC\triangle ABC: share A\angle A; both have a right angle (at DD and at CC respectively). AA similarity gives ACDABC\triangle ACD \sim \triangle ABC.

  • CBD\triangle CBD and ABC\triangle ABC: share B\angle B; both have a right angle (at DD and at CC). AA gives CBDABC\triangle CBD \sim \triangle ABC.

Now write the proportionality ratios. Let AC=bAC = b, BC=aBC = a, AB=cAB = c, AD=pAD = p, DB=qDB = q.

From ACDABC\triangle ACD \sim \triangle ABC: ACAB=ADAC    bc=pb    b2=cp.\frac{AC}{AB} = \frac{AD}{AC} \implies \frac{b}{c} = \frac{p}{b} \implies b^2 = cp.

From CBDABC\triangle CBD \sim \triangle ABC: BCAB=DBBC    ac=qa    a2=cq.\frac{BC}{AB} = \frac{DB}{BC} \implies \frac{a}{c} = \frac{q}{a} \implies a^2 = cq.

Add the two equations: a2+b2=cq+cp=c(p+q)=cc=c2.a^2 + b^2 = cq + cp = c(p + q) = c \cdot c = c^2. \qquad \square

Because p+q=AB=cp + q = AB = c. Elegant. This proof shows you exactly where the Pythagorean theorem lives: in the self-similar structure of a right triangle.

The converse (and why it matters)

Converse. If a2+b2=c2a^2 + b^2 = c^2, then the triangle with those side lengths is a right triangle, with the right angle opposite the side of length cc.

Why it matters: the original theorem lets you find side lengths when you know it's a right triangle. The converse lets you check whether a triangle is a right triangle when you only know side lengths. Used constantly in constructions, engineering, and the distance formula.

Proof sketch. Suppose a2+b2=c2a^2 + b^2 = c^2. Build a separate right triangle with legs aa and bb; by the Pythagorean theorem, its hypotenuse is a2+b2=c2=c\sqrt{a^2 + b^2} = \sqrt{c^2} = c. So both triangles have the same three side lengths, making them congruent (SSS). The right angle in the constructed triangle corresponds to the angle opposite cc in the original. Done.

Pythagorean triples

A Pythagorean triple is a set of positive integers (a,b,c)(a, b, c) with a2+b2=c2a^2 + b^2 = c^2. The famous ones:

  • (3,4,5)(3, 4, 5): 9+16=259 + 16 = 25. The workhorse.
  • (5,12,13)(5, 12, 13): 25+144=16925 + 144 = 169.
  • (8,15,17)(8, 15, 17): 64+225=28964 + 225 = 289.

Any multiple of a triple is also a triple (scale by kk: (ka)2+(kb)2=k2(a2+b2)=k2c2=(kc)2(ka)^2 + (kb)^2 = k^2(a^2+b^2) = k^2c^2 = (kc)^2). So (6,8,10)(6,8,10), (9,12,15)(9,12,15) etc. are the 3-4-5 family.

And 2\sqrt{2} from Bedrock takes a bow here: the diagonal of a unit square has length 12+12=2\sqrt{1^2 + 1^2} = \sqrt{2} — an irrational number, the first proof that not all lengths are rational (as the Pythagoreans discovered, to their considerable, shrieking horror — they reportedly threw the poor bastard who proved it overboard).

Payoff: the distance formula

This is the "later nodes" moment. In the Algebra Core lesson on the coordinate plane, the distance formula was stated as

d=(x2x1)2+(y2y1)2.d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}.

Now you know why. The horizontal distance x2x1|x_2 - x_1| and vertical distance y2y1|y_2 - y_1| are the legs of a right triangle. The distance between the two points is the hypotenuse. The formula is the Pythagorean theorem, dressed in coordinates.

In the Matrices stratum, the length of a vector v=(v1,v2,,vn)\vec{v} = (v_1, v_2, \ldots, v_n) is v=v12++vn2\|\vec{v}\| = \sqrt{v_1^2 + \cdots + v_n^2} — the Pythagorean theorem in nn dimensions. Same theorem, wearing a bigger costume.

🔬 SPECIMENS (worked examples)

Worked example 1 — finding the hypotenuse

A right triangle has legs a=5a = 5 and b=12b = 12. Find the hypotenuse cc.

Apply the Pythagorean theorem directly:

c2=a2+b2=52+122=25+144=169.c^2 = a^2 + b^2 = 5^2 + 12^2 = 25 + 144 = 169.

c=169=13.c = \sqrt{169} = 13.

The hypotenuse is 1313. (This is the 5-12-13 Pythagorean triple — a fact worth memorizing.)

Worked example 2 — finding a leg

A right triangle has hypotenuse c=17c = 17 and one leg a=8a = 8. Find the other leg bb.

Plug into the theorem and solve for b2b^2:

a2+b2=c2a^2 + b^2 = c^2 82+b2=1728^2 + b^2 = 17^2 64+b2=28964 + b^2 = 289 b2=28964=225b^2 = 289 - 64 = 225 b=225=15.b = \sqrt{225} = 15.

The other leg is 1515. Check: 82+152=64+225=289=1728^2 + 15^2 = 64 + 225 = 289 = 17^2. This is the 8-15-17 triple.

Worked example 3 — the trap: prove it's a right triangle before you use the damn formula

Someone hands you a triangle with sides 77, 2424, 2525. Is it a right triangle? If yes, find the area.

Step 1. Check the Pythagorean converse. The longest side is 2525, so test c=25c = 25:

72+242=49+576=625=252.7^2 + 24^2 = 49 + 576 = 625 = 25^2.

Yes — it's a right triangle. The right angle is opposite the hypotenuse (c=25c = 25), so the legs are 77 and 2424.

Step 2. Area of a right triangle is 12×leg1×leg2\tfrac{1}{2} \times \text{leg}_1 \times \text{leg}_2:

Area=12724=1682=84.\text{Area} = \frac{1}{2} \cdot 7 \cdot 24 = \frac{168}{2} = 84.

The trap in this problem is thinking you need to check 72+252=2427^2 + 25^2 = 24^2 or some random arrangement. Always put the largest side as the hypotenuse when testing the converse.

☠ KNOWN HAZARDS

  • Using the formula without identifying the hypotenuse first. The formula is leg2+leg2=hypotenuse2\text{leg}^2 + \text{leg}^2 = \text{hypotenuse}^2. The hypotenuse is ALWAYS the side opposite the right angle and ALWAYS the longest side. Swapping a leg with the hypotenuse gives a wrong equation and nonsense answers — and I will know. The lab has sensors.

  • Solving a2+b2=c2a^2 + b^2 = c^2 and forgetting to take the square root. If you find c2=100c^2 = 100, the side length is c=10c = 10, not 100100. Squared lengths are NOT lengths.

  • Assuming the converse: "all three sides known implies right triangle." That's exactly the converse, and it IS true — but you must verify a2+b2=c2a^2 + b^2 = c^2 first. Not every triangle with three known sides is a right triangle.

  • Forgetting that a2+b2a+b\sqrt{a^2 + b^2} \ne a + b. This is the triangle inequality in disguise. Adding under a square root is NOT the same as adding first and rooting — this misconception has murdered more physics homework than I care to count. The hypotenuse is strictly less than the sum of the legs (for a nondegenerate triangle).

TL;DR

  • a2+b2=c2a^2 + b^2 = c^2 for any right triangle with legs a,ba, b and hypotenuse cc. The squares are areas; the theorem says the big square area equals the sum of the two small square areas.

  • Proof 1: four triangles rearranged two ways inside the same big square. 412ab+c2=(a+b)2=412ab+a2+b24 \cdot \tfrac{1}{2}ab + c^2 = (a+b)^2 = 4 \cdot \tfrac{1}{2}ab + a^2 + b^2; cancel the common terms.

  • Proof 2: altitude to hypotenuse creates two sub-triangles similar to the original; proportion equations give b2=cpb^2 = cp and a2=cqa^2 = cq; adding gives a2+b2=c(p+q)=c2a^2 + b^2 = c(p+q) = c^2.

  • The converse is also true: if a2+b2=c2a^2+b^2=c^2, the triangle has a right angle opposite cc — you can check right angles from lengths alone.

  • The distance formula in coordinates IS the Pythagorean theorem. So is the vector length formula in Rn\mathbb{R}^n. Same theorem, infinite costumes.

unlocks