$$ \newcommand{\RR}{\mathbb{R}} \newcommand{\QQ}{\mathbb{Q}} \newcommand{\CC}{\mathbb{C}} \newcommand{\NN}{\mathbb{N}} \newcommand{\ZZ}{\mathbb{Z}} \newcommand{\EE}{\mathbb{E}} \newcommand{\HH}{\mathbb{H}} \renewcommand{\SS}{\mathbb{S}} \newcommand{\DD}{\mathbb{D}} \newcommand{\pp}{^{\prime\prime}} \newcommand{\p}{^\prime} \newcommand{\proj}{\operatorname{proj}} \newcommand{\area}{\operatorname{area}} \newcommand{\len}{\operatorname{length}} \newcommand{\acc}{\operatorname{acc}} \newcommand{\ang}{\sphericalangle} \newcommand{\map}{\mathrm{map}} \newcommand{\SO}{\operatorname{SO}} \newcommand{\dist}{\operatorname{dist}} \newcommand{\length}{\operatorname{length}} \newcommand{\uppersum}[1]{{\textstyle\sum^+_{#1}}} \newcommand{\lowersum}[1]{{\textstyle\sum^-_{#1}}} \newcommand{\upperint}[1]{{\textstyle\smallint^+_{#1}}} \newcommand{\lowerint}[1]{{\textstyle\smallint^-_{#1}}} \newcommand{\rsum}[1]{{\textstyle\sum_{#1}}} \newcommand{\partitions}[1]{\mathcal{P}_{#1}} \newcommand{\erf}{\operatorname{erf}} \newcommand{\pmat}[1]{\begin{pmatrix}#1\end{pmatrix}} \newcommand{\smat}[1]{\left(\begin{smallmatrix}#1\end{smallmatrix}\right)} $$

3  Pythagoras

The Pythagorean theorem needs no introduction, and is perhaps the best-known formula in mathematics from antiquity (rivaled, perhaps, only by \(E=mc^2\) in the modern era).

Theorem 3.1 (The Pythagorean Theorem) In a right triangle with legs of length \(a,b\) and hypotenuse of length \(c\), these lengths satisfy \[a^2+b^2=c^2\]

This theorem is fundamental to almost all real-world applications of geometry because it is the Greek foundation for the distance function: it lets us measure the distance between two points in the plane if we only know their horizontal and vertical separations.

Pythagoras’ Theorem was not first discovered by Pythagoras - and its first origins are lost to history, though surviving tablets show that it was already in common use in Babylon 3700 years ago.

The Old Babylonian tablet Si.427, a field survey whose plots have the side lengths of Pythagorean triples: three whole numbers for which the sum of the squares of the first two equals the square of the third. The triples (3, 4, 5), (8, 15, 17) and (5, 12, 13) are visible here. Such surveys were used to lay out land boundaries.

The same theorem was discovered by many mathematicians the world over, from ancient India to China and the Middle East. But it was the Greeks who, in building The Elements, first realized its essential reliance on the theory of parallels.

While we are these days accustomed to algebraic expressions occurring in the midst of geometric arguments (and so think of the Pythagorean theorem primarily as an equation), the origin of this equation deals fundamentally with the area of squares. Indeed, Euclid’s original statement was:

In right-angled triangles the square on the side opposite the right angle equals the sum of the squares on the sides containing the right angle.

The Pythagorean theorem, illustrated.

And so, before we can proceed, we need to study area.

3.1 Areas

Just as with measuring angles, Euclid needed some additional rules to specify how areas are to be measured. Here I’ve summarized these in a modern phrasing for us to use.

Definition 3.1 (Area Axioms)  

  • The area of a square of side length \(x\) is \(x^2\).
  • Any two congruent shapes have the same area.
  • If a shape \(R\) is the disjoint union of two shapes \(S\) and \(T\), the area of \(R\) is the sum of the areas of \(S\) and \(T\).

Proposition 3.1 (Area of a Rectangle) The area of a rectangle is equal to the product of its two side lengths.

Proof. Create a square of side lengths \(a+b\), and divide it up into a square with side length \(a\), one with side length \(b\), and two rectangles with sides \(a,b\), as shown in the following picture.

Computing the area of a rectangle given the area of squares

Let \(A_R\) denote the unknown area of the rectangle. Using the area axioms, we can write the area of the large square as a sum of the areas of its components \[(a+b)^2=a^2+b^2+2A_R\]

From here, it’s just algebra. Expanding the left hand side and cancelling like terms we find

\[A_R=ab\]

Exercise 3.1 Starting with segments of lengths \(a,b\) and using the postulates and what we have proven or stated in this text so far, construct the diagram used in the proof of Proposition 3.1, and justify that it has the properties claimed of it (made of two squares and two rectangles of the correct dimensions).

We can now use this result to deduce the area of right triangles as well.

Proposition 3.2 (Area of a Right Triangle) The area of a right triangle is half the product of its two legs.

Proof. In the proof of Proposition 2.4 (showing that the opposing sides of a rectangle are the same length), we saw that the diagonal divides a rectangle into two congruent triangles.

Call the area of the rectangle \(A_R\) and the area of each of these triangles \(A_{T_1}\) and \(A_{T_2}\). Since the triangles are congruent, their areas are equal (Area Axiom 2), and since they together make up the entire rectangle, \(A_R=A_{T_1}+A_{T_2}\) (Area Axiom 3). Putting these together

\[A_R=A_{T_1}+A_{T_2}=2A_{T_1}\implies A_{T_1}=\frac{1}{2}A_R\]

Since we know \(A_R\) is the product of its two side lengths, and these are the legs of each triangle, we see that the area of the right triangle is half the product of its legs, as claimed.

And finally we can extend this back to general triangles, recovering the familiar formula from high school geometry, that a triangle’s area is given by \(A=\tfrac{1}{2}bh\).

Proposition 3.3 (Area of a Triangle) The area of a triangle is half the product of its base and its height.

Exercise 3.2 Prove Proposition 3.3.

Hint - consider two cases: does the top vertex of the triangle lie over the base, or does it not? In both cases, try to use what we know about right triangles to help.

3.2 Proving the Pythagorean Theorem

This theorem has been proved many times! Indeed, there is an entire textbook by Elisha Scott Loomis devoted to distinct proofs of the Pythagorean theorem, collecting 367 in all, and this website gives over a hundred distinct proofs for you to peruse.

Euclid even proved this proposition in two distinct ways in The Elements, first in Book I, Proposition 47, and much later in Book VI, Proposition 31.

The configuration used by Euclid to prove Pythagoras’ Theorem in Book I, Proposition 47.

However, as with many things in mathematics - time brings new insights and clarity even to the oldest of problems. The styles of proof that I personally find most elegant are all rearrangement proofs: starting with one collection of shapes and moving the pieces around in a way that forces the truth of the theorem.

A particularly ingenious rearrangement proof was devised in the mid 800s CE by Thābit ibn Qurra (full name أبو الحسن ثابت بن قرة بن زهرون الحراني الصابئ), a polymath from Harran who worked in Baghdad and made contributions to mathematics, astronomy and medicine.

Proof.

Qurra’s rearrangement: the squares on \(a\) and \(b\) are cut, and the two triangles rotated a quarter turn, to give the square on \(c\).

Exercise 3.3 Justify that the resulting final shape here (in the proof by Qurra above) is indeed a square.

My favorite proof of the Pythagorean theorem needs no words to be convincing: its core idea is contained in the following diagram.

Proof. The blue areas in these two pictures are the same, as all we have done is slide around the triangles.

A re-arrangement proof

Of course, to make this rigorous we have to explain why the re-arrangement really is the same square.

Variants of this proof were discovered by the 12th-century Indian mathematician Bhaskara (Bhaskara II), and even much earlier, appearing in the Chinese astronomical text Zhoubi Suanjing (周髀算經) from the second century BCE (which claims to record work from the 11th century BCE).

Exercise 3.4 Explain how the diagram from the Zhoubi Suanjing shows that \(a^2+b^2=c^2\) using the formulas we’ve derived for the areas of squares and right triangles, and some algebra.

3.3 The Irrationality of \(\sqrt{2}\)

Traditionally, the realization that irrational numbers must exist is attributed to Pythagoras (or his followers, the Pythagoreans). While the usual story is likely apocryphal (where the Pythagoreans kept as a strict secret the existence of irrational numbers, and murdered Hippasus for divulging it), their discovery nonetheless revealed a tension between two pillars of Greek mathematics:

  • Lengths constructed in Euclidean geometry are “real”.
  • Any two lengths can be measured by a common ratio.

The first of these is merely stating that the axioms of Euclidean geometry are constructive - a proof in Euclidean geometry is a step-by-step recipe to really construct some line segment, polygon, or circle. So if the axioms say you can make something, you really can make it!

Exercise 3.5 Use the constructions of the previous section together with the Pythagorean theorem to prove \(\sqrt{2}\) exists.

The second was borne out by centuries of experience: in both mathematics and music, all known quantities came in common ratios. Notes could be measured relative to each other, as could lengths. Ratios ruled the cosmos (today, we would say the Greeks believed the number line was \(\QQ\), the rational numbers).

Many proofs of the irrationality of \(\sqrt{2}\) have been devised during the 2500 years since its discovery, with perhaps the most famous still being that recorded by Euclid, often phrased algebraically as a proof by contradiction using fractions in lowest terms. But there are also purely geometric proofs of this fact. Below is a relatively modern one, devised by Stanley Tennenbaum around 1950.

Theorem 3.2 (\(\sqrt{2}\) is Irrational) The Square Root of 2 is not a rational number.

Proof. Assume that \(\sqrt{2}=m/n\) is the ratio of two whole numbers, so \(2=m^2/n^2\), or \(2n^2=m^2\). Geometrically, this means there is a square with integer side lengths (\(m\)), whose area is exactly twice the area of another integer-side-length square (\(n\)). Since \(1<\sqrt{2}<\tfrac{3}{2}\) we have \(n<m<2n\) and \(m-n<2n-m\), which is what makes the picture below possible.

A square with integer side lengths (blue) whose area is twice that of another integer square (yellow).

Now take the two smaller squares and position them inside the larger. They don’t fit disjointly (remember, the sum of their areas is the entire square! So if they leave any of the square unfilled, they must overlap somewhere else to make up for it).

Placing two of the smaller inside the larger must cause an overlap.

Actually, this picture determines three new squares along the diagonal - two unfilled and one “double covered” by the overlapping yellow ones.

This determines three new squares down the diagonal.

What do we know about these three squares? Well, they all have integer side lengths, as they are differences of integer side lengths, and thus they are smaller than the side lengths of our original squares. But what can we say about their areas?

The two original yellow squares’ areas exactly sum to the blue square’s area: this means the amount they miss (the two smaller blue squares) equals exactly the amount of overlap (the red square). So these new squares have the property that twice the area of the smaller adds up to the area of the larger! This is just the start of what could easily become an infinite process: we now have a procedure that takes any integer square solution and produces a new solution with smaller squares. We could repeat this process again and again, getting ever smaller squares.

From this, we can do an infinite regress.

But this clearly cannot be! It is impossible to make a list of ever decreasing positive integers, as there is a smallest positive integer: one! Assuming there was any rational solution to \(\sqrt{2}=m/n\) gave us an infinite procedure to make smaller and smaller integer solutions forever, which cannot happen. Thus there cannot be any solutions at all!

And, the square root of 2 must be irrational.

Exercise 3.6 (The Square Root of 3) Construct a similar argument showing that it is impossible to find two integer side-length equilateral triangles where one has three times the area of the other.

Three copies of the smaller equilateral triangle placed inside the larger one, leaving overlaps and an uncovered gap.