If M irreducible R-module, then M is isomorphic to R/I for I a maximal ideal of R. [If M is irreducible there is a natural map $R \rightarrow M$ defined by $r \mapsto rm$, where m is any fixed nonzero element of M.]
I am self-studying Abstract algebra I, and my attempted proof so far is this. However I am not sure if the proof is correct.
Let $I_{k}$ be any maximal ideal of R if any. Define $\varphi_{k}: R \rightarrow M$ where $\varphi_{k}(r) = 0$ if $r \in I_{k}$ else $\varphi_{k}(r) = rm$ where m is any fixed non-zero element of M. Hence $I_{k}$ is the annihilator of M in R. Now $\varphi_{k}$ is an R-module homomorphism since if $r_{1}, r_{2} \in R$
$\varphi_{k}(r_{1}+r_{2}) = (r_{1}+r_{2})m =r_{1}m+r_{2}m = \varphi_{k}(r_{1}) + \varphi_{k}(r_{2})$
$\varphi_{k}(r_{1}r_{2}) = (r_{1}r_{2})m = r_{1}(r_{2}m) = r_{1}\varphi_{k}(r_{2})$
Since R is an R-module itself, by the First isomorphism theorem for modules, kernel of $\varphi_{k} = I_{k}$ is a submodule of R and $R/I_{k} \cong \varphi_{k}(R)$. I am assuming $\varphi_{k}(R) = M$ but how would I show this?