Mathematics · Book 1 · Grades 1–9

Primary & Middle School Mathematics

Primary & Middle School Mathematics · Grades 1–9

58The Pythagorean Theorem

The most famous theorem of all mathematics relates the three sides of a right triangle. With it, lengths become computable that no ruler could measure directly: diagonals, distances, heights. It is also our first big encounter with the difference between a theorem and its converse.

58.1 The theorem

Theorem 58.1 (Pythagoras)

If a triangle ABCABC is right-angled at AA, then

BC2=AB2+AC2:BC^2 = AB^2 + AC^2 :

the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the other two sides.

Idea of proof. Four copies of the triangle, arranged inside a big square of side AB+ACAB + AC, leave uncovered a tilted square built on the hypotenuse: comparing areas gives the equality. The detailed computation is proposed as Exercise 58.11; the theorem also drops out of the scalar product, studied in the High School volume.

The theorem as an area statement: the square built on the hypotenuse (25) has exactly the same area as the two other squares together (16 + 9). Here the sides are 3, 4, 5.
The theorem as an area statement: the square built on the hypotenuse (2525) has exactly the same area as the two other squares together (16+916 + 9). Here the sides are 33, 44, 55.

Method 58.2 (Computing a length)

In a right triangle where two sides are known:

  1. name the hypotenuse (opposite the right angle — always the longest side);
  2. write the equality of Theorem 58.1 with the known values;
  3. solve for the missing square: add the squares if the hypotenuse is unknown, subtract if a leg is unknown;
  4. take the square root, exactly or with a calculator, and check that the hypotenuse came out longest.

Example 58.3 (Finding the hypotenuse)

A right triangle has legs 66 and 88. Hypotenuse cc:

c2=62+82=36+64=100,c=100=10.c^2 = 6^2 + 8^2 = 36 + 64 = 100, \qquad c = \sqrt{100} = 10 .

(The number 100\sqrt{100}, the square root of 100100, is the positive number whose square is 100100; square roots get a full chapter in Chapter 65.)

Example 58.4 (Finding a leg)

A 55 m ladder leans against a wall, its foot 1.41.4 m from the wall. Height reached hh: the ladder is the hypotenuse, so

h2=521.42=251.96=23.04,h=23.04=4.8 m.h^2 = 5^2 - 1.4^2 = 25 - 1.96 = 23.04, \qquad h = \sqrt{23.04} = 4.8 \text{ m}.

Subtract, not add: the unknown here is a leg.

58.2 The converse

Theorem 58.5 (Converse of Pythagoras)

If, in a triangle ABCABC, the sides satisfy BC2=AB2+AC2BC^2 = AB^2 + AC^2, then the triangle is right-angled at AA.

Proof. Admitted at this level.

Method 58.6 (Testing a right angle)

Given the three sides of a triangle:

  1. compute separately the square of the longest side, and the sum of the squares of the two others;
  2. if the two results are equal, the triangle is right-angled (converse), at the vertex opposite the longest side;
  3. if they differ, it is not right-angled — because Pythagoras’ theorem would force equality.

Example 58.7

Sides 55, 1212, 1313: longest side squared, 132=16913^2 = 169; sum of the other squares, 52+122=25+144=1695^2 + 12^2 = 25 + 144 = 169. Equal: right-angled (opposite the side 1313).

Sides 66, 77, 99: 92=819^2 = 81 but 62+72=85816^2 + 7^2 = 85 \neq 81: not a right triangle (it is “almost” one — the numbers decide, not the eye).

Remark 58.8 (Theorem vs converse)

The theorem and its converse say different things: the theorem uses a right angle to compute lengths; the converse uses lengths to prove a right angle. Builders have used the converse for millennia: a rope with knots at 33, 44, 55 units pulled taut gives a perfect right angle.

Example 58.9 (Diagonal of a square)

The diagonal of a square of side 11 is the hypotenuse of a right triangle with legs 11 and 11:

d2=12+12=2,d^2 = 1^2 + 1^2 = 2 ,

so d=21.414d = \sqrt2 \approx 1.414 — a number that is not a fraction, as the High School volume will prove. For a square of side cc, the diagonal is c2c\sqrt2.

58.3 Exercises

