Books
Theme
Text size
Width

[ and ] go to the previous and next page.

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 0≤‖𝐱−𝑡𝐲‖2, 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 𝑏2≤𝑎𝑐 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 0. That is why it pays to keep the dropped term written down, as in (6.2.2), instead of replacing it by “≥0” 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

𝐷=‖𝐱‖2‖𝐲‖2−|⟨𝐱,𝐲⟩|2,

the amount by which Cauchy–Schwarz fails to be an equality. Here are three formulas for 𝐷.

By orthogonal decomposition. If 𝐲≠𝟎, (6.2.2) says 𝐷=‖𝐲‖2‖𝐱−𝑐𝐲‖2 with 𝑐=⟨𝐱,𝐲⟩/‖𝐲‖2. Since 𝑐𝐲 is the projection of 𝐱 onto the line span(𝐲), this reads 𝐷=‖𝐲‖2dist(𝐱,span(𝐲))2 (Definition 6.4.34).

In orthonormal coordinates. If 𝐱,𝐲 are linearly dependent, 𝐷=0 by Lemma 6.2.3. Otherwise 𝑊=span(𝐱,𝐲) has an orthonormal basis 𝒪︀=𝐮1,𝐮2 (Theorem 6.4.20). Write 𝐱=𝑎1𝐮1+𝑎2𝐮2 and 𝐲=𝑏1𝐮1+𝑏2𝐮2. By Theorem 6.3.22, ⟨𝐱,𝐲⟩=𝑎1𝑏1+𝑎2𝑏2, ‖𝐱‖2=|𝑎1|2+|𝑎2|2, and ‖𝐲‖2=|𝑏1|2+|𝑏2|2. Multiplying out,

‖𝐱‖2‖𝐲‖2=|𝑎1𝑏1|2+|𝑎1𝑏2|2+|𝑎2𝑏1|2+|𝑎2𝑏2|2,|⟨𝐱,𝐲⟩|2=|𝑎1𝑏1|2+|𝑎2𝑏2|2+2Re(𝑎1𝑏2𝑎2𝑏1),

and the difference is |𝑎1𝑏2|2−2Re(𝑎1𝑏2𝑎2𝑏1)+|𝑎2𝑏1|2. So

𝐷=|𝑎1𝑏2−𝑎2𝑏1|2.

As a determinant. By definition (Definition 6.3.28), the Gram matrix of 𝐱,𝐲 is

𝐺=(⟨𝐱,𝐱⟩⟨𝐲,𝐱⟩⟨𝐱,𝐲⟩⟨𝐲,𝐲⟩),

and det𝐺=‖𝐱‖2‖𝐲‖2−⟨𝐲,𝐱⟩⟨𝐱,𝐲⟩=𝐷. In the coordinates above, let 𝐵=(𝑎1𝑏1𝑎2𝑏2), with columns [𝐱]𝒪︀ and [𝐲]𝒪︀. By Theorem 6.3.22, the (𝑖,𝑗) entry of 𝐵∗𝐵 is [𝐯𝑖]𝒪︀∗[𝐯𝑗]𝒪︀=⟨𝐯𝑗,𝐯𝑖⟩, where 𝐯1=𝐱 and 𝐯2=𝐲; so 𝐺=𝐵∗𝐵. Then det𝐺=det(𝐵∗)det𝐵=|det𝐵|2 (Theorem 5.4.10, Exercise 6.3.57), which is the second formula again.

