# The Cauchy-Schwarz Inequality

> The inner product of two vectors can never exceed the product of their lengths.

**Field:** Mathematics & proof · **Reliability:** Empirical · **Coined:** 1821

*Also known as: Cauchy-Bunyakovsky-Schwarz inequality; CBS inequality*

## What it means

The 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.

## How it works

The 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.

## Examples

- **The angle between vectors:** Defining 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 correlation coefficient:** In statistics the inequality is why the correlation coefficient between two variables always lies between minus one and one, a direct application to sums of products.
- **The triangle inequality:** The triangle inequality for vector lengths, that the length of a sum is at most the sum of lengths, follows directly from Cauchy-Schwarz.

## Try it

This entry is interactive: a live calculator.
Open it at https://conyso.com/lawtome/laws/the-cauchy-schwarz-inequality/ — free, runs in the browser, sends nothing anywhere.

```
|<u,v>| <= ||u|| ||v||
```

- `u, v` — The two vectors
- `<u,v>` — Their inner product
- `||u||` — Length of u

## Why it matters

The 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.

## Where it breaks down

The 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.

## Common misreadings

The 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.

## Origin

The 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.

## Related

- [Jensen's Inequality](https://conyso.com/lawtome/laws/jensens-inequality/) — kindred

## Sources

- [Cauchy-Schwarz inequality, Wikipedia. — the inner-product and sums forms, the equality condition, the three names and dates, and the correlation-coefficient and angle applications.](<https://en.wikipedia.org/wiki/Cauchy%E2%80%93Schwarz_inequality>)
- [Schwarz's Inequality, Wolfram MathWorld. — the inequality with the linear-dependence equality condition.](<https://mathworld.wolfram.com/SchwarzsInequality.html>)

---
Source: https://conyso.com/lawtome/laws/the-cauchy-schwarz-inequality/ · The Law Tome — a sourced index of named laws.
