View Single Post
Dec10-08, 02:50 AM
Sci Advisor
PF Gold
Fredrik's Avatar
P: 9,549
The relevance of Gram-Schmidt here is that it's based on the same trick that the OP needs to use. E.g. when you have found two of the vectors in the orthonormal basis you're constructing, Gram-Schmidt tells you how to take a vector that isn't in the subspace spanned by the first two basis vectors and use the three vectors to construct a third basis vector that's orthogonal to the first two.

If you want to find a vector that's orthogonal to the subspace U of the vector space V, then pick any vector x in V and let y be its projection onto U. x-y is orthogonal to U.