Swastik Maths

Class 8 · Ganita Prakash Part 2 · Chapter 2

The Baudhāyana-Pythagoras Theorem

The chapter starts with a simple question: how do you make a square with exactly twice the area of another square? By the end it has become one of the most useful results in all of maths. Here is every section, in the book's own order, with the reasoning behind each rule and the mistakes I see most often.

916259 + 16 = 25

2.1

Doubling a Square

Say you have a square and you want a new square with exactly twice its area. The first guess almost everyone makes is to double the side. That guess is wrong.

The new square's side is the diagonal of the old square.

Why it works

First, why doubling the side fails. Draw a square of side 2 cm on squared paper. It covers 2 × 2 = 4 small squares. Now draw a square of side 4 cm. It covers 4 × 4 = 16, which is four times as many, not twice.

A square grows in two directions at once. Doubling the side gives twice as many rows, and each row also holds twice as many squares, so the area is multiplied by 2 × 2 = 4. Tripling the side multiplies the area by 3 × 3 = 9.

So doubling the area needs a different idea. Take two identical paper squares and cut each one along a diagonal. You now have four identical triangles. Put them together so that their right-angled corners meet at one point and their long edges face outwards. The four triangles form one new square. It is made of exactly two old squares, so its area is double, and its sides are the long edges of the triangles: the diagonals of the old squares.

side sside stwo squaresdiagonalone square, twice the area
Area of the large square = 2 × area of the small square.

An everyday picture

Think about floor tiles. If a room is twice as long and twice as wide, you need four times as many tiles, not twice as many. Area keeps track of both directions.

Worked example

A square tile has side 5 cm. (a) What is the area of a tile with side 10 cm? (b) What side would give exactly double the area of the 5 cm tile?

WorkingReason
15 × 5 = 25 cm²Area of a square is side × side
210 × 10 = 100 cm²The same rule
3100 ÷ 25 = 4Doubling the side multiplies the area by 2 × 2
42 × 25 = 50 cm²The double area that part (b) asks for
5side × side = 50Area is side × side
67 × 7 = 49, so side ≈ 7.07 cm49 is just below 50, so the side is a little more than 7

Answer: (a) 100 cm², four times as much. (b) About 7.07 cm, which is the length of the 5 cm tile's diagonal.

Check: 7.07 × 7.07 = 49.98, very close to 50.

Mistakes I see most often

What students writeSide 4 has area 16, so side 8 has area 32.

Doubling the side doubles both the length and the width, so the area is multiplied by 4, not by 2.

CorrectSide 8 has area 8 × 8 = 64, which is 4 × 16.
Fact

The same thing happens in three dimensions, only more strongly. A cube with double the edge length has 2 × 2 × 2 = 8 times the volume.

2.2

Halving a Square

Now the reverse: make a square with exactly half the area.

Mark the midpoint of each side and join the four midpoints in order. The tilted square inside has exactly half the area.

Why it works

Take a 4 × 4 square on squared paper, which is 16 small squares. The midpoints are 2 units along each side. Joining them cuts off four corner triangles. Each corner triangle is half of a 2 × 2 block, so it covers 2 small squares, and the four corners together cover 8. That leaves 16 − 8 = 8 for the inner square, which is exactly half.

Paper makes this visible. Fold each corner of a square sheet inwards along the line joining two midpoints. The four tips meet at the centre, and the four flaps cover the inner square exactly, with no gap and no overlap. So the flaps and the inner square have equal areas, and each is half the sheet.

Look at the inner square's side: it is the diagonal of a corner block. This is the doubling construction from 2.1 seen from the other end. The big sheet is the "doubled" square of the inner one.

4 cm4 cmcorners: halfOfolded in: tips meet at O
A square of side 8 cm: the four corner triangles together equal the inner square.

An everyday picture

This is the fold you make when you turn a square sheet into an envelope: all four corners come to the middle. The folded envelope is exactly half the size of the sheet.

Worked example

A square has side 8 cm. Find the area of the square formed by joining the midpoints of its sides, and estimate its side.

WorkingReason
18 × 8 = 64 cm²Area of the large square
2½ × 4 × 4 = 8 cm²Each corner triangle is half of a 4 × 4 block
34 × 8 = 32 cm²Four equal corner triangles
464 − 32 = 32 cm²Whole square minus the corners
55.6² = 31.36, 5.7² = 32.49Square numbers on either side of the answer

