Deriving the Pythagorean Theorem
The Pythagorean theorem is the result every middle-schooler memorizes and most adults never see proven. The classic proof using rearranged squares is one of the cleanest mathematical arguments ever made.
The Pythagorean theorem says that in a right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides. a² + b² = c². Almost everyone who's been to middle school has seen this. Almost no one has seen it derived. The classic proof, attributed to Pythagoras' school but probably older, is one of the most beautifully constructed arguments in elementary geometry. Once you see it, the result becomes obvious.
The way I think about Pythagoras' theorem is that it's a statement about how distances work in the plane. If you walk three blocks east and four blocks north, you've actually traveled five blocks of straight-line distance, even though your route was seven. The 3-4-5 right triangle is the most-cited example because all three sides are whole numbers, but the relationship holds for any right triangle.
Plain English
The Rearrangement Proof
Take a right triangle with legs of length a and b and hypotenuse c. Build a square of side length (a + b). Place four copies of the right triangle inside the square in two different arrangements:
Arrangement 1: Place the four triangles in the four corners of the big square so their right angles are tucked into the corners. The space left in the middle is a square of side c, with area c².
Arrangement 2: Place the four triangles inside the same big square, but pair them up so two triangles form a rectangle of dimensions a × b, then a second rectangle of the same dimensions. The leftover space consists of two squares: one of side a and one of side b. Total area of the leftover: a² + b².
In both arrangements, the same four triangles take up the same total area. So the leftover space must be the same in both. That gives:
c² = a² + b²
That's the proof. No formulas, no algebra. Just “the same four triangles in two arrangements leave equal leftover area.”
The Algebraic Confirmation
The same proof can be written algebraically. Consider the big square of side (a + b):
- Total area:
(a + b)²=a² + 2ab + b² - Area of the four triangles:
4 × (1/2 × a × b)=2ab
In arrangement 1, the leftover space is a square of side c, with area c². So:
(a + b)² = c² + 2ab
Expanding the left side:
a² + 2ab + b² = c² + 2ab
Subtracting 2ab from both sides:
a² + b² = c²
Done. The visual proof and the algebraic proof are the same argument, just in different notation.
The Similar-Triangles Proof
A different approach. Drop a perpendicular from the right angle of the triangle to the hypotenuse, dividing the original triangle into two smaller triangles. Both smaller triangles are similar to the original (same angles, scaled differently).
Let the perpendicular foot divide the hypotenuse into pieces of length p (closer to side a) and q (closer to side b). Similar triangles give the proportions:
a/c = p/a, soa² = pc.b/c = q/b, sob² = qc.
Adding the two:
a² + b² = pc + qc = c(p + q) = c²
because p + q = c. This proof is shorter than the rearrangement proof but harder to visualize without a diagram.
Why This Works in 3D and Beyond
The Pythagorean theorem extends to higher dimensions. In 3D, the diagonal of a rectangular box with sides a, b, and c has length √(a² + b² + c²). The same logic applies in any number of dimensions. This is why the distance formula in n-dimensional space is the square root of the sum of squared component differences.
In machine learning, when you compute the “distance” between two vectors in 1024-dimensional space, you're using the same theorem you learned with 3-4-5 in middle school.
The 3-4-5 Triangle and Pythagorean Triples
Three integers (a, b, c) are a Pythagorean triple if a² + b² = c². The smallest is (3, 4, 5): 9 + 16 = 25. Others include (5, 12, 13), (8, 15, 17), and (7, 24, 25).
These aren't just curiosities. Surveyors, carpenters, and masons have used the 3-4-5 triangle for thousands of years to lay out right angles in the field. Stretch a rope marked at 3 feet, 4 feet, and 5 feet, and you can construct a perfect 90-degree corner without instruments. The Egyptians used this to lay out fields after the Nile flooded each year.
What the Theorem Actually Says
The Pythagorean theorem is equivalent to a statement about the geometry of the plane. Specifically, it's equivalent to the assumption that the plane is “flat” (Euclidean) rather than curved. On a sphere or a saddle surface, the relationship between a triangle's sides changes. The theorem holds in flat 2D and flat 3D space and breaks down on curved surfaces.
That's why general relativity, which describes spacetime as curved by mass, doesn't use the Pythagorean theorem directly. The metric tensor in GR is a generalization of the Pythagorean relationship that handles curvature. In flat space, the metric reduces to a² + b² = c². In curved space, additional terms appear.
Takeaway
The rearrangement proof is the cleanest argument: four right triangles in two arrangements inside the same square leave equal leftover area. From there, algebra and similar triangles give equivalent proofs. The theorem is a statement about flat-space geometry, and it generalizes to higher dimensions and breaks down on curved surfaces.
The Take
The Pythagorean theorem is the rare result that's simple enough to teach in middle school and deep enough to underpin general relativity. The proof is genuinely elegant when you see the rearrangement argument with diagrams. Anyone who's been told the theorem without a derivation has been cheated of one of math's prettier arguments. It takes about three minutes to walk through with paper. Worth doing once.
Written by
Tech Talk News Editorial
Tech Talk News covers engineering, AI, and tech investing for people who build and invest in technology.