example of Gram-Schmidt orthogonalization
Let us work with the standard inner product on (dot product) so we can get a nice geometrical visualization.
Consider the three vectors
which are linearly independent (the determinant
of the matrix but are not orthogonal
.
We will now apply Gram-Schmidt to get three vectors which span the same subspace (in this case, all ) and orthogonal to each other.
First we take . Now,
that is,
and finally
which gives
and so is an orthogonal set of vectors such that .
If we rather consider then we get an orthonormal set.