How do you do this vector projection?

For $\textbf{v} = \begin{pmatrix} 2 \\ 3 \\ -1 \end{pmatrix}$ and $\textbf{w} = \begin{pmatrix} 2 \\ -1 \\ 0 \end{pmatrix}$, compute $\text{proj}_{\textbf{w}} \textbf{v}$.

I don't know how to project vectors of this form... I can only do it in 2D. Is there a formula for this?

• You do it the same way. There are just more components to compute. – amd Mar 19 '17 at 1:01