Suppose $V=V_1 \oplus V_2$, and $\varphi$ is a linear transformation on $V$ satisfying $$\varphi(v_1+v_2)=v_1$$ where $v_i\in V_i$ for $i=1,2$. Show that $\varphi=\varphi^{2}$, and find Im $\varphi$ and Ker $\varphi$. If $V_1$ and $V_2$ have basis of $\{e_1, \cdots, e_r\}$ and $\{e_{r+1}, \cdots, e_n\}$, respectively, find the representation matrix of $\varphi$ on $V$.
I have proved the first statement, how do I solve the following subquestions?
Since the sum is direct, the image is $V_1$ and the kernel is $V_2$. The representation matrix is composed of the unit matrix for $V_1$ and the zero matrix for $V_2$. Generally, if you take a basis $\{b_1,\ldots, b_k\}$ of $V$, then the transformation matrix is given by $A=(a_{ij})$ where $\phi(b_j) = \sum_{i} a_{ij}b_i$, i.e., the $j$th column of $A$ is given by $$A = \left(\begin{array}{ccc} \ldots & a_{ij} & \ldots\\ \vdots & \vdots & \vdots \\ \ldots & a_{kj}& \vdots \end{array}\right).$$