Pythagorean Theorem Proof
The classic area proof: four right triangles and a small square rearrange between two configurations. One leaves a² + b², the other c² — proving they are equal.
Both large squares have area (a+b)² and contain the same four right triangles. Layout A leaves the tilted square c²; Layout B leaves a² and b². So a² + b² = c² — with a=3, b=4, that is 9 + 16 = 25.0.
Switch between the two layouts: the four triangles are identical, only rearranged. Since the total square and the four triangles are unchanged, the remaining uncovered area must be equal too — which is exactly the theorem.
What you are seeing
Two large squares have the same side length a + b, so they have equal area.
In one arrangement the four triangles leave two squares a² and b²; in the other they leave one square c².
Since the leftover areas must match, a² + b² = c².
Why it matters
The Pythagorean theorem is the most-used relation in all of geometry, linking distances, trigonometry, and vectors.
Complexity & details
The shapes are static; animating between layouts is O(1) per frame.
Frequently asked questions
Is this a valid proof?+
Yes. Equal total area minus equal triangle area forces the remaining squares to satisfy a² + b² = c².