Books
Theme
Text size
Width

[ and ] go to the previous and next page.

For nonzero 𝐯,𝐰∈ℝ2, 𝐯⋅𝐰=0 exactly when 𝐯 and 𝐰 are perpendicular ((6.1.1)), and in every real inner product space the angle between nonzero vectors (Definition 6.2.16) is a right angle exactly when ⟨𝐯,𝐰⟩=0 (Proposition 6.2.17). This section takes the condition ⟨𝐯,𝐰⟩=0 as the definition of perpendicularity, now over ℝ and ℂ alike, and studies bases made of perpendicular unit vectors. For such a basis, finding the coordinates of a vector requires no linear system: each coordinate is a single inner product, computed without reference to the others. Once the coordinates are known, lengths and inner products are computed from them exactly as in 𝔽𝑛 with the dot product. In 𝔽𝑛 these bases are the columns of the matrices 𝑈 with 𝑈∗𝑈=𝐼, and we end with the most important example after the standard basis, the Fourier basis of ℂ𝑛.

Throughout, 𝑉 is an inner product space over 𝔽, where 𝔽 is ℝ or ℂ (Notation 6.1.1).

6.3.1Orthogonality

Definition 6.3.1 (Orthogonality). Let 𝑉 be an inner product space. Vectors 𝐮,𝐯∈𝑉 are orthogonal, written 𝐮⟂𝐯, if ⟨𝐮,𝐯⟩=0. A list 𝐯1,…,𝐯𝑘 in 𝑉 is orthogonal if 𝐯𝑖⟂𝐯𝑗 whenever 𝑖≠𝑗.

Orthogonality is symmetric: ⟨𝐯,𝐮⟩=⟨𝐮,𝐯⟩, and a complex number vanishes exactly when its conjugate does. By Proposition 6.1.4(b), 𝟎 is orthogonal to every vector, itself included, and by definiteness it is the only vector orthogonal to itself. It is also the only vector orthogonal to every vector of 𝑉: if 𝐯⟂𝐱 for all 𝐱, take 𝐱=𝐯. (This is Proposition 6.1.37 with 𝐰=𝟎.)

In the definition of an orthogonal list only entries in different positions are compared. So a list of length 0 or 1 is orthogonal, an orthogonal list may contain 𝟎 any number of times, and a nonzero vector cannot occur twice in an orthogonal list, since ⟨𝐯,𝐯⟩≠0.

Example 6.3.2 (Orthogonal vectors).
  1. (a)In ℝ2, (𝑎,𝑏)⟂(−𝑏,𝑎) for all 𝑎,𝑏, since 𝑎(−𝑏)+𝑏𝑎=0. The second vector is the first rotated by 𝜋/2. For instance (1,2)⟂(−2,1).
  2. (b)In ℂ2, (1,𝑖)⋅(1,−𝑖)=1⋅1+𝑖⋅−𝑖=1+𝑖⋅𝑖=0, so (1,𝑖)⟂(1,−𝑖). Forgetting the conjugate gives 1+𝑖(−𝑖)=2 instead.
  3. (c)Give 𝐶[−1,1] the inner product ⟨𝑓,𝑔⟩=∫−11𝑓(𝑡)𝑔(𝑡)d𝑡 (Proposition 6.1.13, on [−1,1]). If 𝑓 is even and 𝑔 is odd, then 𝑓𝑔 is odd, so ⟨𝑓,𝑔⟩=0. For instance 1⟂𝑡 and 𝑡⟂𝑡2. On the other hand ⟨1,𝑡2⟩=2/3≠0.

Orthogonality depends on the inner product as well as on the vectors. For the inner product ⟨𝐱,𝐲⟩=𝐲𝖳𝑀𝐱 on ℝ2 with 𝑀=(2112) (Example 6.1.23), ⟨𝐞1,𝐞2⟩=𝑚21=1, so 𝐞1 and 𝐞2 are not orthogonal. The vectors (1,1) and (1,−1) are orthogonal for both inner products: 𝑀(1,1)=(3,3), and (1,−1)⋅(3,3)=0.

Over ℂ, orthogonality is more demanding than perpendicularity of arrows. In ℂ=ℂ1 with ⟨𝑧,𝑤⟩=𝑧𝑤, the numbers 1 and 𝑖 are perpendicular as arrows in the plane, but ⟨1,𝑖⟩=𝑖=−𝑖≠0. They are not orthogonal, and they should not be, since 𝑖=𝑖⋅1 is a scalar multiple of 1. As we saw at the end of Section 6.2.3, ⟨𝐮,𝐯⟩=0 says that 𝐯 is perpendicular, in the real sense, to 𝜆𝐮 for every 𝜆 with |𝜆|=1.

The Pythagorean theorem

Theorem 6.3.3 (Pythagorean theorem). Let 𝐮,𝐯∈𝑉.

  1. (a)If 𝐮⟂𝐯, then ‖𝐮+𝐯‖2=‖𝐮‖2+‖𝐯‖2.
  2. (b)If 𝔽=ℝ, the converse holds: if ‖𝐮+𝐯‖2=‖𝐮‖2+‖𝐯‖2, then 𝐮⟂𝐯.

Proof.routine

Uses. Proposition 6.1.29 (Expanding a norm), Definition 6.3.1 (Orthogonality)

Hint 1. Expand ‖𝐮+𝐯‖2 with Proposition 6.1.29. Which term has to vanish?
Hint 2. The identity holds if and only if Re⟨𝐮,𝐯⟩=0. Over ℝ, what is Re⟨𝐮,𝐯⟩?
Sketch. By Proposition 6.1.29, ‖𝐮+𝐯‖2−‖𝐮‖2−‖𝐯‖2=2Re⟨𝐮,𝐯⟩. So the identity holds exactly when Re⟨𝐮,𝐯⟩=0. This follows from ⟨𝐮,𝐯⟩=0, and over ℝ, where ⟨𝐮,𝐯⟩ is real, it is equivalent to it.

By Proposition 6.1.29,

‖𝐮+𝐯‖2=‖𝐮‖2+2Re⟨𝐮,𝐯⟩+‖𝐯‖2,
(6.3.1)

so the identity ‖𝐮+𝐯‖2=‖𝐮‖2+‖𝐯‖2 holds if and only if Re⟨𝐮,𝐯⟩=0.

(a) If 𝐮⟂𝐯, then ⟨𝐮,𝐯⟩=0, so its real part is 0.

(b) If 𝔽=ℝ, then ⟨𝐮,𝐯⟩ is real and equals its real part. So Re⟨𝐮,𝐯⟩=0 says that 𝐮⟂𝐯. □

In ℝ2 with the dot product, (a) is the theorem about the right triangle with legs 𝐮, 𝐯 and hypotenuse 𝐮+𝐯, and (b) is its converse. In other spaces it says new things. In 𝐶[−1,1], 1⟂𝑡 by Example 6.3.2(c), so

∫−11(1+𝑡)2d𝑡=‖1‖2+‖𝑡‖2=2+23=83,

which agrees with the direct computation ∫−11(1+2𝑡+𝑡2)d𝑡=2+0+2/3.

Non-example 6.3.4 (The converse fails over ℂ). In ℂ with ⟨𝑧,𝑤⟩=𝑧𝑤, take 𝐮=1 and 𝐯=𝑖. Then |1+𝑖|2=2=|1|2+|𝑖|2, but ⟨1,𝑖⟩=−𝑖≠0. More generally, let 𝐱≠𝟎 be a vector in any complex inner product space. By Proposition 6.1.27,

‖𝐱+𝑖𝐱‖2=|1+𝑖|2‖𝐱‖2=2‖𝐱‖2=‖𝐱‖2+‖𝑖𝐱‖2,

while ⟨𝐱,𝑖𝐱⟩=𝑖‖𝐱‖2=−𝑖‖𝐱‖2≠0. The proof of Theorem 6.3.3 shows what goes wrong: the Pythagorean identity only sees Re⟨𝐮,𝐯⟩, and here ⟨𝐮,𝐯⟩ is purely imaginary.

The imaginary part becomes visible once 𝐯 is multiplied by 𝑖. With 𝑎=𝑖, Proposition 6.1.29 gives ‖𝐮+𝑖𝐯‖2=‖𝐮‖2+2Im⟨𝐮,𝐯⟩+‖𝐯‖2, as computed after that proposition. So over ℂ two Pythagorean identities together detect orthogonality.

Proposition 6.3.5 (Orthogonality over ℂ through Pythagoras). Let 𝑉 be a complex inner product space and 𝐮,𝐯∈𝑉. Then 𝐮⟂𝐯 if and only if both

‖𝐮+𝐯‖2=‖𝐮‖2+‖𝐯‖2and‖𝐮+𝑖𝐯‖2=‖𝐮‖2+‖𝑖𝐯‖2.

In that case ‖𝐮+𝑎𝐯‖2=‖𝐮‖2+‖𝑎𝐯‖2 for every 𝑎∈ℂ.

Proof.routine

Uses. Proposition 6.1.29 (Expanding a norm), Proposition 6.1.27 (Basic properties of the norm), Notation 6.1.1 (Real and complex scalars)

Techniques. Plug in clever test vectors (Technique 6.1.40)

Hint 1. Expand ‖𝐮+𝑎𝐯‖2 with Proposition 6.1.29 for a general scalar 𝑎. The Pythagorean identity for 𝐮 and 𝑎𝐯 says that one term vanishes.
Hint 2. For 𝑎=1 that term is 2Re⟨𝐮,𝐯⟩. For 𝑎=𝑖 it is 2Re(−𝑖⟨𝐮,𝐯⟩); which part of ⟨𝐮,𝐯⟩ is that?
Sketch. By Proposition 6.1.29 and ‖𝑎𝐯‖2=|𝑎|2‖𝐯‖2, the identity for 𝐮 and 𝑎𝐯 holds exactly when Re(𝑎⟨𝐮,𝐯⟩)=0. For 𝑎=1 and 𝑎=𝑖 this says Re⟨𝐮,𝐯⟩=0 and Im⟨𝐮,𝐯⟩=0, which together say ⟨𝐮,𝐯⟩=0. If ⟨𝐮,𝐯⟩=0, then Re(𝑎⋅0)=0 for every 𝑎.

Let 𝑎∈ℂ. By Proposition 6.1.29 and Proposition 6.1.27,

‖𝐮+𝑎𝐯‖2−‖𝐮‖2−‖𝑎𝐯‖2=2Re(𝑎⟨𝐮,𝐯⟩).

For 𝑎=1 the right side is 2Re⟨𝐮,𝐯⟩, and for 𝑎=𝑖 it is 2Re(−𝑖⟨𝐮,𝐯⟩)=2Im⟨𝐮,𝐯⟩ (Notation 6.1.1). So the two displayed identities hold together if and only if the real and imaginary parts of ⟨𝐮,𝐯⟩ both vanish, that is, if and only if 𝐮⟂𝐯. Finally, if ⟨𝐮,𝐯⟩=0, the right side is 0 for every 𝑎. □

The last statement also follows from Theorem 6.3.3(a): if 𝐮⟂𝐯, then ⟨𝐮,𝑎𝐯⟩=𝑎⟨𝐮,𝐯⟩=0, so 𝐮⟂𝑎𝐯 for every scalar 𝑎. Over ℂ, then, orthogonality is “Pythagoras for 𝐮 and every multiple of 𝐯”, which matches the description of orthogonality through unit-modulus multiples above.

The Pythagorean theorem extends to any number of vectors, and pairwise orthogonality is all it needs.

Corollary 6.3.6 (Pythagoras for orthogonal lists). Let 𝐯1,…,𝐯𝑘 be an orthogonal list in 𝑉, and let 𝑎1,…,𝑎𝑘∈𝔽. Then

‖𝑎1𝐯1+⋯+𝑎𝑘𝐯𝑘‖2=|𝑎1|2‖𝐯1‖2+⋯+|𝑎𝑘|2‖𝐯𝑘‖2.

Proof (by expanding).routine

Uses. Proposition 6.1.4 (Sesquilinearity), Definition 6.1.26 (Norm), Definition 6.3.1 (Orthogonality)

Techniques. Expand by multilinearity (Technique 5.1.7)

Hint 1. Write the left side as an inner product of a sum with itself and expand both slots.
Hint 2. You get ∑𝑗∑𝑙𝑎𝑗𝑎𝑙⟨𝐯𝑗,𝐯𝑙⟩. Which terms survive?
Sketch. Expanding both slots gives 𝑘2 terms 𝑎𝑗𝑎𝑙⟨𝐯𝑗,𝐯𝑙⟩. Those with 𝑗≠𝑙 vanish by orthogonality, and those with 𝑗=𝑙 are |𝑎𝑗|2‖𝐯𝑗‖2.

By linearity in the first slot and Proposition 6.1.4 in the second,

‖∑𝑗=1𝑘𝑎𝑗𝐯𝑗‖2=⟨∑𝑗=1𝑘𝑎𝑗𝐯𝑗,∑𝑙=1𝑘𝑎𝑙𝐯𝑙⟩=∑𝑗=1𝑘∑𝑙=1𝑘𝑎𝑗𝑎𝑙⟨𝐯𝑗,𝐯𝑙⟩.

For 𝑗≠𝑙 the term is 0 because 𝐯𝑗⟂𝐯𝑙. For 𝑗=𝑙 it is 𝑎𝑗𝑎𝑗⟨𝐯𝑗,𝐯𝑗⟩=|𝑎𝑗|2‖𝐯𝑗‖2. Adding these gives the claim. □

Proof (by induction on 𝑘).routine

Uses. Theorem 6.3.3 (Pythagorean theorem), Proposition 6.1.27 (Basic properties of the norm), Proposition 6.1.4 (Sesquilinearity)

Techniques. Induction on the length of a list (Technique 1.6.9)

Hint 1. Split off the last term: 𝐰=𝑎1𝐯1+⋯+𝑎𝑘−1𝐯𝑘−1 and 𝑎𝑘𝐯𝑘.
Hint 2. Check that 𝐰⟂𝑎𝑘𝐯𝑘 by expanding ⟨𝐰,𝑎𝑘𝐯𝑘⟩, then apply Theorem 6.3.3.
Sketch. The case 𝑘=1 is Proposition 6.1.27. For 𝑘≥2, the vector 𝐰=∑𝑗<𝑘𝑎𝑗𝐯𝑗 satisfies ⟨𝐰,𝑎𝑘𝐯𝑘⟩=∑𝑗<𝑘𝑎𝑗𝑎𝑘⟨𝐯𝑗,𝐯𝑘⟩=0, so Theorem 6.3.3 splits off |𝑎𝑘|2‖𝐯𝑘‖2, and the induction hypothesis handles ‖𝐰‖2.

We induct on 𝑘. For 𝑘=1 the claim is ‖𝑎1𝐯1‖2=|𝑎1|2‖𝐯1‖2, which is Proposition 6.1.27. Let 𝑘≥2 and assume the claim for orthogonal lists of length 𝑘−1. Let 𝐰=𝑎1𝐯1+⋯+𝑎𝑘−1𝐯𝑘−1. Then

⟨𝐰,𝑎𝑘𝐯𝑘⟩=∑𝑗=1𝑘−1𝑎𝑗𝑎𝑘⟨𝐯𝑗,𝐯𝑘⟩=0,

so 𝐰⟂𝑎𝑘𝐯𝑘, and by Theorem 6.3.3(a), Proposition 6.1.27, and the induction hypothesis applied to the orthogonal list 𝐯1,…,𝐯𝑘−1,

‖𝐰+𝑎𝑘𝐯𝑘‖2=‖𝐰‖2+|𝑎𝑘|2‖𝐯𝑘‖2=∑𝑗=1𝑘|𝑎𝑗|2‖𝐯𝑗‖2,

as desired. □

The second proof explains why pairwise orthogonality is enough: a vector orthogonal to each of 𝐯1,…,𝐯𝑘−1 is orthogonal to every linear combination of them. We record this fact in Proposition 6.3.9.

Exercise 6.3.7.routine In ℂ3 with the dot product, find all 𝑎∈ℂ with (1,𝑖,𝑎)⟂(2,1+𝑖,𝑖). For that 𝑎, verify Theorem 6.3.3(a) for the two vectors by computing all three norms.

Solution.

Uses. Definition 6.1.8 (Dot product), Definition 6.3.1 (Orthogonality), Proposition 6.1.10 (The dot product is an inner product)

Hint 1. Conjugate the entries of the second vector, multiply entrywise, and add. You get a linear equation in 𝑎.
Hint 2. The equation is 3+𝑖−𝑖𝑎=0.
Sketch. (1,𝑖,𝑎)⋅(2,1+𝑖,𝑖)=2+𝑖(1−𝑖)−𝑖𝑎=3+𝑖−𝑖𝑎, which vanishes for 𝑎=1−3𝑖. Then the squared norms are 12 and 7, and the sum (3,1+2𝑖,1−2𝑖) has squared norm 9+5+5=19=12+7.

By Definition 6.1.8,

(1,𝑖,𝑎)⋅(2,1+𝑖,𝑖)=1⋅2+𝑖⋅(1+𝑖)+𝑎⋅𝑖=2+𝑖(1−𝑖)−𝑖𝑎=3+𝑖−𝑖𝑎.

This vanishes if and only if 𝑖𝑎=3+𝑖, that is, 𝑎=(3+𝑖)/𝑖=(3+𝑖)(−𝑖)=1−3𝑖.

With 𝐮=(1,𝑖,1−3𝑖) and 𝐯=(2,1+𝑖,𝑖), Proposition 6.1.10 gives ‖𝐮‖2=1+1+10=12 and ‖𝐯‖2=4+2+1=7. The sum is 𝐮+𝐯=(3,1+2𝑖,1−2𝑖), with ‖𝐮+𝐯‖2=9+5+5=19=12+7, as Theorem 6.3.3 predicts.

Orthogonality to a set

We often need all vectors orthogonal to a given collection of vectors.

Definition 6.3.8 (Vectors orthogonal to a set). Let 𝐴⊆𝑉 be any subset. A vector 𝐯∈𝑉 is orthogonal to 𝐴, written 𝐯⟂𝐴, if 𝐯⟂𝐚 for every 𝐚∈𝐴. The set of all such vectors is

𝐴⟂={𝐯∈𝑉|⟨𝐯,𝐚⟩=0for all𝐚∈𝐴},

read “𝐴 perp”. For a list ℒ︀, ℒ︀⟂ is the perp of the set of entries of ℒ︀.

When 𝐴 is a subspace, 𝐴⟂ is called the orthogonal complement of 𝐴, and Section 6.4 shows that in finite dimensions it is a complement of 𝐴 in the sense of Section 4.4. For now 𝐴 is arbitrary.

Proposition 6.3.9 (Properties of 𝐴⟂). Let 𝐴,𝐵⊆𝑉.

  1. (a)𝐴⟂ is a subspace of 𝑉.
  2. (b)If 𝐴⊆𝐵, then 𝐵⟂⊆𝐴⟂.
  3. (c)For a list ℒ︀=𝐯1,…,𝐯𝑘 in 𝑉, span(ℒ︀)⟂=ℒ︀⟂. That is, a vector is orthogonal to every linear combination of 𝐯1,…,𝐯𝑘 if and only if it is orthogonal to each 𝐯𝑗.
  4. (d){𝟎}⟂=𝑉, 𝑉⟂={𝟎}, and 𝐴∩𝐴⟂⊆{𝟎}.

Proof.routine

Uses. Theorem 1.4.3 (Subspace criterion), Proposition 6.1.4 (Sesquilinearity), Proposition 1.3.17 (A list lies in its span), Definition 1.3.10 (Span), Definition 6.1.2 (Inner product)

Techniques. Double containment (Technique 1.3.14), Fix an arbitrary element and chase it (Technique 1.3.13)

Hint 1. For (a), check the conditions of Theorem 1.4.3 using linearity in the first slot.
Hint 2. For (c), one containment is (b). For the other, take 𝐯⟂𝐯𝑗 for all 𝑗 and expand ⟨𝐯,∑𝑗𝑐𝑗𝐯𝑗⟩ in the second slot.
Hint 3. For (d), a vector in 𝑉⟂ or in 𝐴∩𝐴⟂ is orthogonal to itself.
Sketch. (a) 𝟎∈𝐴⟂, and ⟨𝑐𝐯+𝐰,𝐚⟩=𝑐⟨𝐯,𝐚⟩+⟨𝐰,𝐚⟩ shows closure. (b) Orthogonality to all of 𝐵 includes orthogonality to all of 𝐴. (c) ℒ︀⊆span(ℒ︀) gives one containment by (b); conversely ⟨𝐯,∑𝑗𝑐𝑗𝐯𝑗⟩=∑𝑗𝑐𝑗⟨𝐯,𝐯𝑗⟩=0. (d) Everything is orthogonal to 𝟎, and a vector orthogonal to itself is 𝟎.

(a) By Proposition 6.1.4(b), ⟨𝟎,𝐚⟩=0 for all 𝐚∈𝐴, so 𝟎∈𝐴⟂. Let 𝐯,𝐰∈𝐴⟂ and 𝑐∈𝔽. For every 𝐚∈𝐴, linearity in the first slot gives

⟨𝑐𝐯+𝐰,𝐚⟩=𝑐⟨𝐯,𝐚⟩+⟨𝐰,𝐚⟩=𝑐⋅0+0=0,

so 𝑐𝐯+𝐰∈𝐴⟂. By Theorem 1.4.3, 𝐴⟂ is a subspace.

(b) If 𝐯∈𝐵⟂, then 𝐯⟂𝐛 for every 𝐛∈𝐵, in particular for every element of 𝐴⊆𝐵. So 𝐯∈𝐴⟂.

(c) Each 𝐯𝑗 lies in span(ℒ︀) (Proposition 1.3.17), so (b) gives span(ℒ︀)⟂⊆ℒ︀⟂. Conversely, let 𝐯∈ℒ︀⟂, and let 𝐰=𝑐1𝐯1+⋯+𝑐𝑘𝐯𝑘 be any element of span(ℒ︀). By Proposition 6.1.4,

⟨𝐯,𝐰⟩=𝑐1⟨𝐯,𝐯1⟩+⋯+𝑐𝑘⟨𝐯,𝐯𝑘⟩=0,

so ⟨𝐰,𝐯⟩=⟨𝐯,𝐰⟩=0 as well, and 𝐯∈span(ℒ︀)⟂.

(d) Every 𝐯∈𝑉 satisfies ⟨𝐯,𝟎⟩=0 by Proposition 6.1.4(b), so {𝟎}⟂=𝑉. If 𝐯∈𝑉⟂, then in particular ⟨𝐯,𝐯⟩=0, so 𝐯=𝟎 by definiteness; and 𝟎∈𝑉⟂ by (a). Finally, if 𝐯∈𝐴∩𝐴⟂, then 𝐯⟂𝐯, so 𝐯=𝟎. □

Part (c) is how 𝐴⟂ is computed in practice: to test orthogonality to a subspace, test it on a spanning list. The same argument shows 𝐴⟂=span(𝐴)⟂ for an arbitrary subset 𝐴, with span(𝐴) as in Aside (Spans of infinite sets). Part (a) holds even when 𝐴 itself is not a subspace.

Example 6.3.10 (Perps are solution sets).
  1. (a)In ℝ3, {(1,1,1)}⟂={𝐱∈ℝ3|𝑥1+𝑥2+𝑥3=0}, the plane through 𝟎 with normal vector (1,1,1).
  2. (b)Let 𝐴∈𝔽𝑚×𝑛. The 𝑖th entry of 𝐴𝐱 is ∑𝑗𝑎𝑖𝑗𝑥𝑗=𝐱⋅𝐫𝑖, where 𝐫𝑖=(𝑎𝑖1,…,𝑎𝑖𝑛)∈𝔽𝑛 is the 𝑖th row of 𝐴 with its entries conjugated. So

    ker𝐴={𝐫1,…,𝐫𝑚}⟂.

    Over ℝ, 𝐫𝑖 is just the 𝑖th row of 𝐴, and solving a homogeneous system means finding all vectors orthogonal to the rows of its coefficient matrix. For instance, for 𝐴=(12001−1), solving 𝐴𝐱=𝟎 gives ker𝐴=span((−2,1,1)), and indeed (−2,1,1) is orthogonal to (1,2,0) and to (0,1,−1). The vectors 𝐫𝑖 are the columns of the matrix 𝐴∗ of Definition 6.3.26 below, so by Proposition 6.3.9(c) this says ker𝐴=(im𝐴∗)⟂; Section 6.6 proves the analogous statement for linear maps.

Exercise 6.3.11.routine Let 𝐴,𝐵⊆𝑉. Show that (𝐴∪𝐵)⟂=𝐴⟂∩𝐵⟂ and that 𝐴⊆(𝐴⟂)⟂. Give an example with 𝐴≠(𝐴⟂)⟂.

Solution.

Uses. Definition 6.3.8 (Vectors orthogonal to a set), Proposition 6.3.9 (Properties of 𝐴⟂)

Techniques. Double containment (Technique 1.3.14)

Hint 1. For the first identity, unwind the definitions: being orthogonal to every element of 𝐴∪𝐵 means being orthogonal to every element of 𝐴 and to every element of 𝐵.
Hint 2. For 𝐴⊆(𝐴⟂)⟂, take 𝐚∈𝐴 and 𝐯∈𝐴⟂, and compute ⟨𝐚,𝐯⟩ using symmetry of orthogonality.
Hint 3. (𝐴⟂)⟂ is always a subspace, by Proposition 6.3.9(a).
Sketch. 𝐯⟂(𝐴∪𝐵) if and only if 𝐯⟂𝐴 and 𝐯⟂𝐵. If 𝐚∈𝐴 and 𝐯∈𝐴⟂, then ⟨𝐚,𝐯⟩=⟨𝐯,𝐚⟩=0, so 𝐚∈(𝐴⟂)⟂. For 𝐴={(1,0)} in ℝ2, (𝐴⟂)⟂ is a subspace, so it is not 𝐴.

A vector 𝐯 lies in (𝐴∪𝐵)⟂ if and only if ⟨𝐯,𝐜⟩=0 for every 𝐜 in 𝐴 or in 𝐵, that is, if and only if 𝐯∈𝐴⟂ and 𝐯∈𝐵⟂. So (𝐴∪𝐵)⟂=𝐴⟂∩𝐵⟂.

Let 𝐚∈𝐴. For every 𝐯∈𝐴⟂, ⟨𝐚,𝐯⟩=⟨𝐯,𝐚⟩=0=0. So 𝐚 is orthogonal to every vector of 𝐴⟂, that is, 𝐚∈(𝐴⟂)⟂.

For 𝐴={(1,0)} in ℝ2 with the dot product, (𝐴⟂)⟂ is a subspace by Proposition 6.3.9(a), so it contains 𝟎∉𝐴. In fact 𝐴⟂=span((0,1)) and (𝐴⟂)⟂=span((1,0)). (Section 6.4 shows that (𝑊⟂)⟂=𝑊 when 𝑊 is a finite-dimensional subspace.)

6.3.2Orthonormal lists and bases

Orthogonal lists are independent

Three mutually perpendicular nonzero arrows in ℝ3 cannot lie in a common plane, so they are linearly independent. To prove the general version, start from a linear relation 𝑎1𝐯1+⋯+𝑎𝑘𝐯𝑘=𝟎 among orthogonal vectors and try to show that one coefficient, say 𝑎𝑗, is 0. The inner product with 𝐯𝑗 is the natural thing to apply: it is linear, so it can be applied term by term, and it annihilates every 𝐯𝑙 with 𝑙≠𝑗. This move is used throughout the rest of the book.

Technique 6.3.12 (Take an inner product to isolate a coefficient). If a vector is written as a combination 𝐰=𝑎1𝐯1+⋯+𝑎𝑘𝐯𝑘 of an orthogonal list, take the inner product of both sides with 𝐯𝑗. Linearity in the first slot distributes it over the sum, and orthogonality removes every term except the 𝑗th:

⟨𝐰,𝐯𝑗⟩=∑𝑙=1𝑘𝑎𝑙⟨𝐯𝑙,𝐯𝑗⟩=𝑎𝑗‖𝐯𝑗‖2.

So each coefficient is determined by one inner product, with no reference to the other coefficients. Put 𝐯𝑗 in the second slot; in the first slot it produces ⟨𝐯𝑗,𝐰⟩=𝑎𝑗‖𝐯𝑗‖2, the conjugate.

Reach for it when a vector or a linear relation is expressed through an orthogonal list and you need the coefficients, or need to show that they vanish. It is the inner-product form of Technique 4.1.25: the linear map 𝐱↦⟨𝐱,𝐯𝑗⟩ from 𝑉 to 𝔽 kills every 𝐯𝑙 with 𝑙≠𝑗. The canonical example is Proposition 6.3.13. The coordinate formula Proposition 6.3.18, the Fourier inversion formula (Proposition 6.3.41), and Gram–Schmidt (Algorithm 6.4.14) use it again.

Proposition 6.3.13 (Orthogonal lists are independent). An orthogonal list of nonzero vectors is linearly independent.

Proof (by isolating coefficients).routine

Uses. Theorem 1.5.5 (Independence is decided at zero), Definition 6.3.1 (Orthogonality), Proposition 6.1.4 (Sesquilinearity), Proposition 6.1.27 (Basic properties of the norm)

Techniques. Take an inner product to isolate a coefficient (Technique 6.3.12)

Hint 1. Start from a linear relation 𝑎1𝐯1+⋯+𝑎𝑘𝐯𝑘=𝟎. You must show that every 𝑎𝑗 is 0.
Hint 2. Fix 𝑗 and take the inner product of both sides with 𝐯𝑗.
Hint 3. You get 𝑎𝑗‖𝐯𝑗‖2=0. Why is ‖𝐯𝑗‖≠0?
Sketch. If ∑𝑙𝑎𝑙𝐯𝑙=𝟎, then for each 𝑗, 0=⟨∑𝑙𝑎𝑙𝐯𝑙,𝐯𝑗⟩=𝑎𝑗‖𝐯𝑗‖2 by orthogonality. Since 𝐯𝑗≠𝟎, ‖𝐯𝑗‖2>0, so 𝑎𝑗=0. Only the trivial relation exists.

Let 𝐯1,…,𝐯𝑘 be an orthogonal list of nonzero vectors, and suppose 𝑎1𝐯1+⋯+𝑎𝑘𝐯𝑘=𝟎. Fix 𝑗∈{1,…,𝑘}. By Proposition 6.1.4(b) and linearity in the first slot,

0=⟨𝟎,𝐯𝑗⟩=⟨∑𝑙=1𝑘𝑎𝑙𝐯𝑙,𝐯𝑗⟩=∑𝑙=1𝑘𝑎𝑙⟨𝐯𝑙,𝐯𝑗⟩=𝑎𝑗⟨𝐯𝑗,𝐯𝑗⟩=𝑎𝑗‖𝐯𝑗‖2,

where the fourth step uses ⟨𝐯𝑙,𝐯𝑗⟩=0 for 𝑙≠𝑗. Since 𝐯𝑗≠𝟎, ‖𝐯𝑗‖2>0 by Proposition 6.1.27, so 𝑎𝑗=0. As 𝑗 was arbitrary, the only linear relation among 𝐯1,…,𝐯𝑘 is the trivial one, and the list is independent by Theorem 1.5.5. □

Proof (by Pythagoras).routine

Uses. Corollary 6.3.6 (Pythagoras for orthogonal lists), Theorem 1.5.5 (Independence is decided at zero), Proposition 6.1.27 (Basic properties of the norm)

Techniques. A sum of nonnegative terms (Technique 6.1.9)

Hint 1. Take the squared norm of both sides of a relation ∑𝑙𝑎𝑙𝐯𝑙=𝟎.
Hint 2. Corollary 6.3.6 turns the left side into a sum of nonnegative terms.
Sketch. If ∑𝑙𝑎𝑙𝐯𝑙=𝟎, then 0=‖∑𝑙𝑎𝑙𝐯𝑙‖2=∑𝑙|𝑎𝑙|2‖𝐯𝑙‖2. A sum of nonnegative terms vanishes only if each does, and ‖𝐯𝑙‖>0, so every 𝑎𝑙=0.

Suppose 𝑎1𝐯1+⋯+𝑎𝑘𝐯𝑘=𝟎. By Corollary 6.3.6,

0=‖𝟎‖2=|𝑎1|2‖𝐯1‖2+⋯+|𝑎𝑘|2‖𝐯𝑘‖2.

Each term is a nonnegative real number, so each term is 0. Since ‖𝐯𝑙‖2>0 for every 𝑙, it follows that |𝑎𝑙|2=0, that is, 𝑎𝑙=0, for every 𝑙. By Theorem 1.5.5 the list is independent. □

The first proof extracts the coefficients one at a time; the second shows with a single number that they all vanish. The second also says more: by Corollary 6.3.6, a combination of orthogonal unit vectors has length (∑𝑙|𝑎𝑙|2)1/2, so it is short only when all its coefficients are small. Both proofs use that ‖𝐯𝑗‖2≠0 for 𝐯𝑗≠𝟎. For the “dot product” ∑𝑘𝑥𝑘𝑦𝑘 on 𝔽2𝑛 with 𝑛≥2, which is not an inner product, this fails, and so does the proposition (Exercise 6.3.47). The hypothesis that the vectors are nonzero is needed too, since the orthogonal list 𝐯,𝟎 is dependent.

Corollary 6.3.14 (Counting orthogonal vectors). Let 𝑉 be finite-dimensional with dim𝑉=𝑛. An orthogonal list of nonzero vectors in 𝑉 has length at most 𝑛, and if its length is exactly 𝑛, it is a basis of 𝑉.

Proof.routine

Uses. Proposition 6.3.13 (Orthogonal lists are independent), Theorem 4.1.10 (Independent lists are short), an independent list of length dim𝑉 is a basis (Section 4.1)

Hint 1. By Proposition 6.3.13, such a list is independent. What does Section 4.1 say about independent lists?
Hint 2. Independent lists have length at most dim𝑉, and an independent list of length dim𝑉 is a basis.
Sketch. The list is independent by Proposition 6.3.13. Independent lists in 𝑉 have length at most 𝑛, and independent lists of length 𝑛 are bases.
By Proposition 6.3.13 the list is linearly independent. By Theorem 4.1.10 its length is at most 𝑛, and an independent list of length 𝑛=dim𝑉 is a basis of 𝑉 (Section 4.1). □

So ℝ𝑛 contains at most 𝑛 mutually orthogonal nonzero vectors, and to check that 𝑛 of them form a basis it suffices to check orthogonality.

Orthonormal lists

Definition 6.3.15 (Orthonormal list, orthonormal basis). A list 𝐮1,…,𝐮𝑘 in 𝑉 is orthonormal if it is orthogonal and every 𝐮𝑗 is a unit vector. That is,

⟨𝐮𝑖,𝐮𝑗⟩=𝛿𝑖𝑗for all𝑖,𝑗∈{1,…,𝑘},

with the Kronecker delta of Notation 2.4.7. An orthonormal basis of 𝑉 is an orthonormal list that is a basis of 𝑉.

Unit vectors are nonzero, so an orthonormal list is linearly independent by Proposition 6.3.13, and by Corollary 6.3.14 an orthonormal list in an 𝑛-dimensional space is an orthonormal basis exactly when its length is 𝑛. An orthogonal list of nonzero vectors 𝐯1,…,𝐯𝑘 becomes orthonormal after normalizing (Section 6.1.4): the vectors 𝐯𝑗/‖𝐯𝑗‖ are unit vectors, and scaling does not affect orthogonality, as ⟨𝑎𝐯,𝑏𝐰⟩=𝑎𝑏⟨𝐯,𝐰⟩. We write 𝒪︀ for orthonormal lists, as the lecture does.

Example 6.3.16 (Orthonormal bases).
  1. (a)The standard basis 𝐞1,…,𝐞𝑛 is an orthonormal basis of 𝔽𝑛 with the dot product, since 𝐞𝑖⋅𝐞𝑗=𝛿𝑖𝑗.
  2. (b)For every 𝜃∈ℝ, 𝐮1=(cos𝜃,sin𝜃), 𝐮2=(−sin𝜃,cos𝜃) is an orthonormal basis of ℝ2: the standard basis rotated by 𝜃.
  3. (c)In ℝ3, let

    𝐮1=13(1,2,2),𝐮2=13(2,1,−2),𝐮3=13(2,−2,1).

    Each has squared norm (1+4+4)/9=1, and 𝐮1⋅𝐮2=(2+2−4)/9=0, 𝐮1⋅𝐮3=(2−4+2)/9=0, 𝐮2⋅𝐮3=(4−2−2)/9=0. So this is an orthonormal list of length 3=dimℝ3, hence an orthonormal basis.

  4. (d)In ℂ2, 𝐮1=12(1,𝑖) and 𝐮2=12(1,−𝑖) form an orthonormal basis: ‖𝐮𝑗‖2=(1+1)/2=1, and 𝐮1⋅𝐮2=0 by Example 6.3.2(b).
  5. (e)With the Frobenius inner product (Proposition 6.1.16), the matrix units 𝐸𝑖𝑗, which have entry 1 in position (𝑖,𝑗) and 0 elsewhere, form an orthonormal basis of 𝔽𝑚×𝑛: ⟨𝐸𝑖𝑗,𝐸𝑘𝑙⟩ is the sum of the products of corresponding entries, which is 1 if (𝑖,𝑗)=(𝑘,𝑙) and 0 otherwise.

Example 6.3.17 (Orthogonal polynomials). Give ℝ[𝑥]≤2 the inner product ⟨𝑝,𝑞⟩=∫−11𝑝(𝑡)𝑞(𝑡)d𝑡. (Definiteness: if ∫−11𝑝(𝑡)2d𝑡=0, then 𝑝 vanishes on [−1,1] by Lemma 6.1.14, so it has infinitely many roots and 𝑝=𝟎 by Proposition 7.1.22.) The monomials 1,𝑥,𝑥2 are not orthogonal, since ⟨1,𝑥2⟩=2/3. But 1,𝑥,𝑥2−1/3 is an orthogonal list: ⟨1,𝑥⟩=0 and ⟨𝑥,𝑥2−1/3⟩=0 because the integrands are odd, and

⟨1,𝑥2−13⟩=∫−11(𝑡2−13)d𝑡=23−23=0.

The squared norms are ‖1‖2=2, ‖𝑥‖2=2/3, and

‖𝑥2−13‖2=∫−11(𝑡4−23𝑡2+19)d𝑡=25−49+29=845.

So 12,3/2𝑥,45/8(𝑥2−1/3) is an orthonormal basis of ℝ[𝑥]≤2, by Corollary 6.3.14. Up to scaling these are the first three Legendre polynomials. Section 6.4 explains how to produce them from 1,𝑥,𝑥2 systematically.

Coordinates are inner products

Intuition (Why orthonormal coordinates come for free). For a general basis ℬ︀=𝐛1,…,𝐛𝑛 of 𝑉, finding [𝐯]ℬ︀ means solving 𝐯=𝑎1𝐛1+⋯+𝑎𝑛𝐛𝑛 for 𝑎1,…,𝑎𝑛. In 𝔽𝑛 this is a linear system of 𝑛 equations in which, in general, every equation involves every unknown, solved by row reducing the augmented matrix with columns 𝐛1,…,𝐛𝑛,𝐯. Geometrically, in ℝ2 the coordinate 𝑎1 is found by drawing the line through the tip of 𝐯 parallel to 𝐛2 and seeing where it meets the line through 𝐛1 (Figure 6.3.1(a)). So 𝑎1 depends on 𝐛2 as well as on 𝐛1: tilting 𝐛2 moves the point of intersection.

For an orthonormal basis 𝐮1,𝐮2, the line through the tip of 𝐯 parallel to 𝐮2 is perpendicular to 𝐮1, so 𝑎1𝐮1 is the foot of the perpendicular from 𝐯 to the line through 𝐮1 (Figure 6.3.1(b)). That foot is the shadow of Technique 6.2.4, 𝑐𝐮1 with 𝑐=⟨𝐯,𝐮1⟩/‖𝐮1‖2=⟨𝐯,𝐮1⟩. So each coordinate is one inner product. It does not involve the other basis vectors, and computing it involves no system at all.

Figure 6.3.1. Reading off coordinates. (a) For a general basis, 𝑎1𝐛1 is found by moving from the tip of 𝐯 parallel to 𝐛2, so it depends on both basis vectors. (b) For an orthonormal basis, 𝑎𝑗𝐮𝑗 is the foot of the perpendicular from 𝐯 to the line through 𝐮𝑗, and 𝑎𝑗=⟨𝐯,𝐮𝑗⟩.

Proposition 6.3.18 (Coordinates in an orthonormal basis). Let 𝒪︀=𝐮1,…,𝐮𝑘 be an orthonormal list in 𝑉.

  1. (a)If 𝐯∈span(𝒪︀), then

    𝐯=⟨𝐯,𝐮1⟩𝐮1+⋯+⟨𝐯,𝐮𝑘⟩𝐮𝑘.
  2. (b)In particular, if 𝒪︀=𝐮1,…,𝐮𝑛 is an orthonormal basis of 𝑉, then every 𝐯∈𝑉 satisfies (a), that is,

    [𝐯]𝒪︀=(⟨𝐯,𝐮1⟩,…,⟨𝐯,𝐮𝑛⟩).

Proof.routine

Uses. Definition 1.3.10 (Span), Definition 6.3.15 (Orthonormal list, orthonormal basis), Definition 1.6.14 (Coordinates)

Techniques. Take an inner product to isolate a coefficient (Technique 6.3.12)

Hint 1. Since 𝐯∈span(𝒪︀), write 𝐯=𝑎1𝐮1+⋯+𝑎𝑘𝐮𝑘. You need to identify 𝑎𝑗.
Hint 2. Take the inner product of both sides with 𝐮𝑗, with 𝐮𝑗 in the second slot.
Sketch. Write 𝐯=∑𝑙𝑎𝑙𝐮𝑙. Then ⟨𝐯,𝐮𝑗⟩=∑𝑙𝑎𝑙⟨𝐮𝑙,𝐮𝑗⟩=∑𝑙𝑎𝑙𝛿𝑙𝑗=𝑎𝑗, so the coefficients are the inner products. For (b), span(𝒪︀)=𝑉 and coordinates are the unique coefficients.

(a) Since 𝐯∈span(𝒪︀), there are scalars with 𝐯=𝑎1𝐮1+⋯+𝑎𝑘𝐮𝑘. For each 𝑗, linearity in the first slot gives

⟨𝐯,𝐮𝑗⟩=∑𝑙=1𝑘𝑎𝑙⟨𝐮𝑙,𝐮𝑗⟩=∑𝑙=1𝑘𝑎𝑙𝛿𝑙𝑗=𝑎𝑗.

Substituting 𝑎𝑗=⟨𝐯,𝐮𝑗⟩ into 𝐯=∑𝑗𝑎𝑗𝐮𝑗 gives (a).

(b) If 𝒪︀ is a basis, then span(𝒪︀)=𝑉, so (a) applies to every 𝐯∈𝑉. The coordinates [𝐯]𝒪︀ are the unique coefficients 𝑎1,…,𝑎𝑛 with 𝐯=∑𝑗𝑎𝑗𝐮𝑗 (Definition 1.6.14), and we have just seen that 𝑎𝑗=⟨𝐯,𝐮𝑗⟩. □

Remark 6.3.19 (Which slot). The coefficient of 𝐮𝑗 is ⟨𝐯,𝐮𝑗⟩, with 𝐯 in the first slot, the slot in which the inner product is linear. The other order gives ⟨𝐮𝑗,𝐯⟩=⟨𝐯,𝐮𝑗⟩. Over ℝ the two agree, but over ℂ the conjugated numbers are the wrong coordinates. Take the orthonormal basis 𝐮1=(1,𝑖)/2, 𝐮2=(1,−𝑖)/2 of Example 6.3.16(d) and 𝐯=(0,1). Then

⟨𝐯,𝐮1⟩=12(0⋅1+1⋅𝑖)=−𝑖2,⟨𝐯,𝐮2⟩=12(0⋅1+1⋅−𝑖)=𝑖2,

and indeed (−𝑖/2)(1,𝑖)+(𝑖/2)(1,−𝑖)=(0,1). The conjugated coefficients give (𝑖/2)(1,𝑖)−(𝑖/2)(1,−𝑖)=(0,−1) instead. Texts that make inner products linear in the second slot, as in Non-example 6.1.25(b), write the coefficient as ⟨𝐮𝑗,𝐯⟩; it is the same number.

Example 6.3.20 (Coordinates without a linear system). Take the orthonormal basis 𝒪︀=𝐮1,𝐮2,𝐮3 of ℝ3 from Example 6.3.16(c) and 𝐯=(1,2,3). By Proposition 6.3.18,

⟨𝐯,𝐮1⟩=1+4+63=113,⟨𝐯,𝐮2⟩=2+2−63=−23,⟨𝐯,𝐮3⟩=2−4+33=13,

so [𝐯]𝒪︀=(11/3,−2/3,1/3). Check:

119(1,2,2)−29(2,1,−2)+19(2,−2,1)=19(9,18,27)=(1,2,3).

Three dot products replaced the row reduction of a 3×4 augmented matrix.

The same isolation works for orthogonal bases that are not normalized; each coefficient just picks up the factor 1/‖𝐯𝑗‖2.

Corollary 6.3.21 (Coordinates in an orthogonal basis). Let 𝐯1,…,𝐯𝑛 be an orthogonal basis of 𝑉, that is, an orthogonal list of nonzero vectors that is a basis. Then every 𝐯∈𝑉 satisfies

𝐯=∑𝑗=1𝑛⟨𝐯,𝐯𝑗⟩‖𝐯𝑗‖2𝐯𝑗.

Proof.routine

Hint 1. Write 𝐯=∑𝑙𝑎𝑙𝐯𝑙 and take the inner product with 𝐯𝑗.
Hint 2. You get ⟨𝐯,𝐯𝑗⟩=𝑎𝑗‖𝐯𝑗‖2, and ‖𝐯𝑗‖≠0.
Sketch. With 𝐯=∑𝑙𝑎𝑙𝐯𝑙, isolating coefficients gives ⟨𝐯,𝐯𝑗⟩=𝑎𝑗‖𝐯𝑗‖2; divide by ‖𝐯𝑗‖2>0.

