Let $V$ be an inner product space and $W$ be a finite dimensional subspace of $V.$ Define $E:V\to V$ such that $$E(x)=u$$ where $u$ is the unique best approximation of $x$ on $W$ or in other words $$||x-u||\leq ||x-w||\forall w\in W.$$ I want to show that $E$ is linear. Now my stratergy was to first consider $\gamma\in \mathbb{K}$ and let $E(x)=u.$ We want to show that $E(\gamma x)=\gamma u.$ Since $$||x-u||\leq ||x-w||$$ for any $w\in W$ we have that $$|\gamma||x-u||\leq |\gamma| ||x-w||\implies ||\gamma x-\gamma u||\leq ||\gamma x-\gamma w ||=||\gamma x-w'||.$$
Can I conclude from this that $E(\gamma x)=\gamma u?$
Next, I tried showing that $E(x+y)=E(x)+E(y).$ So first let $E(x)=u$ and $E(y)=u'.$ Then we want to show that $E(x+y)=u+u'.$
Consider $$||x+y-(u+u')||\leq ||x-u||+||y-u'||\leq ||x-w||+||y-w||\forall w\in W.$$
How do I proceed?
I don't know how to prove that $E$ is linear along these lines. Here's a way of doing it (if you are not interested in it, I will delete this answer): take an orthonormal basis $\{e_1,e_2,\ldots,e_n\}$ of $W$ and prove that$$(\forall v\in V):E(v)=\sum_{k=1}^n\langle v,e_k\rangle e_k.$$It is clear then that $E$ is linear.