Answer: 32 cm². The side lies between 5.6 cm and 5.7 cm.

Check: 32 is half of 64, as the folding argument says it must be.

Fact

Fold an A4 sheet in half and you get an A5 sheet with exactly the same shape. This works because the long side of A-series paper is about √2 times the short side, the number you meet in the next section.

2.3

Hypotenuse of an Isosceles Right Triangle

Cut a square of side 1 unit along its diagonal. You get two right triangles, each with two equal sides of length 1. How long is the third side, the hypotenuse?

From 2.1, four of these triangles make a square of area 2. So the hypotenuse is the side of a square of area 2: the number which, multiplied by itself, gives 2. We write it √2.

11√21.31.41.51.6√2 = 1.4142…trapped between 1.414 and 1.415
The diagonal of a unit square is √2, and squaring decimals traps it more and more tightly.

Decimal representation of √2

We can trap √2 by squaring numbers on either side of it.

Try, and squareSo √2 lies
11.4² = 1.96, 1.5² = 2.25between 1.4 and 1.5
21.41² = 1.9881, 1.42² = 2.0164between 1.41 and 1.42
31.414² = 1.999396, 1.415² = 2.002225between 1.414 and 1.415
41.4142² = 1.99996164, 1.4143² = 2.00024449between 1.4142 and 1.4143

Each round gives one more correct digit: √2 = 1.4142… My students always ask when this stops. It never does.

Why it never ends. Suppose a decimal stops, say at 1.414. Its square has twice as many decimal places, and its last digit comes from 4 × 4 = 16, so it ends in 6. Look at the squares of the digits 1 to 9: they end in 1, 4, 9, 6, 5, 6, 9, 4, 1. None of them ends in 0. So the square of a decimal that stops always has a non-zero digit after the decimal point, and it can never equal exactly 2.

Going further

Why it never repeats either. Every repeating decimal can be written as a fraction (for example 0.333… = 1/3 and 0.1818… = 2/11). So suppose √2 = p/q for whole numbers p and q. Then p × p = 2 × q × q. Count the factors of 2 in the prime factorisation of each side. p × p has twice as many 2s as p does, so it has an even number of them. 2 × q × q has an even number of 2s plus one more, so it has an odd number. A number has only one prime factorisation, so it cannot have both. No such fraction exists.

General solution

If the equal sides are a instead of 1, the four triangles make a square of area 2 × a × a. The number a × √2 fits, because (a√2) × (a√2) = a × a × 2.

hypotenuse = a√2

An everyday picture

Picture a square courtyard of side 20 m. Walking along two sides takes 40 m. Cutting across the diagonal takes 20 × √2, about 28.28 m. The diagonal is always about 1.41 sides long, never 2.

Worked example

Find the diagonal of a square of side 5 cm, exactly and to two decimal places.

WorkingReason
1two isosceles right triangles, equal sides 5 cmA diagonal cuts a square into two equal halves
25 × √2 = 5√2 cmEqual sides a give a hypotenuse of a√2
35 × 1.41421 = 7.07105… ≈ 7.07 cm√2 ≈ 1.41421

Answer: 5√2 cm, about 7.07 cm.

Check: this matches 2.1, where the side of a square of area 50 came to about 7.07 cm. That is no accident: 5√2 × 5√2 = 50.

Mistakes I see most often

What students write√2 = 1.41

1.41 × 1.41 = 1.9881, not 2. 1.41 is an approximation, not the exact value.

Correct√2 ≈ 1.41  (keep √2 in an exact answer)
Fact

The Śulba-sūtras give the diagonal of a square as the side increased by a third, plus a quarter of that third, less a thirty-fourth part of that quarter. As a fraction this is 577/408. Since 577 × 577 = 3,32,929 and 2 × 408 × 408 = 3,32,928, its square misses 2 by only 1/1,66,464.

2.4

Combining Two Different Squares

Now take two squares of different sizes and make one square whose area equals the two together.

Place a side of each square at a right angle to the other, and join their far ends. That joining line is the side of the new square.

Why it works

