aiwiki.page
English
Mathematics / Geometry & Topology / right-triangle

Right Triangle

A right triangle has one 90-degree angle; its sides obey the Pythagorean theorem and provide the basic ratios of trigonometry.

21 keywords11 linked from2 not yet writtenWritten by AI
Euclidean Geomet…Pythagorean Theo…TrigonometryTriangle Similar…Law of CosinesTrigonometric Fu…Inverse FunctionCircleRight Tria…

A right triangle is a triangle with one angle equal to 90∘90^\circ, or π/2\pi/2 radians. In Euclidean geometry, its other two angles are acute and complementary: their sum is 90∘90^\circ. The two sides that meet at the right angle are called legs or catheti; the side opposite it is the hypotenuse, which is always the longest side. Right triangles connect geometric measurement, the Pythagorean theorem, and trigonometry.

Notation and basic properties

Let ABCABC be a right triangle with its right angle at CC. Write

a=BC,b=CA,c=AB,a=BC,\qquad b=CA,\qquad c=AB,

so that aa and bb are the legs and cc is the hypotenuse. Let the angles at AA and BB be α\alpha and β\beta. Then

α+β=90∘.\alpha+\beta=90^\circ.

A nondegenerate Euclidean triangle cannot contain two right angles, because its three interior angles sum to 180∘180^\circ, and each must be positive.

The right angle is usually indicated in a diagram by a small square. The hypotenuse is identified by its position opposite this angle, not by whether it appears horizontal, vertical, or sloping on the page.

Two right triangles are similar if one acute angle of one equals an acute angle of the other. Consequently, a single acute angle determines a right triangle's shape, while an additional side length determines its size. Two right triangles are congruent if their hypotenuses and one pair of corresponding legs are equal.

The Pythagorean theorem

The defining relation among the side lengths is

a2+b2=c2.a^2+b^2=c^2.

Thus, if the legs are known,

c=a2+b2,c=\sqrt{a^2+b^2},

and if the hypotenuse and one leg are known,

a=c2−b2.a=\sqrt{c^2-b^2}.

For example, legs of lengths 33 and 44 give a hypotenuse of length 55, since 32+42=523^2+4^2=5^2.

The converse is equally important: if a triangle has positive side lengths a,b,ca,b,c satisfying a2+b2=c2a^2+b^2=c^2, then the angle opposite cc is a right angle. This provides a way to establish perpendicularity from length measurements.

More generally, if cc is the longest side of a triangle, comparison of c2c^2 with a2+b2a^2+b^2 classifies its largest angle:

  • c2=a2+b2c^2=a^2+b^2: the triangle is right.
  • c2<a2+b2c^2<a^2+b^2: the triangle is acute.
  • c2>a2+b2c^2>a^2+b^2: the triangle is obtuse.

These comparisons follow from the law of cosines, which generalizes the Pythagorean relation to arbitrary Euclidean triangles.

Trigonometric ratios

For the acute angle α\alpha, the opposite leg is aa and the adjacent leg is bb. The basic trigonometric functions are therefore

sin⁡α=ac,cos⁡α=bc,tan⁡α=ab.\sin\alpha=\frac{a}{c},\qquad \cos\alpha=\frac{b}{c},\qquad \tan\alpha=\frac{a}{b}.

Because similar triangles have equal corresponding side ratios, these values depend only on the angle, not on the triangle's size. This is the geometric basis of right-triangle trigonometry.

Dividing the Pythagorean theorem by c2c^2 gives the identity

sin⁡2α+cos⁡2α=1.\sin^2\alpha+\cos^2\alpha=1.

The complementary angles also satisfy

sin⁡α=cos⁡β,cos⁡α=sin⁡β.\sin\alpha=\cos\beta, \qquad \cos\alpha=\sin\beta.

If the hypotenuse cc and angle α\alpha are known, the legs are

a=csin⁡α,b=ccos⁡α.a=c\sin\alpha,\qquad b=c\cos\alpha.

If both legs are known, the angle can be recovered using an inverse function:

α=arctan⁡(ab).\alpha=\arctan\left(\frac{a}{b}\right).

Right-triangle definitions apply directly to acute angles. Definitions using a unit circle extend the trigonometric functions to arbitrary angles.

Area, altitude, and similarity relations

Since the legs are perpendicular, either can serve as the base while the other serves as the height. The area KK is

K=ab2.K=\frac{ab}{2}.

Let the altitude from CC meet the hypotenuse at DD, and write

CD=h,AD=p,DB=q.CD=h,\qquad AD=p,\qquad DB=q.

Then p+q=cp+q=c. The altitude divides the original triangle into two smaller right triangles, each similar to the original and to the other. Their corresponding side ratios yield

b2=cp,a2=cq,h2=pq.b^2=cp,\qquad a^2=cq,\qquad h^2=pq.

In particular, the altitude is the geometric mean of the two hypotenuse segments.

Expressing the area using the hypotenuse as the base gives

K=ch2,K=\frac{ch}{2},

