I'm have problems trying to show this, any help would be appreciated.
Show $i: N \subset M$ is a direct summand iff $\exists$ a module map $r: M \to N$ s.t $ri = 1_{N}$, and that any complement of $N$ is isomorphic to $M/N$
I'm using it as a build up to prove Maschke's Theorem.
Thanks
One direction is trivial: if $M=N\oplus N'$, then by definition any element $m\in M$ can be written in one and only one way as $m=x+y$, with $x\in N$ and $y\in N'$; verifying that $r\colon m\mapsto x$ is the homomorphism you need is very easy.
Conversely, let $N'=\ker r$. Try to prove that
$M=N+N'$; hint: write $m=r(m)+(m-r(m))$.
$N\cap N'=\{0\}$.
If $M=N\oplus N'$, then the homomorphism theorem says $$ M/N=(N+N')/N\cong N/(N\cap N') $$ and…