Start with sides 3 and 4, which you can check by hand. Draw a 7 × 7 square, area 49. Going round it in one direction, mark each side into 3 and then 4, and join the four marks. You get a tilted square in the middle and four right triangles in the corners, each with shorter sides 3 and 4. Each triangle has area ½ × 3 × 4 = 6, so the four together make 24. The tilted square has area 49 − 24 = 25. That is exactly 9 + 16, the two smaller squares together, and its side, the hypotenuse of a 3–4 triangle, is 5.

Now the reason it works for every right triangle and not just this one. Rearrange the same four triangles inside the same big square as two rectangles, each a by b. The space left over is exactly a square of side a and a square of side b. The big square and the four triangles are the same in both pictures, so what is left over must be equal too: the tilted square equals the two smaller squares together.

c²3449 − 4 × 6 = 25a²b²9 + 16 = 25
Same big square, same four triangles, so c² = 3² + 4².

Combining two squares using paper

Put the two squares side by side with their bases on one line, the larger one on the left. Mark a point on the base at a distance equal to the smaller square's side, measured from the left end of the larger square. Cut from this point to the top-left corner of the larger square, and again to the top-right corner of the smaller square. Turn the two cut-off triangles up into the gaps above, and the pieces form one square.

Using Baudhāyana's theorem

Baudhāyana's Śulba-sūtra states the result for a rectangle: in my paraphrase, the rope stretched along the diagonal makes as much area as the length and the breadth make separately. In a right triangle we say:

c² = a² + b²

The square on the hypotenuse equals the sum of the squares on the other two sides. The hypotenuse is the side opposite the right angle, and it is always the longest side. The condition matters: the triangle must have a right angle.

Going further

The reverse is also true. If a² + b² = c², the triangle has a right angle. Build a right triangle with shorter sides a and b; by the theorem its hypotenuse is c. That triangle and ours have the same three sides, so they are the same shape (SSS), and ours has a right angle too.

An everyday picture

Imagine swapping two square plots of land for one square plot with the same total area. The theorem tells you exactly how long each side of the new plot must be.

Worked example

A right triangle has shorter sides 5 cm and 12 cm. Find the hypotenuse.

WorkingReason
1c² = a² + b²The triangle has a right angle, so the theorem applies
2c² = 5² + 12² = 25 + 144Substitute the two shorter sides
3c² = 169Add the areas
4c = √169 = 13 cm13 × 13 = 169; the side is the square root of the area

Answer: 13 cm.

Check: 13 is longer than 12, as a hypotenuse must be, and shorter than 5 + 12 = 17, as any side of a triangle must be.

Mistakes I see most often

What students write3 + 4 = 7, so the hypotenuse is 7.

The theorem adds the squares (the areas), not the lengths. And a straight path is always shorter than going round two sides, so the hypotenuse must be less than 7.

Correctc² = 9 + 16 = 25, so c = 5
What students writec² = 25, so c = 25.

25 is the area of the square on the hypotenuse, not its side. A hypotenuse of 25 would be far longer than 3 + 4.

Correctc = √25 = 5
What students write√(9 + 16) = √9 + √16 = 3 + 4 = 7

A square root cannot be split across a plus sign. Test it with √(1 + 1): that is √2 ≈ 1.41, but √1 + √1 = 2.

CorrectAdd first, then take the root: √(9 + 16) = √25 = 5
What students writeSides 5 cm and 7 cm with a 60° angle between them, so third side = √(25 + 49) = √74

This triangle has no right angle, so the theorem does not apply to it.

CorrectCheck for a right angle first. This triangle needs other methods, which come later.
Fact

Builders and carpenters still check right angles with 3–4–5. They mark 3 units along one edge and 4 along the other. If the two marks are exactly 5 units apart, the corner is square.

2.5

Right-Triangles Having Integer Sidelengths

Most right triangles with whole-number shorter sides have a hypotenuse that is not a whole number: sides 1 and 1 give √2, and sides 1 and 2 give √5.

Three whole numbers with a² + b² = c² are called a Pythagorean triple. 3, 4, 5 is the smallest. Others include 5, 12, 13; 8, 15, 17; 7, 24, 25; and 20, 21, 29.

Two ways to find triples

Multiples. From 2.1, multiplying every length by k multiplies every area by k × k. So 3, 4, 5 gives 6, 8, 10 and 9, 12, 15, and so on: (3k)² + (4k)² = 9k² + 16k² = 25k² = (5k)².

