Lably
Skip to content

Triangle inequality

Property of geometry, also used to generalize the notion of "distance" in metric spaces

  • 13 min read
  • 6 chapters
  • 1 lab on Lably

Learn it on Lably

The triangle inequality implies a related statement for Euclidean vectors, also called the triangle inequality; if u and v are vectors (directed magnitudes, usually drawn as arrows), then u, v, and their sum u + v can be pictured as sides that are assembled into a triangle, with each vector's norm as the length of the corresponding side. Therefore ‖u+v‖≤‖u‖+‖v‖.

The triangle inequality also holds in some contexts other than Euclidean space. For example, it holds for triangles on a sphere and in the hyperbolic plane. But it does not hold in some contexts, for example Minkowski spacetime.

The triangle inequality is taken as a defining property of measures of distance in metric spaces. If X, Y, and Z are any three points, only a function d which satisfies the triangle inequality, d(X,Z)≤d(X,Y)+d(Y,Z), is considered to be a proper notion of distance. The analog of the triangle inequality for vectors is also a defining property of the norm in normed vector spaces.

Euclidean geometry

The triangle inequality theorem is stated in Euclid's Elements, Book I, Proposition 20:

[…] in the triangle ABC the sum of any two sides is greater than the remaining one, that is, the sum of BA and AC is greater than BC, the sum of AB and BC is greater than AC, and the sum of BC and CA is greater than AB.

Euclid proved the triangle inequality for distances in plane geometry using the construction in the figure. Beginning with triangle ABC, an isosceles triangle is constructed with one side taken as BC and the other equal leg BD along the extension of side AB. It then is argued that angle β has larger measure than angle α, so side AD is longer than side AC. However: AD¯=AB¯+BD¯=AB¯+BC¯, so the sum of the lengths of sides AB and BC is larger than the length of AC. This proof appears in Euclid's Elements, Book I, Proposition 20.

Mathematical expression of the constraint on the sides of a triangle

For a non-degenerate triangle with side lengths a, b, c, the triangle inequality states that a+b>c,b+c>a,c+a>b. This set of three inequalities can be succinctly summarized as |a−b|<c<a+b. Or, equivalently, as max(a,b,c)<12(a+b+c) where max(a, b, c) is the length of the longest side. That is, the longest side of a triangle is always shorter than the semiperimeter, ⁠s=12(a+b+c)⁠.

Another equivalent statement is that the area of a triangle with sides a, b, c and semiperimeter s must be a real number greater than zero. Heron's formula for the area is area=s(s−a)(s−b)(s−c)4⋅area=(a+b+c)(−a+b+c)(a−b+c)(a+b−c). In terms of either area expression, the triangle inequality imposed on all sides is equivalent to the condition that the expression under the square root sign be real and greater than zero (so that the area expression is real and greater than zero).

The triangle inequality provides two more constraints for triangles with sides labeled in ascending length order a ≤ b ≤ c: 1<c+ab<3,1≤min(cb,ba)<φ, where φ=12(1+5) is the golden ratio. The special case where ⁠cb=ba=φt⁠ is a Kepler triangle, the unique shape of right triangle with side lengths in a geometric progression.

Right triangle

In the case of right triangles, the triangle inequality specializes to the statement that the hypotenuse is greater than either of the two sides and less than their sum.

The second part of this theorem is already established above for any side of any triangle. The first part is established using the lower figure. In the figure, consider the right triangle ADC. An isosceles triangle ABC is constructed with equal sides AB = AC. From the triangle postulate, the angles in the right triangle ADC satisfy: α+γ=π/2. Likewise, in the isosceles triangle ABC, the angles satisfy: 2β+γ=π. Therefore, α=π/2−γ,whileβ=π/2−γ/2, and so, in particular, α<β. That means side AD, which is opposite to angle α, is shorter than side AB, which is opposite to the larger angle β. But AB = AC. Hence: AC¯>AD¯. A similar construction shows AC > DC, establishing the theorem.