Each formula proves Cauchy–Schwarz with its equality case: 𝐷≥0, and 𝐷=0 exactly when 𝐱∈span(𝐲), or det𝐵=0, 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 𝑛=2. The third gives the equality case without any basis (Proposition 6.3.30), but its sign comes from det𝐺=|det𝐵|2, 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 ℝ2, |det𝐵| 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 𝐯1,…,𝐯𝑘 of an inner product space 𝑉 involves only 𝑊=span(𝐯1,…,𝐯𝑘), which is finite-dimensional even when 𝑉 is not. Choose an orthonormal basis 𝒪︀ of 𝑊 (Theorem 6.4.20). By Theorem 6.3.22, the coordinate map 𝐯↦[𝐯]𝒪︀ preserves inner products, so 𝑊 behaves exactly like 𝔽𝑟 with the dot product, where 𝑟=dim𝑊≤𝑘. The list becomes the columns of a matrix 𝐵∈𝔽𝑟×𝑘 with 𝐵∗𝐵=𝐺, the Gram matrix of the list, and the statement can be checked with entries, sums of squares, and determinants.

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

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 ⟨𝐯,𝐯⟩=0. If 𝐯 is a matrix, show tr(𝐯∗𝐯)=0 (Technique 6.1.18). If the norm is a sum of squares, every term vanishes (Technique 6.1.9).
  • Test against everything. If ⟨𝐯,𝐱⟩=0 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 𝜋/2 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 ⟨𝑇∗𝑇𝐯,𝐯⟩=‖𝑇𝐯‖2, which gives ker𝑇∗𝑇=ker𝑇 (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 ker𝑇∗=(im𝑇)⟂ is used (Theorem 6.6.21).

Example 6.7.3 (A normal matrix with square zero, three certificates). Let 𝐴∈ℂ𝑛×𝑛 satisfy 𝐴∗𝐴=𝐴𝐴∗ and 𝐴2=0. (Matrices with 𝐴∗𝐴=𝐴𝐴∗ are called normal; Section 8.1 studies them.) We show that 𝐴=0 in three ways.

Norms. With the dot product, 𝐴∗ is the adjoint of 𝐯↦𝐴𝐯 (Example 6.6.10). For every 𝐯∈ℂ𝑛,

‖𝐴𝐯‖2=⟨𝐴∗𝐴𝐯,𝐯⟩=⟨𝐴𝐴∗𝐯,𝐯⟩=‖𝐴∗𝐯‖2.

Applied to 𝐴𝐯 this gives ‖𝐴∗𝐴𝐯‖=‖𝐴2𝐯‖=0, so 𝐴∗𝐴𝐯=𝟎, and then ‖𝐴𝐯‖2=⟨𝐴∗𝐴𝐯,𝐯⟩=0. So 𝐴𝐯=𝟎 for every 𝐯.

The trace of 𝐵∗𝐵. Let 𝐵=𝐴∗𝐴. Then 𝐵∗=𝐵, and 𝐵2=𝐴∗(𝐴𝐴∗)𝐴=𝐴∗(𝐴∗𝐴)𝐴=(𝐴∗)2𝐴2=0. So tr(𝐵∗𝐵)=tr(𝐵2)=0, which forces 𝐵=0 (Technique 6.1.18), and 𝐴∗𝐴=0 forces 𝐴=0 (Corollary 6.1.19).

Subspaces. 𝐴2=0 says im𝐴⊆ker𝐴. By Proposition 6.5.9(a), applied to 𝐴 and to 𝐴∗, ker𝐴=ker(𝐴∗𝐴)=ker(𝐴𝐴∗)=ker𝐴∗, and ker𝐴∗=(im𝐴)⟂ by Lemma 6.5.4. So im𝐴⊆(im𝐴)⟂: every 𝐰∈im𝐴 is orthogonal to itself, and im𝐴={𝟎}.

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 ker𝐴=ker𝐴∗, so the image of 𝐴, which is orthogonal to ker𝐴∗, is also orthogonal to ker𝐴, and an 𝐴 with 𝐴2=0 would need its image inside that kernel.

Each argument breaks at the same hypothesis for 𝑁=(0100), which has 𝑁2=0 but is not normal: ‖𝑁𝐞2‖=1 while ‖𝑁∗𝐞2‖=0, and ker𝑁=span(𝐞1) while ker𝑁∗=span(𝐞2). The norm argument proves more than was asked. It shows that ker𝐴2=ker𝐴 for every normal 𝐴, so by induction ker𝐴𝑘=ker𝐴 for all 𝑘≥1, and a normal matrix with 𝐴𝑘=0 is 0.

Practice: Exercise 6.7.7, Exercise 6.7.9, and Exercise 6.7.8.

6.7.3Projections, distances, and least squares

The projection Pr𝑊(𝐯), 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. Pr𝑊=id−Pr𝑊⟂ (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 𝐩=Pr𝑊(𝐯), 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 𝑦=𝑐0+𝑐1𝑥 to the points (1,1),(2,3),(3,2),(4,5). With 𝟏=(1,1,1,1), 𝐱=(1,2,3,4), 𝐲=(1,3,2,5), and 𝑊=span(𝟏,𝐱)⊆ℝ4, the squared least-squares error is dist(𝐲,𝑊)2. Note ‖𝐲‖2=39.

Normal equations. With 𝐴=(𝟏 𝐱),

𝐴𝖳𝐴=(4101030),𝐴𝖳𝐲=(1133),

so 𝐜=(0,11/10) and the line is 𝑦=11𝑥/10. The residual is 𝐲−𝐴𝐜=(−1/10,4/5,−13/10,3/5), and its squared norm is (1+64+169+36)/100=27/10.

An orthogonal basis of 𝑊. One step of Gram–Schmidt replaces 𝐱 by 𝐱−(10/4)𝟏, and doubling gives 𝐰=(−3,−1,1,3)⟂𝟏. By Corollary 6.4.10 and Pythagoras (Proposition 6.4.4),

dist(𝐲,𝑊)2=‖𝐲‖2−⟨𝐲,𝟏⟩2‖𝟏‖2−⟨𝐲,𝐰⟩2‖𝐰‖2=39−1214−12120=2710.

The complement. 𝑊⟂ has dimension 2 (Corollary 6.4.25). Among vectors of the form (𝑎,𝑏,𝑏,𝑎), the conditions ⟂𝟏 and ⟂𝐱 leave 𝐠1=(1,−1,−1,1); among vectors of the form (𝑎,𝑏,−𝑏,−𝑎), they leave 𝐠2=(1,−3,3,−1). Vectors of these two forms are always orthogonal, so 𝐠1,𝐠2 is an orthogonal basis of 𝑊⟂. The residual is Pr𝑊⟂(𝐲)=(1/4)𝐠1−(7/20)𝐠2 (Proposition 6.4.29(d)), and

dist(𝐲,𝑊)2=124+7220=2710.

Gram determinants. By Exercise 6.4.59(b), dist(𝐲,𝑊)2 is the ratio of the Gram determinants of 𝟏,𝐱,𝐲 and of 𝟏,𝐱:

det(41011103033113339)/det(4101030)=5420=2710.

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 diag(1,…,1,0,…,0) 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 ⟨𝐯,𝐰⟩=[𝐰]∗𝐺[𝐯] and [𝑇∗]=𝐺−1[𝑇]∗𝐺 (Exercise 6.6.46, Example 6.6.16).

Coordinates are not always the shorter route. Statements about kernels, images, and complements usually have one-line proofs without a basis, as ker𝑇∗=(im𝑇)⟂ 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 dim𝑉<∞. 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 (𝑇+𝑇∗)/2 (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 Re 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 Pr𝑊 and 𝑉=𝑊⊕𝑊⟂, only 𝑊 has to be finite-dimensional (Theorem 6.4.24). The identity ker𝑇∗=(im𝑇)⟂ needs no dimension hypothesis, while im𝑇∗=(ker𝑇)⟂ 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, ⟨𝑇𝐯,𝐯⟩=0 for all 𝐯 forces 𝑇=0 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 Pr𝑈+𝑊=Pr𝑈+Pr𝑊 (Exercise 6.4.50).
  • A one-sided inverse used as a two-sided one. 𝐴(𝐴∗𝐴)−1𝐴∗ is not 𝐼𝑚 (Exercise 6.5.36), 𝑇∗𝑇=id does not give 𝑇𝑇∗=id (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.routine For each problem, choose a method, say why it fits, and compute.

  1. (a)The distance from 𝐯=(3,1,4,1) to 𝑊=span((1,1,1,1),(1,−1,1,−1)) in ℝ4.
  2. (b)The distance from 𝐯=(1,2,3,4) to the hyperplane 𝑥1−𝑥2+𝑥3−𝑥4=0 in ℝ4.
  3. (c)The least-squares solution of 𝑥1+𝑥2=1, 𝑥1+2𝑥2=2, 𝑥1+3𝑥2=2.

Solution.

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)

Hint 1. In (a), compute the inner product of the two spanning vectors. In (b), the complement of the hyperplane is a line. In (c), there are only two unknowns.
Hint 2. (a) Use the projection formula for an orthogonal list. (b) dist(𝐯,𝐻)=|⟨𝐯,𝐧⟩|/‖𝐧‖. (c) Solve 𝐴𝖳𝐴𝐱=𝐴𝖳𝐛, a 2×2 system.
Sketch. (a) The spanning vectors are orthogonal, so Pr𝑊(𝐯)=(9/4)𝐰1+(5/4)𝐰2=(7/2,1,7/2,1) and the distance is ‖(−1/2,0,1/2,0)‖=1/2. (b) With 𝐧=(1,−1,1,−1), the distance is |−2|/2=1. (c) 𝐴𝖳𝐴=(36614) and 𝐴𝖳𝐛=(5,11) give 𝐱̂=(2/3,1/2).

(a) The spanning vectors 𝐰1=(1,1,1,1) and 𝐰2=(1,−1,1,−1) are orthogonal, so no orthogonalization is needed and Corollary 6.4.10 applies directly. Here ⟨𝐯,𝐰1⟩=9, ⟨𝐯,𝐰2⟩=5, and ‖𝐰1‖2=‖𝐰2‖2=4, so

Pr𝑊(𝐯)=94𝐰1+54𝐰2=(7/2,1,7/2,1).

Then 𝐯−Pr𝑊(𝐯)=(−1/2,0,1/2,0), and the distance is 1/2 by Theorem 6.4.33. As a check, ‖𝐯‖2−‖Pr𝑊(𝐯)‖2=27−53/2=1/2.

(b) The hyperplane is 𝐻={𝐧}⟂ with 𝐧=(1,−1,1,−1), and its complement is the line through 𝐧, so it is quickest to project onto that line. By Example 6.4.35, dist(𝐯,𝐻)=|⟨𝐯,𝐧⟩|/‖𝐧‖=|1−2+3−4|/2=1.

(c) The columns (1,1,1) and (1,2,3) of the coefficient matrix 𝐴 are not orthogonal, and there are only two unknowns, so we solve the normal equations (Theorem 6.5.5):

𝐴𝖳𝐴=(36614),𝐴𝖳𝐛=(511),𝐱̂=16(14−6−63)(511)=(2/31/2).

The residual 𝐛−𝐴𝐱̂=(−1/6,1/3,−1/6) is orthogonal to both columns, as it must be.

Exercise 6.7.6.standard Let 𝐱,𝐲 be vectors in an inner product space.

  1. (a)Show that ‖𝐱+𝑡𝐲‖≥‖𝐱‖ for every 𝑡∈𝔽 if and only if ⟨𝐱,𝐲⟩=0.
  2. (b)Over ℂ, show that it is not enough to require the inequality in (a) for real 𝑡 only.

Solution.

Hint 1. Expand ‖𝐱+𝑡𝐲‖2−‖𝐱‖2 as a function of 𝑡.
Hint 2. For the converse, try 𝑡=−𝑠⟨𝐱,𝐲⟩ with a small real 𝑠>0. For (b), look at 𝑉=ℂ with 𝐱=1 and 𝐲=𝑖.
Sketch. ‖𝐱+𝑡𝐲‖2−‖𝐱‖2=2Re(𝑡⟨𝐱,𝐲⟩)+|𝑡|2‖𝐲‖2. If ⟨𝐱,𝐲⟩=0 this is ≥0. If 𝑐=⟨𝐱,𝐲⟩≠0, then 𝑡=−𝑠𝑐 gives 𝑠|𝑐|2(𝑠‖𝐲‖2−2), which is negative for small 𝑠>0. (b) In ℂ, |1+𝑡𝑖|2=1+𝑡2≥1 for real 𝑡, but ⟨1,𝑖⟩=−𝑖.

(a) By Proposition 6.1.29, for every 𝑡∈𝔽,

‖𝐱+𝑡𝐲‖2−‖𝐱‖2=2Re(𝑡⟨𝐱,𝐲⟩)+|𝑡|2‖𝐲‖2.

If ⟨𝐱,𝐲⟩=0, the right side is |𝑡|2‖𝐲‖2≥0, so the inequality holds for every 𝑡.

Conversely, suppose 𝑐=⟨𝐱,𝐲⟩≠0, and take 𝑡=−𝑠𝑐 with 𝑠>0 real. Then 𝑡𝑐=−𝑠|𝑐|2, and the right side becomes

−2𝑠|𝑐|2+𝑠2|𝑐|2‖𝐲‖2=𝑠|𝑐|2(𝑠‖𝐲‖2−2).

For 0<𝑠<2/(‖𝐲‖2+1) this is negative, so ‖𝐱+𝑡𝐲‖<‖𝐱‖ for that 𝑡. This proves the contrapositive. The choice of 𝑡 is Technique 6.5.6 in the direction −𝑐𝐲: the factor 𝑐 rotates the phase so that the linear term is real and negative.

(b) Take 𝑉=ℂ with ⟨𝑧,𝑤⟩=𝑧𝑤, 𝐱=1, and 𝐲=𝑖. For real 𝑡, ‖1+𝑡𝑖‖2=1+𝑡2≥1, but ⟨1,𝑖⟩=𝑖=−𝑖≠0. Real 𝑡 only see Re⟨𝐱,𝐲⟩, 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.

Exercise 6.7.7.standard Let 𝑉 be a finite-dimensional inner product space and 𝑇∈L(𝑉), and suppose that ⟨𝑇𝐮,𝐯⟩=0 whenever 𝐮⟂𝐯. Show that 𝑇=𝑐id𝑉 for some 𝑐∈𝔽.

Solution.

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)

Hint 1. Choose an orthonormal basis 𝐞1,…,𝐞𝑛. What does the hypothesis say about the coordinates of 𝑇𝐞𝑖?
Hint 2. Each 𝑇𝐞𝑖 is a multiple 𝑐𝑖𝐞𝑖. To compare 𝑐𝑖 with 𝑐𝑗, find two orthogonal vectors built from 𝐞𝑖 and 𝐞𝑗 other than 𝐞𝑖,𝐞𝑗 themselves.
Sketch. In an orthonormal basis, ⟨𝑇𝐞𝑖,𝐞𝑗⟩=0 for 𝑗≠𝑖, so 𝑇𝐞𝑖=𝑐𝑖𝐞𝑖. Since 𝐞𝑖+𝐞𝑗⟂𝐞𝑖−𝐞𝑗, 0=⟨𝑇(𝐞𝑖+𝐞𝑗),𝐞𝑖−𝐞𝑗⟩=𝑐𝑖−𝑐𝑗. So all 𝑐𝑖 equal some 𝑐, and 𝑇=𝑐id𝑉 on a basis.

If 𝑉={𝟎}, there is nothing to prove. Otherwise choose an orthonormal basis 𝐞1,…,𝐞𝑛 of 𝑉 (Theorem 6.4.20). For 𝑗≠𝑖, 𝐞𝑖⟂𝐞𝑗, so ⟨𝑇𝐞𝑖,𝐞𝑗⟩=0. By Proposition 6.3.18, 𝑇𝐞𝑖=∑𝑗⟨𝑇𝐞𝑖,𝐞𝑗⟩𝐞𝑗=𝑐𝑖𝐞𝑖, where 𝑐𝑖=⟨𝑇𝐞𝑖,𝐞𝑖⟩.

Now let 𝑖≠𝑗. The vectors 𝐞𝑖+𝐞𝑗 and 𝐞𝑖−𝐞𝑗 are orthogonal, since ⟨𝐞𝑖+𝐞𝑗,𝐞𝑖−𝐞𝑗⟩=1−0+0−1=0. By the hypothesis,

0=⟨𝑇(𝐞𝑖+𝐞𝑗),𝐞𝑖−𝐞𝑗⟩=⟨𝑐𝑖𝐞𝑖+𝑐𝑗𝐞𝑗,𝐞𝑖−𝐞𝑗⟩=𝑐𝑖−𝑐𝑗.

So 𝑐1=⋯=𝑐𝑛=𝑐, and 𝑇 agrees with 𝑐id𝑉 on a basis. By Theorem 2.2.1, 𝑇=𝑐id𝑉.

A basis-free version: for fixed 𝐮, the hypothesis says 𝑇𝐮⟂span(𝐮)⟂, so 𝑇𝐮∈(span(𝐮)⟂)⟂=span(𝐮) by Theorem 6.4.26. A linear map that sends every vector to a multiple of itself is a multiple of the identity, by comparing 𝑇(𝐮+𝐯) with 𝑇𝐮+𝑇𝐯 for independent 𝐮,𝐯.

Exercise 6.7.8.standard Let 𝑉 be a finite-dimensional inner product space and 𝑇∈L(𝑉). Show that 𝑇∗𝑇=𝑇𝑇∗ if and only if ‖𝑇𝐯‖=‖𝑇∗𝐯‖ for every 𝐯∈𝑉. (Such 𝑇 are called normal; see Section 8.1.) Over ℝ, where does your proof use that 𝑇∗𝑇−𝑇𝑇∗ is self-adjoint?

Solution.

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)

Hint 1. Write ‖𝑇𝐯‖2 and ‖𝑇∗𝐯‖2 as ⟨𝑆𝐯,𝐯⟩ for suitable operators 𝑆.
Hint 2. For the converse, 𝑆=𝑇∗𝑇−𝑇𝑇∗ is self-adjoint with ⟨𝑆𝐯,𝐯⟩=0 for all 𝐯. Over ℂ cite Proposition 6.1.41. Over ℝ, expand ⟨𝑆(𝐱+𝐲),𝐱+𝐲⟩.
Sketch. ‖𝑇𝐯‖2−‖𝑇∗𝐯‖2=⟨(𝑇∗𝑇−𝑇𝑇∗)𝐯,𝐯⟩. So normality gives equal norms. Conversely 𝑆=𝑇∗𝑇−𝑇𝑇∗ is self-adjoint with zero diagonal values; expanding ⟨𝑆(𝐱+𝐲),𝐱+𝐲⟩=0 gives 2Re⟨𝑆𝐱,𝐲⟩=0, and replacing 𝐲 by 𝑖𝐲 over ℂ kills the imaginary part. So 𝑆=0.

For every 𝐯, moving the operators across the inner product (Definition 6.6.8, with (𝑇∗)∗=𝑇 by Proposition 6.6.18),

‖𝑇𝐯‖2−‖𝑇∗𝐯‖2=⟨𝑇∗𝑇𝐯,𝐯⟩−⟨𝑇𝑇∗𝐯,𝐯⟩=⟨𝑆𝐯,𝐯⟩,

where 𝑆=𝑇∗𝑇−𝑇𝑇∗. If 𝑇 is normal, then 𝑆=0 and the norms agree.

Conversely, suppose ⟨𝑆𝐯,𝐯⟩=0 for every 𝐯. By Proposition 6.6.18, 𝑆∗=𝑇∗𝑇−𝑇𝑇∗=𝑆. For 𝐱,𝐲∈𝑉,

0=⟨𝑆(𝐱+𝐲),𝐱+𝐲⟩=⟨𝑆𝐱,𝐲⟩+⟨𝑆𝐲,𝐱⟩=⟨𝑆𝐱,𝐲⟩+⟨𝑆𝐱,𝐲⟩,

using ⟨𝑆𝐲,𝐱⟩=⟨𝐲,𝑆𝐱⟩=⟨𝑆𝐱,𝐲⟩. So Re⟨𝑆𝐱,𝐲⟩=0. Over ℝ this says ⟨𝑆𝐱,𝐲⟩=0. Over ℂ, apply it to 𝑖𝐲 in place of 𝐲: Re⟨𝑆𝐱,𝑖𝐲⟩=Re(−𝑖⟨𝑆𝐱,𝐲⟩)=Im⟨𝑆𝐱,𝐲⟩=0. Either way ⟨𝑆𝐱,𝐲⟩=0 for all 𝐱,𝐲, so 𝑆=0 by Corollary 6.1.38. (Over ℂ one can instead cite Proposition 6.1.41, which does not need 𝑆 to be self-adjoint.)

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

Exercise 6.7.9.standard Let 𝑉 be a finite-dimensional inner product space, and let 𝑇∈L(𝑉) be self-adjoint with 𝑇3=𝑇2.

  1. (a)Show that 𝑇2=𝑇, so that 𝑇 is an orthogonal projection.
  2. (b)Show by an example that (a) fails without the hypothesis 𝑇∗=𝑇.

Solution.

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)