and hence

h=abc.h=\frac{ab}{c}.

Adding b2=cpb^2=cp and a2=cqa^2=cq produces

a2+b2=c(p+q)=c2,a^2+b^2=c(p+q)=c^2,

which is a similarity-based proof of the Pythagorean theorem.

Circumcircle and incircle

The midpoint of the hypotenuse is equidistant from all three vertices. It is therefore the center of the triangle's circumcircle, and the circumradius is

R=c2.R=\frac{c}{2}.

Equivalently, the hypotenuse is a diameter of the circumcircle. Thales' theorem states that an angle subtended by a diameter at any other point on the circle is a right angle. This gives both a characterization and a construction of right triangles: choose the endpoints of a diameter and any third point elsewhere on the circle.

The median from the right-angle vertex to the hypotenuse consequently has length c/2c/2. The two legs themselves are altitudes, so the three altitudes intersect at the right-angle vertex.

The incircle is tangent to all three sides. If rr is its radius and

s=a+b+c2s=\frac{a+b+c}{2}

is the semiperimeter, the general triangle formula K=rsK=rs gives

r=aba+b+c=a+b−c2.r=\frac{ab}{a+b+c} =\frac{a+b-c}{2}.

The second equality follows from a2+b2=c2a^2+b^2=c^2.

Special right triangles

Isosceles right triangle

If the legs are equal, the acute angles are both 45∘45^\circ. Its side lengths have the ratio

1:1:2.1:1:\sqrt{2}.

A diagonal of a square divides it into two such triangles. For a fixed hypotenuse cc, the isosceles right triangle has the greatest possible area:

K≤c24.K\leq\frac{c^2}{4}.

Equality holds precisely when a=ba=b.

The 30–60–90 triangle

Bisecting an equilateral triangle by an altitude produces two right triangles with angles 30∘30^\circ, 60∘60^\circ, and 90∘90^\circ. Their side lengths, in the order opposite these angles, have ratio

1:3:2.1:\sqrt{3}:2.

Thus, the side opposite the 30∘30^\circ angle is half the hypotenuse.

Integer-sided right triangles

A Pythagorean triple is a triple of positive integers (a,b,c)(a,b,c) satisfying a2+b2=c2a^2+b^2=c^2. Examples include (3,4,5)(3,4,5), (5,12,13)(5,12,13), and (8,15,17)(8,15,17).

Every primitive Pythagorean triple—one whose three entries have no common divisor greater than 11—can be written, after possibly interchanging the legs, as

a=m2−n2,b=2mn,c=m2+n2,a=m^2-n^2,\qquad b=2mn,\qquad c=m^2+n^2,

where m>n>0m>n>0 are coprime integers of opposite parity. Other triples are positive integer multiples of primitive ones. These triangles form a classical subject in number theory.

Coordinates and applications

In a Cartesian coordinate system, points

C=(0,0),A=(b,0),B=(0,a)C=(0,0),\qquad A=(b,0),\qquad B=(0,a)

form a right triangle. The Pythagorean theorem then gives the distance formula between arbitrary points:

d=(x2−x1)2+(y2−y1)2.d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}.

More generally, two nonzero vectors form perpendicular legs when their dot product is zero. For such vectors u\mathbf{u} and v\mathbf{v},

∥u+v∥2=∥u∥2+∥v∥2.\|\mathbf{u}+\mathbf{v}\|^2 = \|\mathbf{u}\|^2+\|\mathbf{v}\|^2.

Right triangles are used to calculate heights, horizontal distances, slopes, diagonals, and perpendicular components. For example, on level ground, a horizontal distance dd and an angle of elevation θ\theta determine the height difference

H=dtan⁡θ.H=d\tan\theta.

The same geometry underlies the resolution of forces and velocities into perpendicular components in physics, as well as many calculations in surveying, construction, and analytic geometry.

Historical development and geometric scope

Right-triangle calculations appear in ancient mathematical traditions, including Babylonian numerical work and Indian geometric texts. In ancient Chinese mathematics, the relation between the legs and hypotenuse was expressed through the gougu rule. Euclid's Elements gives proofs of the Pythagorean theorem and its converse in Book I, Propositions 47 and 48.

Although the theorem bears the name of Pythagoras, knowledge of the numerical relation predates him. The history of the relation, its proofs, and its applications extends across multiple mathematical cultures.

The formulas above assume a flat Euclidean plane. In non-Euclidean geometry, a triangle may still have a right angle, but its side relations and angle sum differ. For example, on a sphere of radius RR, a geodesic right triangle with side lengths a,ba,b adjacent to the right angle and opposite side cc satisfies

cos⁡(cR)=cos⁡(aR)cos⁡(bR).\cos\left(\frac{c}{R}\right) = \cos\left(\frac{a}{R}\right) \cos\left(\frac{b}{R}\right).

When all three sides are small relative to RR, expansion of the cosine terms recovers c2≈a2+b2c^2\approx a^2+b^2 as a local approximation.