# Trigonometry/The Pythagorean Theorem

In a right triangle
The square of the hypotenuse
is equal to
the sum of the squares of the other two sides.

The Khan Academy has video material relating to this topic which you may find easier to follow:

## The Theorem

A right-angle triangle

In a right triangle (right-angled triangle) the longest side is always furthest away from the right angle. It is called the hypotenuse. The length of the hypotenuse can be calculated from the lengths of the two other sides. In the diagram, c is the hypotenuse and we can calculate it from a and b.

This is a statement of the Pythagorean Theorem or Pythagoras' Theorem - as an equation relating the lengths of the sides a, b and c:[1]

${\displaystyle a^{2}+b^{2}=c^{2}}$

where c represents the length of the hypotenuse, and a and b represent the lengths of the other two sides.

This only works for right triangles!

For the right angle triangle with corners labelled by A,B,C as shown, the following says the same thing:

${\displaystyle {\overline {BC}}^{2}+{\overline {AC}}^{2}={\overline {AB}}^{2}}$

All we've done here is just use a different notation for the sides a, b and c.

### Geometrical Interpretation

The Pythagorean theorem: The sum of the areas of the two squares on the legs (a and b) equals the area of the square on the hypotenuse (c).

We can also show this equation with a diagram, as on the right, where each side of a right angle triangle has a square attached to it. This is the geometrical interpretation of the Pythagorean theorem, looking at the theorem as a theorem about areas. The areas of the smaller squares add up to the area of the larger square.

In terms of areas, the Pythagorean Theorem states:

In any right triangle, the area of the square whose side is the hypotenuse (the side opposite the right angle) is equal to the sum of the areas of the squares whose sides are the two legs (the two sides that meet at a right angle).

The two ways of talking about the Pythagorean theorem amount to exactly the same thing, since the area of a square is just the length of one side squared.

## History of the Theorem

Pythagoras, depicted on a 3rd-century coin

The Pythagorean theorem is named after the Greek mathematician Pythagoras, who by tradition is credited with its discovery and proof,[2][3] although it is often argued that knowledge of the theorem predates him. There is much evidence that Babylonian mathematicians understood the formula.[4]

## Three Worked Examples

In a right triangle
The square of the hypotenuse
is equal to
the sum of the squares of the other two sides.

 Example 1 An often used example for the Pythagorean Theorem is a right triangle in which ${\displaystyle a=3}$ and ${\displaystyle b=4}$ because the numbers come out particularly nicely: ${\displaystyle {\begin{matrix}a^{2}+b^{2}&=&\\3^{2}+4^{2}&=&\\9+16&=&25\end{matrix}}}$ So ${\displaystyle c^{2}=25}$ and ${\displaystyle c={\sqrt {25}}}$ and ${\displaystyle c=5}$
 Example 2 Another often used example is a right triangle in which the two remaining angles are ${\displaystyle 45^{\circ }}$ and both ${\displaystyle a=1}$ and ${\displaystyle b=1}$ . This time the answer doesn't come out as a whole number: ${\displaystyle {\begin{matrix}a^{2}+b^{2}&=&\\1^{2}+1^{2}&=&\\1+1&=&2\end{matrix}}}$ So ${\displaystyle c^{2}=2}$ and ${\displaystyle c={\sqrt {2}}}$ and we can stop here, or else give the answer as a decimal. ${\displaystyle c\approx 1.414}$ The ${\displaystyle \approx }$ symbol means 'approximately'.
Example 3

One more example is a right triangle in which the shorter sides are ${\displaystyle p=11}$ cm and ${\displaystyle q=7}$ cm.

What's this about ${\displaystyle p}$ and ${\displaystyle q}$ ? It really doesn't matter what letter we use to name the lengths of the sides as long as we are consistent. The formula in the blue box still holds. In this case we could call the hypotenuse ${\displaystyle r}$ , and so we have ${\displaystyle p^{2}+q^{2}=r^{2}}$ .

${\displaystyle {\begin{matrix}p^{2}+q^{2}&=&\\11^{2}+7^{2}&=&\\121+49&=&170\end{matrix}}}$

So

${\displaystyle r^{2}=170}$

and

${\displaystyle r={\sqrt {170}}}$ cm