Hint 1. Let 𝑆=𝑇2−𝑇. Is 𝑆 self-adjoint? Compute 𝑆2 using 𝑇3=𝑇2.
Hint 2. 𝑆2=0 and 𝑆∗=𝑆. Now ‖𝑆𝐯‖2=⟨𝑆∗𝑆𝐯,𝐯⟩. For (b), try a nilpotent matrix.
Sketch. 𝑆=𝑇2−𝑇 is self-adjoint, and 𝑇4=𝑇𝑇3=𝑇3=𝑇2, so 𝑆2=𝑇4−2𝑇3+𝑇2=0. Then ‖𝑆𝐯‖2=⟨𝑆2𝐯,𝐯⟩=0, so 𝑆=0, and 𝑇2=𝑇=𝑇∗ is an orthogonal projection. (b) 𝑁=(0100) has 𝑁3=𝑁2=0≠𝑁.

(a) Let 𝑆=𝑇2−𝑇. By Proposition 6.6.18, 𝑆∗=(𝑇∗)2−𝑇∗=𝑆. Since 𝑇4=𝑇𝑇3=𝑇𝑇2=𝑇3=𝑇2,

𝑆2=𝑇4−2𝑇3+𝑇2=𝑇2−2𝑇2+𝑇2=0.

For every 𝐯, ‖𝑆𝐯‖2=⟨𝑆𝐯,𝑆𝐯⟩=⟨𝑆∗𝑆𝐯,𝐯⟩=⟨𝑆2𝐯,𝐯⟩=0, so 𝑆𝐯=𝟎 (Proposition 6.1.27). Hence 𝑇2=𝑇. Together with 𝑇∗=𝑇, this makes 𝑇 an orthogonal projection by Corollary 6.6.29.

