Given n linearly independent vectors that form the subspace , you can use the Gram-Schmidt Process to find the orthogonal basis for .
Vectors
We take one of the 2 vectors and find its โzโ using the other vector. Now this new vector and โotherโ vector are the new orthogonal basis. As math: Given the linearly independent vectors: the orthogonal basis is \{\vec{v},\vec{u}-\text{Proj}_\vec{v}{\vec{u}}\}.
More formally, given the linearly independent vectors: ,
Then the set is the orthogonal basis.
n-Vectors
Given the linearly independent vectors:
The orthogonal basis will be We will use the Orthogonal Decomposition Theorem that can be found in Formulas