Let $f : M \to M$ be an endomorphism of a module $M$ such that $f^2=f$.Then prove that, $M = \text{Im}\ f \oplus \ker f$.
I was thinking that this can probably be proved if I can find an exact sequence and prove that it is also split exact because then it would follow from the definition of split exact sequence that $M = \text{Im}\ f \oplus \ker f$ since $\ker f$ is a submodule of $M$.
How can I find such an exact sequence ?
Well, why not?
The exact sequence
$$0 \to Ker(f) \to M \to Im(f) \to 0$$ is split by the inclusion $Im(f) \hookrightarrow M$, since $Im(f) \hookrightarrow M \to Im(f)$ is the identity.
Just for completion: The other splitting (whose existence is a formal consequence in general, but can be easily given here, too) is the map $\operatorname{id-f}: M \to Ker(f)$. One easily checks, that this map indeed maps into the kernel, and that $Ker(f) \hookrightarrow M \to Ker(f)$ is the identity.