Exercise 58.1

In each right triangle, compute the hypotenuse: legs 99 and 1212; legs 55 and 1212; legs 88 and 1515.

Solution

Solution of Exercise 58.1.

81+144=225=15\sqrt{81 + 144} = \sqrt{225} = 15; 25+144=169=13\sqrt{25 + 144} = \sqrt{169} = 13; 64+225=289=17\sqrt{64 + 225} = \sqrt{289} = 17.

Exercise 58.2

A right triangle has hypotenuse 2525 and one leg 77. Compute the other leg.

Solution

Solution of Exercise 58.2.

Leg2=25272=62549=576^2 = 25^2 - 7^2 = 625 - 49 = 576, so the leg is 576=24\sqrt{576} = 24.

Exercise 58.3

Compute the diagonal of a rectangle of sides 1212 cm and 99 cm; the diagonal of a square of side 55 cm (exact value with a square root, then rounded to the mm).

Solution

Solution of Exercise 58.3.

Rectangle: 122+92=144+81=225=15\sqrt{12^2 + 9^2} = \sqrt{144 + 81} = \sqrt{225} = 15 cm.

Square: d=527.1d = 5\sqrt2 \approx 7.1 cm (Example 58.9).

Exercise 58.4

Which triangles are right-angled? Justify with Method 58.6:

(20, 21, 29);(7, 8, 11);(1.5, 2, 2.5).(20,\ 21,\ 29); \qquad (7,\ 8,\ 11); \qquad (1.5,\ 2,\ 2.5).
Solution

Solution of Exercise 58.4.

(20,21,29)(20, 21, 29): 292=84129^2 = 841 and 202+212=400+441=84120^2 + 21^2 = 400 + 441 = 841: right-angled.

(7,8,11)(7, 8, 11): 12149+64=113121 \neq 49 + 64 = 113: not right-angled.

(1.5,2,2.5)(1.5, 2, 2.5): 6.25=2.25+46.25 = 2.25 + 4: right-angled (it is (3,4,5)(3,4,5) halved).

Exercise 58.5

A gate is braced by a diagonal plank. The gate is 33 m wide and 1.61.6 m tall: how long is the plank?

Solution

Solution of Exercise 58.5.

Plank =32+1.62=9+2.56=11.56=3.4= \sqrt{3^2 + 1.6^2} = \sqrt{9 + 2.56} = \sqrt{11.56} = 3.4 m.

Exercise 58.6

An isosceles triangle has two sides of 1010 cm and a base of 1212 cm. Its height splits it into two right triangles: compute that height, then the area of the triangle.

Solution

Solution of Exercise 58.6.

The height falls on the midpoint of the base (isosceles triangle), so each half-triangle has hypotenuse 1010 and one leg 66: h=10036=64=8h = \sqrt{100 - 36} = \sqrt{64} = 8 cm. Area: 12×82=48\frac{12 \times 8}{2} = 48 cm2^2.

Exercise 58.7 ★★

A television screen is a 16:916{:}9 rectangle measuring 88.588.5 cm by 49.849.8 cm. Screens are sold by the diagonal, in inches (11 inch =2.54= 2.54 cm). Compute the diagonal in cm, then in inches (round to the nearest inch).

Solution

Solution of Exercise 58.7.

Diagonal: 88.52+49.82=7832.25+2480.04=10312.29101.5\sqrt{88.5^2 + 49.8^2} = \sqrt{7832.25 + 2480.04} = \sqrt{10312.29} \approx 101.5 cm. In inches: 101.5÷2.5440101.5 \div 2.54 \approx 40 inches.

Exercise 58.8 ★★

A boat sails 2424 km east, then 1010 km north. How far is it from its starting point (as the crow flies)? Draw the situation first.

Solution

Solution of Exercise 58.8.

The two legs are 2424 km and 1010 km: 242+102=576+100=676=26\sqrt{24^2 + 10^2} = \sqrt{576 + 100} = \sqrt{676} = 26 km.

Exercise 58.9 ★★

A 2.52.5 m ladder must reach a window sill 2.42.4 m above the ground. How far from the wall must its foot be placed? Is the answer compatible with safety advice (foot at about a quarter of the ladder length from the wall)?