(b) Let 𝑁∈ℝ2×2 have 𝑁𝐞1=𝟎 and 𝑁𝐞2=𝐞1, that is, 𝑁=(0100). Then 𝑁2=0, so 𝑁3=𝑁2, but 𝑁2=0≠𝑁.

The proof used self-adjointness only to make 𝑆∗𝑆=𝑆2, so that the algebraic fact 𝑆2=0 became the positive fact ‖𝑆𝐯‖2=0. For a general 𝑇, 𝑆2=0 says nothing about 𝑆, as 𝑁 shows.

Exercise 6.7.10.standard Let 𝑉,𝑊 be finite-dimensional inner product spaces and 𝑇∈L(𝑉,𝑊). Let 𝐞1,…,𝐞𝑛 be an orthonormal basis of 𝑉 and 𝐟1,…,𝐟𝑚 one of 𝑊.

  1. (a)Show that

    ∑𝑗=1𝑛‖𝑇𝐞𝑗‖2=∑𝑖=1𝑚∑𝑗=1𝑛|⟨𝑇𝐞𝑗,𝐟𝑖⟩|2=∑𝑖=1𝑚‖𝑇∗𝐟𝑖‖2.
  2. (b)Deduce that ∑𝑗‖𝑇𝐞𝑗‖2 does not depend on the choice of the orthonormal basis of 𝑉, and that it equals tr(𝐴∗𝐴) for the matrix 𝐴 of 𝑇 with respect to any orthonormal bases of 𝑉 and 𝑊.

