Find the orthogonal projection of $\mathbf{v}=(1,2,-1,2)^T$ onto the following subspaces:
(a) the span of $\left(\begin{array}{r}1 \\ -1 \\ 2 \\ 1\end{array}\right),\left(\begin{array}{r}2 \\ 1 \\ 0 \\ -1\end{array}\right)$;
(b) the image of the matrix $\left(\begin{array}{rr}1 & 2 \\ -1 & 1 \\ 0 & 3 \\ -1 & 1\end{array}\right)$;
(c) the kernel of the matrix $\left(\begin{array}{rrrr}1 & -1 & 0 & 1 \\ -2 & 1 & 1 & 0\end{array}\right)$;
(d) the subspace orthogonal to $\mathbf{a}=(1,-1,0,1)^T$. Warning. Make sure you have an orthogonal basis before applying formula (4.42)!