Since 𝐯1,…,𝐯𝑛 is a basis, 𝐯=𝑎1𝐯1+⋯+𝑎𝑛𝐯𝑛 for some scalars. Taking the inner product with 𝐯𝑗 and using orthogonality,

⟨𝐯,𝐯𝑗⟩=∑𝑙=1𝑛𝑎𝑙⟨𝐯𝑙,𝐯𝑗⟩=𝑎𝑗‖𝐯𝑗‖2.

As 𝐯𝑗≠𝟎, we may divide by ‖𝐯𝑗‖2>0, which gives 𝑎𝑗=⟨𝐯,𝐯𝑗⟩/‖𝐯𝑗‖2. □

Each term ⟨𝐯,𝐯𝑗⟩/‖𝐯𝑗‖2𝐯𝑗 is the shadow of 𝐯 on the line through 𝐯𝑗 (Technique 6.2.4). So in an orthogonal basis a vector is the sum of its shadows on the basis lines. For a basis that is not orthogonal this fails. In ℝ2 with 𝐯1=(1,0), 𝐯2=(1,1), and 𝐯=(0,1)=−𝐯1+𝐯2, the shadows are 0⋅𝐯1 and (1/2)𝐯2, which add up to (1/2,1/2)≠𝐯.

Parseval’s identity

Coordinates with respect to an orthonormal basis do more than locate a vector. They compute lengths and inner products, by the same formulas as in 𝔽𝑛.

Theorem 6.3.22 (Parseval’s identity). Let 𝒪︀=𝐮1,…,𝐮𝑛 be an orthonormal basis of 𝑉, and let 𝐯,𝐰∈𝑉.

  1. (a)⟨𝐯,𝐰⟩=∑𝑗=1𝑛⟨𝐯,𝐮𝑗⟩⟨𝐰,𝐮𝑗⟩. In coordinates,

    ⟨𝐯,𝐰⟩=[𝐯]𝒪︀⋅[𝐰]𝒪︀=[𝐰]𝒪︀∗[𝐯]𝒪︀.
  2. (b)‖𝐯‖2=∑𝑗=1𝑛|⟨𝐯,𝐮𝑗⟩|2, which is the squared norm of [𝐯]𝒪︀ in 𝔽𝑛.

Proof.routine

Uses. Proposition 6.3.18 (Coordinates in an orthonormal basis), Proposition 6.1.4 (Sesquilinearity), Definition 6.1.8 (Dot product), Notation 6.1.7 (Conjugate transpose), Proposition 6.1.10 (The dot product is an inner product)

Hint 1. It suffices to expand one of the two vectors in the basis. Which one?
Hint 2. Write 𝐰=∑𝑗⟨𝐰,𝐮𝑗⟩𝐮𝑗 by Proposition 6.3.18 and pull the coefficients out of the second slot, remembering the conjugates.
Sketch. Substituting 𝐰=∑𝑗⟨𝐰,𝐮𝑗⟩𝐮𝑗 into the second slot gives ⟨𝐯,𝐰⟩=∑𝑗⟨𝐰,𝐮𝑗⟩⟨𝐯,𝐮𝑗⟩, which is the dot product of the coordinate vectors. Take 𝐰=𝐯 for (b).

(a) By Proposition 6.3.18, 𝐰=∑𝑗=1𝑛⟨𝐰,𝐮𝑗⟩𝐮𝑗. By Proposition 6.1.4,

⟨𝐯,𝐰⟩=⟨𝐯,∑𝑗=1𝑛⟨𝐰,𝐮𝑗⟩𝐮𝑗⟩=∑𝑗=1𝑛⟨𝐰,𝐮𝑗⟩⟨𝐯,𝐮𝑗⟩.

By Proposition 6.3.18(b), the 𝑗th entries of [𝐯]𝒪︀ and [𝐰]𝒪︀ are ⟨𝐯,𝐮𝑗⟩ and ⟨𝐰,𝐮𝑗⟩, so by Definition 6.1.8 and Notation 6.1.7 this sum is [𝐯]𝒪︀⋅[𝐰]𝒪︀=[𝐰]𝒪︀∗[𝐯]𝒪︀.

(b) Take 𝐰=𝐯 in (a) and use 𝑧𝑧=|𝑧|2. By Proposition 6.1.10 the result is the squared norm of [𝐯]𝒪︀ for the dot product. □

Part (b) is also Corollary 6.3.6 applied to 𝐯=∑𝑗⟨𝐯,𝐮𝑗⟩𝐮𝑗. For the basis of Example 6.3.20, it says (121+4+1)/9=14=‖(1,2,3)‖2, and since [𝐞3]𝒪︀=(2/3,−2/3,1/3), part (a) says

𝐯⋅𝐞3=113⋅23+(−23)(−23)+13⋅13=279=3,

which is indeed the third entry of 𝐯.

Intuition (An orthonormal basis turns 𝑉 into 𝔽𝑛). The coordinate map 𝐯↦[𝐯]𝒪︀ is a linear bijection 𝑉→𝔽𝑛 (Proposition 1.6.19), and Parseval’s identity says that it carries the inner product of 𝑉 to the dot product of 𝔽𝑛. So once an orthonormal basis is chosen, every question about lengths, angles, and orthogonality in 𝑉 can be answered in coordinates, with the formulas of 𝔽𝑛. Gram–Schmidt (Theorem 6.4.20) shows that every finite-dimensional inner product space has an orthonormal basis, so every 𝑛-dimensional inner product space looks like 𝔽𝑛 with the dot product; Section 8.4 makes “looks like” precise.

This is special to orthonormal bases. For the basis ℬ︀=(1,0),(1,1) of ℝ2, the orthogonal vectors 𝐞1=(1,0) and 𝐞2=−(1,0)+(1,1) have coordinate vectors (1,0) and (−1,1), whose dot product is −1. In fact [𝐱]ℬ︀⋅[𝐲]ℬ︀ is a different inner product on ℝ2, the unique one for which ℬ︀ is orthonormal (Exercise 6.3.51).

Exercise 6.3.23.routine Show that 𝐮1=12(1,1,0), 𝐮2=13(1,−1,1), 𝐮3=16(−1,1,2) is an orthonormal basis of ℝ3. Find the coordinates of 𝐯=(3,1,2) in this basis, and check your answer with Theorem 6.3.22(b).

Solution.

Uses. Corollary 6.3.14 (Counting orthogonal vectors), Proposition 6.3.18 (Coordinates in an orthonormal basis), Theorem 6.3.22 (Parseval’s identity)

Hint 1. Check the three dot products between different vectors, and the three norms. Then use Corollary 6.3.14.
Hint 2. The 𝑗th coordinate is 𝐯⋅𝐮𝑗.
Sketch. The pairwise dot products of (1,1,0), (1,−1,1), (−1,1,2) vanish, and the scalings make them unit vectors. The coordinates are 4/2=22, 4/3, and 2/6, and 8+16/3+2/3=14=‖𝐯‖2.

The unscaled vectors (1,1,0), (1,−1,1), (−1,1,2) have pairwise dot products 1−1+0=0, −1+1+0=0, and −1−1+2=0, and squared norms 2, 3, 6. So 𝐮1,𝐮2,𝐮3 is an orthonormal list of length 3=dimℝ3, hence an orthonormal basis by Corollary 6.3.14.

By Proposition 6.3.18,

𝐯⋅𝐮1=42=22,𝐯⋅𝐮2=3−1+23=43,𝐯⋅𝐮3=−3+1+46=26,

so [𝐯]𝒪︀=(22,4/3,2/6). By Theorem 6.3.22(b), the sum of the squares of the coordinates should be ‖𝐯‖2=9+1+4=14, and indeed 8+16/3+4/6=8+16/3+2/3=14.

Bessel’s inequality

Parseval’s identity needs a basis. For an orthonormal list that does not span 𝑉, the sum ∑𝑗|⟨𝐯,𝐮𝑗⟩|2 misses part of 𝐯, and an inequality remains.

Intuition (What is left over). In ℝ3 with 𝐮1=𝐞1 and 𝐮2=𝐞2, the sum is 𝑣12+𝑣22, which falls short of ‖𝐯‖2 by 𝑣32, the squared length of the part of 𝐯 perpendicular to the plane of 𝐮1,𝐮2. In general, split 𝐯=𝐩+𝐰, where 𝐩=∑𝑗⟨𝐯,𝐮𝑗⟩𝐮𝑗 is what the formula of Proposition 6.3.18 produces and 𝐰=𝐯−𝐩 is the remainder. Isolating coefficients shows that 𝐰 is orthogonal to every 𝐮𝑗, hence to 𝐩, and Pythagoras gives ‖𝐯‖2=‖𝐩‖2+‖𝐰‖2. For a single unit vector 𝐮1, this is the decomposition of the first proof of Theorem 6.2.1, and the inequality below is the Cauchy–Schwarz inequality |⟨𝐯,𝐮1⟩|≤‖𝐯‖.

Theorem 6.3.24 (Bessel’s inequality). Let 𝐮1,…,𝐮𝑘 be an orthonormal list in 𝑉, and let 𝐯∈𝑉. Then

∑𝑗=1𝑘|⟨𝐯,𝐮𝑗⟩|2≤‖𝐯‖2,

with equality if and only if 𝐯∈span(𝐮1,…,𝐮𝑘).

Proof.standard

Uses. Corollary 6.3.6 (Pythagoras for orthogonal lists), Theorem 6.3.3 (Pythagorean theorem), Proposition 6.3.9 (Properties of 𝐴⟂), Proposition 6.3.18 (Coordinates in an orthonormal basis), Proposition 6.1.27 (Basic properties of the norm)

Techniques. Orthogonal decomposition (Technique 6.2.4), Take an inner product to isolate a coefficient (Technique 6.3.12)

Hint 1. Let 𝐩=∑𝑗⟨𝐯,𝐮𝑗⟩𝐮𝑗 and 𝐰=𝐯−𝐩. Compute ⟨𝐰,𝐮𝑙⟩ for each 𝑙.
Hint 2. 𝐰 is orthogonal to every 𝐮𝑙, hence to 𝐩. Apply Theorem 6.3.3 to 𝐯=𝐩+𝐰, and compute ‖𝐩‖2 with Corollary 6.3.6.
Hint 3. Equality means 𝐰=𝟎. For the converse, use Proposition 6.3.18(a).
Sketch. With 𝐩=∑𝑗⟨𝐯,𝐮𝑗⟩𝐮𝑗 and 𝐰=𝐯−𝐩, we get ⟨𝐰,𝐮𝑙⟩=⟨𝐯,𝐮𝑙⟩−⟨𝐯,𝐮𝑙⟩=0, so 𝐰⟂𝐩. Pythagoras gives ‖𝐯‖2=‖𝐩‖2+‖𝐰‖2≥‖𝐩‖2=∑𝑗|⟨𝐯,𝐮𝑗⟩|2. Equality holds iff 𝐰=𝟎, that is, 𝐯=𝐩. If 𝐯=𝐩, then 𝐯 lies in the span; conversely, if 𝐯 lies in the span, then 𝐯=𝐩 by Proposition 6.3.18.

Let 𝐩=∑𝑗=1𝑘⟨𝐯,𝐮𝑗⟩𝐮𝑗 and 𝐰=𝐯−𝐩. For each 𝑙,

⟨𝐰,𝐮𝑙⟩=⟨𝐯,𝐮𝑙⟩−∑𝑗=1𝑘⟨𝐯,𝐮𝑗⟩⟨𝐮𝑗,𝐮𝑙⟩=⟨𝐯,𝐮𝑙⟩−⟨𝐯,𝐮𝑙⟩=0.

So 𝐰∈{𝐮1,…,𝐮𝑘}⟂=span(𝐮1,…,𝐮𝑘)⟂ by Proposition 6.3.9(c), and in particular 𝐰⟂𝐩. By Theorem 6.3.3(a) applied to 𝐯=𝐩+𝐰, and Corollary 6.3.6 applied to 𝐩,

‖𝐯‖2=‖𝐩‖2+‖𝐰‖2=∑𝑗=1𝑘|⟨𝐯,𝐮𝑗⟩|2+‖𝐰‖2.
(6.3.2)

Since ‖𝐰‖2≥0, the inequality follows.

By (6.3.2), equality holds if and only if ‖𝐰‖=0, that is (Proposition 6.1.27), if and only if 𝐯=𝐩. If 𝐯=𝐩, then 𝐯 is a linear combination of 𝐮1,…,𝐮𝑘. Conversely, if 𝐯∈span(𝐮1,…,𝐮𝑘), then 𝐯=𝐩 by Proposition 6.3.18(a). □

The space 𝑉 need not be finite-dimensional here. The vector 𝐩 is the orthogonal projection of 𝐯 onto span(𝐮1,…,𝐮𝑘), the subject of Section 6.4, where we will also see that ‖𝐰‖=‖𝐯−𝐩‖ is the distance from 𝐯 to that span (Theorem 6.4.33). Bessel’s inequality says that projecting onto a subspace cannot increase length, and its equality case gives a membership test: 𝐯 lies in the span of an orthonormal list exactly when the list captures all of ‖𝐯‖2.

Example 6.3.25 (Bessel in ℝ3). Keep 𝐯=(1,2,3) and the vectors 𝐮1,𝐮2 of Example 6.3.16(c), but drop 𝐮3. Then

|⟨𝐯,𝐮1⟩|2+|⟨𝐯,𝐮2⟩|2=1219+49=1259<14,

and the deficit 1/9=⟨𝐯,𝐮3⟩2 is the part that 𝐮3 would have contributed. So (1,2,3)∉span(𝐮1,𝐮2). On the other hand 𝐱=(1,1,0) has ⟨𝐱,𝐮1⟩=⟨𝐱,𝐮2⟩=1, so the sum is 2=‖𝐱‖2, and therefore 𝐱∈span(𝐮1,𝐮2); indeed 𝐱=𝐮1+𝐮2.

Aside (Fourier coefficients).Beyond 21-242 Bessel’s inequality matters most in infinite-dimensional spaces, where an orthonormal list can never be a basis. On 𝐶([0,2𝜋],ℂ), take the inner product ⟨𝑓,𝑔⟩=12𝜋∫02𝜋𝑓(𝑡)𝑔(𝑡)d𝑡 (Proposition 6.1.13 on [0,2𝜋], scaled by a positive constant), and let 𝑒𝑘(𝑡)=cos𝑘𝑡+𝑖sin𝑘𝑡 for 𝑘∈ℤ. The angle subtraction formulas give 𝑒𝑗𝑒𝑘=𝑒𝑗−𝑘, and ∫02𝜋cos𝑚𝑡d𝑡=∫02𝜋sin𝑚𝑡d𝑡=0 for 𝑚≠0, so ⟨𝑒𝑗,𝑒𝑘⟩=𝛿𝑗𝑘. Bessel’s inequality for the orthonormal list 𝑒−𝑁,…,𝑒𝑁 says that the Fourier coefficients 𝑐𝑘=⟨𝑓,𝑒𝑘⟩ of 𝑓 satisfy

∑𝑘=−𝑁𝑁|𝑐𝑘|2≤12𝜋∫02𝜋|𝑓(𝑡)|2d𝑡for every𝑁.

The bound does not depend on 𝑁, so the series ∑𝑘|𝑐𝑘|2 converges, and in particular 𝑐𝑘→0 as |𝑘|→∞. Parseval’s identity, with equality, also holds for the full infinite sum, but proving it takes analysis (Section 15.3). Both names come from this setting: the identity and the inequality were first found for Fourier series.

6.3.3Matrices with orthonormal columns

In 𝔽𝑚 with the dot product, a list of 𝑛 vectors is the same thing as an 𝑚×𝑛 matrix, whose columns are the vectors. Orthonormality of the list is a statement about the dot products of the columns with each other, and these are the entries of a single matrix product.

Definition 6.3.26 (Conjugate transpose). Let 𝐴=(𝑎𝑖𝑗)∈𝔽𝑚×𝑛. The conjugate transpose of 𝐴 is the matrix 𝐴∗∈𝔽𝑛×𝑚 with entries

(𝐴∗)𝑖𝑗=𝑎𝑗𝑖(1≤𝑖≤𝑛,1≤𝑗≤𝑚).

That is, 𝐴∗=𝐴𝖳, where 𝐴=(𝑎𝑖𝑗) conjugates every entry (Definition 2.4.21). If 𝐴 is real, 𝐴∗=𝐴𝖳. A square matrix 𝐴 with 𝐴∗=𝐴 is called Hermitian; a real Hermitian matrix is a symmetric matrix.

This is the matrix of Notation 6.1.7. In particular, for 𝐰∈𝔽𝑛, 𝐰∗ is the row (𝑤1,…,𝑤𝑛), and 𝐰∗𝐯=𝐯⋅𝐰 for 𝐯∈𝔽𝑛 (Definition 6.1.8). For example,

(1𝑖201−𝑖3𝑖)∗=(10−𝑖1+𝑖2−3𝑖).

Proposition 6.3.27 (Properties of the conjugate transpose). Let 𝐴,𝐴′∈𝔽𝑚×𝑛, 𝐵∈𝔽𝑛×𝑝, and 𝑐∈𝔽.

  1. (a)(𝐴∗)∗=𝐴 and (𝑐𝐴+𝐴′)∗=𝑐𝐴∗+𝐴′∗.
  2. (b)(𝐴𝐵)∗=𝐵∗𝐴∗.
  3. (c)If 𝑚=𝑛 and 𝐴 is invertible, then 𝐴∗ is invertible and (𝐴∗)−1=(𝐴−1)∗.
  4. (d)(𝐴𝐱)⋅𝐲=𝐱⋅(𝐴∗𝐲) for all 𝐱∈𝔽𝑛 and 𝐲∈𝔽𝑚.

Proof.routine

Uses. Definition 6.3.26 (Conjugate transpose), Proposition 2.4.22 (Transpose is a linear involution), Proposition 2.4.23 (Transpose of a product), Proposition 2.4.14 (Algebra of matrices), Definition 2.5.12 (Invertible), Definition 6.1.8 (Dot product), Notation 6.1.1 (Real and complex scalars)

Techniques. Compute entry by entry (Technique 2.4.15)

Hint 1. (a) is entrywise. For (b), first show 𝐴𝐵=𝐴𝐵 entry by entry, then transpose with Proposition 2.4.23.
Hint 2. For (c), apply ∗ to 𝐴𝐴−1=𝐼 and 𝐴−1𝐴=𝐼 using (b).
Hint 3. For (d), write both sides as matrix products: (𝐴𝐱)⋅𝐲=𝐲∗(𝐴𝐱). Regroup and use (a) and (b) to recognize 𝐲∗𝐴 as (𝐴∗𝐲)∗.
Sketch. (a) Conjugating twice and transposing twice undo themselves, and conjugation respects sums and products. (b) 𝐴𝐵=𝐴𝐵 entrywise, and (𝐴𝐵)𝖳=𝐵𝖳𝐴𝖳. (c) 𝐴∗(𝐴−1)∗=(𝐴−1𝐴)∗=𝐼∗=𝐼, and similarly on the other side. (d) (𝐴𝐱)⋅𝐲=𝐲∗𝐴𝐱=(𝐴∗𝐲)∗𝐱=𝐱⋅(𝐴∗𝐲).

(a) The (𝑖,𝑗) entry of (𝐴∗)∗ is (𝐴∗)𝑗𝑖=𝑎𝑖𝑗=𝑎𝑖𝑗. The (𝑖,𝑗) entry of (𝑐𝐴+𝐴′)∗ is 𝑐𝑎𝑗𝑖+𝑎𝑗𝑖′=𝑐𝑎𝑗𝑖+𝑎𝑗𝑖′, the (𝑖,𝑗) entry of 𝑐𝐴∗+𝐴′∗.

(b) Since conjugation respects sums and products (Notation 6.1.1), the (𝑖,𝑗) entry of 𝐴𝐵 is ∑𝑙𝑎𝑖𝑙𝑏𝑙𝑗=∑𝑙𝑎𝑖𝑙𝑏𝑙𝑗, the (𝑖,𝑗) entry of 𝐴𝐵. So 𝐴𝐵=𝐴𝐵, and by Proposition 2.4.23,

(𝐴𝐵)∗=(𝐴𝐵)𝖳=𝐵𝖳𝐴𝖳=𝐵∗𝐴∗.

(c) By (b), 𝐴∗(𝐴−1)∗=(𝐴−1𝐴)∗=𝐼∗=𝐼 and (𝐴−1)∗𝐴∗=(𝐴𝐴−1)∗=𝐼∗=𝐼, since 𝐼 is real and symmetric. So (𝐴−1)∗ is a two-sided inverse of 𝐴∗ (Definition 2.5.12).

(d) Identifying 1×1 matrices with scalars, (𝐴𝐱)⋅𝐲=𝐲∗(𝐴𝐱)=(𝐲∗𝐴)𝐱 by associativity (Proposition 2.4.14). By (b) and (a), (𝐴∗𝐲)∗=𝐲∗(𝐴∗)∗=𝐲∗𝐴. Hence (𝐴𝐱)⋅𝐲=(𝐴∗𝐲)∗𝐱=𝐱⋅(𝐴∗𝐲). □

Part (d) is what makes 𝐴∗ useful: it moves a matrix from one side of the dot product to the other, at the price of a star. Section 6.6 turns this property into the definition of the adjoint of a linear map.

Gram matrices

All the inner products among the vectors of a list fit into one matrix.

Definition 6.3.28 (Gram matrix). The Gram matrix of a list 𝐯1,…,𝐯𝑘 in 𝑉 is the matrix 𝐺∈𝔽𝑘×𝑘 with entries

𝑔𝑖𝑗=⟨𝐯𝑗,𝐯𝑖⟩.

The order of the indices, with 𝑗 in the first slot, matches Proposition 6.1.22 and keeps conjugates out of the next results. By conjugate symmetry 𝐺∗=𝐺, and the diagonal entries are the squared norms ‖𝐯𝑖‖2. The list is orthogonal if and only if 𝐺 is diagonal, and orthonormal if and only if 𝐺=𝐼𝑘.

Theorem 6.3.29 (Orthonormal columns). Let 𝐴∈𝔽𝑚×𝑛 have columns 𝐚1,…,𝐚𝑛. Then

(𝐴∗𝐴)𝑖𝑗=𝐚𝑗⋅𝐚𝑖(1≤𝑖,𝑗≤𝑛),

so 𝐴∗𝐴 is the Gram matrix of the columns of 𝐴. In particular, the columns of 𝐴 are orthonormal if and only if 𝐴∗𝐴=𝐼𝑛, and orthogonal if and only if 𝐴∗𝐴 is diagonal.

Proof.routine

Uses. Proposition 2.4.8 (Four views of the product), Definition 6.3.26 (Conjugate transpose), Definition 6.1.8 (Dot product), Definition 6.3.28 (Gram matrix), Definition 6.3.15 (Orthonormal list, orthonormal basis), Definition 2.3.5 (Identity matrix)

