From equal squares to unequal ones

You have already seen that two equal squares combine into one square built on the diagonal. But what about two unequal squares? They can be combined too, and Baudhāyana's Śulba-sūtra tells us how: make a right triangle from their sides and build a square on the hypotenuse. In this lesson we follow his construction, prove that it works, and state the theorem a2+b2=c2a^2 + b^2 = c^2. Then we use it to find missing sides, to hunt for whole-number triples, and to work out the depth of a lake from the Līlāvatī.

Baudhāyana's instruction

"The area of the square produced by the diagonal is the sum of the areas of the squares produced by the two sides." (Verse 1.12)

In plain words: take squares of sides aa and bb, and draw a right-angled triangle with legs aa and bb. The square on its hypotenuse has area a2+b2a^2 + b^2. When a=ba = b, this is just the doubling from the previous lesson.

A second verse (2.1) gives the picture. Place the small square beside the large one, mark off an a×ba \times b rectangle inside the large square, and take its diagonal.

Why it works

Put the bb-square and the aa-square side by side (b>ab > a), making an L-shaped region of area a2+b2a^2 + b^2. Inside it, mark the a×ba \times b rectangle and its diagonal cc. This cuts off a right triangle with legs a,ba, b. Draw three more copies of that triangle around the region, one in each of the other corners. The four triangles are congruent, so the four segments cc are equal. And at each corner, the triangle's two acute angles, xx and 90∘−x90^\circ - x, sit on a straight line beside the corner angle, which forces that angle to be 90∘90^\circ. So the figure with sides cc is a square.

Squares of sides b and a side by side form an L-shape; two blue right triangles with legs a and b lie inside it, two orange copies lie outside, and the four hypotenuses c form a tilted red square.
Baudhayana's construction: the same central piece plus two triangles makes both the L-shape and the square on c.

Now count the pieces. The cc-square is made of two of the triangles plus a central piece. The L-region is made of the other two triangles plus the very same central piece. Equal pieces give equal areas:

c2=a2+b2c^2 = a^2 + b^2

Try it with paper. Join squares of sides aa and bb, and make two straight cuts to get three pieces. They fit back together into a square of side cc. Draw a right triangle with legs aa and bb and the square on its hypotenuse, and you will find the three pieces cover it exactly.

The theorem

Baudhāyana's theorem on right triangles. If a right-angled triangle has legs aa and bb and hypotenuse cc, then a2+b2=c2a^2 + b^2 = c^2.

Baudhāyana stated it in this general form around 800 BCE. Pythagoras studied it in Greece some three centuries later, and the name Baudhāyana–Pythagoras theorem gives credit to both.

Example 1. With legs 66 and 88: c2=36+64=100c^2 = 36 + 64 = 100, so c=10c = 10.

Right triangle with legs 6 and 8 and hypotenuse 10, with squares drawn outward on each side: 6 squared is 36, 8 squared is 64 and 10 squared is 100.
Legs 6 and 8: the squares 36 and 64 add up to the square 100 on the hypotenuse.

Example 2. With a leg of 99 and a hypotenuse of 4141: b2=1681−81=1600b^2 = 1681 - 81 = 1600, so b=40b = 40.

Example 3. With legs 44 and 66: c=52≈7.21c = \sqrt{52} \approx 7.21. With legs 2.52.5 and 66: c=6.25+36=6.5c = \sqrt{6.25 + 36} = 6.5.

Example 4. How do you triple a square of side ss? First double it, which gives side s2s\sqrt{2}. Then a right triangle with legs s2s\sqrt{2} and ss has hypotenuse 2s2+s2=s3\sqrt{2s^2 + s^2} = s\sqrt{3}. Carry on with legs s3s\sqrt{3} and ss to get s4=2ss\sqrt{4} = 2s, then s5s\sqrt{5}, and so on (Verse 1.10).

Notice that the hypotenuse is always the longest side, since c2c^2 is bigger than both a2a^2 and b2b^2.

Integer triples

Baudhāyana lists sets of whole numbers that make right triangles: (3,4,5)(3, 4, 5), (5,12,13)(5, 12, 13), (8,15,17)(8, 15, 17), (7,24,25)(7, 24, 25), (12,35,37)(12, 35, 37), (15,36,39)(15, 36, 39). Such sets are called Baudhāyana triples (or Pythagorean triples).

Scaling. If (a,b,c)(a, b, c) is a triple, so is (ka,kb,kc)(ka, kb, kc), because (ka)2+(kb)2=k2(a2+b2)=k2c2=(kc)2(ka)^2 + (kb)^2 = k^2(a^2 + b^2) = k^2c^2 = (kc)^2. So from (3,4,5)(3, 4, 5) we get (6,8,10)(6, 8, 10), (9,12,15)(9, 12, 15), (30,40,50)(30, 40, 50), and so on without end. A triple with no common factor is called primitive. (3,4,5)(3, 4, 5) and (5,12,13)(5, 12, 13) are primitive, but (9,12,15)(9, 12, 15) is not. Divide a non-primitive triple by its common factor and you get a primitive one.

Making primitive triples from odd squares. The sum of the first nn odd numbers is n2n^2, so (n−1)2+(2n−1)=n2(n - 1)^2 + (2n - 1) = n^2. Whenever the nn-th odd number, 2n−12n - 1, happens to be a square itself, this gives a triple.

  • 25=2×13−125 = 2 \times 13 - 1 is the 1313th odd number, so 122+52=13212^2 + 5^2 = 13^2.
  • 49=2×25−149 = 2 \times 25 - 1, so 242+72=25224^2 + 7^2 = 25^2.
  • 81=2×41−181 = 2 \times 41 - 1, so 402+92=41240^2 + 9^2 = 41^2.
  • 121=2×61−1121 = 2 \times 61 - 1, so 602+112=61260^2 + 11^2 = 61^2.