Solution.

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)

Hint 1. Apply Theorem 6.3.22(b) to 𝑇𝐞𝑗 in the basis 𝐟1,…,𝐟𝑚, and to 𝑇∗𝐟𝑖 in the basis 𝐞1,…,𝐞𝑛.
Hint 2. The middle sum in (a) is symmetric in the two bases. Which of the outer sums does not mention the basis of 𝑉? For tr(𝐴∗𝐴), recall Proposition 6.1.16.
Sketch. By Parseval in 𝑊, ‖𝑇𝐞𝑗‖2=∑𝑖|⟨𝑇𝐞𝑗,𝐟𝑖⟩|2; by Parseval in 𝑉, ‖𝑇∗𝐟𝑖‖2=∑𝑗|⟨𝑇∗𝐟𝑖,𝐞𝑗⟩|2=∑𝑗|⟨𝑇𝐞𝑗,𝐟𝑖⟩|2. The right side of (a) does not involve the 𝐞𝑗, so the left side does not depend on them. The entries of 𝐴 are ⟨𝑇𝐞𝑗,𝐟𝑖⟩, so the middle sum is tr(𝐴∗𝐴).

(a) By Theorem 6.3.22(b) in 𝑊, ‖𝑇𝐞𝑗‖2=∑𝑖=1𝑚|⟨𝑇𝐞𝑗,𝐟𝑖⟩|2; summing over 𝑗 gives the first equality. By Theorem 6.3.22(b) in 𝑉 and the definition of the adjoint,