and giving the answer as a decimal.

${\displaystyle r\approx 13.04}$ cm

### Does the answer make sense?

It's worth checking the answer makes some kind of sense. If the short sides are 11 cm and 7 cm is it reasonable that the long side is about 13 cm? Yes, it is. If you'd got an answer of 20 cm (or 170 cm) it would be unreasonable. The two other sides won't stretch that far. Or if the answer were 11 cm or less than you'd know that you hadn't got the length of the hypotenuse, the longest side. We're OK here with this answer of 13.04 cm, which we probably should round down to 13 cm.

## In 3D

Pythagoras' theorem in three dimensions relates the diagonal AD to the three sides.

Pythagoras' theorem can be applied to three dimensions as follows.

Consider the rectangular solid shown in the figure. The length of diagonal BD along the floor of the rectangular solid is found from Pythagoras' theorem as:

${\displaystyle {\overline {BD}}^{2}={\overline {BC}}^{2}+{\overline {CD}}^{2}}$

where these three sides form a right triangle. Using horizontal diagonal BD and the vertical edge AB, the length of diagonal AD then is found by a second application of Pythagoras' theorem as:

${\displaystyle {\overline {AD}}^{2}={\overline {AB}}^{2}+{\overline {BD}}^{2}}$

or, doing it all in one step:

${\displaystyle {\overline {AD}}^{2}={\overline {AB}}^{2}+{\overline {BC}}^{2}+{\overline {CD}}^{2}}$

This result is the three-dimensional expression for the diagonal ${\displaystyle {\overline {AD}}}$ in terms of the three mutually perpendicular sides.

This one-step formula may be viewed as a generalization of Pythagoras' theorem to higher dimensions. However, this result is really just the repeated application of the original Pythagoras' theorem.

## The Pyramid of Khafre

 An Example in 3 Dimensions The Khafre Pyramid; 274 cubits high; base 412 x 412 cubits Lines and labels for working out the length of the sloping edge AC This example is in three dimensions and again we have to use the Pythagorean Theorem twice. The great pyramid of Khafre is 274 cubits high. It has a square base and the square has sides of length 412 cubits. What is the length of the sloping diagonal edge from a corner up to the summit? To answer this question we work in two stages. See the diagram. The line ${\displaystyle {\overline {AO}}}$ is vertical and the line ${\displaystyle {\overline {OB}}}$ is horizontal, so there is a right angle triangle with sides ${\displaystyle {\overline {AO}}}$ and ${\displaystyle {\overline {OB}}}$ . This lets us calculate the length ${\displaystyle {\overline {AB}}}$ . We need to be careful. ${\displaystyle {\overline {AO}}}$ is 274 cubits, but ${\displaystyle {\overline {OB}}}$ is half the length of the side of the square, so ${\displaystyle {\overline {OB}}}$ is ${\displaystyle {\tfrac {412}{2}}=206}$ cubits. What is the length of the hypotenuse ${\displaystyle {\overline {AB}}}$ of the triangle ${\displaystyle \triangle AOB}$? Well, ${\displaystyle {\begin{matrix}{\overline {AO}}^{2}+{\overline {OB}}^{2}&=&\\274^{2}+206^{2}&=&\\75,076+42,436&=&117,512\end{matrix}}}$ So ${\displaystyle {\overline {AB}}^{2}=117,512}$ and ${\displaystyle {\overline {AB}}={\sqrt {117,512}}}$ cubits We've made progress, but we want the length ${\displaystyle {\overline {AC}}}$ , not the length ${\displaystyle {\overline {AB}}}$ . Now we have another right angle triangle, ${\displaystyle \triangle ABC}$ with the right angle at B. We want the length ${\displaystyle {\overline {AC}}}$ . We have just calculated ${\displaystyle {\overline {AB}}}$ and we know, because the base of the pyramid is a square, that ${\displaystyle {\overline {BC}}}$ is once again 206 cubits. This time ${\displaystyle {\overline {AC}}}$ is the hypotenuse (of ${\displaystyle \triangle ABC}$). So ${\displaystyle \displaystyle {\begin{matrix}{\overline {AB}}^{2}+{\overline {BC}}^{2}&=&\\{\sqrt {117,512}}^{2}+206^{2}&=&\\117,512+42,436&=&159,948\end{matrix}}}$ So ${\displaystyle {\overline {AC}}^{2}=159,948}$ and ${\displaystyle {\overline {AC}}={\sqrt {159,948}}}$ cubits ${\displaystyle {\overline {AC}}\approx 400}$ cubits