Solution

Solution of Exercise 58.9.

Foot distance: 2.522.42=6.255.76=0.49=0.7\sqrt{2.5^2 - 2.4^2} = \sqrt{6.25 - 5.76} = \sqrt{0.49} = 0.7 m. A quarter of the ladder is 2.5÷40.62.5 \div 4 \approx 0.6 m: the 0.70.7 m found is close to the advised placement — acceptable.

Exercise 58.10 ★★

On a coordinate grid, plot A(1,2)A(1, 2) and B(5,5)B(5, 5), and draw the right triangle with legs parallel to the axes whose hypotenuse is [AB][AB]. Compute ABAB. (This construction, for any two points, becomes the distance formula of coordinate geometry, in the High School volume.)

Solution

Solution of Exercise 58.10.

The legs measure 51=45 - 1 = 4 (horizontal) and 52=35 - 2 = 3 (vertical), so

AB=42+32=25=5.AB = \sqrt{4^2 + 3^2} = \sqrt{25} = 5 .

Exercise 58.11 ★★★

Four copies of a right triangle with legs aa, bb and hypotenuse cc are placed in the corners of a square of side a+ba + b, leaving a tilted square of side cc uncovered in the middle.

  1. Express the area of the big square in two ways: directly, and as (four triangles) ++ (tilted square).
  2. Expand (a+b)2(a + b)^2 (see Theorem 57.1) and deduce c2=a2+b2c^2 = a^2 + b^2: you have proved the Pythagorean theorem.
Solution

Solution of Exercise 58.11.

1. Directly: (a+b)2(a + b)^2. As pieces: four triangles of area ab2\frac{ab}{2} each, plus the tilted square c2c^2:

(a+b)2=4×ab2+c2=2ab+c2.(a + b)^2 = 4 \times \frac{ab}{2} + c^2 = 2ab + c^2 .

2. Expanding the left side: (a+b)2=a2+2ab+b2(a+b)^2 = a^2 + 2ab + b^2. So

a2+2ab+b2=2ab+c2a2+b2=c2.a^2 + 2ab + b^2 = 2ab + c^2 \quad\Longrightarrow\quad a^2 + b^2 = c^2 . \qed

58.4 Problem: Pythagorean triples

Problem 58.1

Weekend problem — whole-number right triangles, and the identity (m2n2)2+(2mn)2=(m2+n2)2(m^2 - n^2)^2 + (2mn)^2 = (m^2 + n^2)^2 that generates them all

A Pythagorean triple is a triple of whole numbers (a,b,c)(a, b, c) with

a2+b2=c2,a^2 + b^2 = c^2 ,

like the builders’ (3,4,5)(3, 4, 5). A Babylonian clay tablet catalogued huge ones — (4601, 4800, 6649)(4601,\ 4800,\ 6649) among them — more than a thousand years before Pythagoras. This problem hunts for triples, then builds the machine that produces them: an algebraic identity straight out of Chapter 57, put in the service of geometry.

Part I — Hunting for triples.

  1. Check that (5,12,13)(5, 12, 13), (8,15,17)(8, 15, 17) and (20,21,29)(20, 21, 29) are Pythagorean triples. What does Theorem 58.5 say about triangles with these side lengths?
  2. Explain why a taut rope with twelve equal segments, laid out as a triangle with sides of 33, 44 and 55 segments, gives builders a perfect right angle.
  3. Show that if (a,b,c)(a, b, c) is a Pythagorean triple, so is (ka,kb,kc)(ka, kb, kc) for every whole number k1k \geq 1. Deduce three new triples from (3,4,5)(3, 4, 5).
  4. The multiples of (3,4,5)(3, 4, 5) are the triples (3k,4k,5k)(3k, 4k, 5k). Show that (5,12,13)(5, 12, 13) is not one of them.
  5. Explain why questions 3 and 4 together prove that scaling (3,4,5)(3, 4, 5) can never produce every Pythagorean triple: some other machine is needed.

Part II — The machine. Take two whole numbers m>n1m > n \geq 1 and form the three numbers