‖𝑇∗𝐟𝑖‖2=∑𝑗=1𝑛|⟨𝑇∗𝐟𝑖,𝐞𝑗⟩|2=∑𝑗=1𝑛|⟨𝐟𝑖,𝑇𝐞𝑗⟩|2=∑𝑗=1𝑛|⟨𝑇𝐞𝑗,𝐟𝑖⟩|2,

using |𝑧|=|𝑧|. Summing over 𝑖 gives the second equality.

(b) Fix the basis 𝐟1,…,𝐟𝑚 of 𝑊. By (a), ∑𝑗‖𝑇𝐞𝑗‖2=∑𝑖‖𝑇∗𝐟𝑖‖2 for every orthonormal basis 𝐞1,…,𝐞𝑛 of 𝑉, and the right side does not involve that basis. So the left side is the same for all of them. By Proposition 6.3.18, the (𝑖,𝑗) entry of 𝐴 is the 𝑖th coordinate of 𝑇𝐞𝑗, namely ⟨𝑇𝐞𝑗,𝐟𝑖⟩, so the middle sum of (a) is ∑𝑖,𝑗|𝑎𝑖𝑗|2=tr(𝐴∗𝐴) (Proposition 6.1.16). Since the left side of (a) does not depend on the bases either, neither does tr(𝐴∗𝐴).

The number ∑𝑗‖𝑇𝐞𝑗‖2 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.

Exercise 6.7.11.standard Let 𝐯1,…,𝐯𝑘 be vectors in an inner product space 𝑉, with Gram matrix 𝐺 (Definition 6.3.28). Show that det𝐺 is a nonnegative real number, and that det𝐺=0 if and only if the list is linearly dependent. Use an orthonormal basis of span(𝐯1,…,𝐯𝑘), not Gram–Schmidt residuals as in Exercise 6.4.59.

Solution.

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)

Hint 1. If the list is dependent, Proposition 6.3.30 already says that 𝐺 is singular.
Hint 2. If it is independent, 𝑊=span(𝐯1,…,𝐯𝑘) has dimension 𝑘. Let 𝐵∈𝔽𝑘×𝑘 have columns [𝐯𝑗]𝒪︀ for an orthonormal basis 𝒪︀ of 𝑊, and show 𝐺=𝐵∗𝐵.
Sketch. If the list is dependent, 𝐺 is singular (Proposition 6.3.30) and det𝐺=0. If it is independent, choose an orthonormal basis 𝒪︀ of its span, which has 𝑘 vectors, and let 𝐵 have columns [𝐯𝑗]𝒪︀. Parseval gives 𝐺=𝐵∗𝐵, and 𝐵 is invertible, so det𝐺=det𝐵det𝐵=|det𝐵|2>0.

If the list is dependent, then 𝐺 is not invertible by Proposition 6.3.30, so det𝐺=0 (Theorem 5.4.7).

Suppose the list is independent. Then it is a basis of 𝑊=span(𝐯1,…,𝐯𝑘), so dim𝑊=𝑘, and 𝑊 has an orthonormal basis 𝒪︀ with 𝑘 vectors (Theorem 6.4.20). Let 𝐵∈𝔽𝑘×𝑘 be the matrix with columns [𝐯1]𝒪︀,…,[𝐯𝑘]𝒪︀. By Theorem 6.3.22, the (𝑖,𝑗) entry of 𝐵∗𝐵 is

[𝐯𝑖]𝒪︀∗[𝐯𝑗]𝒪︀=⟨𝐯𝑗,𝐯𝑖⟩=𝑔𝑖𝑗,

so 𝐺=𝐵∗𝐵. The columns of 𝐵 are the coordinate vectors of a basis, so they are independent and 𝐵 is invertible, with det𝐵≠0. By Theorem 5.4.10 and Exercise 6.3.57(a),

det𝐺=det(𝐵∗)det𝐵=det𝐵det𝐵=|det𝐵|2>0.

So det𝐺≥0 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 det𝐺=‖𝐟1‖2⋯‖𝐟𝑘‖2, and with it the geometric meaning, base times height, repeated.

Exercise 6.7.12.hard Let 𝑛≥2 and 𝑥∈ℝ. Show that there are unit vectors 𝐯1,…,𝐯𝑛 in some real inner product space with ⟨𝐯𝑖,𝐯𝑗⟩=𝑥 for all 𝑖≠𝑗 if and only if

−1𝑛−1≤𝑥≤1.

Describe the configurations at the two endpoints.

Solution.

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)

Hint 1. For the lower bound, expand ‖𝐯1+⋯+𝐯𝑛‖2≥0.
Hint 2. For the construction, work in ℝ𝑛 with 𝐮=(1/𝑛)(1,…,1) and 𝐟𝑖=𝐞𝑖−(1/𝑛)𝐮, which are orthogonal to 𝐮. Try 𝐯𝑖=𝛼𝐟𝑖+𝛽𝐮.
Sketch. Necessity: 𝑥≤1 by Cauchy–Schwarz, and 0≤‖∑𝐯𝑖‖2=𝑛+𝑛(𝑛−1)𝑥. Sufficiency: with 𝐟𝑖=𝐞𝑖−(1/𝑛)(1,…,1), ⟨𝐟𝑖,𝐟𝑗⟩=𝛿𝑖𝑗−1/𝑛 and 𝐟𝑖⟂𝐮. Then 𝐯𝑖=𝛼𝐟𝑖+𝛽𝐮 has ⟨𝐯𝑖,𝐯𝑗⟩=𝛼2(𝛿𝑖𝑗−1/𝑛)+𝛽2, and 𝛼2=1−𝑥, 𝛽2=(1+(𝑛−1)𝑥)/𝑛 work exactly when −1/(𝑛−1)≤𝑥≤1.

Necessity. By Theorem 6.2.1, 𝑥=⟨𝐯1,𝐯2⟩≤‖𝐯1‖‖𝐯2‖=1. By Proposition 6.1.29 (with all 𝑛(𝑛−1) cross terms equal to 𝑥),

