58Maths

Why Pythagoras’ theorem works

Draw a square on each side of a right triangle and the areas add up. Move four triangles about to see why, hunt for whole number triangles and check whether a corner is square.

Paving

The square on the long side

Take a triangle with one square corner. Draw a square on each of its three sides. The theorem says the two smaller squares together have exactly the same area as the biggest one. If the short sides are a and b and the long side is c, then a × a + b × b = c × c.

Four slabs to try. Draw the three squares and watch the areas. Move four triangles about and see why the areas must match. Hunt for triangles whose sides are whole numbers. And check whether a corner is square, the way a builder does. Every number is worked out by the page. Without a script each slab shows one picture or table.

Slab one

Three squares

Pick the two short sides of a right triangle. The page draws a square on each side and writes the area in it. The square on the long side, the hypotenuse, always has an area equal to the other two added. When the long side comes out as a whole number, the three sides are called a Pythagorean triple.

Slide the short sides. Notice that 3, 4 and 5 give a whole number, and most other pairs do not.

91625

3 × 3 = 9 and 4 × 4 = 16. Together 25, and the square on the long side is 5 × 5 = 25. The long side is 5, a whole number, so 3, 4, 5 is a Pythagorean triple.

Slab two

Move four triangles

This is a classic way to see why it is true. Draw a big square with side a + b. Put four copies of the triangle in its corners so that a tilted square is left in the middle. That square has side c, so its area is c × c. Now slide the same four triangles into two rectangles. What is left is a square on a and a square on b. The triangles did not change, so the space left over did not change either.

The page uses the 3, 4, 5 triangle. Slide from the first picture to the second.

Four copies of a triangle with sides 3, 4 and 5 sit in the corners of a square with side 3 + 4 = 7. The space left in the middle is a tilted square with side 5, so its area is 5 × 5 = 25.

Slab three

Whole number triangles

A clay tablet from Babylon, called Plimpton 322 and written around 1800 BC, lists sets of whole numbers like these, over a thousand years before Pythagoras. How the Babylonians used them is argued. Euclid’s formula makes triples from two numbers m and n, with m larger: the sides are m × m minus n × n, 2 × m × n, and m × m plus n × n.

Slide m and n and the page works out the triangle. Below the sliders the page lists every triple with a long side up to 100, found by trying every pair of short sides. A triple that is not a multiple of a smaller one is called primitive.

With m = 2 and n = 1 the sides are 3, 4 and 5. Check: 3 × 3 + 4 × 4 = 25 and 5 × 5 = 25.

Whole number right triangles with a long side up to 100
ShortShortLongPrimitive
345yes
6810no
51213yes
91215no
81517yes
121620no
72425yes
152025no
102426no
202129yes
182430no
163034no

There are 52 triples with a long side up to 100, and 16 of them are primitive. The first 12 are shown. Press the button to show them all.

Slab four

Is the corner square?

The theorem also works backwards. If the squares on two sides add up to exactly the square on the third, the corner between those two sides is a right angle. Builders have used this for a very long time. A rope with 12 equal spaces, knotted to make a triangle of 3, 4 and 5 spaces, gives a square corner. If the two smaller squares add up to more than the biggest, the corner is sharper than a right angle. If they add up to less, it is wider.

Slide the three sides. The page sorts them, compares the squares and names the triangle.

435

The two short sides give 3 × 3 + 4 × 4 = 25 and the long side gives 5 × 5 = 25. They are equal, so the corner is a right angle.

Key takeaways

  1. In a triangle with a square corner, the square on the long side has the same area as the two other squares together: a × a + b × b = c × c.
  2. Four triangles can be moved about inside a square of side a + b. What is left over is either one square on c or two squares on a and b, so the areas match.
  3. A set of three whole numbers that fit is a Pythagorean triple. 3, 4, 5 is the smallest. There are 52 triples with a long side up to 100, and 16 of them are primitive.
  4. Sets of such numbers were written down in Babylon about 1800 BC. The theorem carries the name of Pythagoras, but that is more than a thousand years earlier.
  5. The converse holds: if a × a + b × b = c × c, the corner opposite c is square. Larger sum means a sharper corner, smaller sum means a wider one.

Sources

Most of these sites could not be opened while this page was written, so the facts were checked through search results that quote them. The Babylonian tablet Plimpton 322 from about 1800 BC and its triples, Euclid’s formula with its conditions, Loomis’s book of proofs (sources give 367, 370 or 371), Garfield’s proof of 1876, the Chinese text Zhoubi Suanjing treating the 3, 4, 5 case and the name gougu theorem each appeared in at least two places. Sources differ on the date of the tablet (1900 to 1600 BC), on what the tablet was for, and on the count of Loomis’s proofs, which the page says. The Egyptian rope story is marked as popular and not backed by a find. The areas, the triples, the counts of 52 and 16 and the classification of the corners are all computed on the page.