In mathematics, the triangle inequality states that for any triangle in Euclidean space, the sum of the lengths of any two sides must be greater than or equal to the length of the third side. If a, b, and c are the lengths of the sides of a triangle then: c≤a+b. The same inequality holds when the sides of the triangle are relabeled, so also b≤a+c and a≤b+c. When one side length is equal to the sum of the other two, c=a+b, the triangle is degenerate, with zero area. 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 ‖𝐮+𝐯‖≤‖𝐮‖+‖𝐯‖. 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 one of the defining properties of a distance function in a metric space; 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 appears in Euclid's Elements as Proposition 20 of Book I:
Euclid proved it using the construction shown in the figure. Beginning with triangle ABC, the side AB is extended by the same length as BC to a new point D, forming an isosceles triangle CBD, which has two equal angles BDC and BCD, labeled α. Angle ACD, labeled β, contains angle BCD, so β>α. Therefore side AD must be longer than side AC (by Proposition I.19, that an inequality between two angles of a triangle implies a corresponding inequality between their respective opposite sides). However: AD‾=AB‾+BD‾=AB‾+BC‾, so the sum of the lengths of sides AB and BC is larger than the length of AC.
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 upper bounds for ratios of side lengths; with sides labeled in ascending length order 0 < a ≤ b ≤ c: 1<c+ab<3,1≤min(cb,ba)<φ, where φ=12(1+5) is the golden ratio.
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.
… excerpt ends here. Continue reading the full article.





