Let $R=\mathbb Z[x]$ be the ring of polynomials over $\mathbb Z$. Prove that the ideal $(x,p)$ generated by $x$ and $p$, where $0<p \in \mathbb Z$, is a maximal ideal of $R$ if and only if $p$ is a prime number. For a prime number $p$, identify the field $R/(x,p)$.
Here is my attempt:
(1) Suppose that $(x,p)$ is maximal.
Assume $p$ is not prime. Then $p = nk$ for some $n, k \in \mathbb Z$.
The elements of $(x,p)$ are of the form $p + p_{1}x + p_{2}x^2 + ...$ where $p_{i}$ are multiples of $p$ for all $i \in \mathbb N$.
$p = kn$ so the elements also have the form $kn + kn_{1}x + kn_{2}x^2 + ...$
But then $(x,p) = (x,kn) \subseteq (x,k)$ and $(x,n)$.
But $(x,p)$ is maximal. Contradiction.
So $p$ is prime.
(2) Now suppose $p$ is prime, and that $(x,p)$ is not maximal.
So there exists a maximal set $M$ such that $(x,p) \subsetneq M \subsetneq R$.
So there exists a polynomial $P \in M$ where $P = n + Q$, $p$ doesn't divide $n$, and $Q$ is some polynomial.
So $(x,p) + P$ is an ideal bigger than $(x,p)$.
But $p$ is prime and doesn't divide $n$, so $gcd(p,n)=1$.
So $1 \in $(x,p) + P$, and is therefore $R$. A contradiction.
So $(X,p)$ must be maximal.
Therefore, $(x,p)$ is a maximal ideal if and only if $p$ is prime.
(3) The field $R/(x,p)$ has elements of the form $(x,p) + P$, where $P \in R, but P \notin (x,p)$. All such $P$ are of the form $n + Q$, $p$ doesn't divide $n$, and $Q$ is some polynomial.
I... think that's it? I'm uncertain about my proofs for (1) and (2), and I'm uncertain what else I need for (3). Any advice would be appreciated!
It is well known that an ideal $I$ in a ring $R$ is maximal iff $R/I$ is a field.
So $(x,p)$ is maximal iff $\mathbb{Z}[x]/(x,p)$ is a field. Also the map $\phi: \mathbb{Z}[x]\rightarrow \mathbb{Z}_p$ defined by $\phi(f(x))=f(0)$ is an epimorphism with the kernal equals to $(x,p)$, so by first isomorphism theorem $\mathbb{Z}[x]/(x,p)\cong \mathbb{Z}_p$. Thus $(x,p)$ is maximal iff $\mathbb{Z}_p$ is a field iff $p$ is a prime.