I am trying to show the following:
Let $f:M\to N$ and $g:N\to M$ be module homomorphisms such that $g\circ f={\rm Id}_M$. Prove that $N={\rm im}(f)\oplus\ker(g)$.
I know that $M/\ker(f)\cong{\rm im}(f)$, but I'm not sure if this is even helpful. I also think that $g$ must be surjective, so $N/\ker(g)\cong M$, and that is a sum of what I've determined.
Any suggestions would be helpful!
$\def\im{\operatorname{im}}$*Hint*: I don't see why you use quotients. The direct way should work: To show $N = \im f \oplus \ker g$ you have to show two things: