題組內容

3. (15%) Let $P$ be a projection matrix for a k-dimensional subspace $W$ of $\mathbb{R}^n$.

(b) If n = 4, and $W = sp \left( \begin{bmatrix} 1 \\ -1 \\ 1 \\ -1 \end{bmatrix}, \begin{bmatrix} 5 \\ 1 \\ -1 \\ 4 \end{bmatrix} \right)$, find the projection of $\vec{v} = \begin{pmatrix} -2 \\ 1 \\ 7 \\ 4 \end{pmatrix}$ on W.