The vectors $ \vec{u_1} = \begin{bmatrix} 1 \\ 1 \\ 1\\ 1 \end{bmatrix} $ and $ \vec{u_2} = \begin{bmatrix} 1 \\ -1 \\ 1\\ -1 \end{bmatrix} $ are orthonormal in $ \mathbb{R}^4$.
In this exercise, I was supposed to find the parallel and normal components of the vector $ \vec{w} = \begin{bmatrix} 1 \\ 2 \\ -1\\ 2 \end{bmatrix} $ relative to the their span ($\vec{u_1}, \vec{u_2}$).
I found that the parallel component was (0, 2, 0, 2) and the normal component was (1, 0, -1, 0).
The next part of the exercise asks:
What is the smallest possible value of the norm $||\vec{w}- \vec{v}|| $ if the vector $\vec{v}$ belongs to their span: $ \vec{v} \in span(\vec{u_1}, \vec{u_2}$).
Could someone help me with this part?
Lets try the layman's approach:
$$\vec v=\begin{bmatrix}a+b\\a-b\\a+b\\a-b\end{bmatrix}\ \ (a,b\in \Bbb{R})$$ We need to find $$\min_{a,b}||\vec v-\vec w||$$Check that the values of $a,b$ for which $||\vec v-\vec w||$ will be minimum $=$ values of $a,b$ for which $||\vec v-\vec w||^2$ will be minimum. Now $$\min_{a,b}||\vec v-\vec w||^2\\=\min_{a,b}\{(a+b-1)^2+(a-b-2)^2+(a+b+1)^2+(a-b-2)^2\}\\=\min_{a,b}\{4a^2+4b^2+10-8a+8b\}\\=\min_{a,b}\{(2a-2)^2+(2b+2)^2+2\}=2 \ \ \ \text{for $a=1,b=-1$}\\\therefore\min{||\vec v-\vec w||=\sqrt 2}$$
BINGO!