a=m2n2,b=2mn,c=m2+n2.a = m^2 - n^2, \qquad b = 2mn, \qquad c = m^2 + n^2 .
  1. Using the remarkable identities of Problem 57.1 (write A=m2A = m^2 and B=n2B = n^2), expand a2a^2 and b2b^2, and prove that

    (m2n2)2+(2mn)2=(m2+n2)2:\left(m^2 - n^2\right)^2 + (2mn)^2 = \left(m^2 + n^2\right)^2 :

    the machine always outputs a Pythagorean triple.

  2. Run the machine on (m,n)=(2,1)(m, n) = (2, 1), (3,1)(3, 1), (3,2)(3, 2), (4,1)(4, 1) and (4,3)(4, 3), and display the five triples in a table.
  3. One triple in your table is a scaled copy of a smaller one. Which, and of which?
  4. Find (m,n)(m, n) for which the machine outputs the triple (20,21,29)(20, 21, 29) of question 1 (legs in either order).
  5. Find mm and nn with m2+n2=100m^2 + n^2 = 100, and deduce a Pythagorean triple whose hypotenuse is 100100.

Part III — Families, and a parity finale.

  1. Run the machine with m=n+1m = n + 1. Show that the odd leg is 2n+12n + 1, the even leg 2n2+2n2n^2 + 2n, and the hypotenuse 2n2+2n+12n^2 + 2n + 1 — so hypotenuse and even leg differ by exactly 11. Write out the triples for n=1,2,3,4n = 1, 2, 3, 4.
  2. Deduce that every odd number 3,5,7,9,3, 5, 7, 9, \dots is the side of some whole-number right triangle, and give a triple containing 1111.
  3. Even numbers work too: run the machine with n=1n = 1, and produce a triple containing 1414. Then obtain the same triple a second time, by scaling one from your table of question 7.
  4. Show that the square of an even number is even and that the square of an odd number is odd. (Write the number as 2k2k or 2k+12k + 1 and use an identity.)
  5. Conclude the parity finale: there is no Pythagorean triple with all three numbers odd — in every whole-number right triangle, at least one side is even.
Solution

Solution of Problem 58.1.

1. 52+122=25+144=169=1325^2 + 12^2 = 25 + 144 = 169 = 13^2; 82+152=64+225=289=1728^2 + 15^2 = 64 + 225 = 289 = 17^2; 202+212=400+441=841=29220^2 + 21^2 = 400 + 441 = 841 = 29^2. All three are triples, and by Theorem 58.5 a triangle with these side lengths is right-angled, the right angle facing the longest side.

2. The rope forms a triangle with sides 33, 44, 55 (in segments), and 32+42=25=523^2 + 4^2 = 25 = 5^2: by the converse (Theorem 58.5), the angle between the sides of 33 and 44 segments is exactly right — no protractor needed, only knots.

3. If a2+b2=c2a^2 + b^2 = c^2, then

(ka)2+(kb)2=k2a2+k2b2=k2(a2+b2)=k2c2=(kc)2.(ka)^2 + (kb)^2 = k^2 a^2 + k^2 b^2 = k^2\left(a^2 + b^2\right) = k^2 c^2 = (kc)^2 .

From (3,4,5)(3, 4, 5): for instance (6,8,10)(6, 8, 10), (9,12,15)(9, 12, 15) and (30,40,50)(30, 40, 50).

4. A multiple (3k,4k,5k)(3k, 4k, 5k) containing 55 as its smallest number would need 3k=53k = 5, and no whole number kk satisfies that (k=1k = 1 gives 33, k=2k = 2 gives 66). So (5,12,13)(5, 12, 13) is not a multiple of (3,4,5)(3, 4, 5).

5. Question 3 shows scaling produces only the triples (3k,4k,5k)(3k, 4k, 5k); question 4 exhibits a genuine triple that is not of this form. So the family of all Pythagorean triples is strictly larger than the multiples of (3,4,5)(3, 4, 5): producing them requires something new.

6. Write A=m2A = m^2 and B=n2B = n^2. By the remarkable identities (Problem 57.1):

a2=(AB)2=A22AB+B2,b2=(2mn)2=4m2n2=4AB.a^2 = (A - B)^2 = A^2 - 2AB + B^2, \qquad b^2 = (2mn)^2 = 4m^2n^2 = 4AB .

Adding:

