The given basis of the vector space $V$ is $B=\{(1,1,1,1)^T,(1,0,1,0)^T,(2,1,1,2)^T\}$. Find the orthnormal basis $W=\{w_1,w_2,w_3\}$. I apply Gramm-Schmidt as follows:
Let $w_1=v_1$. Then $w_2=(1,0,1,0)^T - \frac{(1,0,1,0)^T\cdot (1,1,1,1)^T}{(1,1,1,1)^T\cdot (1,1,1,1)^T}\cdot (1,1,1,1)^T=(1,0,1,0)^T-\frac{1}{2}\cdot (1,1,1,1)^T=(1,0,1,0)^T-(1/2,1/2,1/2,1/2)^T=(1/2,-1/2,1/2,-1/2)^T.$
$w_3= (2,1,1,2)^T-\frac{(2,1,1,2)^T\cdot (1,1,1,1)^T}{(1,1,1,1)^T\cdot (1,1,1,1)^T}\cdot(1,1,1,1)^T-\frac{(2,1,1,2)^T\cdot (1/2,-1/2,1/2,-1/2)^T}{(1/2,-1/2,1/2,-1/2)^T\cdot (1/2,-1/2,1/2,-1/2)^T}\cdot (1/2,-1/2,1/2,-1/2)^T=(2,1,1,2)^T-(3/2,3/2,3/2,3/2)^T-0=(1/2,-1/2,-1/2,1/2)^T.$
Therefore the orthonormal basis is given by $W=\{(1,1,1,1)^T,(1/2,-1/2,1/2,-1/2)^T,(1/2,-1/2,-1/2,1/2)^T\}$.
Did I do this correctly? I hope so. I also have 2 further questions:
- How would I find the orthogonal projection of a vector $a=(1,2,3,4)^T$ for this?
- Given some $\text{span}\{v_1,v_2,v_3,v_4\}$, how would I find the orthonormal basis then? Does the process differ from that of a given basis?
Note that the basis you have found is orthogonal and you need to normalize each vector by $\hat v=\frac{\vec v}{|\vec v|}$ to obtain an orthonormal basis.
The orthogonal projection for $\vec a$ is given by
$$\vec a_{\perp}=\sum_i (\vec a\cdot \hat v_i)\hat v_i$$
For a given set $\text{span}\{v_1,v_2,v_3,v_4\}$ you can follow the same procedure.