Finding coordinates with respect to a basis which is orthogonal is quite easy; and if it’s orthonormal, than it’s easier still. The following theorem justifies this statement.
Let be an inner product space, basis , and .
If is orthogonal: ,
if is orthonormal: .
In other words, the coordinates of with respect to are .
Since is a basis, we can find scalars such that . Take the inner product of both sides with . If the basis is orthogonal, then for any ; so using bilinearity of the inner product:
Solving for , and the result follows. ∎
[End of Exercise]
If we are given a basis of an inner product space , then we may wish to construct a new orthogonal basis from it. We do this by the Gram-Schmidt process, as follows:
,
Then, inductively define: , for each .
The above formula is commonly called the Gram-Schmidt formula.
For each of the following sequences of vectors , apply the Gram-Schmidt process, and compute . In each case, draw the four resulting vectors on the same axis.
and .
and .
[End of Exercise]
This construction has the following properties:
Let be a basis of an inner product space, and the sequence of vectors obtained by the Gram-Schmidt process (defined above). Then for each the following are true.
,
is an orthogonal sequence of vectors,
.
The proof is by induction on . When , then , and the other statements are obvious. Let , then our inductive assumption is that all three statements are true for values of strictly less than ; i.e. for . With that assumption, we want to prove all three statements for .
If , then , by the Gram-Schmidt formula together with the assumption (iii) for . This contradicts the assumption that is linearly independent. So (i) is true for .
Choose your own basis of which is not orthogonal. Apply the Gram-Schmidt process to it to obtain a new basis . Verify that your new basis is orthogonal. Is it orthonormal?
[End of Exercise]
In the proof of Theorem 3.36, show that .
[End of Exercise]
Let be a subspace. There is an orthonormal basis of . Furthermore, that basis can be extended to an orthonormal basis of .
We omit this proof from the module. Here is a sketch proof: Choose a basis of (by Theorem 2.36), apply the Gram-Schmidt process to obtain an orthogonal basis of , then scale to make it orthonormal.
Next, extend to a basis to (Corollary 2.37), apply the Gram-Schmidt process (the first vectors are unchanged), and scale to get an orthonormal basis of . ∎