The inner product of two vectors can never exceed the product of their lengths.
Often confused
The Cauchy-Schwarz Inequality vs Jensen's Inequality
These two are routinely mistaken for each other. Here is what separates them, and what each actually claims, field by field.
For a convex function, the function of the average is at most the average of the function.
Johan Jensen1906
Read the full law
| Attribute | The Cauchy-Schwarz Inequality | Jensen's Inequality |
|---|---|---|
| Field | Mathematics & proof | Mathematics & proof |
| Reliability | Empirical | Empirical |
| Coined | 1821 | 1906 |
| Named after | — | Johan Jensen |
| Type | Established | Established |
What they have in common
- Both sit in Mathematics & proof.
- Both are rated Empirical, so they stand on the same kind of evidence.
- The Cauchy-Schwarz Inequality is the older of the two by 85 years.
Side by side
What it claims
The Cauchy-Schwarz Inequality
The inner product of two vectors can never exceed the product of their lengths.
Jensen's Inequality
For a convex function, the function of the average is at most the average of the function.
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.
Jensen's InequalityJensen's inequality relates the value of a convex function at an average to the average of its values. For a convex function, one that bends upward like a parabola, the function evaluated at the mean of some inputs is at most the mean of the function evaluated at each input; in probability, the function of an expectation is at most the expectation of the function. For a concave function, one bending downward like the logarithm, the inequality reverses. Equality holds only when the inputs are all equal or the function is a straight line over the relevant range. Proved by Johan Jensen in 1906, it is a cornerstone inequality of convex analysis, probability, statistics, and information theory, capturing in one line the essential meaning of convexity.
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.
Jensen's InequalityThe inequality is convexity made quantitative. A convex function lies below any chord connecting two points on its graph, and averaging inputs is a way of moving to a point between them, so the function at the averaged input sits below the correspondingly averaged outputs. Extended from two points to many, or to a whole probability distribution, this says the function of the mean is at most the mean of the function. Formally one uses a supporting line, a tangent that lies below a convex curve everywhere; evaluating the average against this line and comparing gives the result. The size of the gap between the two sides, sometimes called the Jensen gap, measures how strongly the function curves and how spread out the inputs are.
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.
Jensen's InequalityJensen's inequality is one of the most useful inequalities in mathematics, the bridge between convexity and averaging that appears throughout probability, statistics, information theory, and economics. It proves the arithmetic-mean-geometric-mean inequality, establishes the non-negativity of relative entropy that grounds information theory, expresses risk aversion through concave utility, and supplies bounds in countless proofs where an expectation of a nonlinear function must be controlled. Because convex and concave functions are everywhere, so is Jensen's inequality, and mastering its direction, convex bends the inequality one way and concave the other, is a basic skill of quantitative reasoning.
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.
Jensen's InequalityThe direction of the inequality depends entirely on whether the function is convex or concave, so applying the wrong direction is the usual error and there is no single universal sign. The function must be convex or concave on an interval containing all the inputs, or the support of the random variable, and the relevant averages or expectations must exist and be finite. Equality is not exceptional to worry about but informative: it holds only when the inputs are all equal or the function is affine, so a strict inequality signals genuine curvature and spread. Outside these conditions the inequality simply does not apply.
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.
Jensen's InequalityThe inequality is not one-directional in the abstract; convex functions give function-of-average at most average-of-function, while concave functions reverse it, so the direction must track the curvature. It is about comparing the function of a mean with the mean of a function, not about bounding a function by a constant. And equality does not require the function to be linear everywhere, only affine over the range of the inputs, or the inputs to be identical, so near-equality reflects little curvature or little spread rather than a failure of the inequality.
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.
Jensen's InequalityApplying Jensen's inequality to the concave logarithm yields the arithmetic-mean-geometric-mean inequality, that the average of positive numbers is at least their geometric mean.
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.
Jensen's InequalityProved by the Danish mathematician Johan Jensen in his 1906 paper on convex functions and inequalities between mean values, building on earlier related work by Otto Holder, and now central to convex analysis, probability, and information theory.
Sources
Related comparisons
Questions about this pair
What is the difference between The Cauchy-Schwarz Inequality and Jensen's Inequality?
The Cauchy-Schwarz Inequality says “The inner product of two vectors can never exceed the product of their lengths.”; Jensen's Inequality says “For a convex function, the function of the average is at most the average of the function.”. 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 Jensen's 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 Jensen's 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.