These inequalities for reduce to the following
:
:
The left-hand side polynomials of these two inequalities have roots that are the tribonacci constant and its reciprocal. Consequently, is limited to the range where is the tribonacci constant.
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
ARC may refer to:
Business
* Aircraft Radio Corporation, a major avionics manufacturer from the 1920s to the '50s
* Airlines Reporting Corporation, an airline-owned company that provides ticket distribution, reporting, and settlement services
* ...
less than the distance between its endpoints. By definition, the arc length of a curve is the least upper bound
In mathematics, the infimum (abbreviated inf; plural infima) of a subset S of a partially ordered set P is a greatest element in P that is less than or equal to each element of S, if such an element exists. Consequently, the term ''greatest low ...
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.[ p. 95.]
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
In mathematics, the Euclidean plane is a Euclidean space of dimension two. That is, a geometric setting in which two real quantities are required to determine the position of each point ( element of the plane), which includes affine notions of ...
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
In mathematics, the Pythagorean theorem or Pythagoras' theorem is a fundamental relation in Euclidean geometry between the three sides of a right triangle. It states that the area of the square whose side is the hypotenuse (the side opposite t ...
we have and according to the figure at the right. Subtracting these yields . This equation allows us to express in terms of the sides of the triangle:
:
For the height of the triangle we have that . By replacing with the formula given above, we have
:
For a real number ''h'' to satisfy this, must be non-negative:
:
:
:
:
:
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
In mathematical writing, the term strict refers to the property of excluding equality and equivalence and often occurs in the context of inequality and monotonic functions. It is often attached to a technical term to indicate that the exclusive ...
, ''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
In geometry, a tetrahedron (plural: tetrahedra or tetrahedrons), also known as a triangular pyramid, is a polyhedron composed of four triangular faces, six straight edges, and four vertex corners. The tetrahedron is the simplest of all the o ...
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 -facet
Facets () are flat faces on geometric shapes. The organization of naturally occurring facets was key to early developments in crystallography, since they reflect the underlying symmetry of the crystal structure. Gemstones commonly have facets cut ...
of an -simplex
In geometry, a simplex (plural: simplexes or simplices) is a generalization of the notion of a triangle or tetrahedron to arbitrary dimensions. The simplex is so-named because it represents the simplest possible polytope in any given dimension. ...
is less than or equal to the sum of the hypervolumes of the other facets.
Much as the triangle inequality generalizes to a polygon inequality, the inequality for a simplex of any dimension generalizes to a polytope
In elementary geometry, a polytope is a geometric object with flat sides (''faces''). Polytopes are the generalization of three-dimensional polyhedra to any number of dimensions. Polytopes may exist in any general number of dimensions as an -d ...
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 , , , and in Euclidean space such that distances
:
and
:.
However, points with such distances cannot exist: the area of the 26–26–26 equilateral triangle is , which is larger than three times , the area of a 26–14–14 isosceles triangle (all by Heron's formula
In geometry, Heron's formula (or Hero's formula) gives the area of a triangle in terms of the three side lengths , , . If s = \tfrac12(a + b + c) is the semiperimeter of the triangle, the area is,
:A = \sqrt.
It is named after first-century ...
), and so the arrangement is forbidden by the tetrahedral inequality.
Normed vector space
In a normed vector space
In mathematics, a normed vector space or normed space is a vector space over the real or complex numbers, on which a norm is defined. A norm is the formalization and the generalization to real vector spaces of the intuitive notion of "length" i ...
, one of the defining properties of the norm
Naturally occurring radioactive materials (NORM) and technologically enhanced naturally occurring radioactive materials (TENORM) consist of materials, usually industrial wastes or by-products enriched with radioactive elements found in the envi ...
is the triangle inequality:
:
that is, the norm of the sum of two vectors is at most as large as the sum of the norms of the two vectors. This is also referred to as subadditivity In mathematics, subadditivity is a property of a function that states, roughly, that evaluating the function for the sum of two elements of the domain always returns something less than or equal to the sum of the function's values at each element. ...
. For any proposed function to behave as a norm, it must satisfy this requirement.[
]
If the normed space is euclidean, or, more generally, strictly convex, then if and
only if the triangle formed by , , and , is degenerate, that is,
and are on the same ray, i.e., or , or
for some . This property characterizes strictly convex normed spaces such as
the spaces with . However, there are normed spaces in which this is
not true. For instance, consider the plane with the norm (the Manhattan distance
A taxicab geometry or a Manhattan geometry is a geometry whose usual distance function or Metric (mathematics), metric of Euclidean geometry is replaced by a new metric in which the distance between two points is the sum of the absolute differences ...
) and
denote and . Then the triangle formed by
, , and , is non-degenerate but
:
Example norms
*''Absolute value as norm for the real line
In elementary mathematics, a number line is a picture of a graduated straight line (geometry), line that serves as visual representation of the real numbers. Every point of a number line is assumed to correspond to a real number, and every real ...
.'' To be a norm, the triangle inequality requires that the absolute value
In mathematics, the absolute value or modulus of a real number x, is the non-negative value without regard to its sign. Namely, , x, =x if is a positive number, and , x, =-x if x is negative (in which case negating x makes -x positive), an ...
satisfy for any real numbers and : which it does.
Proof:
:
:
After adding,
:
Use the fact that
(with ''b'' replaced by ''x''+''y'' and ''a'' by ), we have
:
The triangle inequality is useful in mathematical analysis
Analysis is the branch of mathematics dealing with continuous functions, limit (mathematics), limits, and related theories, such as Derivative, differentiation, Integral, integration, measure (mathematics), measure, infinite sequences, series (m ...
for determining the best upper estimate on the size of the sum of two numbers, in terms of the sizes of the individual numbers.
There is also a lower estimate, which can be found using the ''reverse triangle inequality'' which states that for any real numbers and :
:
*''Inner product as norm in an inner product space
In mathematics, an inner product space (or, rarely, a Hausdorff pre-Hilbert space) is a real vector space or a complex vector space with an operation called an inner product. The inner product of two vectors in the space is a scalar, often den ...
.'' If the norm arises from an inner product (as is the case for Euclidean spaces), then the triangle inequality follows from the Cauchy–Schwarz inequality
The Cauchy–Schwarz inequality (also called Cauchy–Bunyakovsky–Schwarz inequality) is considered one of the most important and widely used inequalities in mathematics.
The inequality for sums was published by . The corresponding inequality fo ...
as follows: Given vectors and , and denoting the inner product as :
:
The Cauchy–Schwarz inequality turns into an equality if and only if and
are linearly dependent. The inequality
turns into an equality for linearly dependent and
if and only if one of the vectors or is a ''nonnegative'' scalar of the other.
:Taking the square root of the final result gives the triangle inequality.
* -norm: a commonly used norm is the ''p''-norm: where the are the components of vector . For the -norm becomes the ''Euclidean norm'': which is Pythagoras' theorem
In mathematics, the Pythagorean theorem or Pythagoras' theorem is a fundamental relation in Euclidean geometry between the three sides of a right triangle. It states that the area of the square whose side is the hypotenuse (the side opposite ...
in -dimensions, a very special case corresponding to an inner product norm. Except for the case , the -norm is ''not'' an inner product norm, because it does not satisfy the parallelogram law
In mathematics, the simplest form of the parallelogram law (also called the parallelogram identity) belongs to elementary geometry. It states that the sum of the squares of the lengths of the four sides of a parallelogram equals the sum of the s ...
. The triangle inequality for general values of is called Minkowski's inequality
In mathematical analysis, the Minkowski inequality establishes that the L''p'' spaces are normed vector spaces. Let ''S'' be a measure space, let and let ''f'' and ''g'' be elements of L''p''(''S''). Then is in L''p''(''S''), and we have the tr ...
.[ ] It takes the form:
Metric space
In a metric space
In mathematics, a metric space is a set together with a notion of ''distance'' between its elements, usually called points. The distance is measured by a function called a metric or distance function. Metric spaces are the most general settin ...
with metric , the triangle inequality is a requirement upon distance
Distance is a numerical or occasionally qualitative measurement of how far apart objects or points are. In physics or everyday usage, distance may refer to a physical length or an estimation based on other criteria (e.g. "two counties over"). ...
:
:
for all , , in . That is, the distance from to is at most as large as the sum of the distance from to and the distance from to .
The triangle inequality is responsible for most of the interesting structure on a metric space, namely, convergence. This is because the remaining requirements for a metric are rather simplistic in comparison. For example, the fact that any convergent sequence
As the positive integer n becomes larger and larger, the value n\cdot \sin\left(\tfrac1\right) becomes arbitrarily close to 1. We say that "the limit of the sequence n\cdot \sin\left(\tfrac1\right) equals 1."
In mathematics, the limit ...
in a metric space is a Cauchy sequence
In mathematics
Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in m ...
is a direct consequence of the triangle inequality, because if we choose any and such that and , where is given and arbitrary (as in the definition of a limit in a metric space), then by the triangle inequality, , so that the sequence is a Cauchy sequence, by definition.
This version of the triangle inequality reduces to the one stated above in case of normed vector spaces where a metric is induced via , with being the vector pointing from point to .
Reverse triangle inequality
The reverse triangle inequality is an elementary consequence of the triangle inequality that gives lower bounds instead of upper bounds. For plane geometry, the statement is:[
]
:''Any side of a triangle is greater than or equal to the difference between the other two sides''.
In the case of a normed vector space, the statement is:
:
or for metric spaces, .
This implies that the norm as well as the distance function are Lipschitz continuous
In mathematical analysis, Lipschitz continuity, named after German mathematician Rudolf Lipschitz, is a strong form of uniform continuity for functions. Intuitively, a Lipschitz continuous function is limited in how fast it can change: there exis ...
with Lipschitz constant , and therefore are in particular uniformly continuous
In mathematics, a real function f of real numbers is said to be uniformly continuous if there is a positive real number \delta such that function values over any function domain interval of the size \delta are as close to each other as we want. In ...
.
The proof for the reverse triangle uses the regular triangle inequality, and :
:
:
Combining these two statements gives:
:
Triangle inequality for cosine similarity
By applying the cosine function to the triangle inequality and reverse triangle inequality for arc lengths and employing the angle addition and subtraction formulas for cosines, it follows immediately that
and
With these formulas, one needs to compute a square root
In mathematics, a square root of a number is a number such that ; in other words, a number whose ''square'' (the result of multiplying the number by itself, or ⋅ ) is . For example, 4 and −4 are square roots of 16, because .
E ...
for each triple of vectors that is examined rather than for each pair of vectors examined, and could be a performance improvement when the number of triples examined is less than the number of pairs examined.
Reversal in Minkowski space
The Minkowski space
In mathematical physics, Minkowski space (or Minkowski spacetime) () is a combination of three-dimensional Euclidean space and time into a four-dimensional manifold where the spacetime interval between any two events is independent of the inerti ...
metric is not positive-definite, which means that can have either sign or vanish, even if the vector ''x'' is non-zero. Moreover, if ''x'' and ''y'' are both timelike vectors lying in the future light cone, the triangle inequality is reversed:
:
A physical example of this inequality is the twin paradox
In physics, the twin paradox is a thought experiment in special relativity involving identical twins, one of whom makes a journey into space in a high-speed rocket and returns home to find that the twin who remained on Earth has aged more. Thi ...
in special relativity
In physics, the special theory of relativity, or special relativity for short, is a scientific theory regarding the relationship between space and time. In Albert Einstein's original treatment, the theory is based on two postulates:
# The laws o ...
. The same reversed form of the inequality holds if both vectors lie in the past light cone, and if one or both are null vectors. The result holds in ''n'' + 1 dimensions for any ''n'' ≥ 1. If the plane defined by ''x'' and ''y'' is spacelike (and therefore a Euclidean subspace) then the usual triangle inequality holds.
See also
* Subadditivity In mathematics, subadditivity is a property of a function that states, roughly, that evaluating the function for the sum of two elements of the domain always returns something less than or equal to the sum of the function's values at each element. ...
* Minkowski inequality
In mathematical analysis, the Minkowski inequality establishes that the L''p'' spaces are normed vector spaces. Let ''S'' be a measure space, let and let ''f'' and ''g'' be elements of L''p''(''S''). Then is in L''p''(''S''), and we have the t ...
* Ptolemy's inequality
In Euclidean geometry, Ptolemy's inequality relates the six distances determined by four points in the plane or in a higher-dimensional space. It states that, for any four points , , , and , the following inequality holds:
:\overline\cdot \overli ...
Notes
References
* .
* .
External links
{{DEFAULTSORT:Triangle Inequality
Geometric inequalities
Linear algebra
Metric geometry
Articles containing proofs
Theorems in geometry