§10.1.1 The Gram–Schmidt Process
10.1.1 The Gram–Schmidt Process
The Gram–Schmidt process replaces a finite linearly independent set with an orthonormal set having the same span. This makes it possible to choose coordinates that respect the geometry induced by an inner product.
Definition 10.1.1.1 (Basis and Dimension).
Let be a vector space. A basis of is a linearly independent set that spans . The vector space is finite-dimensional iff it is spanned by a finite set. If a basis of contains vectors, then is said to be -dimensional and we write .We can verify that the dimensionality is unique to a vector space and independent of basis:
Proposition 10.1.1.2.
Every finite-dimensional vector space has a finite basis. Moreover, any two bases of a finite-dimensional vector space contain the same number of vectors, and so is well-defined.Proof.
Let span . If is linearly independent, then it is already a basis. Otherwise, one of its vectors is a linear combination of the others; removing that vector does not change the span. If the remaining set is still linearly dependent, repeat the same step. Since is finite, the process will end with a linearly independent set that still spans , a basis.
Now let and be two bases such that . Let . Then at least one of these terms is nonzero, namely . Moreover, since
we obtain a new basis . It is a basis because any vector in can be written as a linear combination of these vectors by (10.1.1.1); and linear independence is satisfied, because if , then a substitution for forces all coefficients to .
Now inductively assume that for a , the set is a basis for . Let . Then at least one of these terms, excluding all the multiples of , is nonzero, namely (as otherwise, is a linear combination of , contradicting independence of ).
Therefore, replacing with in , giving , is a basis (by the exact same argument as in the base case).
By mathematical induction, we can then transform into a basis of elements, including all elements of . Continue to denote the transformed basis by . Then any nonzero vector in can be written as a linear combination of elements in , which violates the linear independence of vectors in , thus no vector exists in , and . The case follows symmetrically.
Remark.
More generally, every vector space has a basis, including infinite-dimensional vector spaces. The general statement for more general vector spaces is equivalent to the Axiom of Choice and equivalent to Zorn’s lemma. Only the elementary finite-dimensional result above is needed for our purposes here.Definition 10.1.1.3.
Let be an inner product space. A finite set is orthogonal iff
It is orthonormal iff
Equivalently, an orthonormal set is an orthogonal set in which for every .Definition 10.1.1.4 (Orthonormal Basis).
An orthonormal basis of a finite-dimensional inner product space is a basis of that is also an orthonormal set.If is an orthonormal basis of , then every has the coordinate representation
Indeed, writing and taking the inner product with gives
Theorem 10.1.1.5 (Gram–Schmidt Orthonormalization).
Let be a linearly independent set in an inner product space . Define recursively
Then every is nonzero, is orthonormal, and
Proof.
We proceed by induction on . Since , , , and .
Suppose that is orthonormal and that
If , then
contradicting the linear independence of . Hence , so is well-defined and .
For every , orthonormality gives
Therefore is orthogonal to , and the enlarged set is orthonormal. Finally, is obtained from by subtracting an element of , while
Thus adjoining either or to the preceding span gives the same space, and
by induction.
The recursive construction in Theorem 10.1.1.5 is called the Gram–Schmidt process. At each stage, the sum
is the component of in all the previously constructed directions; and subtracting it leaves the nonzero vector orthogonal to all preceding directions.
Corollary 10.1.1.5.1.
Every finite-dimensional inner product space has an orthonormal basis.Proof.
Choose any basis and apply Theorem 10.1.1.5. The resulting orthonormal set has the same span as the original basis. (Note that when we begin considering countably infinite orthonormal systems in the proceeding section, the same process of Gram–Schmidt is still valid, the reader can independently verify this claim.)