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 . 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 and , and draw a right-angled triangle with legs and . The square on its hypotenuse has area . When , 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 rectangle inside the large square, and take its diagonal.
Why it works
Put the -square and the -square side by side (), making an L-shaped region of area . Inside it, mark the rectangle and its diagonal . This cuts off a right triangle with legs . 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 are equal. And at each corner, the triangle's two acute angles, and , sit on a straight line beside the corner angle, which forces that angle to be . So the figure with sides is a square.

Now count the pieces. The -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:
Try it with paper. Join squares of sides and , and make two straight cuts to get three pieces. They fit back together into a square of side . Draw a right triangle with legs and 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 and and hypotenuse , then .
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 and : , so .

Example 2. With a leg of and a hypotenuse of : , so .
Example 3. With legs and : . With legs and : .
Example 4. How do you triple a square of side ? First double it, which gives side . Then a right triangle with legs and has hypotenuse . Carry on with legs and to get , then , and so on (Verse 1.10).
Notice that the hypotenuse is always the longest side, since is bigger than both and .
Integer triples
Baudhāyana lists sets of whole numbers that make right triangles: , , , , , . Such sets are called Baudhāyana triples (or Pythagorean triples).
Scaling. If is a triple, so is , because . So from we get , , , and so on without end. A triple with no common factor is called primitive. and are primitive, but 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 odd numbers is , so . Whenever the -th odd number, , happens to be a square itself, this gives a triple.
- is the th odd number, so .
- , so .
- , so .
- , so .
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: and 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 has no solution in natural numbers for , 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 unit above the water. A breeze bends it over until its tip touches the surface units from where it stood. How deep is the lake?
Let the depth be , so the stem is . The upright stem, the tilted stem and the -unit stretch along the surface form a right triangle: , so and units.

Practice
- Find the hypotenuse for legs (a) ; (b) ; (c) ; (d) (to two decimals).
- Find the missing leg: (a) , ; (b) , ; (c) , (to two decimals).
- Find the diagonal of a rectangle and of a square of side .
- A rhombus has diagonals and . Find its side.
- Describe how to construct a square of area five times that of a given square.
- Which of these are Baudhāyana triples? ; ; ; ; . Which of those are primitive?
- Generate the triple from the odd square , and from .
- Give four rectangles with integer sides and integer diagonals, no two similar.
- A ladder m long leans against a wall with its foot m from the wall. How high does it reach?
- A lotus stands units above the water and, tilted, touches the surface units away. Depth of the lake?
- An equilateral triangle has side . Find its height and area.
- On a dot grid, can you draw a square of area ? ? ? Explain.
Answers
Show answers
- (a) . (b) . (c) . (d) .
- (a) . (b) . (c) .
- ; .
- Half-diagonals and : side .
- Double it (side ), then a right triangle with legs and gives ; then legs and give ; then legs and give . Or directly: legs and .
- ✓ primitive; ✓ not primitive (); ✗ (, so would be right); ✓ primitive; ✓ not primitive.
- : . : .
- (diagonal ), (), (), ().
- m.
- , , .
- The altitude bisects the base: height ; area .
- Area : a tilted square with side joining to . Area : side from to . Area would need a side of length between grid points, i.e. integers with : none. Possible areas are the numbers of the form :