Chapter 6: Inner product spaces
6.2Cauchy–Schwarz and the triangle inequality
In Section 6.1.1 we found that the dot product on records angles,
This defines an angle only if the right side lies in . In that is a property of the cosine, but for functions or matrices it is a claim about the inner product, and it needs a proof. The claim is the Cauchy–Schwarz inequality. It also gives the triangle inequality, which is what makes behave like a distance, and applied to the inner products of Section 6.1.3 it produces inequalities between sums and between integrals that have no visible connection to geometry.
Throughout, is an inner product space over , where is or (Notation 6.1.1).
6.2.1The Cauchy–Schwarz inequality
Intuition (The shadow is shorter than the vector). Take with , and drop a perpendicular from the tip of to the line through (Figure 6.2.1). Its foot is a multiple , the shadow of on the line, and the rest of , namely , is perpendicular to . By (6.1.1), the shadow has length
The vectors , , and form a right triangle with hypotenuse , and a leg is never longer than the hypotenuse. So
Multiplying by gives , with equality exactly when the other leg is , that is, when lies on the line through .
In this is just . But the argument never used cosines. It used the decomposition and Pythagoras, and both make sense in every inner product space. All we need is the right . The requirement that be perpendicular to is , which by linearity in the first slot reads . So
Theorem 6.2.1 (Cauchy–Schwarz inequality). Let be an inner product space and .
- (a)
. - (b)Equality holds in (a) if and only if one of is a scalar multiple of the other.
Both sides of (a) are nonnegative, so (a) is equivalent to its square,
for all complex numbers
Remark 6.2.2. In (b), “one of ” cannot be shortened to “”: if and , both sides of (a) are , but is not a multiple of . The condition in (b) says exactly that the list is linearly dependent (Definition 1.5.1). Indeed, gives the nontrivial relation , and gives . Conversely, suppose with not both . If , then . If , then and , so by Proposition 1.2.35.
Over the scalar may be complex. For ,
One direction of (b) is a direct computation, which we record first.
Uses. Proposition 6.1.27 (Basic properties of the norm), Proposition 6.1.4 (Sesquilinearity), Definition 6.1.26 (Norm)
If , then by linearity in the first slot and Proposition 6.1.27,
If , then by Proposition 6.1.4 and Proposition 6.1.27,
So the content of the theorem is (a), together with the converse of Lemma 6.2.3: equality forces one vector to be a multiple of the other. We give three proofs. Each one finds a squared norm that is nonnegative for an obvious reason, expands it, and reads off (a). Each one gets the equality case by asking when that squared norm is .
First proof: the shadow
The first proof is the picture of Figure 6.2.1, carried out in . The move it makes is used again and again in this chapter, so we name it.
Technique 6.2.4 (Orthogonal decomposition). To compare a vector with a nonzero vector , split into a part along and a part perpendicular to :
This choice of is exactly the one that makes . Then the cross term in Proposition 6.1.29 vanishes, and
Reach for it when a statement compares with one fixed direction, or asks how close comes to the line through . The canonical example is the first proof of Theorem 6.2.1. In Section 6.4 the line is replaced by an arbitrary subspace, the part along becomes the orthogonal projection, and the same computation solves best-approximation problems (Theorem 6.4.33) and least squares (Section 6.5).
Used in 14 places and 1 practice exercise
Theorem 6.2.1, Exercise 6.2.10, Exercise 6.2.27, Exercise 6.2.45, Theorem 6.3.24, Theorem 6.4.33, Exercise 6.4.57, Exercise 6.4.62, Proposition 6.5.27, Theorem 6.6.3, Exercise 6.7.12, Problem 6.1, Problem 6.13, Proposition 8.4.21; 1 practice exercise.
Proof of Theorem 6.2.1 (by orthogonal decomposition).
Uses. Proposition 6.1.29 (Expanding a norm), Proposition 6.1.27 (Basic properties of the norm), Proposition 6.1.4 (Sesquilinearity), Lemma 6.2.3 (The easy half of (b))
Techniques. Orthogonal decomposition (Technique 6.2.4)
If , then by Proposition 6.1.4 and , so both sides of (a) are . Equality holds, and is a multiple of , so (b) holds as well.
Suppose , so that by Proposition 6.1.27. Let
By linearity in the first slot,
Since , it follows that
For (b), (6.2.1) shows that equality holds in (a) if and only if , that is (by Proposition 6.1.27), if and only if . So if equality holds, then is a multiple of . The converse is Lemma 6.2.3. □
Remark 6.2.5 (The size of the gap). Multiplying (6.2.1) by gives, for ,
So the first proof yields more than an inequality: it computes the gap, and the gap measures how far is from the line through . In with the dot product, is the base and the height of the parallelogram spanned by and , so the right side is the square of its area. A direct expansion shows that the left side is , and Exercise 6.2.43 extends this to .
Second proof: a quadratic in
The second proof needs no picture and no clever choice. It needs one fact about real quadratics.
Lemma 6.2.6 (Nonnegative quadratics). Let with , and let
- (a) for all if and only if .
- (b)If , then has a real root if and only if , and in that case its only root is .
Uses. completing the square
Techniques. A sum of nonnegative terms (Technique 6.1.9)
For every ,
(a) If , then is a sum of two nonnegative numbers, so , and since . Conversely, if for all , then in particular
(b) Suppose . Then is the sum of the nonnegative numbers and , so if and only if both are , that is, if and only if and . So if , then is a root and the only one, and if , there is no root. □
Technique 6.2.7 (A nonnegative quadratic has nonpositive discriminant). If a real quadratic with is nonnegative for every real , then , with equality exactly when the quadratic has a real root (Lemma 6.2.6). So to prove an inequality of the shape , look for an expression that is nonnegative for every real for an obvious reason, usually a squared norm or a sum of squares, and that expands to . The equality case comes for free: it says that the nonnegative expression vanishes for some .
Reach for it when the target has the shape with , especially when no geometric picture suggests a decomposition. The parameter must be real; over , first make the middle coefficient real (Technique 6.2.8). The canonical example is the second proof of Theorem 6.2.1.
Used in 5 places and 2 practice exercises
Theorem 6.2.1, Exercise 6.2.35, Problem 6.1, Problem 6.17, Lemma 8.2.10; 2 practice exercises.
Over there is a complication. For real , Proposition 6.1.29 gives
Technique 6.2.8 (Rotate the phase). Every can be written with : take if , and if . Then , so multiplying by rotates onto the nonnegative real axis without changing its modulus. In an inner product space, replacing by changes no norm, since , and it turns into . So in a statement that involves only , , and , we may assume that is a nonnegative real number, and real-variable arguments apply. The same observation gives
since
Reach for it when a real-variable argument, such as a discriminant argument, must be run over , or when and must be compared. The canonical example is the second proof of Theorem 6.2.1.
Used in 6 places and 2 practice exercises
Theorem 6.2.1, Exercise 6.2.29, Exercise 6.7.6, Theorem B.1.11, Exercise B.1.44, Exercise B.1.49; 2 practice exercises.
Proof of Theorem 6.2.1 (by a quadratic in ).
Uses. Lemma 6.2.6 (Nonnegative quadratics), Proposition 6.1.29 (Expanding a norm), Proposition 6.1.27 (Basic properties of the norm), Lemma 6.2.3 (The easy half of (b)), Notation 6.1.1 (Real and complex scalars)
Techniques. A nonnegative quadratic has nonpositive discriminant (Technique 6.2.7), Rotate the phase (Technique 6.2.8)
If , both sides of (a) are , and , so (a) and (b) hold. Suppose . By Lemma 6.2.3, it remains to prove (a) and to show that equality forces one vector to be a multiple of the other.
Write
a nonnegative real number, and
The right side is
and it is nonnegative for every real . By Lemma 6.2.6, , that is,
If equality holds in (a), then , so has a real root by Lemma 6.2.6. Then , so by Proposition 6.1.27. Multiplying by and using gives , a multiple of . □
Over , , and the rotation only flips the sign of when ; one could instead apply Lemma 6.2.6 with directly. Over the rotation cannot be skipped. Run on itself, the argument proves only
Third proof: normalizing
Intuition (Balancing the two sides). The cheapest inequality available is , which by Proposition 6.1.29 says
It bounds a product by a sum, and when and are very different it is far from sharp. But both sides of (a) are homogeneous: replacing by with multiplies both and by , and similarly for . So it suffices to prove (a) after rescaling and , and we can rescale them to unit vectors. For unit vectors the right side above is , which is twice the product , and the cheap inequality becomes sharp enough.
Equivalently, apply the cheap inequality to and , and choose to make the bound
Proof of Theorem 6.2.1 (by normalizing).
Uses. Proposition 6.1.29 (Expanding a norm), Proposition 6.1.27 (Basic properties of the norm), Proposition 6.1.4 (Sesquilinearity), Lemma 6.2.3 (The easy half of (b))
Techniques. Rotate the phase (Technique 6.2.8)
If or , both sides of (a) are by Proposition 6.1.4, and one vector is times the other, so (a) and (b) hold. Suppose . By Lemma 6.2.3, it remains to prove (a) and to show that equality forces one vector to be a multiple of the other.
Choose with and
By Proposition 6.1.27, . Since is real, it leaves the second slot unconjugated, and
a nonnegative real number. By Proposition 6.1.29,
Rearranging gives (a).
If equality holds in (a), the right side is , so and by Proposition 6.1.27. That is, , so
Intuition (Comparing the three proofs). All three proofs come from one fact: for a scalar (in the second and third proofs, after rotating the phase of ). They differ in how is chosen.
The first proof takes the best , namely
The second proof does not choose at all. It uses every real at once and lets the discriminant do the optimizing: says that the minimum value of the quadratic, attained at , is nonnegative. For rotated so that , that minimizer
The third proof rescales so that , after which the crude choice already suffices. It needs a separate zero case and a normalization step, but its idea, that a homogeneous inequality can be checked on normalized vectors, applies far beyond inner products.
The equality case works the same way in all three: equality means that the nonnegative quantity is for the chosen , and that says one vector is a multiple of the other.
Example 6.2.9 (Instances of Cauchy–Schwarz). Each inner product of Section 6.1.3 gives an inequality.
- (a)For the dot product on :
for all real . For and this reads . (b)For the integral inner product on (Proposition 6.1.13 and the paragraph after it):
For and on , this reads .
- (c)For the Frobenius inner product on (Proposition 6.1.16):
.
In each case equality holds exactly for proportional data. In (b), that means or as functions on .
Uses. Definition 6.1.8 (Dot product), (6.2.1)
Techniques. Orthogonal decomposition (Technique 6.2.4)
By Technique 6.2.4,
Check:
using . Now
6.2.2The triangle inequality
In a triangle, each side is at most as long as the other two together. The sides of the triangle with vertices , , and are , , and (Figure 6.2.2), so the statement to prove is . Both sides are nonnegative, so we may compare squares:
So the triangle inequality is the statement
Theorem 6.2.11 (Triangle inequality). Let be an inner product space and .
- (a).
- (b)The following are equivalent:
- (i);
- (ii);
- (iii)one of is a nonnegative real multiple of the other.
Uses. Proposition 6.1.29 (Expanding a norm), Theorem 6.2.1 (Cauchy–Schwarz inequality), Proposition 6.1.27 (Basic properties of the norm), Proposition 6.1.4 (Sesquilinearity), Notation 6.1.1 (Real and complex scalars)
(a) By Proposition 6.1.29, (Notation 6.1.1), and Theorem 6.2.1,
Both and are nonnegative, so taking square roots gives (a).
(b) We prove (i) (ii) and (ii) (iii).
(i) (ii). Since both sides of (a) are nonnegative, (i) holds if and only if the first and last expressions in (6.2.3) are equal. Their difference is the sum of the two nonnegative gaps in the chain, so this happens if and only if both inequalities in the chain are equalities:
For , if and only if is a nonnegative real number. Indeed, writing with , we have
(iii) (ii). If with , then , and by Proposition 6.1.27,
(ii) (iii). Assume (ii). If , then and (iii) holds. Suppose . By (ii),
and dividing by gives , a nonnegative real number. □
Uses. Proposition 6.1.27 (Basic properties of the norm), Theorem 6.2.11 (Triangle inequality), Notation 6.1.1 (Real and complex scalars)
By Proposition 6.1.27,
The first condition is . This is the equality case of Theorem 6.2.11 in with the dot product , for the vectors and . By (b), it holds if and only if one of is a nonnegative real multiple of the other, that is, if and only if is a real number with . (If with , then and .)
The second condition is . Both sides are nonnegative, so it is equivalent to the equality of squares
The triangle inequality extends to any number of vectors, and it has a reversed form.
Corollary 6.2.13 (Sums of several vectors). For ,
Uses. Theorem 6.2.11 (Triangle inequality)
Techniques. Induction on the length of a list (Technique 1.6.9)
We induct on . For there is nothing to prove. Let , and assume the claim for vectors. With , Theorem 6.2.11 and the induction hypothesis give
as desired. □
Corollary 6.2.14 (Distances and the reverse triangle inequality). For all :
- (a)
; - (b)
.
Uses. Theorem 6.2.11 (Triangle inequality), Proposition 6.1.27 (Basic properties of the norm)
(a) Apply Theorem 6.2.11 to
(b) By Theorem 6.2.11,
Part (a) is the triangle inequality for the triangle with vertices , , : going from to directly is never longer than going through . Part (b) says that a side of a triangle is at least the difference of the other two. Read as a statement about the function , it says that moving by a vector of norm changes by at most ; in particular, the norm is a continuous function. (Exercise 6.1.61 used exactly this.)
6.2.3Angles
Let be a real inner product space and nonzero. By Theorem 6.2.1,
and the cosine is a strictly decreasing continuous function from onto , hence a bijection. So the following definition makes sense, and the motivation at the start of the section is justified.
Definition 6.2.16 (Angle). Let be a real inner product space, and let be nonzero. The angle between and is the unique with
For the dot product on , this is the usual angle, by (6.1.1). The familiar properties of angles follow from what we have proved.
Proposition 6.2.17 (Properties of angles). Let be a real inner product space, let be nonzero, and let be the angle between them.
(a)(Law of cosines.)
- (b) if and only if for some , and if and only if for some .
- (c) if and only if .
Uses. Definition 6.2.16 (Angle), Proposition 6.1.29 (Expanding a norm), Theorem 6.2.11 (Triangle inequality), Proposition 6.1.4 (Sesquilinearity), Proposition 6.1.27 (Basic properties of the norm)
(a) By Proposition 6.1.29,
(b) Since is injective on with , we have if and only if . By Theorem 6.2.11(b), this holds if and only if one of is a nonnegative multiple of the other. As both are nonzero, the multiple is nonzero, hence positive, and if with , then with . So if and only if with .
Similarly, if and only if , that is,
(c) for if and only if . □
Part (c) is why perpendicularity is defined by in Section 6.3. In spaces without a picture, the angle still measures how far two vectors are from being proportional, and its values can be surprising.
- (a)In with the dot product, let , the diagonal of the unit cube, and , one of its edges. Then , , and , so the angle between them satisfies . For this gives , about , and . As , and : in high dimension the diagonal of a cube is almost perpendicular to every edge.
- (b)In with the integral inner product,
, , and . So the angle between the functions and satisfies , that is, .
Example 6.2.19 (Correlation is a cosine). Given data points
be the centered data in . If both are nonzero, the correlation coefficient of the data is
the cosine of the angle between and . Cauchy–Schwarz says , and Proposition 6.2.17(b) says that exactly when with of the same sign as , that is, when all data points lie on the line
Uses. Definition 6.2.16 (Angle), Proposition 6.1.13 (Integral inner products)
We have
For the second part, for every , , , and
The angle is if and only if
Over
Let be a complex inner product space and nonzero. Now is a complex number, and there are two natural real candidates for a cosine:
Both lie in the stated intervals by Theorem 6.2.1, since . They measure different things.
The first is the cosine of an honest real angle. Regard as a real vector space, forgetting multiplication by non-real scalars. Then is a real inner product on it: it is symmetric because , linear in the first slot for real scalars, and . For this is the dot product of , and it is the inner product that appears in the expansion
The second ignores phases. By Technique 6.2.8,
Neither number is “the” angle, and we do not define one over . What both notions agree on is the right angle in the strong sense: if and only if for every with , that is, is perpendicular, in the real sense, to every unit-modulus multiple of . (For the “if”, take as in Technique 6.2.8.) This is the notion of orthogonality used from Section 6.3 on.
6.2.4Choosing the inner product
Every inner product gives an instance of Theorem 6.2.1, and Section 6.1.3 has many, so the theorem is a machine for producing inequalities between numbers. Using it well is a skill of its own.
Technique 6.2.21 (Apply Cauchy–Schwarz to a well-chosen inner product). To prove an inequality between sums or integrals, recognize one side as and the other as for some inner product. The work is in the choices. Pick the space and the inner product (the dot product, a weighted dot product, an integral, the Frobenius inner product), and split each term of the quantity to be bounded as a product of two factors, one belonging to and one to . A useful move is to insert weights: write as with chosen so that the resulting norms are quantities you control.
Then check the equality case. Equality holds exactly when one of is a multiple of the other, so it tells you whether the bound is sharp and which data attain it. If the data that would attain it violate your constraints, the bound is not sharp, and a different split may do better.
Reach for it when the target has the shape
Used in 21 places and 9 practice exercises
Proposition 6.2.22, Proposition 6.2.24, Corollary 6.2.26, Exercise 6.2.31, Exercise 6.2.32, Exercise 6.2.36, Exercise 6.2.37, Exercise 6.2.38, Exercise 6.2.39, Exercise 6.2.46, Exercise 6.2.47, Exercise 6.3.53, Exercise 6.4.52, Exercise 6.5.50, Exercise 6.6.49, Problem 6.15, Problem 6.16, Exercise 8.2.43, Exercise 8.3.32, Exercise 8.3.33, Exercise 8.4.36; 9 practice exercises.
Proposition 6.2.22 (The square of a sum). For ,
with equality if and only if .
Uses. Theorem 6.2.1 (Cauchy–Schwarz inequality), Proposition 6.1.10 (The dot product is an inner product)
Techniques. Apply Cauchy–Schwarz to a well-chosen inner product (Technique 6.2.21)
Let and in , with the dot product. Then
By Theorem 6.2.1(b), equality holds if and only if one of is a multiple of the other. Since , this means for some (if , then and ). And says that every equals . □
Corollary 6.2.23 (Arithmetic mean and quadratic mean). For ,
with equality if and only if .
Uses. Proposition 6.2.22 (The square of a sum)
Equality holds if and only if both steps are equalities, that is, and (by Proposition 6.2.22) all are equal to some . Together these say that all equal with , that is, . □
Intuition (Mean plus deviation). The proof applied Cauchy–Schwarz with , and the first proof of Theorem 6.2.1 computes the gap. Here
Dividing by : the mean of the squares is the square of the mean plus the variance . So the gap in the squared inequality
The same choice of works for integrals. The following inequality is used constantly in analysis.
Proposition 6.2.24 ( versus ). Let and . Then
with equality if and only if is constant. In particular,
Uses. Theorem 6.2.1 (Cauchy–Schwarz inequality), Proposition 6.1.13 (Integral inner products)
Techniques. Apply Cauchy–Schwarz to a well-chosen inner product (Technique 6.2.21)
Write with . Then is continuous and real-valued, so . Give the integral inner product (Proposition 6.1.13 and the paragraph after it), and let denote the constant function. Then
and Theorem 6.2.1 gives , which is the inequality. By Theorem 6.2.1(b), equality holds if and only if one of is a multiple of the other; since , this means for some , that is, is constant. □
Weights let the same idea handle unequal coefficients. The next example also shows the equality case doing real work: it finds the minimizer.
Example 6.2.25 (A constrained minimum). We find the minimum of over all with . The quantity to be minimized is for in the weighted inner product
Cauchy–Schwarz gives
Equality requires , and the constraint then gives , so and
So the minimum is . Geometrically, we found the point of the plane closest to in the geometry of .
A variant of Cauchy–Schwarz with weights in denominators is a standard tool in competition problems.
Corollary 6.2.26 (Engel’s form). Let and . Then
with equality if and only if
Uses. Theorem 6.2.1 (Cauchy–Schwarz inequality), Proposition 6.1.10 (The dot product is an inner product)
Techniques. Apply Cauchy–Schwarz to a well-chosen inner product (Technique 6.2.21)
Let
By Theorem 6.2.1,
For instance, for positive reals , Corollary 6.2.26 with numerators and denominators gives
Equality requires . The product of these three ratios is , so the common value is , and .
Exercises
Exercise 6.2.27. Give the inner product
- (a)Verify the Cauchy–Schwarz inequality for and .
- (b)Find and with and , and check (6.2.1).
- (c)Find the cosine of the angle between and in this inner product, and compare it with the cosine for the dot product.
Uses. Theorem 6.2.1 (Cauchy–Schwarz inequality), (6.2.1), Definition 6.2.16 (Angle)
Techniques. Orthogonal decomposition (Technique 6.2.4)
(a) , , and . Indeed .
(b) By Technique 6.2.4, and
Also
and
as (6.2.1) predicts.
(c)
Exercise 6.2.28. In with the dot product, let and with .
- (a)For which does equality hold in the Cauchy–Schwarz inequality for ?
- (b)For which does hold?
Uses. Theorem 6.2.1 (Cauchy–Schwarz inequality), Theorem 6.2.11 (Triangle inequality)
(a) Both and are nonzero, so by Theorem 6.2.1(b) equality holds if and only if for some (a relation has and can be inverted). Comparing second coordinates, , so , and then . Conversely, gives . Check:
(b) By Theorem 6.2.11(b), equality requires one of to be a nonnegative real multiple of the other, so in particular equality in Cauchy–Schwarz. By (a), this forces and , equivalently , and neither nor is a nonnegative real number. So there is no such . For directly: has norm .
Exercise 6.2.29. In with the dot product, let and .
- (a)Compute and , and the corresponding angles in .
- (b)Find with that maximizes , and the maximum value.
Uses. Definition 6.1.8 (Dot product)
Techniques. Rotate the phase (Technique 6.2.8)
(a) , and . So
with angles and . The first is the angle between and regarded as vectors and of .
(b)
Exercise 6.2.30. Let
and that equality holds if and only if and are linearly dependent. Give an example where and are linearly dependent but the inequality is strict.
Uses. Theorem 6.2.1 (Cauchy–Schwarz inequality), Definition 6.1.8 (Dot product), Remark 6.2.2
Let and . Then
For , the two vectors are equal, hence dependent, but
Uses. Theorem 6.2.1 (Cauchy–Schwarz inequality), Example 6.1.21 (Weighted dot products)
Techniques. Apply Cauchy–Schwarz to a well-chosen inner product (Technique 6.2.21)
Let
By Theorem 6.2.1,
For
It is attained only there: equality throughout requires , equality in Cauchy–Schwarz, so (as ), and
- (a)Find all with and .
- (b)Show that there is no with and .
Uses. Theorem 6.2.1 (Cauchy–Schwarz inequality)
Techniques. Apply Cauchy–Schwarz to a well-chosen inner product (Technique 6.2.21)
Let and , so that and the first equation is .
(a) If , then by Theorem 6.2.1,
(b) If , then , so the first equation fails.
Geometrically, the plane is at distance from the origin. It touches the sphere of radius in exactly one point and misses the smaller sphere of radius .
Exercise 6.2.33. Let be vectors in an inner product space.
- (a)Show that
. - (b)Show that equality holds if and only if one of is a real multiple of the other. (Over this just says that are linearly dependent.)
Uses. Theorem 6.2.1 (Cauchy–Schwarz inequality), Proposition 6.1.4 (Sesquilinearity), Remark 6.2.2, Notation 6.1.1 (Real and complex scalars)
(a) By sesquilinearity and conjugate symmetry,
since . So is the real part of , and by and Theorem 6.2.1,
(b) Equality holds if and only if both steps are equalities. The first is an equality if and only if , since exactly for real . The second is an equality if and only if and are linearly dependent (Remark 6.2.2). These are dependent if and only if are: a nontrivial relation
So equality holds if and only if are dependent and is real. If or , both conditions hold, and the zero vector is the real multiple of the other. If with , then is real if and only if is real; the case is the same. This proves (b).
Uses. Theorem 6.2.1 (Cauchy–Schwarz inequality), Lemma 6.2.3 (The easy half of (b))
Techniques. Finding counterexamples and minimal examples (Technique 1.4.18)
The claim is false. In with the dot product, let , , and . Both hypotheses hold, since both sides of the inequality are for each pair containing . But
If , the conclusion holds. By Theorem 6.2.1(b), one of is a multiple of the other, and since , for some (if , then and ). Likewise . If , then . If , then and . Either way one of is a multiple of the other, and equality holds by Lemma 6.2.3.
Exercise 6.2.35. Find the errors in the following argument, and give a numerical example in (with the inner product ) showing that its first displayed formula is false.
Claim. For in a complex inner product space,
Proof. We may assume . For every ,
A quadratic in that is never negative has nonpositive discriminant, so
Uses. Proposition 6.1.29 (Expanding a norm), Lemma 6.2.6 (Nonnegative quadratics)
Techniques. A nonnegative quadratic has nonpositive discriminant (Technique 6.2.7)
There are three errors.
First, the expansion is wrong over . By Proposition 6.1.29 with ,
The argument’s formula drops the conjugate and the real part and writes for . For a numerical counterexample, take with , , , and . Then , , and the formula gives
Second, the discriminant criterion (Lemma 6.2.6) is a statement about real quadratics in a real variable. A polynomial in a complex variable takes non-real values, and “never negative” has no meaning for it.
Third, need not be real, so “
The repair is the second proof of Theorem 6.2.1: restrict to real , and first rotate the phase of so that is a nonnegative real number. Then the expansion above becomes a real quadratic in with middle coefficient , and the discriminant argument applies.
Exercise 6.2.36. Show that for every ,
and find all for which equality holds.
Uses. Theorem 6.2.1 (Cauchy–Schwarz inequality), Proposition 6.1.13 (Integral inner products)
Techniques. Apply Cauchy–Schwarz to a well-chosen inner product (Technique 6.2.21)
In with , let
and
Since , equality holds if and only if for some , that is,
Exercise 6.2.37. Let
(a)Show that
and that for each and some nonzero of degree at most attains equality.
- (b)Deduce that if , then
for every polynomial , whatever its degree.
Uses. Theorem 6.2.1 (Cauchy–Schwarz inequality), Definition 1.2.17 (Evaluation)
Techniques. Apply Cauchy–Schwarz to a well-chosen inner product (Technique 6.2.21)
(a) Let and
(b) For , , so
- (a)Show that
for every . (b)Show that for all real ,
(You may use
for .)
Uses. Proposition 6.2.22 (The square of a sum), Theorem 6.2.1 (Cauchy–Schwarz inequality)
Techniques. Apply Cauchy–Schwarz to a well-chosen inner product (Technique 6.2.21)
(a) By Proposition 6.2.22 with ,
and taking square roots gives the claim.
(b) Let and . By Theorem 6.2.1,
For ,
Hence .
- (a)Show that for every ,
, with equality if and only if is a scalar multiple of . - (b)Find all with and .
Uses. Proposition 6.1.16 (Frobenius inner product), Theorem 6.2.1 (Cauchy–Schwarz inequality), Remark 6.2.2
Techniques. Apply Cauchy–Schwarz to a well-chosen inner product (Technique 6.2.21)
(a) In the Frobenius inner product (Proposition 6.1.16),
(b) Here
Exercise 6.2.40. Write
- (a)Show that
for all and . - (b)Deduce that every entry of has modulus at most , for and .
- (c)Give , both nonzero, with
.
Uses. Proposition 6.1.16 (Frobenius inner product), Definition 2.4.1 (Matrix product), Theorem 6.2.1 (Cauchy–Schwarz inequality)
(a) By Definition 2.4.1,
Summing over all and , and using Proposition 6.1.16,
(b) By (a) and induction on , : the case is trivial, and
(c) For , , so
- (a)Let be unit vectors in an inner product space with , and let . Show that
. (So the segment between two points of the unit sphere lies strictly inside it, except at its endpoints.) - (b)Show that (a) fails for the taxicab norm on (Aside (Norms that do not come from inner products)). Conclude again that the taxicab norm does not come from an inner product.
Uses. Theorem 6.2.11 (Triangle inequality), Proposition 6.1.27 (Basic properties of the norm)
(a) By Theorem 6.2.11 and Proposition 6.1.27,
Suppose equality holds. By Theorem 6.2.11(b), one of , is a nonnegative real multiple of the other. If with , taking norms gives , so , and since . If with , the same argument gives . Both contradict , so the inequality is strict.
(b) The vectors and are distinct and , but
Exercise 6.2.42. Let be vectors in an inner product space . Show that satisfies
if and only if for some . That is, the points for which the detour through costs nothing are exactly the points of the segment from to .
Uses. Theorem 6.2.11 (Triangle inequality), Proposition 6.1.27 (Basic properties of the norm)
Techniques. Double containment (Technique 1.3.14)
Let be the set of satisfying the equation, and
. Let with . Then and
. Let , and put and , so that and . By Theorem 6.2.11(b), one of is a nonnegative real multiple of the other.
If with , then , so with , and
(a)Prove Lagrange’s identity: for real numbers
, - (b)Deduce the Cauchy–Schwarz inequality for the dot product on , including its equality case, without using Theorem 6.2.1.
- (c)For , compare (a) with (6.2.2), and conclude that the parallelogram spanned by has area .
Uses. Remark 6.2.5 (The size of the gap), Remark 6.2.2
Techniques. A sum of nonnegative terms (Technique 6.1.9)
(a) Expanding the products as double sums over all pairs ,
The terms with are
Summing over gives the identity.
(b) The right side of (a) is a sum of squares, so it is nonnegative, which is the Cauchy–Schwarz inequality
(c) For there is one pair , and (a) reads
Exercise 6.2.44. Let be vectors in an inner product space, not all . Show that
if and only if there is a unit vector and real numbers with for every .
Uses. Theorem 6.2.11 (Triangle inequality), Theorem 6.2.1 (Cauchy–Schwarz inequality), Notation 6.1.1 (Real and complex scalars)
Suppose with and . Then
Conversely, suppose equality holds, and let . Since not all are , , so . Let , a unit vector with . By linearity in the first slot, , and Theorem 6.2.1,
So equality holds throughout. Since each term satisfies
Exercise 6.2.45. Let be a real inner product space, and write for the angle between nonzero vectors (Definition 6.2.16). Show that for all nonzero ,
(Angles measure distances on the unit sphere, and this is their triangle inequality.)
Uses. Definition 6.2.16 (Angle), Theorem 6.2.1 (Cauchy–Schwarz inequality), (6.2.1)
Techniques. Orthogonal decomposition (Technique 6.2.4)
For ,
By Definition 6.2.16, and . As in Technique 6.2.4 (with ), let and , so that
By Theorem 6.2.1,
Both and lie in , where is strictly decreasing, so .
Exercise 6.2.46. Find the minimum of over all with
and all functions attaining it.
Uses. Theorem 6.2.1 (Cauchy–Schwarz inequality), Proposition 6.1.13 (Integral inner products)
Techniques. Apply Cauchy–Schwarz to a well-chosen inner product (Technique 6.2.21)
Let . In with ,
for every satisfying the constraints. By Theorem 6.2.1,
The function itself satisfies the constraints:
Here is how to find . The constraints determine
Exercise 6.2.47. (Nesbitt’s inequality.) Show that for all positive real numbers ,
with equality if and only if .
Uses. Corollary 6.2.26 (Engel’s form)
Techniques. A sum of nonnegative terms (Technique 6.1.9), Apply Cauchy–Schwarz to a well-chosen inner product (Technique 6.2.21)
Since , the denominators , , are positive. By Corollary 6.2.26,
since the denominators add up to . Now
so the right side is at least
If equality holds, the last step is an equality, so
Exercise 6.2.48. (Ptolemy’s inequality.)
(a)Show that for nonzero vectors in an inner product space,
(b)Deduce that for all in an inner product space,
(For four points in the plane: the product of the diagonals of a quadrilateral is at most the sum of the products of opposite sides.)
Uses. Proposition 6.1.29 (Expanding a norm), Corollary 6.2.14 (Distances and the reverse triangle inequality), Proposition 6.1.27 (Basic properties of the norm)
(a) Let and , both real. By Proposition 6.1.29 (and linearity),
Taking nonnegative square roots gives (a).
(b) Replacing by
If , both sides are . If , both sides are . If , the left side is . So assume , and write for . By Corollary 6.2.14(a),
and by (a) this says
Multiplying by gives the claim, since .
The map is inversion in the unit sphere, and (a) says how it distorts distances. Ptolemy’s inequality is the triangle inequality, seen after inversion.
More practice
The practice bank has 23 exercises on this section’s topics.