I am trying to solve this question:
Let $u$ be a unit vector in $R^n$ and let $U$ be the subspace spanned by $u$. Show that the orthogonal projection of a vector $v$ onto $U$ is given by
$\operatorname{proj}_{U}v = (uu^T)v$,
and thus that the matrix of this projection is $uu^T$. What is the rank of $uu^T$?
Where $u^T$ is the transpose of $u$. Any help is appreciate! I have no idea how to begin this other than knowing
$\operatorname{proj}_{U}v = \frac{(v, u)u}{(u, u)}$
Thanks!
The projection formula you have is the solution. $\left(u,u\right)=1$, since $u$ is a unit vector. So \begin{align*} \text{Proj}_{U}v & =\left(v,u\right)u=\left(u^{T}v\right)u=\left(uu^{T}\right)v. \end{align*}