The odd-square method. Arrange 12 × 12 counters in a square. To make it 13 × 13, you add an L-shaped strip of 12 + 13 = 25 counters. So the gap between two consecutive square numbers is the sum of the two numbers. Here 25 is itself a square, 5 × 5, so 5² + 12² = 13².

12 + 13= 25 = 5²12 × 12 = 144 in grey; with the L-strip, 13 × 13 = 169
The L-strip between 12² and 13² holds 25 = 5², so 5, 12, 13 is a triple.

This gives a method. Take any odd number, square it, and split the square into two consecutive numbers: 3² = 9 = 4 + 5, 5² = 25 = 12 + 13, 7² = 49 = 24 + 25, 9² = 81 = 40 + 41. Each split gives a triple. The method finds many triples but not all of them: 8, 15, 17 and 20, 21, 29 do not come from it.

An everyday picture

Chairs in a hall: going from 12 rows of 12 to 13 rows of 13 needs one new chair at the end of each old row (12) and one complete new row (13). That is 25 extra chairs.

Worked example

Find a Pythagorean triple whose smallest number is 13.

WorkingReason
113² = 169Square the odd number
2169 = 84 + 85Split into two consecutive numbers: (169 − 1) ÷ 2 = 84
313, 84, 85The L-strip between 84² and 85² holds 169 = 13²

Answer: 13, 84, 85.

Check: 84² = 7,056 and 7,056 + 169 = 7,225 = 85².

Mistakes I see most often

What students write2, 3, 4 is a Pythagorean triple.

Three numbers in a row are not automatically a triple: 2² + 3² = 4 + 9 = 13, but 4² = 16.

CorrectAlways test a² + b² = c². 3, 4, 5 passes: 9 + 16 = 25.
Fact

An Old Babylonian clay tablet known as Plimpton 322 has columns of numbers that are widely read as connected to Pythagorean triples, which would mean people were studying such triples long before Pythagoras.

2.6

A Long-Standing Open Problem

Squares can be split into two smaller squares in whole numbers: 3² + 4² = 5². Can the same be done one step higher, with cubes?

We want whole numbers with x³ + y³ = z³. Or with fourth powers, x⁴ + y⁴ = z⁴, or any higher power. Try it yourself with the cubes 1, 8, 27, 64, 125, 216, 343, 512, 729, 1000. No two of them add up to another.

Why it is so hard

Searching does not settle the question, because the numbers go on for ever, and some attempts come agonisingly close. 6³ + 8³ = 216 + 512 = 728, just one short of 9³ = 729. A near miss proves nothing either way. What is needed is an argument that covers every whole number at once, and that is exactly what nobody could find.

6³ = 216+8³ = 512≠9³ = 729216 + 512 = 728, one short of 729
6³ + 8³ misses 9³ by exactly one.

Around 1637, the French mathematician Pierre de Fermat wrote in the margin of his copy of the Arithmetica, an ancient Greek book on numbers by Diophantus, that xⁿ + yⁿ = zⁿ has no solution in natural numbers for any n greater than 2. He added that he had a truly marvellous proof, but the margin was too small to contain it. No one ever found his proof. For more than 350 years mathematicians tried, and the statement became known as Fermat's Last Theorem. In 1994 the British mathematician Andrew Wiles completed a proof, using ideas far beyond anything available in Fermat's time.

So the pattern a² + b² = c², which has endless whole-number solutions, stops completely at the very next power.

An everyday picture

Think of building blocks. With flat square tiles you can lay two square floors and rebuild them as one bigger square floor with nothing left over, as 3, 4, 5 does. With solid cube blocks, two cube stacks can never be rebuilt into one bigger cube without a block left over or missing.

Worked example

Show that 3³ + 4³ + 5³ is a cube, and explain why this does not contradict Fermat's Last Theorem.

WorkingReason
127 + 64 + 125 = 216Cube each number and add
2216 = 6 × 6 × 6 = 6³216 is a cube
3three cubes, not twoFermat's statement is about the sum of exactly two powers

Answer: 3³ + 4³ + 5³ = 6³. It uses three cubes, so it says nothing against Fermat's Last Theorem.

Check: 6 × 6 = 36 and 36 × 6 = 216.

