When the polynomial ring $\mathbb{Z}[x]$ is quotiented by the ideal $(2,x)$ we get a field as $\mathbb{Z}[x]/(x,2)\cong\mathbb{Z}/(2)\cong\mathbb{Z}_{2}$ which is a field.
But I want to prove it with the definition of maximal ideal. So let $I$=$(2,x)$ be not maximal. If possible, there is ideal $J$ such that $I\subsetneq J\subsetneq \mathbb{Z}[x]$ . If only $\mathbb{Z}[x]$ were a PID, I could say $J$ should have one element dividing both $2$ and $x$ but their gcd being $1$ , $1\in J$ i.e. $J$=$\mathbb{Z}[x]$. But since $\mathbb{Z}[x]$ is not a PID this argument won't work , $J$ can be generated by two different elements . So how do I contradict the existence of $J$ here?
Thanks for any help.
We prove that if $I\subsetneq J$ is an ideal, then $J= \mathbb Z[X]$.
Let $P(x) \in J \backslash I$ be any polynomial. Then you can do long division by $X$ and get $$P(x)=XQ(X)+m$$
Now, $XQ(X) \in I \subset J$ which implies that $m \in J$.
If $m$ is even, then $XQ(X) \in I, m \in I$ would imply that $P(X) \in I$.
Therefore $m=2k+1$ for some $k$. This shows that $$1=m-2 k \in J-J \subset J$$
As $1 \in J$ we get $J=\mathbb Z[X]$.