In geometry, a hypotenuse is the side of a right triangle opposite to the right angle. It is the longest side of any such triangle; the two other shorter sides of such a triangle are called catheti or legs. Every rectangle can be divided into a pair of right triangles by cutting it along either diagonal; the diagonals are the hypotenuses of these triangles.
The length of the hypotenuse can be found using the Pythagorean theorem, which states that the square of the length of the hypotenuse equals the sum of the squares of the lengths of the two legs. Mathematically, this can be written as , where a is the length of one leg, b is the length of another leg, and c is the length of the hypotenuse.
For example, if one of the legs of a right angle has a length of 3 and the other has a length of 4, then their squares add up to 25 = 9 + 16 = 3 × 3 + 4 × 4. Since 25 is the square of the hypotenuse, the length of the hypotenuse is the square root of 25, that is, 5. In other words, if and , then .
As a consequence of the Pythagorean theorem, the hypotenuse is the longest side of any right triangle; that is, the hypotenuse is longer than either of the triangle's legs. For example, given the length of the legs a = 5 and b = 12, then the sum of the legs squared is (5 × 5) + (12 × 12) = 169, the square of the hypotenuse. The length of the hypotenuse is thus the square root of 169, denoted , which equals 13.
The Pythagorean theorem, and hence this length, can also be derived from the law of cosines in trigonometry. In a right triangle, the cosine of an angle is the ratio of the leg adjacent of the angle and the hypotenuse. For a right angle γ (gamma), where the adjacent leg equals 0, the cosine of γ also equals 0. The law of cosines formulates that holds for some angle θ (theta). By observing that the angle opposite the hypotenuse is right and noting that its cosine is 0, so in this case θ = γ = 90°:
Many computer languages support the ISO C standard function hypot( x, y), which returns the value above. The function is designed not to fail where the straightforward calculation might overflow or underflow and can be slightly more accurate and sometimes significantly slower.
Some languages have extended the definition to higher dimensions. For example, C++17 supports ; this gives the length of the diagonal of a rectangular cuboid with edges x, y, and z. Python 3.8 extended to handle an arbitrary number of arguments.
Some scientific calculators provide a function to convert from rectangular coordinates to polar coordinates. This gives both the length of the hypotenuse and the angle the hypotenuse makes with the base line ( c1 above) at the same time when given x and y. The angle returned is normally given by atan2( y, x).
Given the length of the hypotenuse and of a cathetus , the ratio is:
The trigonometric inverse function is:
The adjacent angle of the catheti is = 90° –
One may also obtain the value of the angle by the equation:
in which is the other cathetus.
|
|