Orthogonality means $\langle u,v\rangle=0$. For $u\ne0$, the projection of $v$ onto its line is $u\langle u,v\rangle/\|u\|^2$ under the convention conjugating the first slot. For an orthonormal basis matrix $Q$ of a subspace $W$, $P_Wv=QQ^*v$.
The residual $v-P_Wv$ lies in $W^\perp$, giving the unique closest point in $W$. This leads directly to least squares, Gram–Schmidt, and QR.
Like how this is organised?
Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.