Hint 1. Compute the (𝑖,𝑗) entry of 𝐴∗𝐴 as row 𝑖 of 𝐴∗ times column 𝑗 of 𝐴.
Hint 2. Row 𝑖 of 𝐴∗ is 𝐚𝑖∗. What is 𝐚𝑖∗𝐚𝑗?
Sketch. Row 𝑖 of 𝐴∗ is 𝐚𝑖∗ and column 𝑗 of 𝐴 is 𝐚𝑗, so (𝐴∗𝐴)𝑖𝑗=𝐚𝑖∗𝐚𝑗=𝐚𝑗⋅𝐚𝑖. Orthonormality says 𝐚𝑗⋅𝐚𝑖=𝛿𝑖𝑗, which is the statement 𝐴∗𝐴=𝐼𝑛.

By Definition 6.3.26, row 𝑖 of 𝐴∗ is (𝑎1𝑖,…,𝑎𝑚𝑖)=𝐚𝑖∗. By Proposition 2.4.8(a),

(𝐴∗𝐴)𝑖𝑗=𝐚𝑖∗𝐚𝑗=∑𝑙=1𝑚𝑎𝑙𝑗𝑎𝑙𝑖=𝐚𝑗⋅𝐚𝑖,

which is the (𝑖,𝑗) entry of the Gram matrix of 𝐚1,…,𝐚𝑛 for the dot product. The columns are orthonormal if and only if 𝐚𝑗⋅𝐚𝑖=𝛿𝑖𝑗 for all 𝑖,𝑗 (Definition 6.3.15), that is, if and only if 𝐴∗𝐴=(𝛿𝑖𝑗)=𝐼𝑛 (Definition 2.3.5). Similarly, they are orthogonal if and only if every off-diagonal entry of 𝐴∗𝐴 is 0. □

For example, the matrix with the columns 𝐮1=(1,𝑖)/2 and 𝐮2=(1,−𝑖)/2 of Example 6.3.16(d) satisfies

12(1−𝑖1𝑖)⋅12(11𝑖−𝑖)=12(1+11−11−11+1)=𝐼2.

The condition 𝐴∗𝐴=𝐼𝑛 does not require 𝐴 to be square. The 3×2 matrix with columns 𝐮1,𝐮2 from Example 6.3.16(c) has 𝐴∗𝐴=𝐼2. But 𝐴𝐴∗≠𝐼3, since 𝐴𝐴∗ has rank at most 2 (Theorem 4.3.3); Section 6.4 identifies 𝐴𝐴∗ as the projection onto the plane spanned by the columns.

Gram matrices are useful beyond orthonormality. They detect linear independence of any list.

Proposition 6.3.30 (Gram matrices detect independence). Let 𝐺 be the Gram matrix of a list 𝐯1,…,𝐯𝑘 in 𝑉, and let 𝐜=(𝑐1,…,𝑐𝑘)∈𝔽𝑘. Then:

  1. (a)𝐜∗𝐺𝐜=‖𝑐1𝐯1+⋯+𝑐𝑘𝐯𝑘‖2;
  2. (b)𝐺𝐜=𝟎 if and only if 𝑐1𝐯1+⋯+𝑐𝑘𝐯𝑘=𝟎.

Consequently, 𝐺 is invertible if and only if 𝐯1,…,𝐯𝑘 is linearly independent.

Proof.standard

Uses. Definition 6.3.28 (Gram matrix), Definition 2.3.8 (Matrix–vector product), Proposition 6.1.4 (Sesquilinearity), Definition 6.1.2 (Inner product), Theorem 1.5.5 (Independence is decided at zero), a square matrix whose kernel is {𝟎} is invertible (Section 3.5)

Techniques. Show a vector is zero via its norm (Technique 6.1.36)

Hint 1. Let 𝐰=∑𝑗𝑐𝑗𝐯𝑗. Show that the 𝑖th entry of 𝐺𝐜 is ⟨𝐰,𝐯𝑖⟩.
Hint 2. For (a), 𝐜∗𝐺𝐜=∑𝑖𝑐𝑖(𝐺𝐜)𝑖; recognize this as ⟨𝐰,∑𝑖𝑐𝑖𝐯𝑖⟩.
Hint 3. For (b), one direction is immediate from the formula for (𝐺𝐜)𝑖. For the other, use (a) and definiteness.
Sketch. With 𝐰=∑𝑗𝑐𝑗𝐯𝑗, (𝐺𝐜)𝑖=∑𝑗⟨𝐯𝑗,𝐯𝑖⟩𝑐𝑗=⟨𝐰,𝐯𝑖⟩, and then 𝐜∗𝐺𝐜=∑𝑖𝑐𝑖⟨𝐰,𝐯𝑖⟩=⟨𝐰,𝐰⟩. If 𝐰=𝟎, then 𝐺𝐜=𝟎; if 𝐺𝐜=𝟎, then ‖𝐰‖2=𝐜∗𝟎=0. So ker𝐺 is the set of coefficient vectors of linear relations, which is {𝟎} exactly when the list is independent.

Let 𝐰=𝑐1𝐯1+⋯+𝑐𝑘𝐯𝑘. By Definition 2.3.8 and linearity in the first slot,

(𝐺𝐜)𝑖=∑𝑗=1𝑘𝑔𝑖𝑗𝑐𝑗=∑𝑗=1𝑘𝑐𝑗⟨𝐯𝑗,𝐯𝑖⟩=⟨𝐰,𝐯𝑖⟩.

(a) By the formula above and Proposition 6.1.4,

𝐜∗𝐺𝐜=∑𝑖=1𝑘𝑐𝑖(𝐺𝐜)𝑖=∑𝑖=1𝑘𝑐𝑖⟨𝐰,𝐯𝑖⟩=⟨𝐰,∑𝑖=1𝑘𝑐𝑖𝐯𝑖⟩=‖𝐰‖2.

(b) If 𝐰=𝟎, every entry ⟨𝐰,𝐯𝑖⟩ of 𝐺𝐜 is 0. Conversely, if 𝐺𝐜=𝟎, then by (a), ‖𝐰‖2=𝐜∗𝟎=0, so 𝐰=𝟎 by definiteness.

By (b), ker𝐺 consists of the coefficient vectors of linear relations among 𝐯1,…,𝐯𝑘. So ker𝐺={𝟎} if and only if the list is linearly independent (Theorem 1.5.5). Since 𝐺 is square, ker𝐺={𝟎} if and only if 𝐺 is invertible (Section 3.5). □

Technique 6.3.31 (Gram matrices). To study a list 𝐯1,…,𝐯𝑘 in an inner product space, record all the inner products ⟨𝐯𝑗,𝐯𝑖⟩ in its Gram matrix 𝐺. Questions about the list become questions about one matrix: the list is orthonormal if and only if 𝐺=𝐼, orthogonal if and only if 𝐺 is diagonal, and independent if and only if 𝐺 is invertible, and the combination with coefficient vector 𝐜 has squared length 𝐜∗𝐺𝐜. When the vectors are the columns of 𝐴∈𝔽𝑚×𝑛, 𝐺=𝐴∗𝐴, so these become statements about 𝐴∗𝐴.

Reach for it when the hypotheses are about inner products among the vectors of a list (lengths, angles, orthogonality) and the conclusion is about the list itself, or when the product 𝐴∗𝐴 appears. The canonical example is Proposition 6.3.30. In Section 6.5 the normal equations have the coefficient matrix 𝐴∗𝐴, and Proposition 6.3.30 shows that they have a unique solution exactly when the columns of 𝐴 are independent.

Example 6.3.32 (A relation read off from a Gram matrix). In ℝ3, let 𝐯1=(1,0,1), 𝐯2=(0,1,1), 𝐯3=(1,−1,0). Their Gram matrix is

𝐺=(21112−11−12),

and 𝐺(1,−1,−1)=(2−1−1,1−2+1,1+1−2)=𝟎. By Proposition 6.3.30(b), 𝐯1−𝐯2−𝐯3=𝟎, which is easily checked. So the list is dependent, and 𝐺 is not invertible.

Unitary and orthogonal matrices

Definition 6.3.33 (Unitary and orthogonal matrices). A square matrix 𝑈∈𝔽𝑛×𝑛 is unitary if 𝑈∗𝑈=𝐼𝑛, that is (Theorem 6.3.29), if its columns form an orthonormal basis of 𝔽𝑛. A real unitary matrix, that is, a matrix 𝑄∈ℝ𝑛×𝑛 with 𝑄𝖳𝑄=𝐼𝑛, is called orthogonal.

An 𝑛×𝑛 matrix has 𝑛 columns, so by Corollary 6.3.14 its columns are an orthonormal basis of 𝔽𝑛 as soon as they are orthonormal. The name “orthogonal matrix” is traditional but misleading: the columns of an orthogonal matrix are orthonormal, not merely orthogonal. The matrix (111−1) has orthogonal columns of length 2 and is not orthogonal; dividing it by 2 makes it orthogonal.

Proposition 6.3.34 (Characterizations of unitary matrices). For 𝑈∈𝔽𝑛×𝑛, the following are equivalent:
  1. (i)𝑈∗𝑈=𝐼𝑛, that is, the columns of 𝑈 are orthonormal;
  2. (ii)𝑈 is invertible and 𝑈−1=𝑈∗;
  3. (iii)𝑈𝑈∗=𝐼𝑛, that is, the rows of 𝑈, read as vectors of 𝔽𝑛, are orthonormal;
  4. (iv)𝑈∗ is unitary.

Proof.routine

Uses. Theorem 3.5.23 (One-sided inverses of square matrices), Proposition 6.3.27 (Properties of the conjugate transpose), Theorem 6.3.29 (Orthonormal columns), Definition 2.5.12 (Invertible), Definition 6.1.8 (Dot product)

Techniques. Proving TFAE (Technique 2.7.1)

Hint 1. (i) says that 𝑈∗ is a left inverse of the square matrix 𝑈. What do you know about one-sided inverses of square matrices?
Hint 2. Prove (i) ⇒ (ii) ⇒ (iii) ⇒ (i), then compare (iii) and (iv) using (𝑈∗)∗=𝑈.
Hint 3. For the reading of (iii), compute the (𝑖,𝑗) entry of 𝑈𝑈∗ as a dot product of two rows.
Sketch. For a square matrix a one-sided inverse is two-sided, so 𝑈∗𝑈=𝐼 and 𝑈𝑈∗=𝐼 each imply 𝑈−1=𝑈∗, which implies both. Statement (iv) says (𝑈∗)∗𝑈∗=𝐼, which is 𝑈𝑈∗=𝐼. Finally (𝑈𝑈∗)𝑖𝑗=∑𝑙𝑢𝑖𝑙𝑢𝑗𝑙 is the dot product of rows 𝑖 and 𝑗.

We prove (i) ⇒ (ii) ⇒ (iii) ⇒ (i) and (iii) ⇔ (iv).

(i) ⇒ (ii). 𝑈∗ is a left inverse of the square matrix 𝑈, so it is a two-sided inverse by Theorem 3.5.23. That is, 𝑈 is invertible with 𝑈−1=𝑈∗.

(ii) ⇒ (iii). 𝑈𝑈∗=𝑈𝑈−1=𝐼𝑛.

(iii) ⇒ (i). 𝑈∗ is a right inverse of the square matrix 𝑈, so again it is a two-sided inverse by Theorem 3.5.23, and 𝑈∗𝑈=𝐼𝑛.

(iii) ⇔ (iv). By Proposition 6.3.27(a), (𝑈∗)∗𝑈∗=𝑈𝑈∗, so 𝑈∗ is unitary exactly when 𝑈𝑈∗=𝐼𝑛.

Finally, the (𝑖,𝑗) entry of 𝑈𝑈∗ is ∑𝑙𝑢𝑖𝑙𝑢𝑗𝑙, which is the dot product of 𝐫𝑖=(𝑢𝑖1,…,𝑢𝑖𝑛) with 𝐫𝑗 (Definition 6.1.8). So 𝑈𝑈∗=𝐼𝑛 says that 𝐫𝑖⋅𝐫𝑗=𝛿𝑖𝑗, that is, the rows are orthonormal. □

That the rows of a square matrix are orthonormal whenever its columns are is not visible from either list by itself; it comes from the fact that one-sided inverses of square matrices are two-sided. For non-square matrices it fails: the columns of (100100) are orthonormal, but its rows (1,0), (0,1), (0,0) are not.

Example 6.3.35 (Unitary and orthogonal matrices).
  1. (a)For every 𝜃∈ℝ, the rotation and the reflection

    𝑅𝜃=(cos𝜃−sin𝜃sin𝜃cos𝜃),𝑆𝜃=(cos𝜃sin𝜃sin𝜃−cos𝜃)

    are orthogonal. The columns of 𝑅𝜃 are the orthonormal basis of Example 6.3.16(b), and those of 𝑆𝜃 are the same two vectors up to the sign of the second.

  2. (b)Every permutation matrix (Definition 5.2.29) is orthogonal, since its columns are the standard basis vectors in some order.
  3. (c)A diagonal matrix diag(𝜆1,…,𝜆𝑛) is unitary if and only if |𝜆𝑗|=1 for every 𝑗, since its columns 𝜆𝑗𝐞𝑗 are orthogonal with norms |𝜆𝑗|.
  4. (d)The matrices

    12(11𝑖−𝑖)and13(12221−22−21)

    are unitary and orthogonal respectively, by Example 6.3.16(d) and (c).

The definition only asks for orthonormal columns. What unitary matrices do geometrically, namely preserve lengths and inner products, and what they look like (rotations and reflections, in the real case) is the subject of Section 8.4. Here we only record why they belong in this section: they are the matrices whose linear systems are solved by the method of Proposition 6.3.18.

Corollary 6.3.36 (Orthonormal coordinates in 𝔽𝑛). Let 𝒪︀=𝐮1,…,𝐮𝑛 be an orthonormal basis of 𝔽𝑛, and let 𝑈 be the unitary matrix with columns 𝐮1,…,𝐮𝑛. Then [𝐱]𝒪︀=𝑈∗𝐱 for every 𝐱∈𝔽𝑛.

Proof (by inner products).routine

Uses. Proposition 6.3.18 (Coordinates in an orthonormal basis), Proposition 2.4.8 (Four views of the product), Definition 6.3.26 (Conjugate transpose)

Hint 1. By Proposition 6.3.18, the 𝑗th coordinate is 𝐱⋅𝐮𝑗. Write it as a matrix product.
Hint 2. 𝐱⋅𝐮𝑗=𝐮𝑗∗𝐱, and 𝐮𝑗∗ is row 𝑗 of 𝑈∗.
Sketch. The 𝑗th coordinate is 𝐱⋅𝐮𝑗=𝐮𝑗∗𝐱, and row 𝑗 of 𝑈∗ is 𝐮𝑗∗, so this is the 𝑗th entry of 𝑈∗𝐱.
By Proposition 6.3.18(b), the 𝑗th entry of [𝐱]𝒪︀ is 𝐱⋅𝐮𝑗=𝐮𝑗∗𝐱. Row 𝑗 of 𝑈∗ is 𝐮𝑗∗ (Definition 6.3.26), so by Proposition 2.4.8 this is the 𝑗th entry of 𝑈∗𝐱. □

Proof (by solving the system).routine

Uses. Definition 1.6.14 (Coordinates), Definition 2.3.8 (Matrix–vector product), Proposition 6.3.34 (Characterizations of unitary matrices)

Hint 1. The coordinate vector 𝐜=[𝐱]𝒪︀ is the unique solution of 𝑐1𝐮1+⋯+𝑐𝑛𝐮𝑛=𝐱. Write this as a matrix equation.
Hint 2. The equation is 𝑈𝐜=𝐱. Solve it with 𝑈−1.
Sketch. [𝐱]𝒪︀ is the solution of 𝑈𝐜=𝐱, and 𝑈−1=𝑈∗ by Proposition 6.3.34, so 𝐜=𝑈∗𝐱.
By Definition 1.6.14 and Definition 2.3.8, 𝐜=[𝐱]𝒪︀ is the unique vector with 𝑈𝐜=𝑐1𝐮1+⋯+𝑐𝑛𝐮𝑛=𝐱. By Proposition 6.3.34, 𝑈 is invertible with 𝑈−1=𝑈∗, so 𝐜=𝑈−1𝐱=𝑈∗𝐱. □

The first proof computes the coordinates one at a time as inner products. The second says that the linear system 𝑈𝐜=𝐱, which computing coordinates always requires, is solved for unitary 𝑈 by a single multiplication by 𝑈∗, with no elimination. In the notation of Section 4.5, 𝑈=[id]ℰ︀𝒪︀ and 𝑈∗=[id]𝒪︀ℰ︀, and the general fact that these two change-of-coordinates matrices are inverse to each other becomes 𝑈−1=𝑈∗.

Exercise 6.3.37.routine Let 𝑈,𝑊∈𝔽𝑛×𝑛 be unitary. Show that 𝑈𝑊 and 𝑈−1 are unitary, and that (𝑈𝐱)⋅(𝑈𝐲)=𝐱⋅𝐲 and ‖𝑈𝐱‖=‖𝐱‖ for all 𝐱,𝐲∈𝔽𝑛.

Solution.

Uses. Definition 6.3.33 (Unitary and orthogonal matrices), Proposition 6.3.27 (Properties of the conjugate transpose), Proposition 6.3.34 (Characterizations of unitary matrices), Proposition 2.4.14 (Algebra of matrices)

Hint 1. Compute (𝑈𝑊)∗(𝑈𝑊) with Proposition 6.3.27(b).
Hint 2. 𝑈−1=𝑈∗, and Proposition 6.3.34(iv). For the dot products, move 𝑈 across with Proposition 6.3.27(d).
Sketch. (𝑈𝑊)∗𝑈𝑊=𝑊∗𝑈∗𝑈𝑊=𝑊∗𝑊=𝐼. 𝑈−1=𝑈∗ is unitary by Proposition 6.3.34. And (𝑈𝐱)⋅(𝑈𝐲)=𝐱⋅(𝑈∗𝑈𝐲)=𝐱⋅𝐲; take 𝐲=𝐱 for the norms.

By Proposition 6.3.27(b) and associativity,

(𝑈𝑊)∗(𝑈𝑊)=𝑊∗(𝑈∗𝑈)𝑊=𝑊∗𝐼𝑛𝑊=𝑊∗𝑊=𝐼𝑛,

so 𝑈𝑊 is unitary. By Proposition 6.3.34, 𝑈−1=𝑈∗, and 𝑈∗ is unitary by (iv) of the same proposition.

By Proposition 6.3.27(d) with 𝐴=𝑈 and the vector 𝑈𝐲 in place of 𝐲,

(𝑈𝐱)⋅(𝑈𝐲)=𝐱⋅(𝑈∗𝑈𝐲)=𝐱⋅𝐲.

Taking 𝐲=𝐱 gives ‖𝑈𝐱‖2=‖𝐱‖2, and norms are nonnegative, so ‖𝑈𝐱‖=‖𝐱‖. (Section 8.4 shows that, conversely, a square matrix with ‖𝐴𝐱‖=‖𝐱‖ for all 𝐱 is unitary.)

Exercise 6.3.38.routine Find all 𝑎,𝑏∈ℂ for which 12(1𝑎𝑖𝑏) is unitary.

Solution.

Uses. Definition 6.3.33 (Unitary and orthogonal matrices), Theorem 6.3.29 (Orthonormal columns), Definition 6.1.8 (Dot product)

Hint 1. The first column (1,𝑖)/2 is already a unit vector. Write the two remaining conditions on the second column.
Hint 2. Orthogonality to the first column gives one linear equation; the norm gives |𝑎|2+|𝑏|2=2.
Sketch. Orthogonality: (𝑎,𝑏)⋅(1,𝑖)=𝑎−𝑖𝑏=0, so 𝑎=𝑖𝑏. Unit length: |𝑎|2+|𝑏|2=2|𝑏|2=2. So (𝑎,𝑏)=(𝑖𝑏,𝑏) with |𝑏|=1.

By Theorem 6.3.29 the matrix is unitary if and only if its columns 𝐜1=(1,𝑖)/2 and 𝐜2=(𝑎,𝑏)/2 are orthonormal. Here ‖𝐜1‖2=(1+1)/2=1. Next,

𝐜2⋅𝐜1=12(𝑎⋅1+𝑏⋅𝑖)=12(𝑎−𝑖𝑏),

which vanishes if and only if 𝑎=𝑖𝑏. Then ‖𝐜2‖2=(|𝑎|2+|𝑏|2)/2=|𝑏|2, which is 1 if and only if |𝑏|=1. So the matrix is unitary exactly when 𝑎=𝑖𝑏 with |𝑏|=1. For 𝑏=−𝑖 we recover the first matrix of Example 6.3.35(d).

6.3.4The discrete Fourier basis

After the standard basis, the most useful orthonormal basis of ℂ𝑛 consists of sampled waves. Computing coordinates in it is the discrete Fourier transform of signal processing. Its orthogonality rests on one computation with roots of unity.

Fix 𝑛≥1 and let

𝜔=cos2𝜋𝑛+𝑖sin2𝜋𝑛.

By de Moivre’s formula (Section B.1), 𝜔𝑚=cos(2𝜋𝑚/𝑛)+𝑖sin(2𝜋𝑚/𝑛) for every integer 𝑚. So |𝜔|=1, which gives 𝜔𝑚=𝜔−𝑚, and 𝜔𝑚=1 if and only if 𝑚/𝑛 is an integer, that is, 𝑛|𝑚. In particular 𝜔𝑛=1, so 𝜔𝑚 depends only on the remainder of 𝑚 modulo 𝑛.

Lemma 6.3.39 (Sums of roots of unity). For every integer 𝑚,

