Vol. I a living index of named laws · est. mmxxvi no ads · no account
The Law Tomeindex of named laws
Often confused

The Cauchy-Schwarz Inequality vs The Triangle Inequality

These two are routinely mistaken for each other. Here is what separates them, and what each actually claims, field by field.

The Cauchy-Schwarz Inequality compared with The Triangle Inequality
AttributeThe Cauchy-Schwarz InequalityThe Triangle Inequality
FieldMathematics & proofMathematics & proof
ReliabilityEmpiricalEmpirical
Coined1821—
Named after——
TypeEstablishedEstablished

What they have in common

Side by side

What it claims

The Cauchy-Schwarz InequalityThe inner product of two vectors can never exceed the product of their lengths.
The Triangle InequalityThe length of any side of a triangle is at most the sum of the lengths of the other two sides.

In plain English

The Cauchy-Schwarz InequalityThe Cauchy-Schwarz inequality states that for any two vectors, the absolute value of their inner product is at most the product of their lengths, or norms. In coordinates, the square of a sum of products of paired numbers is at most the product of the two sums of squares. Equality holds exactly when the two vectors are linearly dependent, pointing along the same line. It is one of the most important and widely used inequalities in all of mathematics, holding in any inner-product space, real or complex, finite or infinite dimensional. Its power lies in bounding an interaction, the inner product, by the separate sizes of the things interacting, a constraint that turns up everywhere from geometry and analysis to statistics and quantum mechanics.
The Triangle InequalityFor a triangle with sides a, b, and c, each side is bounded by the sum of the other two. Abstractly, in a normed space the norm of u + v is at most the norm of u plus the norm of v, and in a metric space the distance from A to C is at most the distance from A to B plus that from B to C. It formalizes that a direct path is never longer than a detour.

How it works

The Cauchy-Schwarz InequalityThe inequality follows from a simple positivity argument. Consider the vector formed by subtracting a variable multiple of one vector from the other; its length squared is never negative, so as a quadratic in that multiple it can have at most one real root, which forces its discriminant to be non-positive. Working out that discriminant condition yields exactly the Cauchy-Schwarz inequality, with equality when the length is zero, meaning the vectors are parallel. Geometrically the inequality is what makes the definition of angle sensible, since the cosine of the angle between two vectors is their inner product divided by the product of their lengths, a ratio the inequality keeps between minus one and one. Without it, the notion of angle in abstract spaces would not be well defined.
The Triangle InequalityThe straight segment between two points is the shortest path, so going through an intermediate point cannot be shorter. For norms, it follows from the Cauchy-Schwarz inequality by expanding the squared norm of u + v and bounding the cross term. Equality requires the points to be collinear, with the vectors on the same ray.

Why it matters

The Cauchy-Schwarz InequalityThe Cauchy-Schwarz inequality is a cornerstone of analysis, geometry, probability, and physics, so ubiquitous that it is often the first tool reached for when bounding an inner product or a sum of products. It underpins the triangle inequality and hence the very notion of distance in vector spaces, makes the definition of angle coherent, guarantees the correlation coefficient lies in its familiar range, and stands behind the uncertainty relations of quantum mechanics through its role in the Robertson-Schrodinger inequality. Elegant, elementary to prove, and endlessly applicable, it is a model of how a single inequality can organise vast swaths of mathematics.
The Triangle InequalityIt is the axiom that makes "distance" meaningful across geometry, analysis, and topology, and it is essential for defining metric and normed spaces. Countless convergence and continuity proofs rely on chaining it.

Where it breaks down

The Cauchy-Schwarz InequalityThe inequality is exactly that, an inequality, becoming an equality only when the two vectors are linearly dependent, so it is tight only in that parallel case. It presupposes a genuine inner product with its positivity and symmetry properties; in settings lacking a true inner product it need not hold. It bounds the inner product by the norms but says nothing about the sign or the precise value of the inner product, only its magnitude. And while it holds in infinite-dimensional spaces, applying it there requires the relevant inner products and norms to be finite, so its use is bounded by the existence of the quantities it relates.
The Triangle InequalityIt holds for genuine norms and metrics; equality occurs only in the degenerate, collinear case: a zero-area triangle with vectors on the same ray. Distance-like functions that violate it, such as squared Euclidean distance, are not true metrics.

Commonly misread as

The Cauchy-Schwarz InequalityThe inequality gives an upper bound, reached as equality only for parallel vectors, so it is not an identity and not generally tight. The Schwarz here is Hermann Amandus Schwarz, a nineteenth-century German analyst, not the twentieth-century Laurent Schwartz of distribution theory, a common confusion. And it concerns the magnitude of the inner product, not its sign, so it constrains how large the interaction can be without telling you whether the vectors point with or against each other, which is a separate matter of the inner product's sign.
The Triangle InequalityThe strict version (strictly greater) holds only for non-degenerate triangles; the general statement uses "at most" to include the collinear case. It bounds a side by the sum, not the difference, of the other two.

A worked example

The Cauchy-Schwarz InequalityDefining the cosine of the angle as the inner product over the product of lengths only makes sense because Cauchy-Schwarz keeps that ratio within minus one to one.
The Triangle InequalityEuclid's Elements, Book I, Proposition 20, states that in a triangle the sum of any two sides is greater than the remaining one.

Where it came from

The Cauchy-Schwarz InequalityThe finite-sum version was given by Augustin-Louis Cauchy in 1821, the integral version by Viktor Bunyakovsky in 1859, and the general inner-product form by Hermann Amandus Schwarz in 1888, whence the combined name Cauchy-Bunyakovsky-Schwarz.
The Triangle InequalityKnown since antiquity; stated as Proposition 20 of Book I of Euclid's Elements (c. 300 BCE).

Sources

Related comparisons

Questions about this pair

What is the difference between The Cauchy-Schwarz Inequality and The Triangle Inequality?

The Cauchy-Schwarz Inequality says “The inner product of two vectors can never exceed the product of their lengths.”; The Triangle Inequality says “The length of any side of a triangle is at most the sum of the lengths of the other two sides.”. They are near-twins and easy to confuse; the field-by-field comparison above sets out what each actually claims.

Are The Cauchy-Schwarz Inequality and The Triangle Inequality the same thing?

No, though they are routinely mistaken for each other. They are recorded here as near-twins precisely because the confusion is common.

Which one should I apply?

Whichever one's conditions your case meets. This page will not guess which that is. The Cauchy-Schwarz Inequality states where it stops working, and so does The Triangle Inequality; both passages are above, in the entries' own words. Reading the two limits side by side answers this faster than a recommendation from a site that cannot see your situation.