In geometry, a hypotenuse is the side of a right triangle opposite the right angle.[1] It is the longest side of any such triangle; the two other shorter sides of such a triangle are called catheti or legs. 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
a2+b2=c2
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
a=3
b=4
c=\sqrt{a2+b2}=5
The word hypotenuse is derived from Greek Greek, Ancient (to 1453);: ἡ τὴν ὀρθὴν γωνίαν <u>ὑποτείνουσα</u> (sc. Greek, Ancient (to 1453);: γραμμή or Greek, Ancient (to 1453);: πλευρά), meaning "[side] subtending the right angle" (Apollodorus),[3] Greek, Ancient (to 1453);: ὑποτείνουσα hupoteinousa being the feminine present active participle of the verb Greek, Ancient (to 1453);: ὑποτείνω hupo-teinō "to stretch below, to subtend", from Greek, Ancient (to 1453);: τείνω teinō "to stretch, extend". The nominalised participle, Greek, Ancient (to 1453);: ἡ ὑποτείνουσα, was used for the hypotenuse of a triangle in the 4th century BCE (attested in Plato, Timaeus 54d). The Greek term was loaned into Late Latin, as hypotēnūsa.[4] [5] The spelling in -e, as hypotenuse, is French in origin (Estienne de La Roche 1520).[6]
In a right triangle, the hypotenuse is the side that is opposite the right angle, while the other two sides are called the catheti or legs.[7] The length of the hypotenuse can be calculated using the square root function implied by the Pythagorean theorem. It states that the sum of the two legs squared equals the hypotenuse squared. In mathematical notation, with the respective legs labelled a and b, and the hypotenuse labelled c, it is written as
a2+b2=c2
c=\sqrt{a2+b2}.
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
\sqrt{169}
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
c2=a2+b2-2ab\cos\theta
c2=a2+b2-2ab\cos\theta=a2+b2\impliesc=\sqrt{a2+b2}.
Many computer languages support the ISO C standard function hypot(x,y), which returns the value above.[8] 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
std::hypot(x,y,z)=\sqrt{x2+y2+z2}
math.hypot
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).
By means of trigonometric ratios, one can obtain the value of two acute angles,
\alpha
\beta
Given the length of the hypotenuse
c
b
b | |
c |
=\sin(\beta)
The trigonometric inverse function is:
\beta =\arcsin\left(
b | |
c |
\right)
\beta
b
The adjacent angle of the catheti
b
\alpha
\beta
One may also obtain the value of the angle
\beta
\beta =\arccos\left(
a | |
c |
\right)
in which
a