First assume that
\(I\) is a maximal ideal. Let
\(\pi \colon R \to R/I\) be the canonical projection. Since
\(I\) is proper, we observe that
\(R/I\) is not the zero ring and thus
\(0 + I \neq 1 + I\text{.}\) Let
\(a + I \in R/I\) be any non-zero element and note this implies
\(a \not \in I\text{.}\) Suppose to the contrary that
\(a + I\) is not a unit. Consider the principal ideal
\(J = (R/I)(a + I)\text{.}\)
First we prove that \(1 + I \not\in J\text{.}\) Suppose to the contrary that \(1 + I \in J\text{.}\) Then there exists \(b + I \in R/I\) such that
\begin{equation*}
(b + I)(a + I) = 1 + I\text{,}
\end{equation*}
but this contradicts the assumption that \(a + I\) is not a unit. Hence \(1 + I \not \in J\text{.}\)
Now we prove that \(\pi^{-1}(J)\) is a proper ideal that properly contains \(I\text{.}\) To see that \(\pi^{-1}(J)\) is proper, observe that \(\pi(1) = 1 + I \not \in J\) implies \(1 \not \in \pi^{-1}(J)\text{.}\) Next we observe \(I \subseteq \pi^{-1}(J)\) because for every \(x \in I\text{,}\)
\begin{equation*}
\pi(x) = x + I = 0 + I \in J\text{.}
\end{equation*}
Since \(\pi(a) = a + I \in J\) and \(a \not \in I\text{,}\) this containment is strict, contradicting the assumption that \(I\) is maximal. Hence every non-zero element of \(R/I\) is a unit. Therefore if \(I\) is maximal, then \(R/I\) is a field.
Conversely, assume that
\(R/I\) is a field. Note that by
DefinitionΒ 13.27,
\(0 + I \neq 1 + I\) implies
\(I\) is a proper ideal of
\(R\) because
\(1 \not \in I\text{.}\) Suppose that
\(J\) is an ideal of
\(R\) that contains
\(I\text{.}\) Since
\(R/I\) is a field, the ideal
\(\pi(J)\) in the field
\(\pi(R) = R/I\) is either the trivial or the improper ideal. In the first case,
\(J \subseteq \ker{\pi} = I\) implies
\(I = J\text{.}\) In the second case, there exists
\(a \in J\) such that
\(1 + I = a + I \iff 1 - a \in I \subseteq J\text{.}\) Hence
\(1 = a + (1 - a) \in J\) implies
\(J = R\text{.}\) Therefore if
\(R/I\) is a field, then
\(I\) is maximal.