I had difficulties understanding this question. Could you give me some advice how to approach this question? I couldn't create the relationship between the given features.
Let $x =\begin{bmatrix}1&2&0&-2\end{bmatrix}$ and $W=\operatorname{span}\left\{\underbrace{\begin{bmatrix}1\\1\\1\\1\end{bmatrix}}_{v_1},\underbrace{\begin{bmatrix}-1\\-1\\-1\\1\end{bmatrix}}_{v_2}\right\}\leqslant\Bbb R^4$. Find vectors $w_1\in W$ and $w_2\in W^\perp$ with $x = w_1 + w_2.$
What can I use to solve this question? Thank you very much.
You can just write down the following system: $AX=0$ $$A=\begin{bmatrix}1&1&1&1\\-1&-1&-1&1\end{bmatrix}\cdot\begin{bmatrix}x_1\\x_2\\x_3\\x_4\end{bmatrix}=0$$ The solution space to this system is $\Omega\leqslant\Bbb R^4$ and $\Omega=W^\perp$. Solve the system, find a basis and express $x$ in terms of it. Obviously $x_4=0$. $x_1+x_2=-x_3$ $x_1=t, x_2=s$
Your solution is of the following form: $$\begin{bmatrix}x_1\\x_2\\x_3\\x_4\end{bmatrix}=\begin{bmatrix}t\\s\\-t-s\\0\end{bmatrix}=t\cdot\begin{bmatrix}1\\0\\-1\\0\end{bmatrix}+s\cdot\begin{bmatrix}0\\1\\-1\\0\end{bmatrix}$$ $$\implies\Omega=W^\perp=\operatorname{span}\left\{\begin{bmatrix}1\\0\\-1\\0\end{bmatrix},\begin{bmatrix}0\\1\\-1\\0\end{bmatrix}\right\}$$
Now we have: $$W\oplus\Omega=\Bbb R^4\iff\Bbb R^4=\operatorname{span}\left\{\begin{bmatrix}1\\1\\1\\1\end{bmatrix},\begin{bmatrix}-1\\-1\\-1\\1\end{bmatrix},\begin{bmatrix}1\\0\\-1\\0\end{bmatrix},\begin{bmatrix}0\\1\\-1\\0\end{bmatrix}\right\}$$
I hope it is now straight-forward.
This is the most efficient method. Just bear in mind the solution space $\Omega=W^\tau$, where $W$ is the row-space.