I was asked the following question in my exam :
$R$ is a commutative ring with identity and $M$ is a maximal ideal of $R$. I needed to show that the ideal of $R[x]$ generated by $M$ and $x$, denoted as $(M,x)$ is maximal in $R[x]$.
My attempt : I kept trying to somehow have a homomorphism from $R$ to the quotient ring $R[x]/(M,x)$ whose kernel is $M$. If I would have succeeded, I could apply the 1st Isomorphism theorem which would imply that $R[x]/(M,x)$ is a field which in turn implies that $(M,x)$ is maximal. But, I kept struggling and couldn't come up with something constructive. Any help is appreciated. Thanks for your time.
Consider the homomorphism $$ R[x]\to R/M,\qquad f(x)\mapsto f(0)+M $$ and compute its kernel and image.