0≤‖𝐯1+⋯+𝐯𝑛‖2=∑𝑖,𝑗⟨𝐯𝑗,𝐯𝑖⟩=𝑛+𝑛(𝑛−1)𝑥,

so 𝑥≥−1/(𝑛−1).

Sufficiency. Let −1/(𝑛−1)≤𝑥≤1, and work in ℝ𝑛 with the dot product. Let 𝟏=(1,…,1), 𝐮=𝟏/𝑛, and 𝐟𝑖=𝐞𝑖−(1/𝑛)𝟏, the part of 𝐞𝑖 orthogonal to 𝐮 (Technique 6.2.4). Then ⟨𝐟𝑖,𝐮⟩=(1−1)/𝑛=0 and

⟨𝐟𝑖,𝐟𝑗⟩=𝛿𝑖𝑗−1𝑛−1𝑛+𝑛𝑛2=𝛿𝑖𝑗−1𝑛.

For real 𝛼,𝛽, let 𝐯𝑖=𝛼𝐟𝑖+𝛽𝐮. Since 𝐟𝑖⟂𝐮 and ‖𝐮‖=1,

⟨𝐯𝑖,𝐯𝑗⟩=𝛼2(𝛿𝑖𝑗−1𝑛)+𝛽2.

We need 𝛼2(1−1/𝑛)+𝛽2=1 and −𝛼2/𝑛+𝛽2=𝑥. Subtracting, 𝛼2=1−𝑥, and then 𝛽2=𝑥+(1−𝑥)/𝑛=(1+(𝑛−1)𝑥)/𝑛. Both right sides are nonnegative exactly when −1/(𝑛−1)≤𝑥≤1, so we can take 𝛼=1−𝑥 and 𝛽=(1+(𝑛−1)𝑥)/𝑛.

Endpoints. At 𝑥=1, equality in Cauchy–Schwarz for unit vectors with ⟨𝐯𝑖,𝐯𝑗⟩=1 forces 𝐯𝑖=𝐯𝑗: all the vectors coincide. At 𝑥=−1/(𝑛−1), the expansion above gives ‖𝐯1+⋯+𝐯𝑛‖=0, so the vectors sum to 𝟎; in the construction 𝛽=0, and the vectors 𝐯𝑖=𝑛/(𝑛−1)𝐟𝑖 point from the center of the regular simplex with vertices 𝐞1,…,𝐞𝑛 to its vertices. For 𝑛=3 these are three unit vectors in a plane at angles 2𝜋/3. Every list attaining the lower endpoint has the same Gram matrix as this one, so by Problem 6.9 it is this configuration up to an isometry of spans.

The Gram matrix of the list is (1−𝑥)𝐼𝑛+𝑥𝐽, where 𝐽 has every entry 1. 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.standard 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 𝑃∈L(𝑉) satisfy 𝑃2=𝑃 and ‖𝑃𝐯‖≤‖𝐯‖ for every 𝐯∈𝑉. Then 𝑃=Prim𝑃.

Proof. Let 𝐯∈𝑉. Since 𝑃(𝐯−𝑃𝐯)=𝑃𝐯−𝑃2𝐯=𝟎, we have 𝐯=𝑃𝐯+(𝐯−𝑃𝐯) with 𝑃𝐯∈im𝑃 and 𝐯−𝑃𝐯∈ker𝑃. By the Pythagorean theorem, ‖𝐯‖2=‖𝑃𝐯‖2+‖𝐯−𝑃𝐯‖2, so the two pieces are orthogonal. Hence 𝐯−𝑃𝐯⟂im𝑃, and 𝑃𝐯=Prim𝑃(𝐯) by Theorem 6.4.6.

Solution.

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)

Hint 1. Which hypothesis does the argument never use? What does the Pythagorean theorem require of the two pieces?
Hint 2. For a correct proof, take 𝐮∈im𝑃 and 𝐰∈ker𝑃, and compute 𝑃(𝐮+𝑡𝐰). Then use Exercise 6.7.6.
Sketch. The Pythagorean theorem needs 𝑃𝐯⟂𝐯−𝑃𝐯, which is what has to be proved; the argument never uses ‖𝑃𝐯‖≤‖𝐯‖, and the oblique projection (1100) satisfies everything else. Correct proof: for 𝐮∈im𝑃, 𝐰∈ker𝑃, 𝑃(𝐮+𝑡𝐰)=𝐮, so ‖𝐮‖≤‖𝐮+𝑡𝐰‖ for all 𝑡, and 𝐮⟂𝐰 by Exercise 6.7.6. Then 𝐯−𝑃𝐯⟂im𝑃 and Theorem 6.4.6 finishes.

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 ‖𝐯‖2=‖𝑃𝐯‖2+‖𝐯−𝑃𝐯‖2, which nobody has shown. The argument assumes the conclusion. A sign of this is that the hypothesis ‖𝑃𝐯‖≤‖𝐯‖ is never used. Every step except the Pythagorean one holds for the oblique projection 𝑃=(1100) on ℝ2, which has 𝑃2=𝑃, ker𝑃=span((1,−1)), and im𝑃=span(𝐞1), and for which the pieces of 𝐯=(0,1) are (1,0) and (−1,1), not orthogonal. (Consistently, this 𝑃 violates the norm hypothesis: 𝑃(1,1)=(2,0) is longer than (1,1).) Over ℂ there is a second gap: even if the norms did add up, the converse of Pythagoras fails there (Theorem 6.3.3(b) is stated for 𝔽=ℝ only), so orthogonality would still not follow.

A correct proof. Let 𝐮∈im𝑃 and 𝐰∈ker𝑃. Since 𝐮=𝑃𝐱 for some 𝐱, 𝑃𝐮=𝑃2𝐱=𝐮, so for every 𝑡∈𝔽, 𝑃(𝐮+𝑡𝐰)=𝐮+𝑡𝑃𝐰=𝐮. The norm hypothesis applied to 𝐮+𝑡𝐰 gives

