Let $K$ be an ideal of the direct product $R\times S$.
Define
\[I=\{a\in R \mid (a,b)\in K \text{ for some } b\in S\}\]
and
\[J=\{b\in S \mid (a, b)\in K \text{ for some } a\in R\}.\]

We claim that $I$ and $J$ are ideals of $R$ and $S$, respectively.

Let $a, a’\in I$. Then there exist $b, b’\in S$ such that $(a, b), (a’, b’)\in K$.
Since $K$ is an ideal we have
\[(a,b)+(a’,b’)=(a+a’, b+b)\in k.\]

It follows that $a+a’\in I$.
Also, for any $r\in R$ we have
\[(r,0)(a,b)=(ra,0)\in K\]
because $K$ is an ideal.

Thus, $ra\in I$, and hence $I$ is an ideal of $R$.
Similarly, $J$ is an ideal of $S$.

Next, we prove that $K=I \times J$.
Let $(a,b)\in K$. Then by definitions of $I$ and $J$ we have $a\in I$ and $b\in J$.
Thus $(a,b)\in I\times J$. So we have $K\subset I\times J$.

On the other hand, consider $(a,b)\in I \times J$.
Since $a\in I$, there exists $b’\in S$ such that $(a, b’)\in K$.
Also since $b\in J$, there exists $a’\in R$ such that $(a’, b)\in K$.

As $K$ is an ideal of $R\times S$, we have
\[(1,0)(a,b’)=(a,0)\in K \text{ and } (0, 1)(a’,b)=(0, b)\in K.\]
It yields that
\[(a,b)=(a,0)+(0,b)\in K.\]
Hence $I\times J \subset K$.

Putting these inclusions together gives $k=I\times J$ as required.

Remark.

The ideals $I$ and $J$ defined in the proof can be alternatively defined as follows.
Consider the natural projections
\[\pi_1: R\times S \to R \text{ and } \pi_2:R\times S \to S.\]
Define
\[I=\pi_1(K) \text{ and } J=\pi_2(K).\]

No Nonzero Zero Divisor in a Field / Direct Product of Rings is Not a Field
(a) Let $F$ be a field. Show that $F$ does not have a nonzero zero divisor.
(b) Let $R$ and $S$ be nonzero rings with identities.
Prove that the direct product $R\times S$ cannot be a field.
Proof.
(a) Show that $F$ does not have a nonzero zero divisor.
[…]

The Inverse Image of an Ideal by a Ring Homomorphism is an Ideal
Let $f:R\to R'$ be a ring homomorphism. Let $I'$ be an ideal of $R'$ and let $I=f^{-1}(I)$ be the preimage of $I$ by $f$. Prove that $I$ is an ideal of the ring $R$.
Proof.
To prove $I=f^{-1}(I')$ is an ideal of $R$, we need to check the following two […]

Ideal Quotient (Colon Ideal) is an Ideal
Let $R$ be a commutative ring. Let $S$ be a subset of $R$ and let $I$ be an ideal of $I$.
We define the subset
\[(I:S):=\{ a \in R \mid aS\subset I\}.\]
Prove that $(I:S)$ is an ideal of $R$. This ideal is called the ideal quotient, or colon ideal.
Proof.
Let $a, […]

Non-Prime Ideal of Continuous Functions
Let $R$ be the ring of all continuous functions on the interval $[0,1]$.
Let $I$ be the set of functions $f(x)$ in $R$ such that $f(1/2)=f(1/3)=0$.
Show that the set $I$ is an ideal of $R$ but is not a prime ideal.
Proof.
We first show that $I$ is an ideal of […]

Prime Ideal is Irreducible in a Commutative Ring
Let $R$ be a commutative ring. An ideal $I$ of $R$ is said to be irreducible if it cannot be written as an intersection of two ideals of $R$ which are strictly larger than $I$.
Prove that if $\frakp$ is a prime ideal of the commutative ring $R$, then $\frakp$ is […]

A Prime Ideal in the Ring $\Z[\sqrt{10}]$
Consider the ring
\[\Z[\sqrt{10}]=\{a+b\sqrt{10} \mid a, b \in \Z\}\]
and its ideal
\[P=(2, \sqrt{10})=\{a+b\sqrt{10} \mid a, b \in \Z, 2|a\}.\]
Show that $p$ is a prime ideal of the ring $\Z[\sqrt{10}]$.
Definition of a prime ideal.
An ideal $P$ of a ring $R$ is […]

A Maximal Ideal in the Ring of Continuous Functions and a Quotient Ring
Let $R$ be the ring of all continuous functions on the interval $[0, 2]$.
Let $I$ be the subset of $R$ defined by
\[I:=\{ f(x) \in R \mid f(1)=0\}.\]
Then prove that $I$ is an ideal of the ring $R$.
Moreover, show that $I$ is maximal and determine […]

Equivalent Conditions For a Prime Ideal in a Commutative Ring
Let $R$ be a commutative ring and let $P$ be an ideal of $R$. Prove that the following statements are equivalent:
(a) The ideal $P$ is a prime ideal.
(b) For any two ideals $I$ and $J$, if $IJ \subset P$ then we have either $I \subset P$ or $J \subset P$.
Proof. […]