a2+b2=A22AB+B2+4AB=A2+2AB+B2=(A+B)2=(m2+n2)2=c2.a^2 + b^2 = A^2 - 2AB + B^2 + 4AB = A^2 + 2AB + B^2 = (A + B)^2 = \left(m^2 + n^2\right)^2 = c^2 .

7.

(m,n)(m, n)m2n2m^2 - n^22mn2mnm2+n2m^2 + n^2
(2,1)(2, 1)334455
(3,1)(3, 1)88661010
(3,2)(3, 2)5512121313
(4,1)(4, 1)1515881717
(4,3)(4, 3)7724242525

8. (8,6,10)(8, 6, 10) is the double of (4,3,5)(4, 3, 5) — that is, of the builders’ (3,4,5)(3, 4, 5). The machine sometimes rediscovers an old triple in disguise.

9. We need m2n2=21m^2 - n^2 = 21 and 2mn=202mn = 20, so mn=10mn = 10: trying m=5m = 5, n=2n = 2 gives 254=2125 - 4 = 21 and 2×10=202 \times 10 = 20, with hypotenuse 25+4=2925 + 4 = 29. The machine outputs (21,20,29)(21, 20, 29) for (m,n)=(5,2)(m, n) = (5, 2).

10. m=8m = 8, n=6n = 6 gives m2+n2=64+36=100m^2 + n^2 = 64 + 36 = 100. The triple is

(6436, 2×48, 100)=(28, 96, 100),\left(64 - 36,\ 2 \times 48,\ 100\right) = (28,\ 96,\ 100),

and indeed 282+962=784+9216=10000=100228^2 + 96^2 = 784 + 9216 = 10\,000 = 100^2.

11. With m=n+1m = n + 1:

m2n2=(n+1)2n2=2n+1m^2 - n^2 = (n + 1)^2 - n^2 = 2n + 1

(difference of consecutive squares, Problem 57.1); 2mn=2n(n+1)=2n2+2n2mn = 2n(n + 1) = 2n^2 + 2n; and m2+n2=n2+n2+2n+1=2n2+2n+1m^2 + n^2 = n^2 + n^2 + 2n + 1 = 2n^2 + 2n + 1. The hypotenuse exceeds the even leg by exactly 11. For n=1,2,3,4n = 1, 2, 3, 4:

(3,4,5),(5,12,13),(7,24,25),(9,40,41).(3, 4, 5), \quad (5, 12, 13), \quad (7, 24, 25), \quad (9, 40, 41) .

12. Every odd number at least 33 is 2n+12n + 1 for some n1n \geq 1, and question 11 provides a triple whose odd leg is exactly 2n+12n + 1. For 11=2×5+111 = 2 \times 5 + 1, take n=5n = 5:

(11, 60, 61),112+602=121+3600=3721=612.(11,\ 60,\ 61), \qquad 11^2 + 60^2 = 121 + 3600 = 3721 = 61^2 .

13. With n=1n = 1 the machine gives (m21, 2m, m2+1)\left(m^2 - 1,\ 2m,\ m^2 + 1\right), whose even leg 2m2m can be any even number from 44 upward. For 14=2×714 = 2 \times 7, take m=7m = 7: the triple (48,14,50)(48, 14, 50). The same triple appears by doubling (7,24,25)(7, 24, 25) from the table of question 7: (14,48,50)(14, 48, 50) — the same three numbers.

14. An even number is 2k2k, and (2k)2=4k2(2k)^2 = 4k^2 is even (a multiple of 44, even). An odd number is 2k+12k + 1, and the first remarkable identity gives

(2k+1)2=4k2+4k+1=2(2k2+2k)+1,(2k + 1)^2 = 4k^2 + 4k + 1 = 2\left(2k^2 + 2k\right) + 1 ,

an even number plus 11: odd.

15. Suppose all of aa, bb, cc were odd. By question 14, a2a^2 and b2b^2 are odd, so a2+b2a^2 + b^2 is a sum of two odd numbers: even. But c2c^2 would be odd. The equality a2+b2=c2a^2 + b^2 = c^2 is then impossible. So in every Pythagorean triple at least one of the three numbers is even — as every line of the table of question 7 confirms.