Chapter 6: Inner product spaces
6.3Orthogonality and orthonormal bases
For nonzero , 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 (Proposition 6.2.17). This section takes the condition 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
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 or is orthogonal, an orthogonal list may contain any number of times, and a nonzero vector cannot occur twice in an orthogonal list, since .
- (a)In , for all , since . The second vector is the first rotated by . For instance .
- (b)In ,
, so . Forgetting the conjugate gives instead. - (c)Give the inner product
(Proposition 6.1.13, on ). If is even and is odd, then is odd, so . For instance and . On the other hand .
Orthogonality depends on the inner product as well as on the vectors. For the inner product on with (Example 6.1.23), , so and are not orthogonal. The vectors and are orthogonal for both inner products: , and .
Over , orthogonality is more demanding than perpendicularity of arrows. In with , the numbers and are perpendicular as arrows in the plane, but . They are not orthogonal, and they should not be, since is a scalar multiple of . As we saw at the end of Section 6.2.3, says that is perpendicular, in the real sense, to for every with .
The Pythagorean theorem
Theorem 6.3.3 (Pythagorean theorem). Let .
- (a)If , then
. - (b)If , the converse holds: if
, then .
Uses. Proposition 6.1.29 (Expanding a norm), Definition 6.3.1 (Orthogonality)
so the identity
(a) If , then , so its real part is .
(b) If , then is real and equals its real part. So says that . □
In 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 , by Example 6.3.2(c), so
which agrees with the direct computation
Non-example 6.3.4 (The converse fails over ). In with , take and . Then
while
The imaginary part becomes visible once is multiplied by . With , Proposition 6.1.29 gives
Proposition 6.3.5 (Orthogonality over through Pythagoras). Let be a complex inner product space and . Then if and only if both
In that case
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)
Let . By Proposition 6.1.29 and Proposition 6.1.27,
For the right side is , and for it is
The last statement also follows from Theorem 6.3.3(a): if , then
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 be an orthogonal list in , and let . Then
Proof (by expanding).
Uses. Proposition 6.1.4 (Sesquilinearity), Definition 6.1.26 (Norm), Definition 6.3.1 (Orthogonality)
Techniques. Expand by multilinearity (Technique 5.1.7)
By linearity in the first slot and Proposition 6.1.4 in the second,
For the term is because . For it is
Proof (by induction on ).
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)
We induct on . For the claim is
so , and by Theorem 6.3.3(a), Proposition 6.1.27, and the induction hypothesis applied to the orthogonal list ,
as desired. □
The second proof explains why pairwise orthogonality is enough: a vector orthogonal to each of is orthogonal to every linear combination of them. We record this fact in Proposition 6.3.9.
Uses. Definition 6.1.8 (Dot product), Definition 6.3.1 (Orthogonality), Proposition 6.1.10 (The dot product is an inner product)
By Definition 6.1.8,
This vanishes if and only if , that is,
With and , Proposition 6.1.10 gives and . The sum is
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
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 .
- (a) is a subspace of .
- (b)If , then .
- (c)For a list in , . That is, a vector is orthogonal to every linear combination of if and only if it is orthogonal to each .
- (d), , and .
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)
(a) By Proposition 6.1.4(b), for all , so . Let and . For every , linearity in the first slot gives
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 (Proposition 1.3.17), so (b) gives . Conversely, let , and let
so as well, and .
(d) Every satisfies by Proposition 6.1.4(b), so . If , then in particular , 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 for an arbitrary subset , with as in Aside (Spans of infinite sets). Part (a) holds even when itself is not a subspace.
- (a)In ,
, the plane through with normal vector . (b)Let . The th entry of is
, where is the th row of with its entries conjugated. So 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 , solving gives
, and indeed is orthogonal to and to . The vectors are the columns of the matrix of Definition 6.3.26 below, so by Proposition 6.3.9(c) this says ; Section 6.6 proves the analogous statement for linear maps.
Uses. Definition 6.3.8 (Vectors orthogonal to a set), Proposition 6.3.9 (Properties of )
Techniques. Double containment (Technique 1.3.14)
A vector lies in if and only if for every in or in , that is, if and only if and . So .
Let . For every ,
For in with the dot product, is a subspace by Proposition 6.3.9(a), so it contains . In fact and
6.3.2Orthonormal lists and bases
Orthogonal lists are independent
Three mutually perpendicular nonzero arrows in cannot lie in a common plane, so they are linearly independent. To prove the general version, start from a linear relation
Technique 6.3.12 (Take an inner product to isolate a coefficient). If a vector is written as a combination
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
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.
Used in 13 places and 1 practice exercise
Proposition 6.3.13, Proposition 6.3.18, Corollary 6.3.21, Theorem 6.3.24, Proposition 6.4.4, Theorem 6.4.6, Corollary 6.4.25, Exercise 6.4.55, Theorem 6.6.3, Theorem 6.6.15, Exercise 6.7.7, Problem 6.5, Lemma 8.4.23; 1 practice exercise.
Proof (by isolating coefficients).
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)
Let be an orthogonal list of nonzero vectors, and suppose
where the fourth step uses for . Since , by Proposition 6.1.27, so . As was arbitrary, the only linear relation among is the trivial one, and the list is independent by Theorem 1.5.5. □
Proof (by Pythagoras).
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)
Suppose
Each term is a nonnegative real number, so each term is . Since for every , it follows that , that is, , 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 , so it is short only when all its coefficients are small. Both proofs use that for . For the “dot product” on with , 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.
Uses. Proposition 6.3.13 (Orthogonal lists are independent), Theorem 4.1.10 (Independent lists are short), an independent list of length is a basis (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 in is orthonormal if it is orthogonal and every is a unit vector. That is,
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 becomes orthonormal after normalizing (Section 6.1.4): the vectors are unit vectors, and scaling does not affect orthogonality, as
- (a)The standard basis is an orthonormal basis of with the dot product, since .
- (b)For every , ,
is an orthonormal basis of : the standard basis rotated by . (c)In , let
Each has squared norm , and
, , . So this is an orthonormal list of length , hence an orthonormal basis. - (d)In , and form an orthonormal basis: , and by Example 6.3.2(b).
- (e)With the Frobenius inner product (Proposition 6.1.16), the matrix units , which have entry in position and elsewhere, form an orthonormal basis of : is the sum of the products of corresponding entries, which is if and otherwise.
Example 6.3.17 (Orthogonal polynomials). Give the inner product
The squared norms are , , and
So
Coordinates are inner products
Intuition (Why orthonormal coordinates come for free). For a general basis of , finding means solving
For an orthonormal basis , the line through the tip of parallel to is perpendicular to , so is the foot of the perpendicular from to the line through (Figure 6.3.1(b)). That foot is the shadow of Technique 6.2.4, with
Proposition 6.3.18 (Coordinates in an orthonormal basis). Let be an orthonormal list in .
(a)If , then
(b)In particular, if is an orthonormal basis of , then every satisfies (a), that is,
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)
(a) Since , there are scalars with
Substituting into gives (a).
(b) If is a basis, then , so (a) applies to every . The coordinates are the unique coefficients 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
and indeed
Example 6.3.20 (Coordinates without a linear system). Take the orthonormal basis of from Example 6.3.16(c) and . By Proposition 6.3.18,
so
Three dot products replaced the row reduction of a augmented matrix.
The same isolation works for orthogonal bases that are not normalized; each coefficient just picks up the factor .
Corollary 6.3.21 (Coordinates in an orthogonal basis). Let be an orthogonal basis of , that is, an orthogonal list of nonzero vectors that is a basis. Then every satisfies
Uses. Definition 1.6.1 (Basis), Definition 6.3.1 (Orthogonality)
Techniques. Take an inner product to isolate a coefficient (Technique 6.3.12)
Since is a basis,
As , we may divide by , which gives
Each term 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 with , , and , the shadows are and , which add up to .
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 be an orthonormal basis of , and let .
(a)
. In coordinates, - (b)
, which is the squared norm of in .
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)
(a) By Proposition 6.3.18,
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 . 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
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 of , the orthogonal vectors and have coordinate vectors and , whose dot product is . In fact is a different inner product on , the unique one for which is orthonormal (Exercise 6.3.51).
Uses. Corollary 6.3.14 (Counting orthogonal vectors), Proposition 6.3.18 (Coordinates in an orthonormal basis), Theorem 6.3.22 (Parseval’s identity)
The unscaled vectors , , have pairwise dot products , , and , and squared norms , , . So is an orthonormal list of length , hence an orthonormal basis by Corollary 6.3.14.
so
Bessel’s inequality
Parseval’s identity needs a basis. For an orthonormal list that does not span , the sum misses part of , and an inequality remains.
Theorem 6.3.24 (Bessel’s inequality). Let be an orthonormal list in , and let . Then
with equality if and only if
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)
Let
So
Since , the inequality follows.
By (6.3.2), equality holds if and only if , that is (Proposition 6.1.27), if and only if . If , then is a linear combination of . Conversely, if
The space need not be finite-dimensional here. The vector is the orthogonal projection of onto , 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 .
Example 6.3.25 (Bessel in ). Keep and the vectors of Example 6.3.16(c), but drop . Then
and the deficit is the part that would have contributed. So
Aside (Fourier coefficients). Bessel’s inequality matters most in infinite-dimensional spaces, where an orthonormal list can never be a basis. On , take the inner product
The bound does not depend on , so the series converges, and in particular 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
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 , and for (Definition 6.1.8). For example,
Proposition 6.3.27 (Properties of the conjugate transpose). Let , , and .
- (a) and
. - (b).
- (c)If and is invertible, then is invertible and .
- (d)
for all and .
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)
(a) The entry of is
(b) Since conjugation respects sums and products (Notation 6.1.1), the entry of is
(c) By (b),
(d) Identifying matrices with scalars,
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 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 . 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 . Then
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.
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)
By Definition 6.3.26, row of is
which is the entry of the Gram matrix of for the dot product. The columns are orthonormal if and only if for all (Definition 6.3.15), that is, if and only if
For example, the matrix with the columns and of Example 6.3.16(d) satisfies
The condition does not require to be square. The matrix with columns from Example 6.3.16(c) has . But , since has rank at most (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 in , and let
- (a)
; - (b) if and only if
.
Consequently, is invertible if and only if is linearly independent.
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)
Let
(a) By the formula above and Proposition 6.1.4,
(b) If , every entry of is . Conversely, if , then by (a), , so by definiteness.
By (b), consists of the coefficient vectors of linear relations among . So if and only if the list is linearly independent (Theorem 1.5.5). Since is square, if and only if is invertible (Section 3.5). □
Technique 6.3.31 (Gram matrices). To study a list 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.
Used in 15 places and 6 practice exercises
Proposition 6.3.41, Exercise 6.3.54, Exercise 6.3.56, Exercise 6.4.59, Proposition 6.5.23, Exercise 6.5.43, Exercise 6.6.46, Exercise 6.7.11, Problem 6.4, Problem 6.9, Problem 6.12, Theorem 8.3.5, Proposition 8.3.15, Exercise 8.3.32, Exercise 8.3.35; 6 practice exercises.
Example 6.3.32 (A relation read off from a Gram matrix). In , let , , . Their Gram matrix is
and
Unitary and orthogonal matrices
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 has orthogonal columns of length and is not orthogonal; dividing it by makes it orthogonal.
- (i), that is, the columns of are orthonormal;
- (ii) is invertible and ;
- (iii), that is, the rows of , read as vectors of , are orthonormal;
- (iv) is unitary.
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)
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 .
(ii) (iii). .
(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
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 are orthonormal, but its rows , , are not.
(a)For every , the rotation and the reflection
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.
- (b)Every permutation matrix (Definition 5.2.29) is orthogonal, since its columns are the standard basis vectors in some order.
- (c)A diagonal matrix is unitary if and only if for every , since its columns are orthogonal with norms .
(d)The matrices
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.
Proof (by inner products).
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)
Proof (by solving the system).
Uses. Definition 1.6.14 (Coordinates), Definition 2.3.8 (Matrix–vector product), Proposition 6.3.34 (Characterizations of unitary matrices)
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, and , and the general fact that these two change-of-coordinates matrices are inverse to each other becomes .
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)
By Proposition 6.3.27(b) and associativity,
so is unitary. By Proposition 6.3.34, , and is unitary by (iv) of the same proposition.
By Proposition 6.3.27(d) with and the vector in place of ,
Taking gives , and norms are nonnegative, so . (Section 8.4 shows that, conversely, a square matrix with for all is unitary.)
Uses. Definition 6.3.33 (Unitary and orthogonal matrices), Theorem 6.3.29 (Orthonormal columns), Definition 6.1.8 (Dot product)
By Theorem 6.3.29 the matrix is unitary if and only if its columns and are orthonormal. Here . Next,
which vanishes if and only if . Then
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 and let
By de Moivre’s formula (Section B.1),
Lemma 6.3.39 (Sums of roots of unity). For every integer ,
Uses. if and only if , Proposition 1.1.17 (No zero divisors)
If , then , so for every , and the sum is . Suppose , and let , so and . Let . Then
So , and since , Proposition 1.1.17 gives . □
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 . Its columns are , where
For example, , , and since for ,
Since , is symmetric, so its rows are also .
Proposition 6.3.41 (The Fourier basis). The columns of are orthogonal, and for every . Consequently:
- (a), and is unitary;
- (b) is invertible, with
; (c)every satisfies
- (d)every satisfies
.
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)
For , since ,
Since , only when . By Lemma 6.3.39, if and otherwise. So the columns are orthogonal with .
(a) By Theorem 6.3.29,
(b) By Proposition 6.3.34, is invertible with inverse . So is invertible, and . Since is symmetric, .
(c) The vectors are orthogonal nonzero vectors in , hence an orthogonal basis (Corollary 6.3.14). By Corollary 6.3.21,
(d) The vectors form an orthonormal basis of , so by Theorem 6.3.22(b),
using that is real. □
The vector
Example 6.3.42 (A transform with ). Let . With ,
By Proposition 6.3.41(c),
The first term is the constant vector whose entries are the mean of the entries of , and the other three terms add up to the deviations from the mean. Since is real,
The invertibility of can also be proved without orthogonality, and comparing the two proofs shows what orthogonality buys.
Proof (by orthogonality).
Uses. Proposition 6.3.41 (The Fourier basis)
Proof (by the Vandermonde determinant).
Uses. Theorem 5.5.21 (The Vandermonde determinant), Theorem 5.4.7 (Invertibility and the determinant), if and only if
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 , the inversion formula, and Parseval’s identity. It also shows that (Exercise 6.3.60), which the product formula for the Vandermonde determinant hides.
Exercises
Exercise 6.3.44. In with the dot product, let and .
- (a)Show that is an orthonormal basis of .
- (b)Find for , and check your answer with Theorem 6.3.22(b).
- (c)Compute
, with the slots exchanged, and compare it with .
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)
(a) and
So is an orthonormal list of length , hence an orthonormal basis by Corollary 6.3.14.
(b) By Proposition 6.3.18,
So
(c) The exchanged coefficients are the conjugates
which is not . Over the vector belongs in the first slot (Remark 6.3.19).
Uses. Example 6.3.10 (Perps are solution sets), Theorem 6.3.29 (Orthonormal columns), Definition 6.3.33 (Unitary and orthogonal matrices)
By Example 6.3.10, is orthogonal to both vectors if and only if
Adding the equations gives , so , and then the first equation gives , so . Conversely, every satisfies both equations. Since , the unit vectors among these are .
By Theorem 6.3.29 and Definition 6.3.33, a real 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, . So there are exactly two such matrices,
Exercise 6.3.46. Let be an inner product space. Prove or disprove each statement.
- (a)If and , then .
- (b)If are nonzero with and , then is linearly independent.
- (c)If is orthogonal and , then is orthogonal.
- (d)If
and , then . - (e)If spans and for every , then .
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)
(a) False. In , take and . Then and , but .
(b) False. In , take and . The hypotheses hold, but . The hypothesis says nothing about the pair , so the list need not be orthogonal, and Proposition 6.3.13 does not apply. (The space is so that the dependence is not merely forced by the dimension.)
(c) True. For , Proposition 6.1.4 gives
(d) True over and false over . By Proposition 6.1.29,
so each hypothesis says exactly that ; the second adds nothing to the first. Over this means (Theorem 6.3.3(b)). Over , and in satisfy both, since , but (Non-example 6.3.4).
(e) True. Let . By Proposition 6.3.9(c) and (d),
Exercise 6.3.47. On , let
- (a)Find a nonzero with .
- (b)Find three nonzero vectors in that are pairwise orthogonal but linearly dependent. Which step of the first proof of Proposition 6.3.13 fails?
- (c)Let
. Show that . Which part of Proposition 6.3.9 fails?
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)
(a) has in .
(b) Let , , . Then , , and . But
(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 and , that is, and . In these say and , so the set is
Exercise 6.3.48. Give and the Frobenius inner product (Proposition 6.1.16).
- (a)Show that every symmetric is orthogonal to every skew-symmetric , and deduce that
for every . - (b)Prove or disprove: every Hermitian is orthogonal to every with . Does the identity
hold for every ?
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)
(a) Let and . A matrix and its transpose have the same diagonal, so . Hence, using cyclicity (Proposition 2.4.28),
so , and
(b) False. is Hermitian and satisfies , but
The identity still holds. Let and . The diagonal entries of are the conjugates of those of , so . By Proposition 6.3.27(b) and cyclicity,
So is purely imaginary, and so is
Exercise 6.3.49. Give the inner product
- (a)Find the polynomial
that is orthogonal to , , and , and compute . - (b)Show that is an orthogonal basis of .
- (c)Use Corollary 6.3.21 to write in this basis, and check the result.
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)
Throughout,
(a) By linearity in the first slot,
The second equation gives . The first gives , and then the third becomes
(b) By Example 6.3.17, is orthogonal. By (a), is orthogonal to and to , hence to (Proposition 6.3.9(a)), and to . So the four polynomials form an orthogonal list of nonzero vectors in the -dimensional space , hence an orthogonal basis (Corollary 6.3.14).
(c) We compute
Hence
Check: the constant term is , the coefficient of is , and those of and are .
Exercise 6.3.50. The Pauli matrices are
Give the Frobenius inner product .
- (a)Show that is an orthonormal basis of .
- (b)Deduce that every satisfies
. - (c)Write in this form.
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)
(a) Each satisfies (for : moves to position ). So
So
(b) By Proposition 6.3.18,
(c) We have , and
with traces , , . So
Exercise 6.3.51. Let be a vector space over with a basis .
- (a)Show that
is an inner product on for which is orthonormal. - (b)Show that it is the only inner product on for which is orthonormal.
- (c)For and , find the matrix with
.
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 )
(a) Let . By Proposition 1.6.19, is linear, and only for
; ; , with equality only if , that is, .
So is an inner product. Since , we get
(b) Let be an inner product on for which is orthonormal. Then is an orthonormal basis, and by Theorem 6.3.22(a),
(c) Writing
For instance : the standard basis is not orthonormal for this inner product, as anticipated after Theorem 6.3.22.
- (a)In , let
for . Show that for every , although is not orthonormal. - (b)Let be unit vectors in an inner product space such that
for every . Show that is an orthonormal basis of .
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)
(a) For , the cosines are and the sines are . So , , and
The list is not orthonormal: each has norm , and by Corollary 6.3.14 no three nonzero vectors in are orthogonal.
(b) Fix and apply the hypothesis to . Since ,
So the remaining sum of nonnegative terms is , and 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 . 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. Let be an orthonormal list in , and let .
- (a)Show that
. - (b)Show that
, and find when equality holds.
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)
Write and , nonnegative reals.
(a) By Theorem 6.2.1 for the dot product on and then Theorem 6.3.24 twice,
(b) By Proposition 6.2.22 and Theorem 6.3.24,
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
Exercise 6.3.54. The Hilbert matrix has entries .
- (a)Show that is the Gram matrix of in with
. - (b)Deduce that is invertible and that for every nonzero .
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)
(a) The formula is an inner product on (see Example 6.3.17 for definiteness; the interval does not matter). The entry of the Gram matrix of is
(b) The monomials are linearly independent (Example 1.5.7), so is invertible by Proposition 6.3.30. For , the polynomial
Computing directly is laborious already for ; the Gram matrix point of view gives invertibility with no computation.
Exercise 6.3.55. 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 . Hence . A matrix similar to a diagonal matrix is diagonal, so is diagonal, which says that the rows of are orthogonal.
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)
Every step is correct except “a matrix similar to a diagonal matrix is diagonal”. For instance with and is , which is not diagonal. (Matrices similar to diagonal ones are the diagonalizable matrices of Section 7.4.)
The claim is false. For , the columns and are orthogonal and nonzero, and . But the rows and have dot product , and indeed
The argument does prove something when , that is, when the columns are orthonormal: then , and the rows are orthonormal. This is (i) (iii) of Proposition 6.3.34.
Exercise 6.3.56. Let be a list in with Gram matrix , let
- (a)Show that the Gram matrix of is .
- (b)Suppose is an orthonormal basis of . Show that 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.
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)
(a) Expanding both slots (linearity in the first, Proposition 6.1.4 in the second),
using
(b) If is orthonormal, its Gram matrix is , so by (a) the Gram matrix of is . A list is orthonormal exactly when its Gram matrix is the identity, so is orthonormal if and only if , that is, is unitary. An orthonormal list of length 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 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).
- (a)Show that for every . Deduce that for every unitary , and that for every real orthogonal .
- (b)Show by example that a real matrix with determinant need not be orthogonal.
- (c)Show that an upper triangular unitary matrix is diagonal.
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)
(a) By Theorem 5.3.3, is a sum of signed products of entries of , which are the conjugates of the corresponding products for ; since conjugation respects sums and products, . By Theorem 5.4.14,
If is unitary, then by Theorem 5.4.10,
so . If is real orthogonal, is a real number with , so .
(b) has , but its first column has norm , so .
(c) Let be unitary and upper triangular, with columns ; by Theorem 6.3.29 they are orthonormal. We show by induction on that for all . Suppose this holds for the rows . Then the entries of vanish, and so do its entries below the diagonal, so , and . For ,
and , so . This completes the induction (the case needs no hypothesis). So is diagonal, with diagonal entries of modulus .
Exercise 6.3.58. Show that is unitary if and only if
for some with and , and that then .
Uses. Theorem 6.3.29 (Orthonormal columns), Definition 6.1.8 (Dot product), Theorem 5.1.13 (The determinant)
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 , the second has squared norm
So is unitary.
Conversely, let be unitary. Then , and the second column satisfies
Finally, by Theorem 5.1.13,
Exercise 6.3.59. Let , so that .
- (a)Write down and .
- (b)Write as a linear combination of , and check Proposition 6.3.41(d).
Uses. Definition 6.3.40 (Fourier matrix), Proposition 6.3.41 (The Fourier basis)
(a) Since , , and ,
by Proposition 6.3.41(b).
(b) By Proposition 6.3.41(c), with and ,
So
Exercise 6.3.60. Index rows and columns by , as for .
- (a)Show that , where has entries if and otherwise. Show that is a permutation matrix with , and deduce that .
- (b)Show that .
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)
(a) By the entry formula for products and Lemma 6.3.39,
so . For , let if and otherwise. Then is the only with , so row of has its only in column . Also , so is a bijection of (its own inverse), and is the permutation matrix of (Definition 5.2.29). It is symmetric, since is symmetric in and . Finally
which is exactly when . So and
(b) By Theorem 5.4.10 and Proposition 5.3.15,
Exercise 6.3.61. For
- (a)Show that
for . - (b)Deduce that , where is the diagonal matrix with entries
. Conclude that any two circulant matrices commute, and that is invertible if and only if for every . (c)Using (b), decide whether the following matrix is invertible, and find its determinant:
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)
(a) Fix and . As runs over , so does , and is congruent to modulo . Since ,
using
(b) Column of is (Proposition 2.4.8), and column of is . By (a), , and since is invertible, . If is another circulant, with diagonal matrix , then since diagonal matrices commute,
Finally, is invertible if and only if is, and a diagonal matrix is invertible if and only if its diagonal entries are nonzero.
(c) The matrix is the circulant with . With , the entries of are , namely , , and . The last two are , so the matrix is invertible. By Theorem 5.4.10,
Exercise 6.3.62. Let , let be as in Section 6.3.4, and let .
(a)Let
. Show that - (b)Compute
without adding these numbers. - (c)Show that for every ,
.
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
(a) By Definition 1.2.17,
By Lemma 6.3.39 the expression in parentheses is if and otherwise, which gives the claim.
(b) Take , , and
By de Moivre’s formula,
(c) With , the same computation gives
Exercise 6.3.63. A Hadamard matrix of order is a matrix whose entries are all and whose columns are orthogonal; equivalently, .
- (a)Show that if a Hadamard matrix of order exists, then .
- (b)Show that if is a Hadamard matrix of order , then is a Hadamard matrix of order . Deduce that Hadamard matrices of order exist for every .
Uses. Theorem 6.3.29 (Orthonormal columns), Theorem 2.4.34 (Block multiplication)
Techniques. Block decomposition (Technique 2.4.35)
(a) Let be a Hadamard matrix of order , with columns , so
Every other column satisfies
So , and since is an integer, .
(b) Let . Its entries are , and by Theorem 2.4.34,
So is a Hadamard matrix of order (Theorem 6.3.29). Starting from the Hadamard matrix of order and applying this construction times gives one of order . The first step gives . Whether Hadamard matrices exist for every order divisible by is a famous open problem.
Exercise 6.3.64. Let be odd, let be as in Section 6.3.4, and let .
- (a)Show that .
- (b)Compute for and for (with the same definition of ), and explain where the proof of (a) used that is odd.
Uses. Lemma 6.3.39 (Sums of roots of unity)
(a) Since , depends only on modulo ; as
Fix . As runs over , the residue of modulo runs over all residues once, so we may replace by in the inner sum:
Summing over and exchanging the sums,
By Lemma 6.3.39 the inner sum is if and otherwise. Since is odd, implies , which for means . So .
(b) The computation up to the last step did not use that is odd, so in general over the with . For (where ) these are , and ; directly,
More practice
The practice bank has 39 exercises on this section’s topics.