Let $V$ be a finite-dimensional inner product space and $W$ be a subspace of $V$. Recall that any $v \in V$ can be written as $x+y$ with $x\in W$ and $y \in W^\perp$; and that the projection $\mathrm{proj}_{W}v$ is equal to $x$ by definition.
Prove that the function $T:V\rightarrow V$ defined by $T(v)=\mathrm{proj}_Wv$ is a linear transformation.
The algebra is supposed to be really easy, but I just can't seem to get it.
I did:
Let $v = v_1 + v_2$ with $v_1 \in W, v_2 \in W^\perp$;
$w = w_1 + w_2$ with $w_1\in W, w_2 \in W^\perp$.
$T(v+w)=T(v_1 + v_2 + w_1 + w_2) = T(\mathrm{proj}_Wv + v_2 + \mathrm{proj}_Ww + w_2) $ and I'm stuck..