Every triple made this way is primitive, and its hypotenuse is one more than a leg. But this method does not give every primitive triple: (8,15,17)(8, 15, 17) and (20,21,29)(20, 21, 29) come from elsewhere.

Fermat's margin

There are infinitely many squares that are sums of two squares. Is any cube the sum of two cubes? Is any fourth power the sum of two fourth powers? Around 1637, Fermat wrote in the margin of a book that xn+yn=znx^n + y^n = z^n has no solution in natural numbers for n>2n > 2, adding that his proof would not fit in the margin. No such proof was ever found. Andrew Wiles, who first read about the problem at the age of ten, finally proved it in 1994.

The lotus in the lake

Here is a puzzle from Bhāskara's Līlāvatī. A lotus stands 11 unit above the water. A breeze bends it over until its tip touches the surface 33 units from where it stood. How deep is the lake?

Let the depth be xx, so the stem is x+1x + 1. The upright stem, the tilted stem and the 33-unit stretch along the surface form a right triangle: x2+9=(x+1)2=x2+2x+1x^2 + 9 = (x + 1)^2 = x^2 + 2x + 1, so 2x=82x = 8 and x=4x = 4 units.

Cross-section of the lake: the upright lotus stem of depth x rises 1 unit above the water; tilted, the stem of length x + 1 reaches the surface 3 units away, forming a right triangle; x = 4.
The lotus problem: upright stem, tilted stem and the 3-unit run form a right triangle.

Practice

  1. Find the hypotenuse for legs (a) 5,125, 12; (b) 20,2120, 21; (c) 1.2,3.51.2, 3.5; (d) 8,118, 11 (to two decimals).
  2. Find the missing leg: (a) c=25c = 25, a=7a = 7; (b) c=37c = 37, a=35a = 35; (c) c=13c = 13, a=6a = 6 (to two decimals).
  3. Find the diagonal of a rectangle 16×3016 \times 30 and of a square of side 99.
  4. A rhombus has diagonals 3232 and 126126. Find its side.
  5. Describe how to construct a square of area five times that of a given square.
  6. Which of these are Baudhāyana triples? (9,40,41)(9, 40, 41); (10,24,26)(10, 24, 26); (11,60,62)(11, 60, 62); (20,21,29)(20, 21, 29); (14,48,50)(14, 48, 50). Which of those are primitive?
  7. Generate the triple from the odd square 169169, and from 225225.
  8. Give four rectangles with integer sides and integer diagonals, no two similar.
  9. A ladder 6.56.5 m long leans against a wall with its foot 2.52.5 m from the wall. How high does it reach?
  10. A lotus stands 22 units above the water and, tilted, touches the surface 66 units away. Depth of the lake?
  11. An equilateral triangle has side 88. Find its height and area.
  12. On a dot grid, can you draw a square of area 22? 55? 33? Explain.

Answers

Show answers
  1. (a) 1313. (b) 2929. (c) 1.44+12.25=3.7\sqrt{1.44 + 12.25} = 3.7. (d) 185≈13.60\sqrt{185} \approx 13.60.
  2. (a) 2424. (b) 1212. (c) 133≈11.53\sqrt{133} \approx 11.53.
  3. 3434; 92≈12.739\sqrt{2} \approx 12.73.
  4. Half-diagonals 1616 and 6363: side 256+3969=65\sqrt{256 + 3969} = 65.
  5. Double it (side s2s\sqrt{2}), then a right triangle with legs s2s\sqrt{2} and ss gives s3s\sqrt{3}; then legs s3s\sqrt{3} and ss give 2s2s; then legs 2s2s and ss give s5s\sqrt{5}. Or directly: legs 2s2s and ss.
  6. (9,40,41)(9, 40, 41) ✓ primitive; (10,24,26)(10, 24, 26) ✓ not primitive (2×(5,12,13)2 \times (5, 12, 13)); (11,60,62)(11, 60, 62) ✗ (121+3600=3721=612121 + 3600 = 3721 = 61^2, so (11,60,61)(11, 60, 61) would be right); (20,21,29)(20, 21, 29) ✓ primitive; (14,48,50)(14, 48, 50) ✓ not primitive.
  7. 169=2×85−1169 = 2 \times 85 - 1: 842+132=85284^2 + 13^2 = 85^2. 225=2×113−1225 = 2 \times 113 - 1: 1122+152=1132112^2 + 15^2 = 113^2.
  8. 3×43 \times 4 (diagonal 55), 5×125 \times 12 (1313), 8×158 \times 15 (1717), 7×247 \times 24 (2525).
  9. 42.25−6.25=6\sqrt{42.25 - 6.25} = 6 m.
  10. x2+36=(x+2)2x^2 + 36 = (x + 2)^2, 36=4x+436 = 4x + 4, x=8x = 8.
  11. The altitude bisects the base: height 64−16=48=43≈6.93\sqrt{64 - 16} = \sqrt{48} = 4\sqrt{3} \approx 6.93; area 12×8×43=163≈27.7\displaystyle \dfrac{1}{2} \times 8 \times 4\sqrt{3} = 16\sqrt{3} \approx 27.7.
  12. Area 22: a tilted square with side joining (0,0)(0,0) to (1,1)(1,1). Area 55: side from (0,0)(0,0) to (2,1)(2,1). Area 33 would need a side of length 3\sqrt{3} between grid points, i.e. integers with p2+q2=3p^2 + q^2 = 3: none. Possible areas are the numbers of the form p2+q2p^2 + q^2: 1,2,4,5,8,9,10,13,…1, 2, 4, 5, 8, 9, 10, 13, \ldots