‖𝐮‖=‖𝑃(𝐮+𝑡𝐰)‖≤‖𝐮+𝑡𝐰‖for all𝑡∈𝔽,

so ⟨𝐮,𝐰⟩=0 by Exercise 6.7.6. Thus every vector of ker𝑃 is orthogonal to im𝑃. Now for 𝐯∈𝑉, 𝑃𝐯∈im𝑃 and 𝐯−𝑃𝐯∈ker𝑃⊆(im𝑃)⟂, so 𝑃𝐯=Prim𝑃(𝐯) by Theorem 6.4.6.

Exercise 6.7.14.standard 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 𝑇∈L(𝑉) with ‖𝑇𝐯‖≤‖𝐯‖ for all 𝐯. Then ‖𝑇∗𝐯‖≤‖𝐯‖ for all 𝐯.

Proof. For every 𝐯∈𝑉,

‖𝑇∗𝐯‖2=⟨𝑇𝑇∗𝐯,𝐯⟩=⟨𝑇∗𝑇𝐯,𝐯⟩=‖𝑇𝐯‖2,

and ‖𝑇𝐯‖2≤‖𝐯‖2.

Solution.

Hint 1. Which step replaces one operator by another? When is that legitimate?
Hint 2. For a correct proof, start from ‖𝑇∗𝐯‖2=⟨𝑇𝑇∗𝐯,𝐯⟩ and apply Cauchy–Schwarz, then the hypothesis to the vector 𝑇∗𝐯.
Sketch. The step 𝑇𝑇∗=𝑇∗𝑇 assumes that 𝑇 is normal; the argument would prove ‖𝑇∗𝐯‖=‖𝑇𝐯‖ for every 𝑇, which fails for 𝑇=(0100) at 𝐯=𝐞2. Correct proof: ‖𝑇∗𝐯‖2=⟨𝑇(𝑇∗𝐯),𝐯⟩≤‖𝑇𝑇∗𝐯‖‖𝐯‖≤‖𝑇∗𝐯‖‖𝐯‖, and divide by ‖𝑇∗𝐯‖ when it is nonzero.

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 𝑇=(0100) on ℝ2 with the dot product, 𝑇∗=(0010), and at 𝐯=𝐞2: ‖𝑇∗𝐞2‖2=0 while ‖𝑇𝐞2‖2=‖𝐞1‖2=1.

A correct proof. Let 𝐯∈𝑉. Moving 𝑇 across the inner product, then using Cauchy–Schwarz (Theorem 6.2.1) and the hypothesis applied to 𝑇∗𝐯,

‖𝑇∗𝐯‖2=⟨𝑇𝑇∗𝐯,𝐯⟩≤‖𝑇(𝑇∗𝐯)‖‖𝐯‖≤‖𝑇∗𝐯‖‖𝐯‖.

If 𝑇∗𝐯=𝟎 the claim is clear; otherwise divide by ‖𝑇∗𝐯‖>0. So ‖𝑇∗𝐯‖≤‖𝐯‖.

In terms of the operator norm of Section 9.2, the claim says ‖𝑇∗‖≤‖𝑇‖, and applying it to 𝑇∗ gives equality.

Exercise 6.7.15.routine For each statement, decide whether it holds in every real inner product space, and whether it holds in every complex one. Here 𝐱,𝐲,𝐯∈𝑉 and 𝑇∈L(𝑉), with 𝑉 finite-dimensional.

  1. (a)If ⟨𝑇𝐯,𝐯⟩=0 for every 𝐯, then 𝑇=0.
  2. (b)If ‖𝐱+𝐲‖2=‖𝐱‖2+‖𝐲‖2, then 𝐱⟂𝐲.
  3. (c)⟨𝐱,𝐲⟩=14(‖𝐱+𝐲‖2−‖𝐱−𝐲‖2).
  4. (d)If ⟨𝑇𝐯,𝐯⟩∈ℝ for every 𝐯, then 𝑇 is self-adjoint.

Solution.

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)

Hint 1. Each of the four holds over exactly one of ℝ and ℂ. Test the complex failures on 𝑉=ℂ with 𝐱=1 and 𝐲=𝑖.
Hint 2. For the real failures, use the rotation 𝐽=(0−110).
Sketch. (a) True over ℂ (Proposition 6.1.41), false over ℝ (rotation by 𝜋/2). (b) True over ℝ, false over ℂ: |1+𝑖|2=2=1+1 but ⟨1,𝑖⟩=−𝑖. (c) True over ℝ; over ℂ the right side is Re⟨𝐱,𝐲⟩, so it fails for 1,𝑖. (d) True over ℂ (Proposition 6.6.30); over ℝ the hypothesis holds for every 𝑇, and the rotation is not self-adjoint.

(a) Over ℂ this is Proposition 6.1.41. Over ℝ it is false: the rotation 𝑇𝐯=𝐽𝐯 with 𝐽=(0−110) has ⟨𝑇𝐯,𝐯⟩=0 for every 𝐯∈ℝ2 (Example 6.1.39), and 𝑇≠0.

(b) Over ℝ this is Theorem 6.3.3(b). Over ℂ it is false: in 𝑉=ℂ with ⟨𝑧,𝑤⟩=𝑧𝑤, |1+𝑖|2=2=|1|2+|𝑖|2, but ⟨1,𝑖⟩=−𝑖≠0.

(c) Over ℝ this is Proposition 6.1.32(a). Over ℂ, Proposition 6.1.29 shows that the right side equals Re⟨𝐱,𝐲⟩, so the formula fails whenever ⟨𝐱,𝐲⟩ is not real: for 𝐱=1 and 𝐲=𝑖 in ℂ the right side is (2−2)/4=0 while ⟨1,𝑖⟩=−𝑖.

(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: ⟨𝑇𝐞1,𝐞2⟩=1 while ⟨𝐞1,𝑇𝐞2⟩=−1.

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 2Re⟨𝐱,𝐲⟩ is all of 2⟨𝐱,𝐲⟩.