Suppose that is a three-dimensional subspace of with basis: We can see that this basis is not orthogonal by noting that . Our goal is to create an orthogonal basis , , and for .
To begin, we declare that , and we call the line defined by .
Find the vector that is the orthogonal projection of onto , the line defined by .
Form the vector and verify that it is orthogonal to .
Explain why by showing that any linear combination of and can be written as a linear combination of and and vice versa.
The vectors and are an orthogonal basis for a two-dimensional subspace of . Find the vector that is the orthogonal projection of onto .
Verify that is orthogonal to both and .
Explain why , , and form an orthogonal basis for .
Now find an orthonormal basis for .
Austin, Understanding Linear Algebra, §6.4 Finding orthogonal bases, Activity 6.4.2