The projection formula is $\operatorname{proj}_u(v)=u\,\langle u,v\rangle/\|u\|^2$ for $u\ne0$. The projection matrix is $uu^*/(u^*u)$. For real $u=(1,1)$ and $v=(2,0)$ it gives $(1,1)$, leaving residual $(1,-1)$ orthogonal to $u$.
Parents
Like how this is organised?
Build your own knowledge tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.

