Why does the Pythagorean theorem work?
Explore the drawing, then read the explanation and its limits.
Loading the drawing…
Controls become available when the drawing is ready.
Playback time is illustrative, not a real-world rate. Labels off hides annotations; the facts and limits below stay visible.
Parts
Hover or focus to highlight; tap to pin or release.
Explanation
For a right triangle, the square of the longest side equals the sum of the squares of the two shorter sides. In this example, those shorter sides have lengths three and four, giving a longest side of five. The demonstration explains the relationship by rearranging four identical right triangles inside a larger square.
In the first arrangement, the triangles surround a central square whose side is the triangle’s longest side. In the final arrangement, the same triangles form two rectangular pairs, leaving squares with the two shorter side lengths. The outer square has not changed, and neither has the total area of the four triangles. The leftover areas must therefore match.
For these numbers, the outer area is forty-nine and the triangles occupy twenty-four. The remaining twenty-five equals nine plus sixteen. The same steps work for any right triangle: the outer square has area (a + b) squared, the four triangles take up 2ab, and what remains is both c squared and a squared plus b squared. During the move, triangles may overlap. Only the starting and finishing positions are area partitions that establish the comparison. The lengths are mathematical units, not measurements of a physical object.
Source lines for every paragraph (JSON)Facts and simplifications
The facts below use the library’s ledgers and their stated simplifications. References are inherited from the library’s offline ledgers; external sources have not been newly checked.
Basis and source status · docs/math/FACTS-MATH.md
Based on the mathematics fact ledger’s Euclidean geometry and rearrangement proof. Only the initial and final layouts partition the area; intermediate triangles may overlap.
Source: docs/math/FACTS-MATH.md, lines 18–20, 82–84.
Ledger line 82: Right triangles, legs a=3,b=4; c=√(a²+b²)
docs/math/FACTS-MATH.md:82 | Right triangles, legs a=3,b=4; c=√(a²+b²) | Default right triangles have c=5. The first packing places right-angle corners at the corners of a square of side a+b. | Dimensionless coordinate units; not drawn as a measured real object. |
Ledger line 83: Four triangles surround c²
docs/math/FACTS-MATH.md:83 | Four triangles surround c² | Central vertices are (a,0),(a+b,a),(b,a+b),(0,b). Adjacent side vectors (b,a) and (−a,b) have dot product 0 and squared length a²+b². Thus the hole is a square of side c. | Border strokes have finite thickness; the mathematical partition uses the exact paths. |
Ledger line 84: Same outer area (a+b)²; c²=a²+b²
docs/math/FACTS-MATH.md:84 | Same outer area (a+b)²; c²=a²+b² | Move the identical four right triangles into two rectangular pairs. Remaining squares have sides a and b. Subtract equal triangle area 4(ab/2) from the equal outer areas. Default outer area 49, triangles total 24, leftover 25=9+16. | Triangles rotate and translate rigidly. **Intermediate positions may overlap and are not tilings or area decompositions.** Only u=0 and u=1 establish the two layouts. |