Loading…
Loading…
Study Cauchy-Schwarz and triangle inequalities as the two core estimates that control length, angle, and equality cases in inner-product spaces.
The inner product gives formulas for length and angle. The next question is: what restrictions do those formulas obey?
Two answers dominate the subject:
These inequalities explain why Euclidean geometry can be expressed algebraically.
The difficulty appears whenever a norm-square is expanded. For example, contains the signed cross term , whereas a length must be nonnegative and should be controlled without knowing the coordinates of either vector. Cauchy-Schwarz supplies exactly that control. It then turns the algebraic expansion into the triangle inequality, and the equality conditions record whether the two vectors lie on the same ray or on opposite rays. The same estimates also show that small changes in a vector produce small changes in its length and in any fixed inner product.
There is also a structural reason to prove the results in this order. From the inner-product axioms, nonnegativity and homogeneity of the induced length are immediate, but the triangle inequality is not. Only after Cauchy-Schwarz controls the cross term do all norm axioms follow, and only then does become a genuine metric. Thus this section is not merely a collection of useful estimates: it completes the logical passage from an inner product to length, distance, and angle.
Definition
Throughout this note, is a real inner-product space. Thus is real-valued, bilinear, symmetric, and positive definite. The induced norm is
so , with equality exactly when . The standard model is with the dot product, but the proofs below use only the real inner-product axioms and therefore apply to every real inner-product space.
Two vectors are linearly dependent when there are real numbers , not both zero, such that . Under this definition, every pair containing the zero vector is linearly dependent. This convention is essential when the equality cases are stated without separately excluding zero vectors. Complex inner-product spaces require conjugate-linearity and a different discussion of angles; they are not being silently included here.
Theorem
For all vectors ,
Equality holds if and only if and are linearly dependent.
The inequality says an inner product can never be larger in magnitude than the product of the two lengths. For nonzero vectors and , the quotient below lies in , so their angle is well-defined by
Equivalently, . If either vector is zero, the denominator vanishes, so this formula does not define an angle. For nonzero vectors, means they lie on the same ray, means they are orthogonal, and means they lie on opposite rays.
This definition depends only on direction. Multiplying either vector by a positive scalar leaves the quotient unchanged; multiplying exactly one vector by a negative scalar reverses its direction and changes the angle from to . At the two endpoints, the quotient is for positive proportionality and for negative proportionality. The absolute value in Cauchy-Schwarz deliberately treats both endpoints as equality cases, whereas the triangle inequality will distinguish them. A zero vector has no direction to normalize, which is the conceptual reason—besides division by zero—that no angle is assigned to it here.
Proof
First suppose . Both sides of Cauchy-Schwarz are then , so equality is immediate; moreover, a pair containing the zero vector is linearly dependent. Thus both the inequality and the stated equality condition hold in this case.
Now suppose and consider the function
Since a norm-square is always nonnegative, for every real . Expanding gives
Because its leading coefficient is , this is a genuine quadratic polynomial in . It is nonnegative for every real , so its discriminant is nonpositive:
Therefore
In the case , equality in Cauchy-Schwarz occurs exactly when the discriminant is zero, equivalently when has a real root. Such a root means for some real , so is a scalar multiple of . Conversely, if and are linearly dependent, then for some real , and direct substitution gives equality. Together with the case , this proves the equality condition, including all cases in which one or both vectors are zero.
The same calculation explains why the proof is geometrically natural. When , choose
Then
so is the component of along the line spanned by , while is the orthogonal residual. Expanding the orthogonal decomposition gives
Since , the component of along a line cannot be longer than itself; after rearranging, this is Cauchy-Schwarz. Equality occurs exactly when , which says already lies on that line. Thus the discriminant argument, orthogonal projection, and the equality condition are three views of the same fact.
One can also see the exact minimum by completing the square:
The first term vanishes precisely at . Therefore the final constant is the minimum value of , and it must be nonnegative. This produces the same squared inequality as the discriminant argument. More importantly, it shows why a zero discriminant is not merely an algebraic coincidence: it says the minimum distance from to the line spanned by is zero. In that case the orthogonal residual disappears and the vectors are linearly dependent.
A nonnegative quadratic gives Cauchy–Schwarz, whose bound on the cross term then gives the triangle inequality.
Worked example
Let
Then
So
Indeed,
The normalized inner product is , so the angle is approximately radians. Because the normalized value is strictly less than , the vectors are close in direction but are not linearly dependent.
Theorem
For all vectors ,
Equality holds if and only if at least one of and is a nonnegative scalar multiple of the other, including when one vector is zero.
The geometric reading is direct: in Euclidean space, one side of a triangle is never longer than the sum of the other two sides.
Proof
There are two successive equality gaps to track:
Equality in the first gap controls the sign of the inner product; equality in the second controls linear dependence. The zero-vector cases are kept separate, so no normalization is needed there.
Start with
By Cauchy-Schwarz,
Therefore
Taking square roots gives
For equality, both estimates in the chain must be tight. The first requires , so the inner product is nonnegative. The Cauchy-Schwarz bound is tight exactly when and are linearly dependent. If both vectors are nonzero, write ; then forces . If one vector is zero, equality is immediate, and the zero vector is a nonnegative scalar multiple of the other. Conversely, vectors satisfying this nonnegative-multiple condition give equality by direct substitution. Thus nonzero vectors pointing in opposite directions give equality in Cauchy-Schwarz, but not in the triangle inequality.
For nonzero and , the angle definition makes the geometric connection explicit:
Cauchy-Schwarz is the assertion that ; using the upper endpoint gives the triangle bound. Equality at that endpoint requires , not . This is why same-line vectors with opposite directions satisfy equality in Cauchy-Schwarz but fail to satisfy equality in the triangle inequality. The algebraic sign condition and the geometric ray condition are therefore equivalent descriptions.
There is a useful quantitative version of this picture. Normalize nonzero vectors by setting and . Then they are unit vectors and
Because , taking the nonnegative square root gives . Thus a small angle means the two normalized vectors are close in norm, while angle puts them at the maximum possible distance . Similarly, , so the upper triangle bound is attained only at angle zero. These identities translate the equality conditions into exact distances on the unit sphere.
Theorem
For all vectors ,
Equality holds if and only if at least one of and is a nonnegative scalar multiple of the other, with zero-vector cases included.
Apply the triangle inequality to and to . This gives both and , which prove the displayed bound. If, for example, and equality holds, then the triangle estimate for must itself be an equality. Its equality condition puts and on the same nonnegative ray, and hence puts and on that ray as well. The other norm ordering is symmetric. Conversely, the bound is an equality whenever and satisfy the stated nonnegative-multiple condition, including when either is zero.
This version is often easier to use when you want a lower bound instead of an upper bound.
It can also be written in the symmetric form
Thus the norm function is 1-Lipschitz for the distance : changing a vector by at most changes its length by at most . In particular, if approaches in norm, then shows directly that approaches . This analytic consequence is the same reverse triangle inequality, not an additional assumption about coordinates.
Repeated application also gives the finite-sum form
This follows by induction: separate the last summand, apply the two-vector triangle inequality, and then apply the induction hypothesis to the preceding sum. Combining it with norm homogeneity yields
which is the standard way to control the accumulated size of several vector contributions without expanding coordinates.
The equality case has a useful many-vector form. For a positive integer and vectors , expanding both squares gives
Every pairwise gap is nonnegative by Cauchy-Schwarz together with . Thus equality holds exactly when every pairwise gap is zero. For this is immediate. If all vectors are zero, it is also immediate. Otherwise choose a nonzero ; equality with and the two-vector equality case force every nonzero to be a positive scalar multiple of , while zero vectors are allowed. Conversely, vectors on one positive ray make the norm sum additive. Thus equality means one common positive ray, not merely one line.
The same result is the polygonal-path inequality. For points , let . Since
the finite-sum inequality gives
Equality holds exactly when all nonzero steps lie on the same positive ray; zero steps are allowed, and an all-zero path is valid. In geometric terms, the path moves in one direction without backtracking. If , equality therefore forces every step to be zero.
Cauchy-Schwarz provides the corresponding stability estimate for inner products. For a fixed vector ,
If both arguments change, add and subtract and apply Cauchy-Schwarz twice to obtain
These bounds explain, in a coordinate-free way, why norms and inner products are stable under small perturbations.
The equalities are not side remarks. They tell you exactly when the estimate is tight.
Worked example
Let
Then , so is a nonnegative scalar multiple of . Hence
So equality holds.
Worked example
Let
The vectors are linearly dependent because . Consequently, Cauchy-Schwarz is an equality, as the direct calculation confirms:
For the triangle inequality, however,
The inequality is strict because the scalar is negative. This example protects the sign condition: linear dependence alone is enough for equality in Cauchy-Schwarz, but triangle equality requires a nonnegative scalar multiple.
Common mistake
Orthogonality means . Equality in Cauchy-Schwarz means
For nonzero and , equality means the vectors are linearly dependent and cannot also be orthogonal. If either vector is zero, however, the vectors are both orthogonal and linearly dependent, so equality does hold in that degenerate case.
Common mistake
The absolute-value equality allows both positive and negative scalar multiples. In the triangle proof, one also needs ; omitting this step incorrectly admits opposite directions. Separately, the angle formula divides by both norms, so it may be used only when both vectors are nonzero. The inequalities themselves remain valid when a vector is zero, but the angle does not become defined by assigning a convenient value.
Checkpoint
State the inequality directly.
Checkpoint
Assume one is a nonnegative scalar multiple of the other.
Yes. That is exactly the equality case for the triangle inequality.
Checkpoint
Use .
It becomes , which is automatically true.
Checkpoint
Compute both sides numerically.
The left-hand side is
The right-hand side is
So indeed .
Checkpoint
This is the right-angle case.
Also,
So , and the inequality is strict because the vectors are not nonnegative scalar multiples of each other.
Checkpoint
Apply the formula directly.
Cauchy-Schwarz is the fundamental inner-product estimate: . In a real inner-product space it both bounds the component of one vector along another and, for two nonzero vectors, guarantees that the angle lies in . Its equality condition is linear dependence, including all zero-vector cases and both signs of proportionality.
Controlling the cross term in yields the triangle inequality. Equality there is more restrictive: one vector must be a nonnegative scalar multiple of the other. Applying the same inequality to a difference yields the reverse triangle inequality and the stability estimate . The proof chain is therefore inner-product positivity, then Cauchy-Schwarz, then triangle and reverse triangle inequalities; the equality cases distinguish a line from a ray.
Read 9.1 Inner products, norms, and angles first, because these inequalities are built directly from the inner-product and norm formulas.
The coefficient formulas in 9.2 Orthogonal sets and orthonormal bases and the geometry of 9.3 Gram-Schmidt orthogonalization are established from inner-product algebra and orthogonality. The inequalities here provide bounds for those coefficients and residual lengths.