Chapter 6: Inner product spaces
6.7Proof patterns
An inner product adds one number to every pair of vectors, and the chapter turned that number into lengths, angles, projections, least-squares solutions, and adjoints. Most of its proofs use a small number of moves to get from a hypothesis about inner products to a conclusion about vectors or maps: expand a squared norm and use positivity, test a vector against everything, move an operator to the other slot, choose an orthonormal basis, or split a vector into orthogonal pieces. This section sorts the chapter’s arguments by the question they answer, solves a few problems in several ways to compare the moves, and lists the errors that the chapter’s exercises warn against. The exercises at the end practice one move at a time, and the problem set (Problems for Chapter 6) mixes them with earlier chapters.
6.7.1Proving an inequality
Almost every inequality in the chapter is a squared norm that was dropped because it is nonnegative. The work is in choosing the vector whose norm to drop.
- Expand a squared norm. Write , or the norm of some other combination, and expand with Proposition 6.1.29. All three proofs of Theorem 6.2.1 start this way and differ only in the choice of (Section 6.2.1). The same move gives the reverse triangle inequality (Corollary 6.2.14) and identities such as Exercise 6.1.57.
- Drop an orthogonal piece (Technique 6.2.4, Technique 6.4.5). If with , then . This is Bessel’s inequality (Theorem 6.3.24), the best-approximation property (Theorem 6.4.33), and, with the part of along , Cauchy–Schwarz again.
- Cauchy–Schwarz for a well-chosen inner product (Technique 6.2.21). For inequalities between sums or integrals, the choice of space, weights, and splitting of each term is the whole proof (Proposition 6.2.22, Corollary 6.2.26, Exercise 6.2.36).
- A discriminant (Technique 6.2.7). When the target has the shape and there is no picture, look for a quadratic in a real parameter that is nonnegative for an obvious reason.
- Normalize. Both sides of a homogeneous inequality scale the same way, so it suffices to check it on unit vectors (third proof of Theorem 6.2.1). Over , rotating the phase (Technique 6.2.8) makes an inner product real before a real-variable argument is run.
The equality case comes from the same computation: equality holds exactly when the dropped quantity is . That is why it pays to keep the dropped term written down, as in (6.2.2), instead of replacing it by “” at once. The triangle inequality (Theorem 6.2.11(b)), Bessel’s inequality, and best approximation all get their equality cases this way.
Example 6.7.1 (The Cauchy–Schwarz gap, three ways). Let be vectors in an inner product space , and let
the amount by which Cauchy–Schwarz fails to be an equality. Here are three formulas for .
By orthogonal decomposition. If , (6.2.2) says
In orthonormal coordinates. If are linearly dependent, by Lemma 6.2.3. Otherwise has an orthonormal basis (Theorem 6.4.20). Write and . By Theorem 6.3.22,
and the difference is
As a determinant. By definition (Definition 6.3.28), the Gram matrix of is
and
Each formula proves Cauchy–Schwarz with its equality case: , and exactly when , or , or is singular, all of which say that are dependent (Proposition 6.3.30). They lead in different directions. The first measures the gap by a distance, and Section 6.4 replaces the line by any subspace. The second writes as one squared modulus, a certificate of nonnegativity in the sense of Technique 6.1.9; over with the dot product it is Lagrange’s identity (Exercise 6.2.43), and the orthonormal basis is what reduces every inner product space to . The third gives the equality case without any basis (Proposition 6.3.30), but its sign comes from , that is, from the coordinates. It extends to vectors: the Gram determinant of any list is nonnegative and vanishes exactly for dependent lists, by orthonormal coordinates again (Exercise 6.7.11) or by Gram–Schmidt residuals (Exercise 6.4.59). In , is the area of the parallelogram spanned by and (Remark 6.2.5).
The last two proofs could not have been given in Section 6.2, since they use orthonormal bases, but they are not circular: Gram–Schmidt and Parseval’s identity never use Cauchy–Schwarz.
The middle formula is an instance of a move that the chapter used several times without naming it.
Technique 6.7.2 (Pass to orthonormal coordinates). A statement about finitely many vectors of an inner product space involves only
Reach for it when a statement about a fixed finite list is easy to verify in but awkward without coordinates, or when you need a matrix whose Gram matrix is prescribed. The canonical example is the second formula of Example 6.7.1. It also shows that Gram determinants are nonnegative (Exercise 6.7.11) and produces the matrix in Problem 6.17. It does not apply as stated to a map on an infinite-dimensional , since the map need not preserve .
Used in 8 places and 1 practice exercise
Exercise 6.7.11, Problem 6.17, Theorem 8.1.3, Proposition 8.1.7, Theorem 8.2.18, Exercise 8.2.42, Theorem 8.3.5, Lemma 8.3.8; 1 practice exercise.
Practice: Exercise 6.7.6 and Exercise 6.7.12.
6.7.2Showing that a vector or a map is zero
An inner product gives several ways to prove , or , which a bare vector space does not have.
- Its norm (Technique 6.1.36). Show . If is a matrix, show (Technique 6.1.18). If the norm is a sum of squares, every term vanishes (Technique 6.1.9).
- Test against everything. If for every in , or in a spanning list, then : take (Proposition 6.1.37, Exercise 6.1.50). For a finite-dimensional subspace this is (Corollary 6.4.27), and for maps it is Corollary 6.1.38.
- Test on the diagonal. Over , the numbers already determine (Proposition 6.1.41). Over they determine only self-adjoint operators, and the rotation by shows why (Example 6.1.39).
- Move the operator across (Technique 6.6.20), to turn the hypothesis into one of the forms above. The standard instance is
, which gives (Proposition 6.6.23). - Orthogonal pieces. A vector in is orthogonal to itself, hence . This is how uniqueness of orthogonal decompositions is proved (Theorem 6.4.24), and how is used (Theorem 6.6.21).
Example 6.7.3 (A normal matrix with square zero, three certificates). Let satisfy and . (Matrices with are called normal; Section 8.1 studies them.) We show that in three ways.
Norms. With the dot product, is the adjoint of (Example 6.6.10). For every ,
Applied to this gives
The trace of . Let . Then , and
Subspaces. says . By Proposition 6.5.9(a), applied to and to ,
The norm argument is the shortest; it uses nothing but moving across the inner product twice. The trace argument never mentions a vector, and it is the one to try when all hypotheses are matrix identities: one nonnegative number controls every entry. The subspace argument shows what normality does: it makes , so the image of , which is orthogonal to , is also orthogonal to , and an with would need its image inside that kernel.
Each argument breaks at the same hypothesis for , which has but is not normal: while , and while . The norm argument proves more than was asked. It shows that for every normal , so by induction for all , and a normal matrix with is .
Practice: Exercise 6.7.7, Exercise 6.7.9, and Exercise 6.7.8.
6.7.3Projections, distances, and least squares
The projection , the closest point of to , and the fitted values of a least-squares problem are the same vector (Theorem 6.4.33, Proposition 6.5.2). There are several ways to find it, or to use it without finding it.
- Orthonormal basis first. Once has an orthonormal or orthogonal basis, the projection is a sum of one-term projections (Definition 6.4.11, Corollary 6.4.10), and in its matrix is (Theorem 6.4.31). This pays when an orthogonal spanning list is visible, or can be made by symmetry (Exercise 6.4.54).
- Normal equations (Theorem 6.5.5, Proposition 6.5.23). For any spanning list with Gram matrix , solve . Nothing has to be orthogonalized.
- The complement. (Proposition 6.4.29(d)), which is the better route when is the smaller space, as for hyperplanes (Example 6.4.35).
- Recognize instead of compute (Technique 6.4.7). To show that , check and . This is also how projections onto related subspaces are compared.
- Perturb a minimizer (Technique 6.5.6). When a vector is defined by minimizing a squared norm, perturbing it in each direction produces the orthogonality condition, which is the second proof of Theorem 6.5.5.
Example 6.7.4 (One least-squares error, four ways). Fit a line to the points
Normal equations. With ,
so and the line is . The residual is
An orthogonal basis of . One step of Gram–Schmidt replaces by , and doubling gives . By Corollary 6.4.10 and Pythagoras (Proposition 6.4.4),
The complement. has dimension (Corollary 6.4.25). Among vectors of the form , the conditions and leave ; among vectors of the form , they leave . Vectors of these two forms are always orthogonal, so is an orthogonal basis of . The residual is
Gram determinants. By Exercise 6.4.59(b), is the ratio of the Gram determinants of and of :
With two unknowns, the normal equations are the quickest route, and they also produce the line. The orthogonal basis costs one Gram–Schmidt step, after which each coefficient is a single inner product, and fitting a parabola instead would only add a term: the coefficients already found do not change. The complement computes the residual without the fitted values, and it is the efficient route when is smaller than . Gram determinants need no solving, but they give only the distance, not the closest point.
Practice: Exercise 6.7.5 and Exercise 6.7.13.
6.7.4Choosing an orthonormal basis
In an orthonormal basis, coordinates are inner products (Proposition 6.3.18), inner products are dot products of coordinates (Theorem 6.3.22), the adjoint is the conjugate transpose (Theorem 6.6.15(b)), self-adjoint operators are Hermitian matrices (Corollary 6.6.28), and an orthogonal projection is when the first basis vectors span its image (Corollary 6.4.25). So when a statement is basis-free but easier in coordinates, choose an orthonormal basis adapted to the problem: one whose first vectors span a given subspace (Theorem 6.4.20(b)), or one of the span of the vectors at hand (Technique 6.7.2). None of these formulas survives in a basis that is not orthonormal. There the Gram matrix of the basis enters, as in
Coordinates are not always the shorter route. Statements about kernels, images, and complements usually have one-line proofs without a basis, as does (Theorem 6.6.21), and a coordinate proof of them hides the reason. And in an infinite-dimensional space only finite-dimensional subspaces are guaranteed an orthonormal basis, so an argument that picks an orthonormal basis of has assumed . A useful check after a coordinate proof is to ask whether the quantity computed depends on the basis; if the statement was basis-free, it cannot, and showing that directly sometimes gives a better proof (Exercise 6.7.10).
Practice: Exercise 6.7.10 and Exercise 6.7.11.
6.7.5Lengths determine inner products
By polarization (Proposition 6.1.32, Technique 6.1.33), is a combination of the four lengths , or of two over . So a hypothesis about lengths alone is a hypothesis about inner products: a linear map that preserves lengths preserves inner products (Exercise 6.1.51, Exercise 6.6.40), and two inner products with the same norm are equal (Corollary 6.1.34). For operators, the corresponding statement is about the numbers , and here real and complex scalars part ways: over these numbers determine (Proposition 6.1.41), and they are all real exactly when is self-adjoint (Proposition 6.6.30); over they see only the self-adjoint part (Exercise 6.1.52). The general move behind all of this is to apply a hypothesis to for a few scalars and solve for the cross term (Technique 6.1.40).
A useful habit is to write every proof over , with wherever a cross term appears, and to specialize to by erasing the bars. The differences between the two cases are concentrated in a few places: the converse of Pythagoras (Theorem 6.3.3(b), Non-example 6.3.4), the polarization identities, rotating the phase, and tests on the diagonal. Practice: Exercise 6.7.15 and Exercise 6.7.8.
6.7.6Reading the chapter’s proofs
Uniqueness first, then existence. The projection was characterized by two conditions before anything was computed (Theorem 6.4.6), and uniqueness then gave independence of the basis for free (Corollary 6.4.8). Adjoints went the same way: uniqueness (Proposition 6.6.9) needs only that inner products distinguish vectors, while existence (Theorem 6.6.15) needs a finite-dimensional space and either the Riesz representation theorem or a matrix computation. Recognizing an object by a property that determines it (Technique 6.4.7, Technique 6.6.11) is the inner-product version of checking that a candidate is an inverse (Technique 2.5.16); compare Section 5.6.5.
Where finite dimension enters. Every existence statement of the chapter needs an orthonormal basis of something, and that is the only place where finite dimension is used. For and , only has to be finite-dimensional (Theorem 6.4.24). The identity needs no dimension hypothesis, while does (Theorem 6.6.21). When a hypothesis of this kind is dropped, the conclusion can fail (Exercise 6.4.63, Non-example 6.6.7).
Orthogonality turns sums into sums of squares. Pythagoras (Corollary 6.3.6), Parseval (Theorem 6.3.22), Bessel (Theorem 6.3.24), and the defect formula (6.2.2) all say that the squared length of a sum of orthogonal pieces is the sum of the squared lengths. That is what makes coefficients in an orthonormal basis independent of each other (Technique 6.3.12), and why projections, unlike arbitrary idempotents, shrink vectors (Exercise 6.4.57).
The scalars are or for a reason. Positivity and definiteness use the order on . Over or with a symmetric bilinear form over , there are nonzero vectors orthogonal to themselves (Exercise 6.1.58, Proposition 6.1.6), and then projections, Gram–Schmidt, and the normal equations can all fail (Exercise 6.5.44). Section 12.4 studies what survives.
6.7.7Common errors
Most of these appear in the chapter as find-the-error exercises.
- A conjugate in the wrong place. The inner product is conjugate-linear in the second slot:
(Proposition 6.1.4). Coordinates need the vector in the first slot (Remark 6.3.19), and Gram–Schmidt with the slots exchanged produces vectors that are not orthogonal (Exercise 6.4.21). - The transpose instead of the conjugate transpose. Over , can be singular when the columns of are independent, and is not an inner product (Remark 6.5.10, Exercise 6.2.30).
- Real facts used over , and complex facts used over . The converse of Pythagoras and the two-term polarization identity hold only over , and a discriminant argument with a complex parameter proves nothing (Exercise 6.2.35). In the other direction, for all forces only over (Example 6.1.39, Exercise 6.1.59, Problem 6.6).
- Projecting onto a spanning list that is not orthogonal, one vector at a time (Exercise 6.4.42), and its relative (Exercise 6.4.50).
- A one-sided inverse used as a two-sided one. is not (Exercise 6.5.36), does not give (Exercise 6.6.41), and orthogonal columns do not give orthogonal rows (Exercise 6.3.55).
- The conjugate transpose in a basis that is not orthonormal (Example 6.6.16, Exercise 6.6.46).
- Assuming the orthogonality to be proved. Pythagoras needs orthogonal pieces, and using it for assumes that is an orthogonal projection (Exercise 6.7.13). Swapping for assumes normality (Exercise 6.7.14).
- A hypothesis that is never used. In both of the previous errors, the argument never touches one of the hypotheses. That is worth checking in every proof, and it is a warning sign whenever it happens.
- Dropping finite dimension (Exercise 6.4.63, Non-example 6.6.7), or definiteness (Exercise 6.1.60).
Exercises
Exercise 6.7.5. For each problem, choose a method, say why it fits, and compute.
- (a)The distance from to
in . - (b)The distance from to the hyperplane in .
- (c)The least-squares solution of , , .
Uses. Corollary 6.4.10 (Projecting with an orthogonal list), Example 6.4.35 (Distance to a hyperplane), Theorem 6.5.5 (The normal equations), Theorem 6.4.33 (Best approximation)
Techniques. Recognize a projection by its two conditions (Technique 6.4.7)
(a) The spanning vectors and are orthogonal, so no orthogonalization is needed and Corollary 6.4.10 applies directly. Here , , and , so
Then
(b) The hyperplane is with , and its complement is the line through , so it is quickest to project onto that line. By Example 6.4.35,
(c) The columns and of the coefficient matrix are not orthogonal, and there are only two unknowns, so we solve the normal equations (Theorem 6.5.5):
The residual
Exercise 6.7.6. Let be vectors in an inner product space.
- (a)Show that for every if and only if .
- (b)Over , show that it is not enough to require the inequality in (a) for real only.
Uses. Proposition 6.1.29 (Expanding a norm)
Techniques. Perturb a minimizer (Technique 6.5.6), Rotate the phase (Technique 6.2.8)
(a) By Proposition 6.1.29, for every ,
If , the right side is , so the inequality holds for every .
Conversely, suppose , and take with real. Then , and the right side becomes
For
(b) Take with , , and . For real , , but . Real only see , and the imaginary part needs .
The condition in (a) mentions only the norm, so it makes sense in any normed space, where it is used as a definition of orthogonality (Birkhoff–James orthogonality). In an inner product space it is ordinary orthogonality. Exercise 6.7.13 puts it to work.
Uses. Theorem 6.4.20 (Orthonormal bases exist), Proposition 6.3.18 (Coordinates in an orthonormal basis), Theorem 2.2.1 (Linear maps are determined by a basis)
Techniques. Plug in clever test vectors (Technique 6.1.40), Take an inner product to isolate a coefficient (Technique 6.3.12)
If , there is nothing to prove. Otherwise choose an orthonormal basis of (Theorem 6.4.20). For , , so . By Proposition 6.3.18,
Now let . The vectors and are orthogonal, since
So , and agrees with on a basis. By Theorem 2.2.1, .
A basis-free version: for fixed , the hypothesis says , so
Uses. Definition 6.6.8 (Adjoint), Proposition 6.6.18 (Properties of the adjoint), Proposition 6.1.41 (Over , the values determine ), Corollary 6.1.38 (Linear maps are determined by inner products)
Techniques. Move an operator across the inner product (Technique 6.6.20), Polarization (Technique 6.1.33), Plug in clever test vectors (Technique 6.1.40)
For every , moving the operators across the inner product (Definition 6.6.8, with by Proposition 6.6.18),
where . If is normal, then and the norms agree.
Conversely, suppose for every . By Proposition 6.6.18,
using
Over , self-adjointness was used to replace by . Without it the argument fails, as the rotation of Example 6.1.39 shows: it has zero diagonal values and is not .
Exercise 6.7.9. Let be a finite-dimensional inner product space, and let be self-adjoint with .
- (a)Show that , so that is an orthogonal projection.
- (b)Show by an example that (a) fails without the hypothesis .
Uses. Proposition 6.6.18 (Properties of the adjoint), Proposition 6.1.27 (Basic properties of the norm), Corollary 6.6.29 (Orthogonal projections are the self-adjoint idempotents)
Techniques. Move an operator across the inner product (Technique 6.6.20), Show a vector is zero via its norm (Technique 6.1.36)
(a) Let . By Proposition 6.6.18, . Since
For every ,
(b) Let have and , that is, . Then , so , but .
The proof used self-adjointness only to make , so that the algebraic fact became the positive fact . For a general , says nothing about , as shows.
Exercise 6.7.10. Let be finite-dimensional inner product spaces and . Let be an orthonormal basis of and one of .
(a)Show that
- (b)Deduce that does not depend on the choice of the orthonormal basis of , and that it equals for the matrix of with respect to any orthonormal bases of and .
Uses. Theorem 6.3.22 (Parseval’s identity), Definition 6.6.8 (Adjoint), Proposition 6.3.18 (Coordinates in an orthonormal basis), Proposition 6.1.16 (Frobenius inner product)
Techniques. Move an operator across the inner product (Technique 6.6.20), The trace of (Technique 6.1.18)
(a) By Theorem 6.3.22(b) in ,
using . Summing over gives the second equality.
(b) Fix the basis of . By (a),
The number is the squared Hilbert–Schmidt norm of ; for and with dot products it is the squared Frobenius norm of the matrix. The proof never chose a convenient basis: it compared two arbitrary ones through a double sum that is symmetric in them.
Uses. Theorem 6.4.20 (Orthonormal bases exist), Theorem 6.3.22 (Parseval’s identity), Proposition 6.3.30 (Gram matrices detect independence), Theorem 5.4.10 (Multiplicativity), Exercise 6.3.57, Theorem 5.4.7 (Invertibility and the determinant)
Techniques. Pass to orthonormal coordinates (Technique 6.7.2), Gram matrices (Technique 6.3.31)
If the list is dependent, then is not invertible by Proposition 6.3.30, so (Theorem 5.4.7).
Suppose the list is independent. Then it is a basis of
so . The columns of are the coordinate vectors of a basis, so they are independent and is invertible, with . By Theorem 5.4.10 and Exercise 6.3.57(a),
So always, with equality exactly for dependent lists. This is Technique 6.7.2: the list becomes the columns of a square matrix, and the Gram determinant becomes a squared modulus. The Gram–Schmidt route of Exercise 6.4.59 gives the more precise formula
Exercise 6.7.12. Let and . Show that there are unit vectors in some real inner product space with for all if and only if
Describe the configurations at the two endpoints.
Uses. Theorem 6.2.1 (Cauchy–Schwarz inequality), Proposition 6.1.29 (Expanding a norm), Proposition 6.1.27 (Basic properties of the norm)
Techniques. A sum of nonnegative terms (Technique 6.1.9), Orthogonal decomposition (Technique 6.2.4)
Necessity. By Theorem 6.2.1,
so .
Sufficiency. Let , and work in with the dot product. Let , , and
For real , let . Since and ,
We need and . Subtracting, , and then
Endpoints. At , equality in Cauchy–Schwarz for unit vectors with forces : all the vectors coincide. At , the expansion above gives , so the vectors sum to ; in the construction , and the vectors
The Gram matrix of the list is , where has every entry . The exercise therefore says for which this matrix is a Gram matrix; Problem 6.17 answers that question for every Hermitian matrix.
Exercise 6.7.13. Find the error in the following argument, and then prove the claim correctly. (The claim is true; it is part of Exercise 6.4.57.)
Claim. Let be a finite-dimensional inner product space, and let satisfy and for every . Then .
Proof. Let . Since
Uses. Theorem 6.3.3 (Pythagorean theorem), Theorem 6.4.6 (The projection is characterized by orthogonality), Exercise 6.7.6
Techniques. Recognize a projection by its two conditions (Technique 6.4.7), Perturb a minimizer (Technique 6.5.6)
The error. The Pythagorean theorem (Theorem 6.3.3) applies to orthogonal vectors; its converse, which the argument uses in the form “the norms add up, so the pieces are orthogonal”, needs the equation
A correct proof. Let and . Since for some , , so for every ,
so by Exercise 6.7.6. Thus every vector of is orthogonal to . Now for , and
Exercise 6.7.14. Find the error in the following argument, give an operator for which its first displayed equation fails, and prove the claim correctly.
Claim. Let be a finite-dimensional inner product space and with for all . Then for all .
Proof. For every ,
and .
Uses. Definition 6.6.8 (Adjoint), Theorem 6.2.1 (Cauchy–Schwarz inequality), Exercise 6.7.8
Techniques. Move an operator across the inner product (Technique 6.6.20)
The error. The middle equality replaces by . These are equal only when is normal, and the argument, which never uses the hypothesis on , would prove for every operator. By Exercise 6.7.8 that holds only for normal . For on with the dot product, , and at : while .
A correct proof. Let . Moving across the inner product, then using Cauchy–Schwarz (Theorem 6.2.1) and the hypothesis applied to ,
If the claim is clear; otherwise divide by . So .
In terms of the operator norm of Section 9.2, the claim says , and applying it to gives equality.
Exercise 6.7.15. For each statement, decide whether it holds in every real inner product space, and whether it holds in every complex one. Here and , with finite-dimensional.
- (a)If for every , then .
- (b)If
, then . - (c)
. - (d)If for every , then is self-adjoint.
Uses. Proposition 6.1.41 (Over , the values determine ), Example 6.1.39 (A rotation), Theorem 6.3.3 (Pythagorean theorem), Proposition 6.1.32 (Polarization identities), Proposition 6.6.30 (Self-adjoint means real values)
Techniques. Finding counterexamples and minimal examples (Technique 1.4.18), Plug in clever test vectors (Technique 6.1.40)
(a) Over this is Proposition 6.1.41. Over it is false: the rotation with has for every (Example 6.1.39), and .
(b) Over this is Theorem 6.3.3(b). Over it is false: in with ,
(c) Over this is Proposition 6.1.32(a). Over , Proposition 6.1.29 shows that the right side equals , so the formula fails whenever is not real: for and in the right side is while .
(d) Over this is Proposition 6.6.30. Over , every is real, so the hypothesis holds for every operator, and the rotation of (a) is not self-adjoint: while .
Statements (a) and (d) hold over because a complex inner product can separate real and imaginary parts with the test vector ; statements (b) and (c) hold over because there the cross term is all of .