∑𝑗=0𝑛−1𝜔𝑗𝑚={𝑛if𝑛|𝑚0if𝑛∤𝑚.
Intuition. The numbers 𝜔𝑗𝑚, 𝑗=0,…,𝑛−1, go around the unit circle in equal steps, and when 𝑛∤𝑚 they are spread evenly around it. Rotating them all by the step 𝑧=𝜔𝑚 permutes them, so their sum 𝑆 satisfies 𝑧𝑆=𝑆; as 𝑧≠1, this forces 𝑆=0. When 𝑛|𝑚 every step is a full turn, and all 𝑛 terms are 1.

Proof.routine

Uses. 𝜔𝑚=1 if and only if 𝑛|𝑚, Proposition 1.1.17 (No zero divisors)

Hint 1. If 𝑛|𝑚, what is each term? If not, let 𝑧=𝜔𝑚≠1 and 𝑆=∑𝑗=0𝑛−1𝑧𝑗. Compare 𝑧𝑆 with 𝑆.
Hint 2. 𝑧𝑆=𝑧+𝑧2+⋯+𝑧𝑛, and 𝑧𝑛=(𝜔𝑛)𝑚=1.
Sketch. If 𝑛|𝑚, every term is 1. Otherwise 𝑧=𝜔𝑚≠1, and 𝑧𝑆=∑𝑗=1𝑛𝑧𝑗=𝑆 because 𝑧𝑛=1=𝑧0. So (𝑧−1)𝑆=0 with 𝑧−1≠0, and 𝑆=0. (Equivalently, sum the geometric series: 𝑆=(𝑧𝑛−1)/(𝑧−1)=0.)

If 𝑛|𝑚, then 𝜔𝑚=1, so 𝜔𝑗𝑚=(𝜔𝑚)𝑗=1 for every 𝑗, and the sum is 𝑛. Suppose 𝑛∤𝑚, and let 𝑧=𝜔𝑚, so 𝑧≠1 and 𝑧𝑛=(𝜔𝑛)𝑚=1. Let 𝑆=∑𝑗=0𝑛−1𝑧𝑗. Then

𝑧𝑆=𝑧+𝑧2+⋯+𝑧𝑛−1+𝑧𝑛=𝑧+𝑧2+⋯+𝑧𝑛−1+1=𝑆.

So (𝑧−1)𝑆=0, and since 𝑧−1≠0, Proposition 1.1.17 gives 𝑆=0. □

Definition 6.3.40 (Fourier matrix). The 𝑛×𝑛 Fourier matrix is the matrix Φ𝑛∈ℂ𝑛×𝑛 with entries

(Φ𝑛)𝑗𝑘=𝜔𝑗𝑘,

where, unlike elsewhere in the book, rows and columns are indexed by 𝑗,𝑘=0,1,…,𝑛−1. Its columns are 𝐟0,…,𝐟𝑛−1∈ℂ𝑛, where

𝐟𝑘=(1,𝜔𝑘,𝜔2𝑘,…,𝜔(𝑛−1)𝑘).

For example, Φ1=(1), Φ2=(111−1), and since 𝜔=𝑖 for 𝑛=4,

Φ4=(11111𝑖−1−𝑖1−11−11−𝑖−1𝑖).

Since 𝑗𝑘=𝑘𝑗, Φ𝑛 is symmetric, so its rows are also 𝐟0,…,𝐟𝑛−1.

Intuition (The columns are waves). The 𝑗th entry of 𝐟𝑘 is 𝜔𝑗𝑘=cos(2𝜋𝑘𝑗/𝑛)+𝑖sin(2𝜋𝑘𝑗/𝑛). So 𝐟𝑘 records the values of 𝑡↦cos(2𝜋𝑘𝑡)+𝑖sin(2𝜋𝑘𝑡), which winds 𝑘 times around the unit circle as 𝑡 runs over [0,1], at the 𝑛 sample points 𝑡=𝑗/𝑛. Its real part samples a cosine wave with 𝑘 full periods (Figure 6.3.2). The coordinate of a vector 𝐱∈ℂ𝑛 along 𝐟𝑘 measures how much of the wave of frequency 𝑘 the data 𝐱 contains. Since 𝜔𝑗(𝑛−𝑘)=𝜔−𝑗𝑘, we have 𝐟𝑛−𝑘=𝐟𝑘: at only 𝑛 sample points, frequency 𝑛−𝑘 looks exactly like frequency −𝑘.
Figure 6.3.2. Real parts of four columns 𝐟𝑘 of Φ8: the samples cos(2𝜋𝑘𝑗/8) at 𝑗=0,…,7, joined by the curve 𝑠↦cos(2𝜋𝑘𝑠/8). Frequency 4 is the fastest oscillation that 8 samples can show. The samples for 𝑘=7 coincide with those for 𝑘=1, because 𝐟7=𝐟1 has the same real part as 𝐟1.

Proposition 6.3.41 (The Fourier basis). The columns 𝐟0,…,𝐟𝑛−1 of Φ𝑛 are orthogonal, and ‖𝐟𝑘‖2=𝑛 for every 𝑘. Consequently:

  1. (a)Φ𝑛∗Φ𝑛=𝑛𝐼𝑛, and Φ𝑛/𝑛 is unitary;
  2. (b)Φ𝑛 is invertible, with Φ𝑛−1=1𝑛Φ𝑛∗=1𝑛Φ𝑛;
  3. (c)every 𝐱∈ℂ𝑛 satisfies

    𝐱=1𝑛∑𝑘=0𝑛−1⟨𝐱,𝐟𝑘⟩𝐟𝑘,where⟨𝐱,𝐟𝑘⟩=∑𝑗=0𝑛−1𝑥𝑗𝜔−𝑗𝑘;
  4. (d)every 𝐱∈ℂ𝑛 satisfies ∑𝑗=0𝑛−1|𝑥𝑗|2=1𝑛∑𝑘=0𝑛−1|⟨𝐱,𝐟𝑘⟩|2.

Proof.standard

Uses. Lemma 6.3.39 (Sums of roots of unity), Theorem 6.3.29 (Orthonormal columns), Proposition 6.3.34 (Characterizations of unitary matrices), Corollary 6.3.21 (Coordinates in an orthogonal basis), Theorem 6.3.22 (Parseval’s identity), Corollary 6.3.14 (Counting orthogonal vectors)

Techniques. Gram matrices (Technique 6.3.31)

Hint 1. Compute 𝐟𝑘⋅𝐟𝑙 using 𝜔𝑗𝑙=𝜔−𝑗𝑙. You get a sum of the kind in Lemma 6.3.39.
Hint 2. The sum is ∑𝑗𝜔𝑗(𝑘−𝑙). For 0≤𝑘,𝑙≤𝑛−1, when does 𝑛 divide 𝑘−𝑙?
Hint 3. For (a), use Theorem 6.3.29. For (c) and (d), 𝐟0,…,𝐟𝑛−1 is an orthogonal basis; apply Corollary 6.3.21 and Theorem 6.3.22 to 𝐟𝑘/𝑛.
Sketch. 𝐟𝑘⋅𝐟𝑙=∑𝑗𝜔𝑗𝑘𝜔−𝑗𝑙=∑𝑗𝜔𝑗(𝑘−𝑙), which is 𝑛 if 𝑘=𝑙 and 0 otherwise by Lemma 6.3.39, as |𝑘−𝑙|<𝑛. So Φ𝑛∗Φ𝑛=𝑛𝐼𝑛 by Theorem 6.3.29, Φ𝑛/𝑛 is unitary, and its inverse is its conjugate transpose. The vectors 𝐟𝑘 form an orthogonal basis with ‖𝐟𝑘‖2=𝑛, which gives (c) by Corollary 6.3.21, and (d) is Parseval for the orthonormal basis 𝐟𝑘/𝑛.

For 0≤𝑘,𝑙≤𝑛−1, since 𝜔𝑗𝑙=𝜔−𝑗𝑙,

𝐟𝑘⋅𝐟𝑙=∑𝑗=0𝑛−1𝜔𝑗𝑘𝜔𝑗𝑙=∑𝑗=0𝑛−1𝜔𝑗(𝑘−𝑙).

Since |𝑘−𝑙|≤𝑛−1, 𝑛|(𝑘−𝑙) only when 𝑘=𝑙. By Lemma 6.3.39, 𝐟𝑘⋅𝐟𝑙=𝑛 if 𝑘=𝑙 and 0 otherwise. So the columns are orthogonal with ‖𝐟𝑘‖2=𝑛.

(a) By Theorem 6.3.29, (Φ𝑛∗Φ𝑛)𝑘𝑙=𝐟𝑙⋅𝐟𝑘=𝑛𝛿𝑘𝑙, so Φ𝑛∗Φ𝑛=𝑛𝐼𝑛. Hence (Φ𝑛/𝑛)∗(Φ𝑛/𝑛)=(1/𝑛)Φ𝑛∗Φ𝑛=𝐼𝑛 (Proposition 6.3.27(a)), and Φ𝑛/𝑛 is unitary.

(b) By Proposition 6.3.34, Φ𝑛/𝑛 is invertible with inverse (Φ𝑛/𝑛)∗=Φ𝑛∗/𝑛. So Φ𝑛 is invertible, and Φ𝑛−1=(1/𝑛)Φ𝑛∗. Since Φ𝑛 is symmetric, Φ𝑛∗=Φ𝑛𝖳=Φ𝑛.

(c) The vectors 𝐟0,…,𝐟𝑛−1 are 𝑛 orthogonal nonzero vectors in ℂ𝑛, hence an orthogonal basis (Corollary 6.3.14). By Corollary 6.3.21, 𝐱=∑𝑘⟨𝐱,𝐟𝑘⟩/‖𝐟𝑘‖2𝐟𝑘, and ‖𝐟𝑘‖2=𝑛. Finally ⟨𝐱,𝐟𝑘⟩=𝐱⋅𝐟𝑘=∑𝑗𝑥𝑗𝜔𝑗𝑘=∑𝑗𝑥𝑗𝜔−𝑗𝑘.

(d) The vectors 𝐟𝑘/𝑛 form an orthonormal basis of ℂ𝑛, so by Theorem 6.3.22(b),

‖𝐱‖2=∑𝑘=0𝑛−1|⟨𝐱,𝐟𝑘𝑛⟩|2=1𝑛∑𝑘=0𝑛−1|⟨𝐱,𝐟𝑘⟩|2,

using that 1/𝑛 is real. □

The vector 𝐱̂=Φ𝑛∗𝐱=(⟨𝐱,𝐟0⟩,…,⟨𝐱,𝐟𝑛−1⟩) is called the discrete Fourier transform of 𝐱. (Conventions differ in where the factor 1/𝑛 goes and in the sign of the exponent.) Part (c) is the inversion formula 𝐱=(1/𝑛)Φ𝑛𝐱̂, and (d) is Parseval’s identity for the transform. Both are instances of what we proved for general orthogonal bases; the only computation specific to Φ𝑛 is Lemma 6.3.39.

Example 6.3.42 (A transform with 𝑛=4). Let 𝐱=(1,2,3,4). With 𝜔=𝑖, ⟨𝐱,𝐟𝑘⟩=∑𝑗𝑥𝑗𝑖−𝑗𝑘:

⟨𝐱,𝐟0⟩=1+2+3+4=10,⟨𝐱,𝐟1⟩=1−2𝑖−3+4𝑖=−2+2𝑖,⟨𝐱,𝐟2⟩=1−2+3−4=−2,⟨𝐱,𝐟3⟩=1+2𝑖−3−4𝑖=−2−2𝑖.

By Proposition 6.3.41(c),

𝐱=14(10𝐟0+(−2+2𝑖)𝐟1−2𝐟2+(−2−2𝑖)𝐟3).

The first term is the constant vector (5/2)𝐟0 whose entries are the mean of the entries of 𝐱, and the other three terms add up to the deviations (−3/2,−1/2,1/2,3/2) from the mean. Since 𝐱 is real, ⟨𝐱,𝐟3⟩=⟨𝐱,𝐟1⟩=⟨𝐱,𝐟1⟩. As a check of (d), 1+4+9+16=30 and (100+8+4+8)/4=30.

The invertibility of Φ𝑛 can also be proved without orthogonality, and comparing the two proofs shows what orthogonality buys.

Corollary 6.3.43 (Φ𝑛 is invertible). The Fourier matrix Φ𝑛 is invertible.

Proof (by orthogonality).routine

Uses. Proposition 6.3.41 (The Fourier basis)

Hint 1. Use Proposition 6.3.41(b).
Hint 2. It even gives the inverse.
Sketch. (1/𝑛)Φ𝑛 is a two-sided inverse, by Proposition 6.3.41(b).
This is Proposition 6.3.41(b): Φ𝑛−1=(1/𝑛)Φ𝑛. □

Proof (by the Vandermonde determinant).standard

Uses. Theorem 5.5.21 (The Vandermonde determinant), Theorem 5.4.7 (Invertibility and the determinant), 𝜔𝑚=1 if and only if 𝑛|𝑚

Hint 1. Row 𝑗 of Φ𝑛 is (1,𝑧𝑗,𝑧𝑗2,…,𝑧𝑗𝑛−1) with 𝑧𝑗=𝜔𝑗. What kind of matrix is that?
Hint 2. Φ𝑛 is a Vandermonde matrix. Its determinant is nonzero when the nodes 𝑧0,…,𝑧𝑛−1 are distinct; check that they are.
Sketch. Φ𝑛 is the Vandermonde matrix of the nodes 1,𝜔,…,𝜔𝑛−1 (it is symmetric, so the orientation does not matter). These are distinct, since 𝜔𝑗=𝜔𝑗′ with 0≤𝑗<𝑗′≤𝑛−1 would give 𝜔𝑗′−𝑗=1 with 0<𝑗′−𝑗<𝑛. So detΦ𝑛≠0, and Φ𝑛 is invertible.
Let 𝑧𝑗=𝜔𝑗 for 𝑗=0,…,𝑛−1. The entry of Φ𝑛 in row 𝑗 and column 𝑘 is 𝜔𝑗𝑘=𝑧𝑗𝑘, so Φ𝑛 is the Vandermonde matrix of the nodes 𝑧0,…,𝑧𝑛−1; since Φ𝑛 is symmetric, this holds whichever of rows or columns carries the powers in Theorem 5.5.21. The nodes are distinct: if 𝑧𝑗=𝑧𝑗′ with 0≤𝑗<𝑗′≤𝑛−1, then 𝜔𝑗′−𝑗=1 with 0<𝑗′−𝑗<𝑛, which is impossible since 𝑛∤(𝑗′−𝑗). By Theorem 5.5.21, detΦ𝑛=∏0≤𝑗<𝑗′≤𝑛−1(𝑧𝑗′−𝑧𝑗)≠0, and by Theorem 5.4.7, Φ𝑛 is invertible. □

The Vandermonde proof uses only that the nodes 𝜔𝑗 are distinct, so it applies to any distinct nodes, but it says nothing about the inverse. The orthogonality proof uses the special position of the nodes on the unit circle, and in return it produces the inverse (1/𝑛)Φ𝑛, the inversion formula, and Parseval’s identity. It also shows that |detΦ𝑛|=𝑛𝑛/2 (Exercise 6.3.60), which the product formula for the Vandermonde determinant hides.

Exercises

Exercise 6.3.44.routine In ℂ2 with the dot product, let 𝐮1=13(1,1+𝑖) and 𝐮2=13(−1+𝑖,1).

  1. (a)Show that 𝒪︀=𝐮1,𝐮2 is an orthonormal basis of ℂ2.
  2. (b)Find [𝐯]𝒪︀ for 𝐯=(2,3𝑖), and check your answer with Theorem 6.3.22(b).
  3. (c)Compute ⟨𝐮1,𝐯⟩𝐮1+⟨𝐮2,𝐯⟩𝐮2, with the slots exchanged, and compare it with 𝐯.

Solution.

Uses. Definition 6.1.8 (Dot product), Corollary 6.3.14 (Counting orthogonal vectors), Proposition 6.3.18 (Coordinates in an orthonormal basis), Theorem 6.3.22 (Parseval’s identity), Remark 6.3.19 (Which slot)

Hint 1. For (a), compute both squared norms and one dot product; then count.
Hint 2. For (b), the coordinates are 𝐯⋅𝐮1 and 𝐯⋅𝐮2. Conjugate the entries of 𝐮𝑗.
Hint 3. For (c), the coefficients are the conjugates of those in (b).
Sketch. (a) ‖(1,1+𝑖)‖2=‖(−1+𝑖,1)‖2=3 and (1,1+𝑖)⋅(−1+𝑖,1)=(−1−𝑖)+(1+𝑖)=0. (b) [𝐯]𝒪︀=((5+3𝑖)/3,(−2+𝑖)/3), and (34+5)/3=13=‖𝐯‖2. (c) The conjugated coefficients give ((8−4𝑖)/3,(6+𝑖)/3)≠𝐯.

(a) ‖(1,1+𝑖)‖2=1+2=3 and ‖(−1+𝑖,1)‖2=2+1=3, so 𝐮1 and 𝐮2 are unit vectors. Also

(1,1+𝑖)⋅(−1+𝑖,1)=1⋅(−1+𝑖)+(1+𝑖)⋅1=(−1−𝑖)+(1+𝑖)=0.

So 𝒪︀ is an orthonormal list of length 2=dimℂ2, hence an orthonormal basis by Corollary 6.3.14.

(b) By Proposition 6.3.18,

⟨𝐯,𝐮1⟩=13(2⋅1+3𝑖⋅(1+𝑖))=13(2+3𝑖+3)=5+3𝑖3,⟨𝐯,𝐮2⟩=13(2⋅(−1+𝑖)+3𝑖⋅1)=13(−2−2𝑖+3𝑖)=−2+𝑖3.

So [𝐯]𝒪︀=((5+3𝑖)/3,(−2+𝑖)/3). Check: |5+3𝑖|2/3+|−2+𝑖|2/3=(34+5)/3=13=|2|2+|3𝑖|2, as Theorem 6.3.22(b) requires. One can also check directly that (5+3𝑖)(1,1+𝑖)/3+(−2+𝑖)(−1+𝑖,1)/3=(6,9𝑖)/3=𝐯, using (5+3𝑖)(1+𝑖)=2+8𝑖 and (−2+𝑖)(−1+𝑖)=1−3𝑖.

(c) The exchanged coefficients are the conjugates ⟨𝐮1,𝐯⟩=(5−3𝑖)/3 and ⟨𝐮2,𝐯⟩=(−2−𝑖)/3. Since (5−3𝑖)(1+𝑖)=8+2𝑖 and (−2−𝑖)(−1+𝑖)=3−𝑖,

13((5−3𝑖)(1,1+𝑖)+(−2−𝑖)(−1+𝑖,1))=13(5−3𝑖+3−𝑖,8+2𝑖−2−𝑖)=(8−4𝑖3,6+𝑖3),

which is not 𝐯. Over ℂ the vector belongs in the first slot (Remark 6.3.19).

Exercise 6.3.45.routine Find all unit vectors 𝐱∈ℝ3 that are orthogonal to both (1,2,2) and (2,1,−2). Then find all 3×3 orthogonal matrices whose first two columns are 13(1,2,2) and 13(2,1,−2).

Solution.

Uses. Example 6.3.10 (Perps are solution sets), Theorem 6.3.29 (Orthonormal columns), Definition 6.3.33 (Unitary and orthogonal matrices)

Hint 1. By Example 6.3.10, the vectors orthogonal to both are the solutions of a homogeneous system with these two rows.
Hint 2. Solve 𝑥1+2𝑥2+2𝑥3=0, 2𝑥1+𝑥2−2𝑥3=0, then normalize. For the matrices, the third column must be one of the vectors you found.
Sketch. Adding the equations gives 𝑥2=−𝑥1, and then 𝑥3=𝑥1/2, so the solutions are 𝑡(2,−2,1), and the unit ones are ±13(2,−2,1). A 3×3 matrix is orthogonal exactly when its columns are orthonormal, so the third column must be one of these two vectors: there are exactly two such matrices.

By Example 6.3.10, 𝐱 is orthogonal to both vectors if and only if

𝑥1+2𝑥2+2𝑥3=0,2𝑥1+𝑥2−2𝑥3=0.

Adding the equations gives 3𝑥1+3𝑥2=0, so 𝑥2=−𝑥1, and then the first equation gives −𝑥1+2𝑥3=0, so 𝑥3=𝑥1/2. Conversely, every 𝐱=𝑡(2,−2,1) satisfies both equations. Since ‖(2,−2,1)‖=3, the unit vectors among these are 𝐱=±13(2,−2,1).

By Theorem 6.3.29 and Definition 6.3.33, a real 3×3 matrix is orthogonal if and only if its columns are orthonormal. The first two given columns are orthonormal (Example 6.3.16(c)), so the matrix is orthogonal exactly when its third column is a unit vector orthogonal to both, that is, ±13(2,−2,1). So there are exactly two such matrices,

13(12221−22−21)and13(12−22122−2−1).

Exercise 6.3.46.standard Let 𝑉 be an inner product space. Prove or disprove each statement.

  1. (a)If 𝐮⟂𝐯 and 𝐯⟂𝐰, then 𝐮⟂𝐰.
  2. (b)If 𝐯1,𝐯2,𝐯3 are nonzero with 𝐯1⟂𝐯2 and 𝐯2⟂𝐯3, then 𝐯1,𝐯2,𝐯3 is linearly independent.
  3. (c)If 𝐯1,…,𝐯𝑘 is orthogonal and 𝑐1,…,𝑐𝑘∈𝔽, then 𝑐1𝐯1,…,𝑐𝑘𝐯𝑘 is orthogonal.
  4. (d)If ‖𝐮+𝐯‖2=‖𝐮‖2+‖𝐯‖2 and ‖𝐮−𝐯‖2=‖𝐮‖2+‖𝐯‖2, then 𝐮⟂𝐯.
  5. (e)If 𝐯1,…,𝐯𝑘 spans 𝑉 and 𝐱⟂𝐯𝑗 for every 𝑗, then 𝐱=𝟎.

Solution.

Uses. Definition 6.3.1 (Orthogonality), Proposition 6.1.4 (Sesquilinearity), Proposition 6.1.29 (Expanding a norm), Proposition 6.3.9 (Properties of 𝐴⟂), Non-example 6.3.4 (The converse fails over ℂ)

Techniques. Finding counterexamples and minimal examples (Technique 1.4.18)

Hint 1. For (a) and (b), look for counterexamples in which a vector is repeated.
Hint 2. For (d), expand both norms with Proposition 6.1.29. Do the two hypotheses say different things?
Hint 3. For (e), combine (c) and (d) of Proposition 6.3.9.
Sketch. (a) False: 𝐮=𝐰=𝐞1, 𝐯=𝐞2. (b) False: in ℝ3, 𝐯1=𝐯3=𝐞1, 𝐯2=𝐞2. (c) True: ⟨𝑐𝑖𝐯𝑖,𝑐𝑗𝐯𝑗⟩=𝑐𝑖𝑐𝑗⟨𝐯𝑖,𝐯𝑗⟩. (d) Both hypotheses say Re⟨𝐮,𝐯⟩=0; true over ℝ, false over ℂ (𝐮=1, 𝐯=𝑖). (e) True: 𝐱∈ℒ︀⟂=span(ℒ︀)⟂=𝑉⟂={𝟎}.

(a) False. In ℝ2, take 𝐮=𝐰=𝐞1 and 𝐯=𝐞2. Then 𝐮⟂𝐯 and 𝐯⟂𝐰, but ⟨𝐮,𝐰⟩=1.

(b) False. In ℝ3, take 𝐯1=𝐯3=𝐞1 and 𝐯2=𝐞2. The hypotheses hold, but 𝐯1−𝐯3=𝟎. The hypothesis says nothing about the pair 𝐯1,𝐯3, so the list need not be orthogonal, and Proposition 6.3.13 does not apply. (The space is ℝ3 so that the dependence is not merely forced by the dimension.)

(c) True. For 𝑖≠𝑗, Proposition 6.1.4 gives ⟨𝑐𝑖𝐯𝑖,𝑐𝑗𝐯𝑗⟩=𝑐𝑖𝑐𝑗⟨𝐯𝑖,𝐯𝑗⟩=0.

(d) True over ℝ and false over ℂ. By Proposition 6.1.29,

‖𝐮±𝐯‖2=‖𝐮‖2±2Re⟨𝐮,𝐯⟩+‖𝐯‖2,

so each hypothesis says exactly that Re⟨𝐮,𝐯⟩=0; the second adds nothing to the first. Over ℝ this means 𝐮⟂𝐯 (Theorem 6.3.3(b)). Over ℂ, 𝐮=1 and 𝐯=𝑖 in ℂ satisfy both, since |1±𝑖|2=2, but ⟨1,𝑖⟩=−𝑖≠0 (Non-example 6.3.4).

(e) True. Let ℒ︀=𝐯1,…,𝐯𝑘. By Proposition 6.3.9(c) and (d), 𝐱∈ℒ︀⟂=span(ℒ︀)⟂=𝑉⟂={𝟎}.

Exercise 6.3.47.standard On 𝔽24, let 𝐱⋅𝐲=𝑥1𝑦1+𝑥2𝑦2+𝑥3𝑦3+𝑥4𝑦4. This formula is linear in each slot and symmetric, but it is not an inner product, since the scalars are not real or complex. Call 𝐱 and 𝐲 orthogonal if 𝐱⋅𝐲=0.

  1. (a)Find a nonzero 𝐱∈𝔽24 with 𝐱⋅𝐱=0.
  2. (b)Find three nonzero vectors in 𝔽24 that are pairwise orthogonal but linearly dependent. Which step of the first proof of Proposition 6.3.13 fails?
  3. (c)Let 𝑊=span((1,1,0,0),(0,0,1,1)). Show that {𝐱∈𝔽24|𝐱⋅𝐰=0for all𝐰∈𝑊}=𝑊. Which part of Proposition 6.3.9 fails?

Solution.

Uses. Proposition 6.3.13 (Orthogonal lists are independent), Proposition 6.3.9 (Properties of 𝐴⟂), Definition 6.1.2 (Inner product)

Techniques. Finding counterexamples and minimal examples (Technique 1.4.18)

Hint 1. In 𝔽2, 1+1=0. A vector with an even number of entries 1 is orthogonal to itself.
Hint 2. Try (1,1,0,0), (0,0,1,1), and their sum.
Hint 3. For (c), as in Proposition 6.3.9(c), it suffices to test orthogonality to the two spanning vectors.
Sketch. (a) (1,1,0,0). (b) (1,1,0,0), (0,0,1,1), (1,1,1,1) are pairwise orthogonal and the third is the sum of the first two; the step “𝑎𝑗𝐯𝑗⋅𝐯𝑗=0 forces 𝑎𝑗=0” fails because 𝐯𝑗⋅𝐯𝑗=0. (c) The conditions are 𝑥1=𝑥2 and 𝑥3=𝑥4, which describe 𝑊. So 𝑊∩𝑊⟂=𝑊≠{𝟎}, against Proposition 6.3.9(d), whose proof used definiteness.

(a) 𝐱=(1,1,0,0) has 𝐱⋅𝐱=1+1=0 in 𝔽2.

(b) Let 𝐯1=(1,1,0,0), 𝐯2=(0,0,1,1), 𝐯3=(1,1,1,1). Then 𝐯1⋅𝐯2=0, 𝐯1⋅𝐯3=1+1=0, and 𝐯2⋅𝐯3=1+1=0. But 𝐯1+𝐯2+𝐯3=(2,2,2,2)=𝟎, a nontrivial relation. In the first proof of Proposition 6.3.13, taking the product with 𝐯𝑗 still gives 𝑎𝑗(𝐯𝑗⋅𝐯𝑗)=0, but now 𝐯𝑗⋅𝐯𝑗=0, so nothing follows about 𝑎𝑗. The proof needed ⟨𝐯𝑗,𝐯𝑗⟩≠0 for 𝐯𝑗≠𝟎, which is definiteness.

(c) Since the formula is linear in each slot, the argument of Proposition 6.3.9(c) applies: 𝐱 is orthogonal to every vector of 𝑊 if and only if it is orthogonal to (1,1,0,0) and (0,0,1,1), that is, 𝑥1+𝑥2=0 and 𝑥3+𝑥4=0. In 𝔽2 these say 𝑥1=𝑥2 and 𝑥3=𝑥4, so the set is {(𝑠,𝑠,𝑡,𝑡)|𝑠,𝑡∈𝔽2}=𝑊. So 𝑊∩𝑊⟂=𝑊≠{𝟎}, and the last statement of Proposition 6.3.9(d) fails; its proof used that a vector orthogonal to itself is 𝟎. Forms over general fields are studied in Section 12.4.

Exercise 6.3.48.standard Give ℝ𝑛×𝑛 and ℂ𝑛×𝑛 the Frobenius inner product ⟨𝐴,𝐵⟩=tr(𝐵∗𝐴) (Proposition 6.1.16).

  1. (a)Show that every symmetric 𝑆∈ℝ𝑛×𝑛 is orthogonal to every skew-symmetric 𝐾∈ℝ𝑛×𝑛, and deduce that ‖𝐴‖2=‖(𝐴+𝐴𝖳)/2‖2+‖(𝐴−𝐴𝖳)/2‖2 for every 𝐴∈ℝ𝑛×𝑛.
  2. (b)Prove or disprove: every Hermitian 𝐻∈ℂ𝑛×𝑛 is orthogonal to every 𝐾∈ℂ𝑛×𝑛 with 𝐾∗=−𝐾. Does the identity ‖𝐴‖2=‖(𝐴+𝐴∗)/2‖2+‖(𝐴−𝐴∗)/2‖2 hold for every 𝐴∈ℂ𝑛×𝑛?

Solution.

Uses. Proposition 6.1.16 (Frobenius inner product), Proposition 2.4.28 (Cyclicity of the trace), Definition 2.4.26 (Trace), Theorem 6.3.3 (Pythagorean theorem), (6.3.1), Proposition 6.3.27 (Properties of the conjugate transpose)

Techniques. Cyclicity of trace (Technique 2.4.29)

Hint 1. For (a), ⟨𝑆,𝐾⟩=tr(𝐾𝖳𝑆)=−tr(𝐾𝑆). Compute tr(𝐾𝑆) a second way by transposing, and use cyclicity.
Hint 2. For (b), test 𝐻=𝐼𝑛 and 𝐾=𝑖𝐼𝑛.
Hint 3. For the identity in (b), only Re⟨𝐻,𝐾⟩ matters ((6.3.1)). Show that tr(𝐾𝐻) is purely imaginary by comparing it with its conjugate tr((𝐾𝐻)∗).
Sketch. (a) tr(𝐾𝑆)=tr((𝐾𝑆)𝖳)=tr(𝑆𝖳𝐾𝖳)=−tr(𝑆𝐾)=−tr(𝐾𝑆), so ⟨𝑆,𝐾⟩=−tr(𝐾𝑆)=0, and Pythagoras applies to 𝐴=𝑆+𝐾. (b) False: ⟨𝐼,𝑖𝐼⟩=−𝑖𝑛≠0. But tr(𝐾𝐻)=tr(𝐻∗𝐾∗)=−tr(𝐾𝐻), so ⟨𝐻,𝐾⟩=−tr(𝐾𝐻) is purely imaginary, Re⟨𝐻,𝐾⟩=0, and the identity holds by (6.3.1).

(a) Let 𝑆𝖳=𝑆 and 𝐾𝖳=−𝐾. A matrix and its transpose have the same diagonal, so tr(𝑀𝖳)=tr𝑀. Hence, using cyclicity (Proposition 2.4.28),

tr(𝐾𝑆)=tr((𝐾𝑆)𝖳)=tr(𝑆𝖳𝐾𝖳)=tr(𝑆(−𝐾))=−tr(𝑆𝐾)=−tr(𝐾𝑆),

so tr(𝐾𝑆)=0, and ⟨𝑆,𝐾⟩=tr(𝐾𝖳𝑆)=−tr(𝐾𝑆)=0. For 𝐴∈ℝ𝑛×𝑛, 𝑆=(𝐴+𝐴𝖳)/2 is symmetric, 𝐾=(𝐴−𝐴𝖳)/2 is skew-symmetric, and 𝐴=𝑆+𝐾. By Theorem 6.3.3(a), ‖𝐴‖2=‖𝑆‖2+‖𝐾‖2.

(b) False. 𝐻=𝐼𝑛 is Hermitian and 𝐾=𝑖𝐼𝑛 satisfies 𝐾∗=−𝑖𝐼𝑛=−𝐾, but ⟨𝐻,𝐾⟩=tr(𝐾∗𝐻)=tr(−𝑖𝐼𝑛)=−𝑖𝑛≠0.

The identity still holds. Let 𝐻∗=𝐻 and 𝐾∗=−𝐾. The diagonal entries of 𝑀∗ are the conjugates of those of 𝑀, so tr(𝑀∗)=tr𝑀. By Proposition 6.3.27(b) and cyclicity,

tr(𝐾𝐻)=tr((𝐾𝐻)∗)=tr(𝐻∗𝐾∗)=tr(𝐻(−𝐾))=−tr(𝐻𝐾)=−tr(𝐾𝐻).

So tr(𝐾𝐻) is purely imaginary, and so is ⟨𝐻,𝐾⟩=tr(𝐾∗𝐻)=−tr(𝐾𝐻). Thus Re⟨𝐻,𝐾⟩=0, and by (6.3.1), ‖𝐻+𝐾‖2=‖𝐻‖2+‖𝐾‖2. For 𝐴∈ℂ𝑛×𝑛, 𝐻=(𝐴+𝐴∗)/2 is Hermitian and 𝐾=(𝐴−𝐴∗)/2 satisfies 𝐾∗=−𝐾 (Proposition 6.3.27(a)), and 𝐴=𝐻+𝐾, which gives the identity. This is the situation of Non-example 6.3.4: Pythagoras holds without orthogonality.

Exercise 6.3.49.standard Give ℝ[𝑥]≤3 the inner product ⟨𝑝,𝑞⟩=∫−11𝑝(𝑡)𝑞(𝑡)d𝑡, as in Example 6.3.17.

  1. (a)Find the polynomial 𝑞=𝑥3+𝑎𝑥2+𝑏𝑥+𝑐 that is orthogonal to 1, 𝑥, and 𝑥2, and compute ‖𝑞‖2.
  2. (b)Show that 1,𝑥,𝑥2−1/3,𝑞 is an orthogonal basis of ℝ[𝑥]≤3.
  3. (c)Use Corollary 6.3.21 to write 𝑝=1+𝑥+𝑥2+𝑥3 in this basis, and check the result.

Solution.

Uses. Example 6.3.17 (Orthogonal polynomials), Proposition 6.3.9 (Properties of 𝐴⟂), Corollary 6.3.14 (Counting orthogonal vectors), Corollary 6.3.21 (Coordinates in an orthogonal basis)

Techniques. Undetermined coefficients (Technique 3.1.9)

Hint 1. ⟨𝑥𝑗,𝑥𝑘⟩=∫−11𝑡𝑗+𝑘d𝑡 is 2/(𝑗+𝑘+1) if 𝑗+𝑘 is even and 0 if it is odd. The three conditions are linear equations in 𝑎,𝑏,𝑐.
Hint 2. You should find 𝑞=𝑥3−(3/5)𝑥. For (b), 𝑞⟂𝑥2−1/3 follows from 𝑞⟂1 and 𝑞⟂𝑥2.
Hint 3. For (c), you need ⟨𝑝,1⟩, ⟨𝑝,𝑥⟩, ⟨𝑝,𝑥2−1/3⟩, ⟨𝑝,𝑞⟩ and the four squared norms.
Sketch. (a) ⟨𝑞,1⟩=2𝑎/3+2𝑐, ⟨𝑞,𝑥⟩=2/5+2𝑏/3, ⟨𝑞,𝑥2⟩=2𝑎/5+2𝑐/3 force 𝑎=𝑐=0, 𝑏=−3/5, and ‖𝑞‖2=8/175. (b) Four nonzero orthogonal vectors in a 4-dimensional space. (c) The coefficients are (8/3)/2=4/3, (16/15)/(2/3)=8/5, (8/45)/(8/45)=1, and (8/175)/(8/175)=1.

Throughout, ⟨𝑥𝑗,𝑥𝑘⟩=∫−11𝑡𝑗+𝑘d𝑡, which is 2/(𝑗+𝑘+1) when 𝑗+𝑘 is even and 0 when 𝑗+𝑘 is odd.

(a) By linearity in the first slot,

⟨𝑞,1⟩=23𝑎+2𝑐,⟨𝑞,𝑥⟩=25+23𝑏,⟨𝑞,𝑥2⟩=25𝑎+23𝑐.

The second equation gives 𝑏=−3/5. The first gives 𝑐=−𝑎/3, and then the third becomes 2𝑎/5−2𝑎/9=8𝑎/45=0, so 𝑎=𝑐=0. Hence 𝑞=𝑥3−(3/5)𝑥, and

‖𝑞‖2=∫−11(𝑡6−65𝑡4+925𝑡2)d𝑡=27−1225+625=8175.

(b) By Example 6.3.17, 1,𝑥,𝑥2−1/3 is orthogonal. By (a), 𝑞 is orthogonal to 1 and to 𝑥2, hence to 𝑥2−1/3 (Proposition 6.3.9(a)), and to 𝑥. So the four polynomials form an orthogonal list of nonzero vectors in the 4-dimensional space ℝ[𝑥]≤3, hence an orthogonal basis (Corollary 6.3.14).

(c) We compute ⟨𝑝,𝑥𝑘⟩=∑𝑗=03⟨𝑥𝑗,𝑥𝑘⟩:

⟨𝑝,1⟩=2+23=83,⟨𝑝,𝑥⟩=23+25=1615,⟨𝑝,𝑥2⟩=23+25=1615,⟨𝑝,𝑥3⟩=25+27=2435.

Hence ⟨𝑝,𝑥2−1/3⟩=16/15−8/9=8/45 and ⟨𝑝,𝑞⟩=24/35−(3/5)(16/15)=24/35−16/25=8/175. The squared norms are 2, 2/3, 8/45 (Example 6.3.17), and 8/175. By Corollary 6.3.21,

𝑝=43⋅1+85𝑥+1⋅(𝑥2−13)+1⋅(𝑥3−35𝑥).

Check: the constant term is 4/3−1/3=1, the coefficient of 𝑥 is 8/5−3/5=1, and those of 𝑥2 and 𝑥3 are 1.

Exercise 6.3.50.standard The Pauli matrices are

𝜎0=𝐼2,𝜎1=(0110),𝜎2=(0−𝑖𝑖0),𝜎3=(100−1).

Give ℂ2×2 the Frobenius inner product ⟨𝐴,𝐵⟩=tr(𝐵∗𝐴).

  1. (a)Show that 𝜎0/2,…,𝜎3/2 is an orthonormal basis of ℂ2×2.
  2. (b)Deduce that every 𝐴∈ℂ2×2 satisfies 𝐴=12∑𝑎=03tr(𝜎𝑎𝐴)𝜎𝑎.
  3. (c)Write 𝐴=(1234) in this form.

Solution.

Uses. Proposition 6.1.16 (Frobenius inner product), Proposition 2.4.28 (Cyclicity of the trace), Corollary 6.3.14 (Counting orthogonal vectors), Proposition 6.3.18 (Coordinates in an orthonormal basis)

Hint 1. Each 𝜎𝑎 is Hermitian, so ⟨𝜎𝑎,𝜎𝑏⟩=tr(𝜎𝑏𝜎𝑎). Compute 𝜎𝑎2 and the products 𝜎1𝜎2, 𝜎2𝜎3, 𝜎3𝜎1.
Hint 2. 𝜎𝑎2=𝐼2, and the three products are 𝑖𝜎3, 𝑖𝜎1, 𝑖𝜎2, all of trace 0. Also tr𝜎𝑎=0 for 𝑎=1,2,3.
Hint 3. For (b), the coordinate of 𝐴 along 𝜎𝑎/2 is ⟨𝐴,𝜎𝑎/2⟩=tr(𝜎𝑎𝐴)/2.
Sketch. (a) ⟨𝜎𝑎,𝜎𝑏⟩=tr(𝜎𝑏𝜎𝑎) is 2 for 𝑎=𝑏 and 0 otherwise, and dimℂ2×2=4. (b) Proposition 6.3.18 with ⟨𝐴,𝜎𝑎/2⟩=tr(𝜎𝑎𝐴)/2. (c) The traces are 5,5,−𝑖,−3, so 𝐴=(5𝜎0+5𝜎1−𝑖𝜎2−3𝜎3)/2.

(a) Each 𝜎𝑎 satisfies 𝜎𝑎∗=𝜎𝑎 (for 𝜎2: −𝑖=𝑖 moves to position (2,1)). So ⟨𝜎𝑎,𝜎𝑏⟩=tr(𝜎𝑏∗𝜎𝑎)=tr(𝜎𝑏𝜎𝑎). Direct multiplication gives 𝜎12=𝜎22=𝜎32=𝐼2 and

𝜎1𝜎2=(𝑖00−𝑖)=𝑖𝜎3,𝜎2𝜎3=(0𝑖𝑖0)=𝑖𝜎1,𝜎3𝜎1=(01−10)=𝑖𝜎2.

So ⟨𝜎𝑎,𝜎𝑎⟩=tr𝐼2=2 for every 𝑎 (including 𝑎=0). For distinct 𝑎,𝑏∈{1,2,3}, tr(𝜎𝑏𝜎𝑎)=tr(𝜎𝑎𝜎𝑏) (Proposition 2.4.28) is the trace of 𝑖 times a Pauli matrix with trace 0, so it is 0. Finally ⟨𝜎𝑎,𝜎0⟩=tr𝜎𝑎=0 for 𝑎=1,2,3. Hence the 𝜎𝑎/2 are orthonormal, and since dimℂ2×2=4, they form an orthonormal basis (Corollary 6.3.14).

(b) By Proposition 6.3.18, 𝐴=∑𝑎⟨𝐴,𝜎𝑎/2⟩𝜎𝑎/2, and ⟨𝐴,𝜎𝑎/2⟩=tr(𝜎𝑎∗𝐴)/2=tr(𝜎𝑎𝐴)/2. Multiplying the two factors 1/2 gives the formula.

(c) We have tr𝐴=5, and

𝜎1𝐴=(3412),𝜎2𝐴=(−3𝑖−4𝑖𝑖2𝑖),𝜎3𝐴=(12−3−4),

with traces 5, −𝑖, −3. So 𝐴=(5𝜎0+5𝜎1−𝑖𝜎2−3𝜎3)/2. Check: 5𝜎0+5𝜎1−𝑖𝜎2−3𝜎3=(5−35−15+15+3)=(2468)=2𝐴, since −𝑖𝜎2=(0−110).

Exercise 6.3.51.standard Let 𝑉 be a vector space over 𝔽 with a basis ℬ︀=𝐛1,…,𝐛𝑛.

  1. (a)Show that ⟨𝐱,𝐲⟩ℬ︀=[𝐱]ℬ︀⋅[𝐲]ℬ︀ is an inner product on 𝑉 for which ℬ︀ is orthonormal.
  2. (b)Show that it is the only inner product on 𝑉 for which ℬ︀ is orthonormal.
  3. (c)For 𝑉=ℝ2 and ℬ︀=(1,0),(1,1), find the matrix 𝑀 with ⟨𝐱,𝐲⟩ℬ︀=𝐲𝖳𝑀𝐱.

Solution.

Uses. Proposition 1.6.19 (Coordinates respect linear combinations), Proposition 6.1.10 (The dot product is an inner product), Definition 6.1.2 (Inner product), Theorem 6.3.22 (Parseval’s identity), Proposition 6.1.22 (Inner products on 𝔽𝑛)

Hint 1. The coordinate map 𝐱↦[𝐱]ℬ︀ is linear and injective. Transfer each axiom from the dot product.
Hint 2. For (b), if ℬ︀ is orthonormal for some inner product, what does Theorem 6.3.22 say about it?
Hint 3. For (c), [𝐱]ℬ︀=(𝑥1−𝑥2,𝑥2).
Sketch. (a) Write 𝐶(𝐱)=[𝐱]ℬ︀. Conjugate symmetry, linearity in the first slot, and positivity pass from the dot product through the linear map 𝐶, and ⟨𝐱,𝐱⟩ℬ︀=0 forces 𝐶(𝐱)=𝟎, so 𝐱=𝟎. Since [𝐛𝑗]ℬ︀=𝐞𝑗, ℬ︀ is orthonormal. (b) By Theorem 6.3.22(a), any inner product for which ℬ︀ is orthonormal equals [𝐱]ℬ︀⋅[𝐲]ℬ︀. (c) (𝑥1−𝑥2)(𝑦1−𝑦2)+𝑥2𝑦2, so 𝑀=(1−1−12).

(a) Let 𝐶(𝐱)=[𝐱]ℬ︀. By Proposition 1.6.19, 𝐶:𝑉→𝔽𝑛 is linear, and 𝐶(𝐱)=𝟎 only for 𝐱=0𝐛1+⋯+0𝐛𝑛=𝟎. Since the dot product is an inner product on 𝔽𝑛 (Proposition 6.1.10), for all 𝐱,𝐲,𝐳∈𝑉 and 𝑎,𝑏∈𝔽:

  • ⟨𝐲,𝐱⟩ℬ︀=𝐶(𝐲)⋅𝐶(𝐱)=𝐶(𝐱)⋅𝐶(𝐲)=⟨𝐱,𝐲⟩ℬ︀;
  • ⟨𝑎𝐱+𝑏𝐲,𝐳⟩ℬ︀=(𝑎𝐶(𝐱)+𝑏𝐶(𝐲))⋅𝐶(𝐳)=𝑎⟨𝐱,𝐳⟩ℬ︀+𝑏⟨𝐲,𝐳⟩ℬ︀;
  • ⟨𝐱,𝐱⟩ℬ︀=𝐶(𝐱)⋅𝐶(𝐱)≥0, with equality only if 𝐶(𝐱)=𝟎, that is, 𝐱=𝟎.

So ⟨⋅,⋅⟩ℬ︀ is an inner product. Since [𝐛𝑗]ℬ︀=𝐞𝑗, we get ⟨𝐛𝑖,𝐛𝑗⟩ℬ︀=𝐞𝑖⋅𝐞𝑗=𝛿𝑖𝑗, so ℬ︀ is orthonormal.

(b) Let ⟨⋅,⋅⟩ be an inner product on 𝑉 for which ℬ︀ is orthonormal. Then ℬ︀ is an orthonormal basis, and by Theorem 6.3.22(a), ⟨𝐱,𝐲⟩=[𝐱]ℬ︀⋅[𝐲]ℬ︀=⟨𝐱,𝐲⟩ℬ︀ for all 𝐱,𝐲.

(c) Writing 𝐱=𝑎(1,0)+𝑐(1,1)=(𝑎+𝑐,𝑐) gives 𝑐=𝑥2 and 𝑎=𝑥1−𝑥2, so [𝐱]ℬ︀=(𝑥1−𝑥2,𝑥2). Hence

⟨𝐱,𝐲⟩ℬ︀=(𝑥1−𝑥2)(𝑦1−𝑦2)+𝑥2𝑦2=𝑥1𝑦1−𝑥1𝑦2−𝑥2𝑦1+2𝑥2𝑦2=𝐲𝖳(1−1−12)𝐱.

For instance ⟨𝐞1,𝐞2⟩ℬ︀=−1: the standard basis is not orthonormal for this inner product, as anticipated after Theorem 6.3.22.

Exercise 6.3.52.standard
  1. (a)In ℝ2, let 𝐰𝑗=2/3(cos(2𝜋𝑗/3),sin(2𝜋𝑗/3)) for 𝑗=0,1,2. Show that ∑𝑗=02⟨𝐯,𝐰𝑗⟩2=‖𝐯‖2 for every 𝐯∈ℝ2, although 𝐰0,𝐰1,𝐰2 is not orthonormal.
  2. (b)Let 𝐯1,…,𝐯𝑘 be unit vectors in an inner product space 𝑉 such that ∑𝑗=1𝑘|⟨𝐯,𝐯𝑗⟩|2=‖𝐯‖2 for every 𝐯∈𝑉. Show that 𝐯1,…,𝐯𝑘 is an orthonormal basis of 𝑉.

Solution.

Uses. Definition 6.1.8 (Dot product), Corollary 6.3.14 (Counting orthogonal vectors), Theorem 6.3.24 (Bessel’s inequality), Proposition 6.3.13 (Orthogonal lists are independent)

Techniques. Plug in clever test vectors (Technique 6.1.40), A sum of nonnegative terms (Technique 6.1.9)

Hint 1. For (a), write 𝐯=(𝑥,𝑦) and expand. You need ∑𝑗cos2𝜃𝑗, ∑𝑗sin2𝜃𝑗, and ∑𝑗cos𝜃𝑗sin𝜃𝑗 for 𝜃𝑗=2𝜋𝑗/3.
Hint 2. For (b), apply the hypothesis to 𝐯=𝐯𝑙. The left side contains the term |⟨𝐯𝑙,𝐯𝑙⟩|2=1.
Hint 3. Once the list is orthonormal, the hypothesis is the equality case of Bessel’s inequality for every 𝐯.
Sketch. (a) With cos𝜃𝑗=1,−1/2,−1/2 and sin𝜃𝑗=0,3/2,−3/2, the sum is (2/3)(3𝑥2/2+3𝑦2/2). Three nonzero vectors in ℝ2 cannot be orthogonal. (b) For 𝐯=𝐯𝑙: 1=1+∑𝑗≠𝑙|⟨𝐯𝑙,𝐯𝑗⟩|2, so the cross terms vanish. Then Bessel’s equality case puts every 𝐯 in the span.

(a) For 𝜃𝑗=2𝜋𝑗/3, the cosines are 1,−1/2,−1/2 and the sines are 0,3/2,−3/2. So ∑𝑗cos2𝜃𝑗=3/2, ∑𝑗sin2𝜃𝑗=3/2, and ∑𝑗cos𝜃𝑗sin𝜃𝑗=0−3/4+3/4=0. For 𝐯=(𝑥,𝑦),

∑𝑗=02⟨𝐯,𝐰𝑗⟩2=23∑𝑗=02(𝑥cos𝜃𝑗+𝑦sin𝜃𝑗)2=23(32𝑥2+0+32𝑦2)=‖𝐯‖2.

The list is not orthonormal: each 𝐰𝑗 has norm 2/3, and by Corollary 6.3.14 no three nonzero vectors in ℝ2 are orthogonal.

(b) Fix 𝑙 and apply the hypothesis to 𝐯=𝐯𝑙. Since ‖𝐯𝑙‖=1,

1=∑𝑗=1𝑘|⟨𝐯𝑙,𝐯𝑗⟩|2=1+∑𝑗≠𝑙|⟨𝐯𝑙,𝐯𝑗⟩|2.

So the remaining sum of nonnegative terms is 0, and ⟨𝐯𝑙,𝐯𝑗⟩=0 for all 𝑗≠𝑙. Thus the list is orthonormal. Now the hypothesis says that equality holds in Bessel’s inequality (Theorem 6.3.24) for every 𝐯∈𝑉, so every 𝐯 lies in span(𝐯1,…,𝐯𝑘). The list spans 𝑉 and is independent (Proposition 6.3.13), so it is an orthonormal basis. Part (a) shows that the hypothesis “unit vectors” cannot be dropped.

Exercise 6.3.53.standard Let 𝐮1,…,𝐮𝑘 be an orthonormal list in 𝑉, and let 𝐱,𝐲∈𝑉.

  1. (a)Show that ∑𝑗=1𝑘|⟨𝐱,𝐮𝑗⟩||⟨𝐲,𝐮𝑗⟩|≤‖𝐱‖‖𝐲‖.
  2. (b)Show that ∑𝑗=1𝑘|⟨𝐱,𝐮𝑗⟩|≤𝑘‖𝐱‖, and find when equality holds.

Solution.

Uses. Theorem 6.2.1 (Cauchy–Schwarz inequality), Theorem 6.3.24 (Bessel’s inequality), Proposition 6.2.22 (The square of a sum)

Techniques. Apply Cauchy–Schwarz to a well-chosen inner product (Technique 6.2.21)

Hint 1. For (a), apply Cauchy–Schwarz in ℝ𝑘 to the vectors (|⟨𝐱,𝐮𝑗⟩|)𝑗 and (|⟨𝐲,𝐮𝑗⟩|)𝑗, then Bessel to each norm.
Hint 2. For (b), use Proposition 6.2.22 and then Bessel. Equality requires equality in both steps.
Sketch. (a) Cauchy–Schwarz in ℝ𝑘 bounds the sum by (∑𝑗|⟨𝐱,𝐮𝑗⟩|2)1/2(∑𝑗|⟨𝐲,𝐮𝑗⟩|2)1/2, and Bessel bounds the factors by ‖𝐱‖ and ‖𝐲‖. (b) (∑𝑗𝑎𝑗)2≤𝑘∑𝑗𝑎𝑗2≤𝑘‖𝐱‖2 with 𝑎𝑗=|⟨𝐱,𝐮𝑗⟩|. Equality: all 𝑎𝑗 equal and 𝐱∈span(𝐮1,…,𝐮𝑘), that is, 𝐱=∑𝑗𝑐𝑗𝐮𝑗 with |𝑐1|=⋯=|𝑐𝑘|.

Write 𝑎𝑗=|⟨𝐱,𝐮𝑗⟩| and 𝑏𝑗=|⟨𝐲,𝐮𝑗⟩|, nonnegative reals.

(a) By Theorem 6.2.1 for the dot product on ℝ𝑘 and then Theorem 6.3.24 twice,

∑𝑗𝑎𝑗𝑏𝑗≤(∑𝑗𝑎𝑗2)1/2(∑𝑗𝑏𝑗2)1/2≤‖𝐱‖‖𝐲‖.

(b) By Proposition 6.2.22 and Theorem 6.3.24,

(∑𝑗𝑎𝑗)2≤𝑘∑𝑗𝑎𝑗2≤𝑘‖𝐱‖2,

and taking nonnegative square roots gives the inequality. Equality holds if and only if both steps are equalities: all 𝑎𝑗 are equal (Proposition 6.2.22) and 𝐱∈span(𝐮1,…,𝐮𝑘) (Theorem 6.3.24). By Proposition 6.3.18, this says 𝐱=𝑐1𝐮1+⋯+𝑐𝑘𝐮𝑘 with |𝑐1|=⋯=|𝑐𝑘|. For example, in ℝ𝑘 with the standard basis, 𝐱=(1,−1,1,…) gives equality.

Exercise 6.3.54.standard The 𝑛×𝑛 Hilbert matrix 𝐻𝑛 has entries ℎ𝑖𝑗=1/(𝑖+𝑗−1).

  1. (a)Show that 𝐻𝑛 is the Gram matrix of 1,𝑥,…,𝑥𝑛−1 in ℝ[𝑥]≤𝑛−1 with ⟨𝑝,𝑞⟩=∫01𝑝(𝑡)𝑞(𝑡)d𝑡.
  2. (b)Deduce that 𝐻𝑛 is invertible and that 𝐜𝖳𝐻𝑛𝐜>0 for every nonzero 𝐜∈ℝ𝑛.

Solution.

Uses. Definition 6.3.28 (Gram matrix), Proposition 6.3.30 (Gram matrices detect independence), Example 1.5.7 (Monomials)

Techniques. Gram matrices (Technique 6.3.31)

Hint 1. Compute ⟨𝑥𝑗−1,𝑥𝑖−1⟩.
Hint 2. The monomials are linearly independent. Apply Proposition 6.3.30.
Sketch. ⟨𝑥𝑗−1,𝑥𝑖−1⟩=∫01𝑡𝑖+𝑗−2d𝑡=1/(𝑖+𝑗−1). The monomials are independent, so 𝐻𝑛 is invertible, and 𝐜𝖳𝐻𝑛𝐜=‖∑𝑗𝑐𝑗𝑥𝑗−1‖2>0 because the polynomial is nonzero.

(a) The formula is an inner product on ℝ[𝑥]≤𝑛−1 (see Example 6.3.17 for definiteness; the interval does not matter). The (𝑖,𝑗) entry of the Gram matrix of 𝑥0,…,𝑥𝑛−1 is

⟨𝑥𝑗−1,𝑥𝑖−1⟩=∫01𝑡𝑖+𝑗−2d𝑡=1𝑖+𝑗−1=ℎ𝑖𝑗.

(b) The monomials 1,𝑥,…,𝑥𝑛−1 are linearly independent (Example 1.5.7), so 𝐻𝑛 is invertible by Proposition 6.3.30. For 𝐜≠𝟎, the polynomial 𝑝=𝑐1+𝑐2𝑥+⋯+𝑐𝑛𝑥𝑛−1 is nonzero, and by Proposition 6.3.30(a), 𝐜𝖳𝐻𝑛𝐜=‖𝑝‖2>0.

Computing det𝐻𝑛 directly is laborious already for 𝑛=4; the Gram matrix point of view gives invertibility with no computation.

Exercise 6.3.55.standard Find the error in the following argument, and decide whether the claim is true.

Claim. If the columns of 𝐴∈ℝ𝑛×𝑛 are orthogonal and nonzero, then the rows of 𝐴 are orthogonal.

Argument. By Theorem 6.3.29, 𝐴𝖳𝐴=𝐷 is diagonal with positive diagonal entries, so 𝐷 is invertible. The columns are independent (Proposition 6.3.13), so 𝐴 is invertible, and 𝐴𝖳=𝐷𝐴−1. Hence 𝐴𝐴𝖳=𝐴𝐷𝐴−1. A matrix similar to a diagonal matrix is diagonal, so 𝐴𝐴𝖳 is diagonal, which says that the rows of 𝐴 are orthogonal.

Solution.

Uses. Theorem 6.3.29 (Orthonormal columns), Proposition 6.3.34 (Characterizations of unitary matrices)

Techniques. Finding counterexamples and minimal examples (Technique 1.4.18)

Hint 1. Check each step. Which one is a general claim about matrices that you have not seen proved?
Hint 2. Is (1102) diagonal? Is it similar to a diagonal matrix? For a counterexample to the claim, try 2×2 matrices with columns (1,1) and (𝑎,−𝑎).
Sketch. The false step is “similar to a diagonal matrix implies diagonal”. The claim is false: 𝐴=(121−2) has 𝐴𝖳𝐴=diag(2,8) but 𝐴𝐴𝖳=(5−3−35). With orthonormal columns (𝐷=𝐼) the argument works and gives Proposition 6.3.34.

Every step is correct except “a matrix similar to a diagonal matrix is diagonal”. For instance 𝑃𝐷𝑃−1 with 𝐷=diag(1,2) and 𝑃=(1101) is (1102), which is not diagonal. (Matrices similar to diagonal ones are the diagonalizable matrices of Section 7.4.)

The claim is false. For 𝐴=(121−2), the columns (1,1) and (2,−2) are orthogonal and nonzero, and 𝐴𝖳𝐴=diag(2,8). But the rows (1,2) and (1,−2) have dot product 1−4=−3, and indeed

𝐴𝐴𝖳=(121−2)(112−2)=(5−3−35).

The argument does prove something when 𝐷=𝐼, that is, when the columns are orthonormal: then 𝐴𝐴𝖳=𝐴𝐴−1=𝐼, and the rows are orthonormal. This is (i) ⇒ (iii) of Proposition 6.3.34.

Exercise 6.3.56.standard Let 𝐯1,…,𝐯𝑛 be a list in 𝑉 with Gram matrix 𝐺, let 𝑆=(𝑠𝑖𝑗)∈𝔽𝑛×𝑛, and let 𝐰𝑗=∑𝑖=1𝑛𝑠𝑖𝑗𝐯𝑖 for 𝑗=1,…,𝑛.

  1. (a)Show that the Gram matrix of 𝐰1,…,𝐰𝑛 is 𝑆∗𝐺𝑆.
  2. (b)Suppose 𝒪︀=𝐯1,…,𝐯𝑛 is an orthonormal basis of 𝑉. Show that 𝐰1,…,𝐰𝑛 is an orthonormal basis of 𝑉 if and only if 𝑆 is unitary. Conclude that the change-of-coordinates matrix between two orthonormal bases (Section 4.5) is unitary.

Solution.

Uses. Definition 6.3.28 (Gram matrix), Proposition 6.1.4 (Sesquilinearity), Definition 2.4.1 (Matrix product), Definition 6.3.26 (Conjugate transpose), Definition 6.3.33 (Unitary and orthogonal matrices), Corollary 6.3.14 (Counting orthogonal vectors)

Techniques. Expand by multilinearity (Technique 5.1.7), Gram matrices (Technique 6.3.31)

Hint 1. Expand ⟨𝐰𝑗,𝐰𝑖⟩ in both slots. The coefficients from the second slot come out conjugated.
Hint 2. ⟨𝐰𝑗,𝐰𝑖⟩=∑𝑚∑𝑙𝑠𝑚𝑖𝑔𝑚𝑙𝑠𝑙𝑗, and 𝑠𝑚𝑖 is the (𝑖,𝑚) entry of 𝑆∗.
Hint 3. For (b), 𝐺=𝐼𝑛; a list is orthonormal exactly when its Gram matrix is 𝐼𝑛. Column 𝑗 of 𝑆 is [𝐰𝑗]𝒪︀.
Sketch. (a) ⟨𝐰𝑗,𝐰𝑖⟩=∑𝑙,𝑚𝑠𝑙𝑗𝑠𝑚𝑖⟨𝐯𝑙,𝐯𝑚⟩=∑𝑚,𝑙(𝑆∗)𝑖𝑚𝑔𝑚𝑙𝑠𝑙𝑗=(𝑆∗𝐺𝑆)𝑖𝑗. (b) With 𝐺=𝐼, the 𝐰𝑗 are orthonormal iff 𝑆∗𝑆=𝐼, and 𝑛 orthonormal vectors form a basis. Column 𝑗 of 𝑆 is [𝐰𝑗]𝒪︀, so 𝑆 is the change-of-coordinates matrix from the 𝐰-basis to 𝒪︀.

(a) Expanding both slots (linearity in the first, Proposition 6.1.4 in the second),

⟨𝐰𝑗,𝐰𝑖⟩=⟨∑𝑙𝑠𝑙𝑗𝐯𝑙,∑𝑚𝑠𝑚𝑖𝐯𝑚⟩=∑𝑚=1𝑛∑𝑙=1𝑛𝑠𝑚𝑖⟨𝐯𝑙,𝐯𝑚⟩𝑠𝑙𝑗=∑𝑚=1𝑛∑𝑙=1𝑛(𝑆∗)𝑖𝑚𝑔𝑚𝑙𝑠𝑙𝑗,

using 𝑔𝑚𝑙=⟨𝐯𝑙,𝐯𝑚⟩ and (𝑆∗)𝑖𝑚=𝑠𝑚𝑖. By Definition 2.4.1, the right side is the (𝑖,𝑗) entry of 𝑆∗𝐺𝑆.

(b) If 𝒪︀ is orthonormal, its Gram matrix is 𝐼𝑛, so by (a) the Gram matrix of 𝐰1,…,𝐰𝑛 is 𝑆∗𝑆. A list is orthonormal exactly when its Gram matrix is the identity, so 𝐰1,…,𝐰𝑛 is orthonormal if and only if 𝑆∗𝑆=𝐼𝑛, that is, 𝑆 is unitary. An orthonormal list of length 𝑛=dim𝑉 is an orthonormal basis (Corollary 6.3.14).

Column 𝑗 of 𝑆 is the coordinate vector [𝐰𝑗]𝒪︀, so 𝑆 is the change-of-coordinates matrix that converts coordinates with respect to 𝐰1,…,𝐰𝑛 into coordinates with respect to 𝒪︀. Hence if both lists are orthonormal bases, this matrix is unitary, and so is its inverse, the change of coordinates in the other direction (Exercise 6.3.37).

Exercise 6.3.57.standard
  1. (a)Show that det(𝐴∗)=det𝐴 for every 𝐴∈𝔽𝑛×𝑛. Deduce that |det𝑈|=1 for every unitary 𝑈, and that det𝑄=±1 for every real orthogonal 𝑄.
  2. (b)Show by example that a real matrix with determinant 1 need not be orthogonal.
  3. (c)Show that an upper triangular unitary matrix is diagonal.

Solution.

Uses. Theorem 5.3.3 (The Leibniz formula), Theorem 5.4.14 (The transpose), Theorem 5.4.10 (Multiplicativity), Theorem 6.3.29 (Orthonormal columns), Definition 6.3.26 (Conjugate transpose)

Hint 1. Conjugation respects sums and products, so it passes through the Leibniz formula: det𝐴=det𝐴. Then use det(𝐵𝖳)=det𝐵.
Hint 2. Take determinants of 𝑈∗𝑈=𝐼𝑛.
Hint 3. For (c), the first column of 𝑈 is 𝑢11𝐞1. Orthogonality of the other columns to it kills the rest of the first row. Then repeat with the second column.
Sketch. (a) det𝐴∗=det𝐴𝖳=det𝐴=det𝐴, so 1=det(𝑈∗𝑈)=det𝑈det𝑈=|det𝑈|2; a real number of modulus 1 is ±1. (b) diag(2,1/2). (c) Induct on the row: if rows 1,…,𝑖−1 vanish off the diagonal, column 𝑖 is 𝑢𝑖𝑖𝐞𝑖, and orthogonality of column 𝑗>𝑖 to it gives 𝑢𝑖𝑗𝑢𝑖𝑖=0 with |𝑢𝑖𝑖|=1, so row 𝑖 vanishes off the diagonal too.

(a) By Theorem 5.3.3, det𝐴 is a sum of signed products of entries of 𝐴, which are the conjugates of the corresponding products for 𝐴; since conjugation respects sums and products, det𝐴=det𝐴. By Theorem 5.4.14, det(𝐴∗)=det(𝐴𝖳)=det𝐴=det𝐴.

If 𝑈 is unitary, then by Theorem 5.4.10,

1=det𝐼𝑛=det(𝑈∗𝑈)=det(𝑈∗)det𝑈=det𝑈det𝑈=|det𝑈|2,

so |det𝑈|=1. If 𝑄 is real orthogonal, det𝑄 is a real number with |det𝑄|=1, so det𝑄=±1.

(b) 𝐴=diag(2,1/2) has det𝐴=1, but its first column has norm 2, so 𝐴𝖳𝐴≠𝐼2.

(c) Let 𝑈 be unitary and upper triangular, with columns 𝐜1,…,𝐜𝑛; by Theorem 6.3.29 they are orthonormal. We show by induction on 𝑖 that 𝑢𝑖𝑗=0 for all 𝑗>𝑖. Suppose this holds for the rows 1,…,𝑖−1. Then the entries 𝑢1𝑖,…,𝑢𝑖−1,𝑖 of 𝐜𝑖 vanish, and so do its entries below the diagonal, so 𝐜𝑖=𝑢𝑖𝑖𝐞𝑖, and |𝑢𝑖𝑖|=‖𝐜𝑖‖=1. For 𝑗>𝑖,

0=𝐜𝑗⋅𝐜𝑖=𝑢𝑖𝑗𝑢𝑖𝑖,

and 𝑢𝑖𝑖≠0, so 𝑢𝑖𝑗=0. This completes the induction (the case 𝑖=1 needs no hypothesis). So 𝑈 is diagonal, with diagonal entries of modulus 1.

Exercise 6.3.58.standard Show that 𝑈∈ℂ2×2 is unitary if and only if

𝑈=(𝑎−𝜆𝑐𝑐𝜆𝑎)

for some 𝑎,𝑐,𝜆∈ℂ with |𝑎|2+|𝑐|2=1 and |𝜆|=1, and that then det𝑈=𝜆.

Solution.

Uses. Theorem 6.3.29 (Orthonormal columns), Definition 6.1.8 (Dot product), Theorem 5.1.13 (The 2×2 determinant)

Hint 1. The first column (𝑎,𝑐) is any unit vector. Find one unit vector orthogonal to it by inspection.
Hint 2. (−𝑐,𝑎) works. Show that every vector orthogonal to (𝑎,𝑐) is a multiple of it: solve 𝑏𝑎+𝑑𝑐=0, treating 𝑎≠0 and 𝑎=0 separately.
Sketch. The given matrices have orthonormal columns by a direct check. Conversely, if (𝑎,𝑐) is a unit vector, the solutions of 𝑏𝑎+𝑑𝑐=0 are the multiples of (−𝑐,𝑎), which is a unit vector; so a unit second column is 𝜆(−𝑐,𝑎) with |𝜆|=1. Then det𝑈=𝜆(|𝑎|2+|𝑐|2)=𝜆.

By Theorem 6.3.29, 𝑈 is unitary if and only if its columns are orthonormal.

Suppose 𝑈 has the given form. The first column has squared norm |𝑎|2+|𝑐|2=1, the second has squared norm |𝜆|2(|𝑐|2+|𝑎|2)=1, and

(−𝜆𝑐,𝜆𝑎)⋅(𝑎,𝑐)=−𝜆𝑐𝑎+𝜆𝑎𝑐=0.

So 𝑈 is unitary.

Conversely, let 𝑈=(𝑎𝑏𝑐𝑑) be unitary. Then |𝑎|2+|𝑐|2=1, and the second column satisfies (𝑏,𝑑)⋅(𝑎,𝑐)=𝑏𝑎+𝑑𝑐=0. If 𝑎≠0, then 𝑏=−𝑑𝑐/𝑎, so (𝑏,𝑑)=(𝑑/𝑎)(−𝑐,𝑎). If 𝑎=0, then |𝑐|=1, so 𝑐≠0 and 𝑑=0, and (𝑏,𝑑)=(𝑏,0)=(−𝑏/𝑐)(−𝑐,𝑎) since 𝑎=0. Either way (𝑏,𝑑)=𝜆(−𝑐,𝑎) for some 𝜆∈ℂ. Since ‖(−𝑐,𝑎)‖2=|𝑐|2+|𝑎|2=1 and (𝑏,𝑑) is a unit vector, |𝜆|=1.

Finally, by Theorem 5.1.13, det𝑈=𝑎⋅𝜆𝑎−(−𝜆𝑐)𝑐=𝜆(|𝑎|2+|𝑐|2)=𝜆. The unitary matrices with determinant 1 are those with 𝜆=1.

Exercise 6.3.59.routine Let 𝑛=3, so that 𝜔=−1/2+(3/2)𝑖.

  1. (a)Write down Φ3 and Φ3−1.
  2. (b)Write 𝐱=(1,2,0) as a linear combination of 𝐟0,𝐟1,𝐟2, and check Proposition 6.3.41(d).

Solution.

Uses. Definition 6.3.40 (Fourier matrix), Proposition 6.3.41 (The Fourier basis)

Hint 1. 𝜔3=1, so 𝜔4=𝜔, and 𝜔2=𝜔=𝜔−1.
Hint 2. The coefficient of 𝐟𝑘 is ⟨𝐱,𝐟𝑘⟩/3 with ⟨𝐱,𝐟𝑘⟩=∑𝑗𝑥𝑗𝜔−𝑗𝑘.
Sketch. Φ3=(1111𝜔𝜔21𝜔2𝜔) and Φ3−1=(1/3)Φ3. The transform of 𝐱 is (3,−3𝑖,3𝑖), so 𝐱=𝐟0+(𝑖/3)(𝐟2−𝐟1), and 1+4=(9+3+3)/3.

(a) Since 𝜔3=1, 𝜔4=𝜔, and 𝜔=𝜔2,

Φ3=(1111𝜔𝜔21𝜔2𝜔),Φ3−1=13Φ3=13(1111𝜔2𝜔1𝜔𝜔2),

by Proposition 6.3.41(b).

(b) By Proposition 6.3.41(c), with 𝜔−1=𝜔2 and 𝜔−2=𝜔,

⟨𝐱,𝐟0⟩=3,⟨𝐱,𝐟1⟩=1+2𝜔2=−3𝑖,⟨𝐱,𝐟2⟩=1+2𝜔=3𝑖.

So 𝐱=(1/3)(3𝐟0−3𝑖𝐟1+3𝑖𝐟2)=𝐟0+(𝑖/3)(𝐟2−𝐟1). Check: 𝐟2−𝐟1=(0,𝜔2−𝜔,𝜔−𝜔2)=(0,−3𝑖,3𝑖), so (𝑖/3)(𝐟2−𝐟1)=(0,1,−1), and adding 𝐟0=(1,1,1) gives (1,2,0). For (d): |1|2+|2|2+0=5 and (9+3+3)/3=5.

Exercise 6.3.60.standard Index rows and columns by 0,…,𝑛−1, as for Φ𝑛.

  1. (a)Show that Φ𝑛2=𝑛𝑃, where 𝑃 has entries 𝑝𝑗𝑙=1 if 𝑛|(𝑗+𝑙) and 𝑝𝑗𝑙=0 otherwise. Show that 𝑃 is a permutation matrix with 𝑃2=𝐼𝑛, and deduce that Φ𝑛4=𝑛2𝐼𝑛.
  2. (b)Show that |detΦ𝑛|=𝑛𝑛/2.

Solution.

Uses. Lemma 6.3.39 (Sums of roots of unity), Definition 5.2.29 (Permutation matrix), Theorem 5.4.10 (Multiplicativity), Proposition 5.3.15 (Triangular matrices)

Techniques. Compute entry by entry (Technique 2.4.15)

Hint 1. (Φ𝑛2)𝑗𝑙=∑𝑘𝜔𝑗𝑘𝜔𝑘𝑙. Apply Lemma 6.3.39 with 𝑚=𝑗+𝑙.
Hint 2. For each 𝑗 there is exactly one 𝑙∈{0,…,𝑛−1} with 𝑛|(𝑗+𝑙). Which?
Hint 3. For (b), take determinants in Φ𝑛4=𝑛2𝐼𝑛.
Sketch. (a) (Φ𝑛2)𝑗𝑙=∑𝑘𝜔𝑘(𝑗+𝑙) is 𝑛 if 𝑛|(𝑗+𝑙) and 0 otherwise. Each row and each column of 𝑃 has a single 1, at 𝑙=𝜎(𝑗) where 𝜎(𝑗) is −𝑗 reduced mod 𝑛, and 𝜎 is its own inverse, so 𝑃2=𝐼 and Φ𝑛4=𝑛2𝑃2=𝑛2𝐼. (b) (detΦ𝑛)4=det(𝑛2𝐼𝑛)=𝑛2𝑛, so |detΦ𝑛|=𝑛𝑛/2.

(a) By the entry formula for products and Lemma 6.3.39,

(Φ𝑛2)𝑗𝑙=∑𝑘=0𝑛−1𝜔𝑗𝑘𝜔𝑘𝑙=∑𝑘=0𝑛−1𝜔𝑘(𝑗+𝑙)={𝑛if𝑛|(𝑗+𝑙)0otherwise,

so Φ𝑛2=𝑛𝑃. For 𝑗∈{0,…,𝑛−1}, let 𝜎(𝑗)=0 if 𝑗=0 and 𝜎(𝑗)=𝑛−𝑗 otherwise. Then 𝜎(𝑗) is the only 𝑙∈{0,…,𝑛−1} with 𝑛|(𝑗+𝑙), so row 𝑗 of 𝑃 has its only 1 in column 𝜎(𝑗). Also 𝜎(𝜎(𝑗))=𝑗, so 𝜎 is a bijection of {0,…,𝑛−1} (its own inverse), and 𝑃 is the permutation matrix of 𝜎 (Definition 5.2.29). It is symmetric, since 𝑛|(𝑗+𝑙) is symmetric in 𝑗 and 𝑙. Finally

(𝑃2)𝑗𝑚=∑𝑙𝑝𝑗𝑙𝑝𝑙𝑚=𝑝𝜎(𝑗)𝑚,

which is 1 exactly when 𝑚=𝜎(𝜎(𝑗))=𝑗. So 𝑃2=𝐼𝑛 and Φ𝑛4=(𝑛𝑃)2=𝑛2𝑃2=𝑛2𝐼𝑛.

(b) By Theorem 5.4.10 and Proposition 5.3.15, (detΦ𝑛)4=det(Φ𝑛4)=det(𝑛2𝐼𝑛)=𝑛2𝑛. Taking moduli, |detΦ𝑛|4=𝑛2𝑛, so |detΦ𝑛|=𝑛𝑛/2. (Alternatively, Φ𝑛∗Φ𝑛=𝑛𝐼𝑛 and Exercise 6.3.57(a) give |detΦ𝑛|2=𝑛𝑛.)

Exercise 6.3.61.hard For 𝐜=(𝑐0,…,𝑐𝑛−1)∈ℂ𝑛, the circulant matrix 𝐶 has entries 𝐶𝑗𝑙=𝑐(𝑗−𝑙)mod𝑛, with indices 0,…,𝑛−1. For 𝑛=3,

𝐶=(𝑐0𝑐2𝑐1𝑐1𝑐0𝑐2𝑐2𝑐1𝑐0).
  1. (a)Show that 𝐶𝐟𝑘=⟨𝐜,𝐟𝑘⟩𝐟𝑘 for 𝑘=0,…,𝑛−1.
  2. (b)Deduce that 𝐶=Φ𝑛𝐷Φ𝑛−1, where 𝐷 is the diagonal matrix with entries ⟨𝐜,𝐟0⟩,…,⟨𝐜,𝐟𝑛−1⟩. Conclude that any two 𝑛×𝑛 circulant matrices commute, and that 𝐶 is invertible if and only if ⟨𝐜,𝐟𝑘⟩≠0 for every 𝑘.
  3. (c)Using (b), decide whether the following matrix is invertible, and find its determinant:

    (201120012).

Solution.

Uses. Definition 6.3.40 (Fourier matrix), Proposition 6.3.41 (The Fourier basis), Proposition 2.4.8 (Four views of the product), Theorem 5.4.10 (Multiplicativity)

Hint 1. Write (𝐶𝐟𝑘)𝑗=∑𝑙𝑐(𝑗−𝑙)mod𝑛𝜔𝑙𝑘 and substitute 𝑚=(𝑗−𝑙)mod𝑛. Since 𝜔𝑛=1, 𝜔𝑙𝑘=𝜔(𝑗−𝑚)𝑘.
Hint 2. For (b), (a) says 𝐶Φ𝑛=Φ𝑛𝐷 column by column. Diagonal matrices commute.
Hint 3. For (c), 𝐜=(2,1,0) and ⟨𝐜,𝐟𝑘⟩=2+𝜔−𝑘.
Sketch. (a) Reindexing by 𝑚=(𝑗−𝑙)mod𝑛 gives (𝐶𝐟𝑘)𝑗=𝜔𝑗𝑘∑𝑚𝑐𝑚𝜔−𝑚𝑘=⟨𝐜,𝐟𝑘⟩(𝐟𝑘)𝑗. (b) So 𝐶Φ𝑛=Φ𝑛𝐷, and 𝐶=Φ𝑛𝐷Φ𝑛−1; then 𝐶𝐶′=Φ𝑛𝐷𝐷′Φ𝑛−1=𝐶′𝐶, and 𝐶 is invertible iff 𝐷 is. (c) The values 2+𝜔−𝑘 are 3, 2+𝜔2, 2+𝜔, all nonzero, and det𝐶=3|2+𝜔|2=9.

(a) Fix 𝑗 and 𝑘. As 𝑙 runs over 0,…,𝑛−1, so does 𝑚=(𝑗−𝑙)mod𝑛, and 𝑙 is congruent to 𝑗−𝑚 modulo 𝑛. Since 𝜔𝑛=1, 𝜔𝑙𝑘=𝜔(𝑗−𝑚)𝑘. Hence

(𝐶𝐟𝑘)𝑗=∑𝑙=0𝑛−1𝑐(𝑗−𝑙)mod𝑛𝜔𝑙𝑘=∑𝑚=0𝑛−1𝑐𝑚𝜔(𝑗−𝑚)𝑘=𝜔𝑗𝑘∑𝑚=0𝑛−1𝑐𝑚𝜔−𝑚𝑘=⟨𝐜,𝐟𝑘⟩(𝐟𝑘)𝑗,

using ⟨𝐜,𝐟𝑘⟩=∑𝑚𝑐𝑚𝜔−𝑚𝑘 (Proposition 6.3.41(c)).

(b) Column 𝑘 of 𝐶Φ𝑛 is 𝐶𝐟𝑘 (Proposition 2.4.8), and column 𝑘 of Φ𝑛𝐷 is ⟨𝐜,𝐟𝑘⟩𝐟𝑘. By (a), 𝐶Φ𝑛=Φ𝑛𝐷, and since Φ𝑛 is invertible, 𝐶=Φ𝑛𝐷Φ𝑛−1. If 𝐶′ is another circulant, with diagonal matrix 𝐷′, then since diagonal matrices commute,

𝐶𝐶′=Φ𝑛𝐷𝐷′Φ𝑛−1=Φ𝑛𝐷′𝐷Φ𝑛−1=𝐶′𝐶.

Finally, 𝐶 is invertible if and only if 𝐷=Φ𝑛−1𝐶Φ𝑛 is, and a diagonal matrix is invertible if and only if its diagonal entries are nonzero.

(c) The matrix is the circulant with 𝐜=(2,1,0). With 𝜔=−1/2+(3/2)𝑖, the entries of 𝐷 are ⟨𝐜,𝐟𝑘⟩=2+𝜔−𝑘, namely 3, 2+𝜔2, and 2+𝜔. The last two are 3/2∓(3/2)𝑖≠0, so the matrix is invertible. By Theorem 5.4.10, det𝐶=det𝐷=3(2+𝜔2)(2+𝜔)=3|2+𝜔|2=3(9/4+3/4)=9, which agrees with cofactor expansion along the first row: 2⋅4−0+1⋅1=9.

Exercise 6.3.62.hard Let 𝑛≥1, let 𝜔 be as in Section 6.3.4, and let 𝑟∈{0,…,𝑛−1}.

  1. (a)Let 𝑝(𝑥)=𝑎0+𝑎1𝑥+⋯+𝑎𝑑𝑥𝑑∈ℂ[𝑥]. Show that

    ∑0≤𝑘≤𝑑,𝑛|(𝑘−𝑟)𝑎𝑘=1𝑛∑𝑗=0𝑛−1𝜔−𝑗𝑟𝑝(𝜔𝑗).
  2. (b)Compute (120)+(123)+(126)+(129)+(1212) without adding these numbers.
  3. (c)Show that for every 𝑚≥0, ∑𝑘≡0(mod3)(𝑚𝑘)=(2𝑚+2cos(𝑚𝜋/3))/3.

Solution.

Uses. Lemma 6.3.39 (Sums of roots of unity), Definition 1.2.17 (Evaluation), de Moivre’s formula (Section B.1), the binomial theorem

Hint 1. Substitute 𝑝(𝜔𝑗)=∑𝑘𝑎𝑘𝜔𝑗𝑘, exchange the two sums, and apply Lemma 6.3.39 with 𝑚=𝑘−𝑟.
Hint 2. For (b), take 𝑝=(1+𝑥)12, 𝑛=3, 𝑟=0. Write 1+𝜔 and 1+𝜔2 in the form cos𝜃+𝑖sin𝜃.
Sketch. (a) (1/𝑛)∑𝑗𝜔−𝑗𝑟∑𝑘𝑎𝑘𝜔𝑗𝑘=∑𝑘𝑎𝑘(1/𝑛)∑𝑗𝜔𝑗(𝑘−𝑟), and the inner average is 1 if 𝑛|(𝑘−𝑟) and 0 otherwise. (b) With 𝜔=𝜔3, 1+𝜔=cos(𝜋/3)+𝑖sin(𝜋/3) and 1+𝜔2 is its conjugate, so their 12th powers are 1, and the sum is (212+2)/3=1366. (c) The same computation with exponent 𝑚 gives (2𝑚+2cos(𝑚𝜋/3))/3.

(a) By Definition 1.2.17, 𝑝(𝜔𝑗)=∑𝑘=0𝑑𝑎𝑘𝜔𝑗𝑘. Exchanging the finite sums,

1𝑛∑𝑗=0𝑛−1𝜔−𝑗𝑟𝑝(𝜔𝑗)=∑𝑘=0𝑑𝑎𝑘(1𝑛∑𝑗=0𝑛−1𝜔𝑗(𝑘−𝑟)).

By Lemma 6.3.39 the expression in parentheses is 1 if 𝑛|(𝑘−𝑟) and 0 otherwise, which gives the claim.

(b) Take 𝑛=3, 𝑟=0, and 𝑝=(1+𝑥)12=∑𝑘(12𝑘)𝑥𝑘. Then the left side of (a) is the requested sum, and the right side is (𝑝(1)+𝑝(𝜔)+𝑝(𝜔2))/3. Here 𝜔=−1/2+(3/2)𝑖, so

1+𝜔=12+32𝑖=cos𝜋3+𝑖sin𝜋3,1+𝜔2=1+𝜔=1+𝜔.

By de Moivre’s formula, (1+𝜔)12=cos4𝜋+𝑖sin4𝜋=1, and (1+𝜔2)12=(1+𝜔)12=1. So the sum is (212+1+1)/3=4098/3=1366.

(c) With 𝑝=(1+𝑥)𝑚, the same computation gives (1+𝜔)𝑚=cos(𝑚𝜋/3)+𝑖sin(𝑚𝜋/3) and (1+𝜔2)𝑚 its conjugate, which add up to 2cos(𝑚𝜋/3). So the sum is (2𝑚+2cos(𝑚𝜋/3))/3.

Exercise 6.3.63.hard A Hadamard matrix of order 𝑛 is a matrix 𝐻∈ℝ𝑛×𝑛 whose entries are all ±1 and whose columns are orthogonal; equivalently, 𝐻𝖳𝐻=𝑛𝐼𝑛.

  1. (a)Show that if a Hadamard matrix of order 𝑛≥3 exists, then 4|𝑛.
  2. (b)Show that if 𝐻 is a Hadamard matrix of order 𝑛, then (𝐻𝐻𝐻−𝐻) is a Hadamard matrix of order 2𝑛. Deduce that Hadamard matrices of order 2𝑘 exist for every 𝑘≥0.

Solution.

Uses. Theorem 6.3.29 (Orthonormal columns), Theorem 2.4.34 (Block multiplication)

Techniques. Block decomposition (Technique 2.4.35)

Hint 1. Multiplying a row of 𝐻 by −1, or permuting the rows, keeps the columns orthogonal. Use this to make the first column all 1s.
Hint 2. A ±1 column orthogonal to the all-1s column has as many +1s as −1s. Arrange the second column as 𝑛/2 entries +1 followed by 𝑛/2 entries −1.
Hint 3. Count the +1s of the third column in each half, and use its orthogonality to the first two columns.
Sketch. (a) Normalize the first column to all 1s and sort the rows so that column 2 is +1 in the first half and −1 in the second. If column 3 has 𝑎 entries +1 in the first half and 𝑏 in the second, orthogonality to column 1 gives 𝑎+𝑏=𝑛/2 and to column 2 gives 2𝑎−2𝑏=0, so 𝑎=𝑛/4. (b) Block multiplication gives (𝐻𝐻𝐻−𝐻)𝖳(𝐻𝐻𝐻−𝐻)=diag(2𝐻𝖳𝐻,2𝐻𝖳𝐻)=2𝑛𝐼2𝑛; start from (1).

(a) Let 𝐻 be a Hadamard matrix of order 𝑛≥3, with columns 𝐡1,…,𝐡𝑛, so 𝐡𝑘⋅𝐡𝑙=∑𝑗ℎ𝑗𝑘ℎ𝑗𝑙. Multiplying row 𝑗 by −1 multiplies both ℎ𝑗𝑘 and ℎ𝑗𝑙 by −1, so it leaves each term ℎ𝑗𝑘ℎ𝑗𝑙 unchanged, and permuting the rows only reorders the sum. So both operations produce Hadamard matrices. Multiply each row whose first entry is −1 by −1; now 𝐡1=(1,…,1).

Every other column satisfies 0=𝐡𝑘⋅𝐡1=∑𝑗ℎ𝑗𝑘, so it has equally many entries +1 and −1; in particular 𝑛 is even. Permute the rows so that 𝐡2 has +1 in rows 1,…,𝑛/2 and −1 in rows 𝑛/2+1,…,𝑛. Let 𝑎 and 𝑏 be the numbers of entries +1 of 𝐡3 in the first and in the second half. From 𝐡3⋅𝐡1=0, 𝐡3 has 𝑛/2 entries +1 in total, so 𝑎+𝑏=𝑛/2. From 𝐡3⋅𝐡2=0,

0=(𝑎−(𝑛2−𝑎))−(𝑏−(𝑛2−𝑏))=2𝑎−2𝑏.

So 𝑎=𝑏=𝑛/4, and since 𝑎 is an integer, 4|𝑛.

(b) Let 𝐾=(𝐻𝐻𝐻−𝐻). Its entries are ±1, and by Theorem 2.4.34,

𝐾𝖳𝐾=(𝐻𝖳𝐻𝖳𝐻𝖳−𝐻𝖳)(𝐻𝐻𝐻−𝐻)=(2𝐻𝖳𝐻002𝐻𝖳𝐻)=(2𝑛𝐼𝑛002𝑛𝐼𝑛)=2𝑛𝐼2𝑛.

So 𝐾 is a Hadamard matrix of order 2𝑛 (Theorem 6.3.29). Starting from the Hadamard matrix (1) of order 1 and applying this construction 𝑘 times gives one of order 2𝑘. The first step gives Φ2=(111−1). Whether Hadamard matrices exist for every order divisible by 4 is a famous open problem.

Exercise 6.3.64.challenge Let 𝑛 be odd, let 𝜔 be as in Section 6.3.4, and let 𝑔=∑𝑗=0𝑛−1𝜔𝑗2.

  1. (a)Show that |𝑔|2=𝑛.
  2. (b)Compute |𝑔|2 for 𝑛=4 and for 𝑛=6 (with the same definition of 𝑔), and explain where the proof of (a) used that 𝑛 is odd.

Solution.

Uses. Lemma 6.3.39 (Sums of roots of unity)

Hint 1. Write |𝑔|2=𝑔𝑔=∑𝑗∑𝑘𝜔𝑗2−𝑘2. The exponent 𝑗2−𝑘2 suggests substituting 𝑗=𝑘+𝑑.
Hint 2. Since 𝜔𝑛=1, 𝜔𝑗2 depends only on 𝑗 modulo 𝑛, so for fixed 𝑘 you may let 𝑑 run over 0,…,𝑛−1 with 𝑗≡𝑘+𝑑. Then 𝑗2−𝑘2≡𝑑2+2𝑑𝑘.
Hint 3. The sum over 𝑘 of 𝜔2𝑑𝑘 is given by Lemma 6.3.39. For which 𝑑 is it nonzero when 𝑛 is odd?
Sketch. |𝑔|2=∑𝑘∑𝑑𝜔(𝑘+𝑑)2−𝑘2=∑𝑑𝜔𝑑2∑𝑘𝜔2𝑑𝑘. The inner sum is 𝑛 if 𝑛|2𝑑 and 0 otherwise. For odd 𝑛, 𝑛|2𝑑 only for 𝑑=0, so |𝑔|2=𝑛. For 𝑛=4 the values 𝑑=0,2 contribute, giving 8; for 𝑛=6, 𝑑=0,3 contribute 6(1+𝜔9)=0.

(a) Since 𝜔𝑛=1, 𝜔𝑚 depends only on 𝑚 modulo 𝑛; as (𝑗+𝑛)2=𝑗2+𝑛(2𝑗+𝑛), the term 𝜔𝑗2 depends only on 𝑗 modulo 𝑛. Since 𝜔𝑘2=𝜔−𝑘2,

|𝑔|2=𝑔𝑔=∑𝑘=0𝑛−1∑𝑗=0𝑛−1𝜔𝑗2−𝑘2.

Fix 𝑘. As 𝑑 runs over 0,…,𝑛−1, the residue of 𝑘+𝑑 modulo 𝑛 runs over all residues once, so we may replace 𝑗 by 𝑘+𝑑 in the inner sum:

∑𝑗=0𝑛−1𝜔𝑗2−𝑘2=∑𝑑=0𝑛−1𝜔(𝑘+𝑑)2−𝑘2=∑𝑑=0𝑛−1𝜔𝑑2+2𝑑𝑘.

Summing over 𝑘 and exchanging the sums,

|𝑔|2=∑𝑑=0𝑛−1𝜔𝑑2∑𝑘=0𝑛−1𝜔𝑘(2𝑑).

By Lemma 6.3.39 the inner sum is 𝑛 if 𝑛|2𝑑 and 0 otherwise. Since 𝑛 is odd, 𝑛|2𝑑 implies 𝑛|𝑑, which for 0≤𝑑≤𝑛−1 means 𝑑=0. So |𝑔|2=𝜔0⋅𝑛=𝑛.

(b) The computation up to the last step did not use that 𝑛 is odd, so in general |𝑔|2=𝑛∑𝜔𝑑2 over the 𝑑∈{0,…,𝑛−1} with 𝑛|2𝑑. For 𝑛=4 (where 𝜔=𝑖) these are 𝑑=0,2, and |𝑔|2=4(1+𝑖4)=8; directly, 𝑔=1+𝑖+𝑖4+𝑖9=2+2𝑖. For 𝑛=6 they are 𝑑=0,3, and |𝑔|2=6(1+𝜔9)=6(1+𝜔3)=0, since 𝜔3=−1 for 𝑛=6. The oddness of 𝑛 was used only to conclude that 𝑛|2𝑑 forces 𝑑=0.

More practice

The practice bank has 39 exercises on this section’s topics.