Let $\mathbb K$ be a field and $E$ be a $\mathbb K-$vector space. Let $p$ and $q$ two linear endomorphisms such that $p^2=p$ and $q^2=q$ and $p\circ q=0$ and let $r=p+q-q\circ p$.
I want to show that $\operatorname{Im} r= \operatorname{Im} p\oplus \operatorname{Im} q$.
It is clear that $\operatorname{Im}p\cap \operatorname{Im} q =\{0\}$ hence it suffices to show that $ \operatorname{Im}r= \operatorname{Im} p + \operatorname{Im} q$. The inclusion $\operatorname{Im} r \subset \operatorname{Im} p + \operatorname{Im} q$ is clear since $\forall x\in E$ we have that $r(x)=p(x)+q[x-p(x)]$ but the other inclusion is not clear to me. Thank you for your help!