An alternative proof (also based upon the triangle postulate) proceeds by considering three positions for point B: (i) as depicted (which is to be proved), or (ii) B coincident with D (which would mean the isosceles triangle had two right angles as base angles plus the vertex angle γ, which would violate the triangle postulate), or lastly, (iii) B interior to the right triangle between points A and D (in which case angle ABC is an exterior angle of a right triangle BDC and therefore larger than π/2, meaning the other base angle of the isosceles triangle also is greater than π/2 and their sum exceeds π in violation of the triangle postulate).

This theorem establishing inequalities is sharpened by Pythagoras' theorem to the equality that the square of the length of the hypotenuse equals the sum of the squares of the other two sides.

Generalization to any polygon

The triangle inequality can be extended by mathematical induction to arbitrary polygonal paths. This gives the generalized polygon inequality, which asserts that the total length of such a path is no less than the length of the straight line between its endpoints. Consequently, the length of any polygon side is always less than the sum of the other polygon side lengths.

Relationship with shortest paths

This generalization can be used to prove that the shortest curve between two points in Euclidean geometry is a straight line.

No polygonal path between two points is shorter than the line between them. This implies that no curve can have an arc length less than the distance between its endpoints. By definition, the arc length of a curve is the least upper bound of the lengths of all polygonal approximations of the curve. The result for polygonal paths shows that the straight line between the endpoints is the shortest of all the polygonal approximations. Because the arc length of the curve is greater than or equal to the length of every polygonal approximation, the curve itself cannot be shorter than the straight line path.

Converse

The converse of the triangle inequality theorem is also true: if three real numbers are such that each is less than the sum of the others, then there exists a triangle with these numbers as its side lengths and with positive area; and if one number equals the sum of the other two, there exists a degenerate triangle (that is, with zero area) with these numbers as its side lengths.

In either case, if the side lengths are a, b, c we can attempt to place a triangle in the Euclidean plane as shown in the diagram. We need to prove that there exists a real number h consistent with the values a, b, and c, in which case this triangle exists.

By the Pythagorean theorem we have b2 = h2 + d2 and a2 = h2 + (c − d)2 according to the figure at the right. Subtracting these yields a2 − b2 = c2 − 2cd. This equation allows us to express d in terms of the sides of the triangle: d=−a2+b2+c22c. For the height of the triangle we have that h2 = b2 − d2. By replacing d with the formula given above, we have

h2=b2−(−a2+b2+c22c)2.

For a real number h to satisfy this, h2 must be non-negative: 0≤b2−(−a2+b2+c22c)20≤(b−−a2+b2+c22c)(b+−a2+b2+c22c)0≤(a2−(b−c)2)((b+c)2−a2)0≤(a+b−c)(a−b+c)(b+c+a)(b+c−a)0≤(a+b−c)(a+c−b)(b+c−a) which holds if the triangle inequality is satisfied for all sides. Therefore, there does exist a real number h consistent with the sides a,b,c, and the triangle exists. If each triangle inequality holds strictly, h>0 and the triangle is non-degenerate (has positive area); but if one of the inequalities holds with equality, so h=0, the triangle is degenerate.

Generalization to higher dimensions

The area of a triangular face of a tetrahedron is less than or equal to the sum of the areas of the other three triangular faces. More generally, in Euclidean space the hypervolume of an (n − 1)-facet of an n-simplex is less than or equal to the sum of the hypervolumes of the other n facets.

Much as the triangle inequality generalizes to a polygon inequality, the inequality for a simplex of any dimension generalizes to a polytope of any dimension: the hypervolume of any facet of a polytope is less than or equal to the sum of the hypervolumes of the remaining facets.

In some cases the tetrahedral inequality is stronger than several applications of the triangle inequality. For example, the triangle inequality appears to allow the possibility of four points A, B, C, and Z in Euclidean space such that distances

AB = BC = CA = 26

and

AZ = BZ = CZ = 14.

However, points with such distances cannot exist: the area of the 26–26–26 equilateral triangle ABC is 1693, which is larger than three times 393, the area of a 26–14–14 isosceles triangle (all by Heron's formula), and so the arrangement is forbidden by the tetrahedral inequality.

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Algebra