Prove that for any nonzero vectors $\bf u$ and $\bf a$ in $\Bbb R^n$, the vector $\bf a$ is orthogonal to ${\bf u} - \mathrm{proj}_{\bf a}{\bf u}$.
I'm not sure how to start proving this. I don't think I've seen any proofs involving projections at all, just the theorems describing what they are... I've been studying my projection notes and graph examples non stop trying to visualize a way to prove it...
Let $\langle \cdot , \cdot \rangle$ denote the standard inner product in $\mathbb{R}^n$. Let $a,u$ be nonzero elements of $\mathbb{R}^n$. The projection of $u$ onto $a$ is given by $$\mathrm{proj}_a(u)=\frac{\langle a, u\rangle}{|a|^2}a.$$
By definition, $a$ is orthogonal to $u-\mathrm{proj}_a(u)$ if we have $\langle a,u-\mathrm{proj}_a(u)\rangle=0$. We compute this inner product: \begin{align*} \langle a,u-\mathrm{proj}_a(u)\rangle&=\langle a, u\rangle -\langle a,\mathrm{proj}_a(u)\rangle\\ &=\langle a, u\rangle -\langle a, \frac{\langle a, u\rangle}{|a|^2}a \rangle \\ &=\langle a, u\rangle-\frac{\langle a, u\rangle}{|a|^2}\langle a, a\rangle \\ &=\langle a, u\rangle-\frac{\langle a, u\rangle}{|a|^2}|a|^2\\ &=\langle a, u\rangle-\langle a, u\rangle=0. \end{align*} Thus $a$ is orthogonal to $u-\mathrm{proj}_a(u)$, as desired. Here the only thing I have used is the bilinearity of the dot product and the definition of $|\cdot |$.