Let $R$ be a commutative ring with unit and $M$ a right $R$-module. Consider the assignment $\varphi: \operatorname{Hom}_{R} (R,M) \rightarrow M$, $f \mapsto \varphi(f) = f(1)$. Show that $\varphi$ is an isomorphism.
My approach: We have to prove $\varphi$ is a morphism, then $\varphi$ is a injection, surjection, hence $\varphi$ is an isomorphism.
$\forall f,g \in \operatorname{Hom}_{R} (R,M)$
$\varphi(fg) = (fg)(1) = f(1)g(1) = \varphi(f) \varphi(g)$
$\Rightarrow \varphi$ is a morphism
$\forall f,g \in \operatorname{Hom}_{R} (R,M)$
$\varphi(f) = \varphi(g) \Rightarrow f(1) = g(1) \Rightarrow f = g$
$\Rightarrow \varphi$ is injective $\Rightarrow \varphi$ is a homomorphism
How can I prove $\varphi$ is surjective to conclude $\varphi$ is an isomorphism? Sorry for my poor English.