Question [Hungerford p.180 (III $\S$ 1) #15]: Let $R$ be any ring If $f:A\to B$ and $g:B\to A$ are $R-$module homomorphisms s.t. $gf=1_A$, then $B = \operatorname{im}(f)\bigoplus \ker(g)$.
I am assuming that by $=$ here, Hungerford means isomorphism (I know this is commonplace, but I am just asking, because I don't really know that this iso would be canonical, at least not obviously so).
Attempted Solution:
$0\to \ker(g)\xrightarrow{i}B\xrightarrow{g}\operatorname{im}(g)\to 0$
(where $i$ is inclusion) is a SES in $\mathit{RMod}$ and $\operatorname{im}(g)$ is an $R$-submodule of $A$. let $\widehat{f}:= f\mid_{\operatorname{im}(g)}$. Then $g\widehat{f} = 1_{\operatorname{im}(g)}$. The SES thus splits and we are done.
$\blacksquare$
I am having the "this is too easy/simple so I am missing something" kind of feeling right now, I don't know about exactly what though.
Hint:
To prove equality, check, that for any $b\in B$, we have $b-fg(b)\in\ker g$. This will ensure that $B=\operatorname{Im f}+\ker g$.
Next, verify that $\;\operatorname{Im f}\cap\ker g=\{0\}$.