Fact

1729 is the smallest number that is the sum of two cubes in two different ways: 1³ + 12³ and 9³ + 10³. It is known as the Hardy–Ramanujan number, after Srinivasa Ramanujan pointed this out to G. H. Hardy. Notice that 9³ + 10³ = 1729 = 12³ + 1, another near miss for Fermat's equation.

2.7

Further Applications of the Baudhāyana-Pythagoras Theorem

Wherever two directions meet at a right angle, there is a hidden right triangle: wall and floor, north and east, the "up" and "across" of a staircase.

Many problems give the hypotenuse and one side and ask for the other. Then the theorem is used the other way round:

a² = c² − b²

c² = a² + b² says the big square is the two smaller squares together. Remove one smaller square from the big one, and what is left is the other. Subtract when the hypotenuse is known. Add only when you are finding the hypotenuse.

A problem in the style of the Līlāvatī

Bhāskarāchārya's Līlāvatī, written in Sanskrit verse in the 12th century, contains word problems where the unknown length hides inside two sides of a right triangle at once. Here is one of my own of the same kind.

1 m extra5 mhh + 1
The tight rope is the hypotenuse; it is 1 m longer than the pole.

A rope hangs from the top of a pole. It is 1 m longer than the pole, so 1 m of it lies on the ground. When the end is pulled tight, it touches the ground 5 m from the foot of the pole. How tall is the pole?

WorkingReason
1(rope)² = (pole)² + 5²The tight rope is the hypotenuse
2(rope)² − (pole)² = 25Take the pole's square from both sides
3(rope)² − (pole)² = pole + ropeRope = pole + 1, and the L-strip from 2.5 between their squares holds pole + rope. This works for any length, not only whole numbers
4pole + rope = 25, rope = pole + 1From steps 2 and 3
5pole = 12 m, rope = 13 mTwo lengths 1 apart that add to 25

Answer: the pole is 12 m tall.

Check: 12² + 5² = 144 + 25 = 169 = 13², and 13 is 1 more than 12.

In three dimensions: the diagonal of a box

Use the theorem twice. For a box with edges a, b and c, the diagonal of the bottom face satisfies d² = a² + b². That face diagonal and the upright edge c meet at a right angle, so the long diagonal D, from a bottom corner to the opposite top corner, satisfies D² = d² + c² = a² + b² + c².

4312513
A 4 × 3 × 12 box: bottom diagonal 5, long diagonal 13.

A box measures 3 cm × 4 cm × 12 cm. Find the bottom-face diagonal and the long diagonal.

WorkingReason
1d² = 3² + 4² = 25, d = 5 cmTheorem on the 3 × 4 bottom face
2D² = 5² + 12² = 169Theorem on the triangle formed by d and the 12 cm edge
3D = 13 cm13 × 13 = 169

Answer: 5 cm and 13 cm.

An everyday picture

A ladder against a wall is a right triangle: the wall, the floor, and the ladder as the hypotenuse. And the longest umbrella that fits flat in a suitcase lies along the suitcase's long diagonal.

Mistakes I see most often

What students writeHypotenuse 13, one side 5, so other side = √(169 + 25)

That would give a "shorter" side longer than the hypotenuse, since √194 is more than 13. When the hypotenuse is known, subtract.

Correct√(169 − 25) = √144 = 12
What students writeSides 6 cm and 10 cm, 10 cm opposite the right angle: third side² = 6² + 10² = 136

10 is the hypotenuse, so it cannot be one of the two squares being added.

CorrectFind the side opposite the right angle first: 10² − 6² = 64, so the third side is 8 cm.
Fact

A box measuring 44 × 117 × 240 has all three face diagonals whole: 125, 244 and 267. Its long diagonal is √73,225, about 270.6, so it just misses having every length whole. Whether any box has all seven lengths whole, a "perfect cuboid", is a question nobody has yet answered.

Before and after this chapter

What you need before this chapter

  • Area of a square and a rectangle; area of a triangle as half of base × height
  • Squares and square roots of whole numbers, and estimating square roots
  • Decimals, and multiplying decimals
  • Prime factorisation
  • Triangles with the same three sides are the same shape (SSS)

Where this leads

  • Distance between two points on a grid or graph
  • Diagonals of rectangles, boxes and other solids
  • Numbers that are not fractions, and how we work with them
  • Trigonometry, which studies right triangles in depth
  • Practical measurement: heights, distances, construction and navigation

Q

Practice questions

Easy to hard. Try all ten before opening the answers.

  1. A square has side 6 cm. Find the area of a square with side 12 cm. How many times larger is it?
  2. A square has area 50 cm². Find the area of the square formed by joining the midpoints of its sides.
  3. A right triangle has shorter sides 9 cm and 12 cm. Find the hypotenuse.
  4. Which of these are right triangles? (a) 10, 24, 26  (b) 6, 7, 9  (c) 12, 16, 20
  5. Between which two numbers with one decimal place does the side of a square of area 30 cm² lie?
  6. An isosceles right triangle has equal sides of 7 cm. Give the hypotenuse exactly and to two decimal places.
  7. A 17 m wire runs from the top of a 15 m pole to the ground. How far from the foot of the pole is it fixed?
  8. Use the odd-square method to find a Pythagorean triple whose smallest number is 15.
  9. A box measures 2 cm × 3 cm × 6 cm. Find its long diagonal.
  10. A rope hanging from the top of a pole is 1 m longer than the pole. Pulled tight, its end touches the ground 7 m from the foot of the pole. Find the height of the pole.
Show answers
  1. 144 cm², four times larger
  2. 25 cm²
  3. 15 cm (81 + 144 = 225)
  4. (a) yes, 100 + 576 = 676; (b) no, 36 + 49 = 85, not 81; (c) yes, 144 + 256 = 400
  5. Between 5.4 and 5.5 (5.4² = 29.16 and 5.5² = 30.25)
  6. 7√2 cm, about 9.90 cm
  7. 8 m (289 − 225 = 64)
  8. 15, 112, 113 (225 = 112 + 113)
  9. 7 cm (4 + 9 + 36 = 49)
  10. 24 m (pole + rope = 49, so the pole is 24 m and the rope 25 m)

If a question went wrong, re-read: Q1 → 2.1 · Q2 → 2.2 · Q3, Q4 → 2.4 (Q4 also 2.5) · Q5, Q6 → 2.3 · Q7 → 2.7 · Q8 → 2.5 · Q9 → 2.7 · Q10 → 2.7 and 2.5

∑

One-page summary

The Baudhāyana-Pythagoras Theorem: everything on one page

  1. Multiplying the side of a square by k multiplies its area by k × k. Doubling the side gives four times the area.
  2. Doubling a square: the square on the diagonal of a square has twice its area.
  3. Halving a square: joining the midpoints of the sides gives a square with half the area.
  4. An isosceles right triangle with equal sides 1 has hypotenuse √2. With equal sides a, the hypotenuse is a√2.
  5. √2 = 1.4142… Its decimal never ends and never repeats, and √2 cannot be written as a fraction. 1.41 and 1.414 are approximations, so write "≈".
  6. The theorem: in a right triangle with hypotenuse c (opposite the right angle, always the longest side), c² = a² + b².
  7. The condition: the triangle must have a right angle.
  8. The reverse: if a² + b² = c², the triangle has a right angle opposite c.
  9. Finding a shorter side: a² = c² − b². Subtract when the hypotenuse is known.
  10. Take the square root at the end: c² is an area and c is a length.
  11. √(a² + b²) is not a + b. Add first, then take the root.
  12. A Pythagorean triple is three whole numbers with a² + b² = c², for example 3, 4, 5; 5, 12, 13; 8, 15, 17; 7, 24, 25.
  13. Multiplying every number in a triple by the same whole number gives another triple.
  14. The gap between consecutive squares is the sum of the two numbers: (n + 1)² − n² = n + (n + 1). Splitting the square of an odd number into two consecutive numbers gives a triple.
  15. Fermat's Last Theorem: xⁿ + yⁿ = zⁿ has no solution in natural numbers when n is greater than 2. Fermat stated it around 1637; Andrew Wiles proved it in 1994.
  16. The long diagonal of a box with edges a, b, c satisfies D² = a² + b² + c².

Swastik Sahal has taught maths for 13+ years and takes every class himself, live on Google Meet.

These notes follow the chapter's section headings. All explanations, examples, diagrams and practice questions are original.