## Other forms

As pointed out in the introduction, if c denotes the length of the hypotenuse and a and b denote the lengths of the other two sides, Pythagoras' theorem can be expressed as the Pythagorean equation:

${\displaystyle a^{2}+b^{2}=c^{2}}$

or, solved for c:

${\displaystyle c={\sqrt {a^{2}+b^{2}}}}$

That is what we have been doing in all the examples above. We are using the shorter sides to work out what the length of the hypotenuse is.

If the hypotenuse c is known, and the length of one of the legs must be found, the following equations can be used:

${\displaystyle b={\sqrt {c^{2}-a^{2}}}}$

or

${\displaystyle a={\sqrt {c^{2}-b^{2}}}}$

The Pythagorean equation provides a simple relation among the three sides of a right triangle so that if the lengths of any two sides are known, the length of the third side can be found.

## Exercises

 A cubical box is used to ship a printer. If one side is 90 cm, what is the longest distance between any two corners of the box?
 An LCD television screen is measured 26 inches from corner to corner. The screen height is 13 inches. How wide is the screen? (To one-tenth of an inch)
 What is the length of the longest line in this diagram? Pythagoras again and again In this problem you can assume that all the angles that look like right angles are.
 Aliens from the fourth dimension are packing their holographic TV into a box ready for a trip to Earth. The box measures 1.5 Angstroms by 1.5 Angstroms by 1.5 Angstroms by 1.5 Angstroms (it is a 4 dimensional hypercube). What is the length of the longest diagonal?
 If a room is 17 ft long, 14 ft wide, and 10 ft high, what is the length of the diagonal of (a) the floor, (b) an end wall, and (c) a side wall of the room?
 Find the missing side (Pythagorean triples) In each of these examples you are told that All three sides of the triangle are whole numbers. The triangle is a right angle triangle You are given two of the sides. Find the third side. Which side is the hypotenuse? Sides you are told are 4,5, what is the third side? Sides you are told are 5,12, what is the third side? Sides you are told are 6,8, what is the third side? Sides you are told are 40,41, what is the third side?
 Squaring small numbers What is ${\displaystyle (-0.5)^{2}}$ ? Of the numbers between -2 and +2, which ones end up closer to zero when you square them?

## References

1. Judith D. Sally, Paul Sally (2007). "Chapter 3: Pythagorean triples". Roots to research: a vertical development of mathematical problems. American Mathematical Society Bookstore. p. 63. ISBN 0821844032.
2. George Johnston Allman (1889). Greek Geometry from Thales to Euclid (Reprinted by Kessinger Publishing LLC 2005 ed.). Hodges, Figgis, & Co. p. 26. ISBN 143260662X. "The discovery of the law of three squares, commonly called the "theorem of Pythagoras" is attributed to him by – amongst others – Vitruvius, Diogenes Laertius, Proclus, and Plutarch ..."
3. (Heath 1921, Vol I, p. 144)
4. Otto Neugebauer (1969). The exact sciences in antiquity (Republication of 1957 Brown University Press 2nd ed.). Courier Dover Publications. p. 36. ISBN 0486223329. . For a different view, see Dick Teresi (2003). Lost Discoveries: The Ancient Roots of Modern Science. Simon and Schuster. p. 52. ISBN 074324379X. , where the speculation is made that the first column of a tablet 322 in the Plimpton collection supports a Babylonian knowledge of some elements of trigonometry. That notion is pretty much laid to rest by Eleanor Robson (2002). "Words and Pictures: New Light on Plimpton 322". The American Mathematical Monthly (Mathematical Association of America) 109 (2): 105–120. doi:10.2307/2695324.  See also pdf file. The accepted view today is that the Babylonians had no awareness of trigonometric functions. See Abdulrahman A. Abdulaziz (2010). "The Plimpton 322 Tablet and the Babylonian Method of Generating Pythagorean Triples". ArXiv preprint.  §2, page 7.