The following rings are
not integral domains. • The
zero ring (the ring in which 0=1). • The quotient ring \Z/m\Z when
m is a
composite number. To show this, choose a proper factorization m = xy (meaning that x and y are not equal to 1 or m). Then x \not\equiv 0 \bmod{m} and y \not\equiv 0 \bmod{m}, but xy \equiv 0 \bmod{m}. • A
product of two nonzero commutative rings. In such a product R \times S, one has (1,0) \cdot (0,1) = (0,0). • The quotient ring \Z[x]/(x^2 - n^2) for any n \in \mathbb{Z}. The images of x+n and x-n are nonzero, while their product is 0 in this ring. • The
ring of
n ×
n matrices over any
nonzero ring when
n ≥ 2. If M and N are matrices such that the image of N is contained in the kernel of M, then MN = 0. For example, this happens for M = N = (\begin{smallmatrix} 0 & 1 \\ 0 & 0 \end{smallmatrix}). • The quotient ring k[x_1,\ldots,x_n]/(fg) for any field k and any non-constant polynomials f,g \in k[x_1,\ldots,x_n]. The images of and in this quotient ring are nonzero elements whose product is 0. This argument shows, equivalently, that (fg) is not a
prime ideal. The geometric interpretation of this result is that the
zeros of form an
affine algebraic set that is not irreducible (that is, not an
algebraic variety) in general. The only case where this algebraic set may be irreducible is when is a power of an
irreducible polynomial, which defines the same algebraic set. • The ring of
continuous functions on the
unit interval. Consider the functions • : f(x) = \begin{cases} 1-2x & x \in \left [0, \tfrac{1}{2} \right ] \\ 0 & x \in \left [\tfrac{1}{2}, 1 \right ] \end{cases} \qquad g(x) = \begin{cases} 0 & x \in \left [0, \tfrac{1}{2} \right ] \\ 2x-1 & x \in \left [\tfrac{1}{2}, 1 \right ] \end{cases} : Neither f nor g is everywhere zero, but fg is. • The
tensor product \Complex \otimes_{\R} \Complex. This ring has two non-trivial
idempotents, e_1 = \tfrac{1}{2}(1 \otimes 1) - \tfrac{1}{2}(i \otimes i) and e_2 = \tfrac{1}{2}(1 \otimes 1) + \tfrac{1}{2}(i \otimes i). They are orthogonal, meaning that e_1e_2 = 0, and hence \Complex \otimes_{\R} \Complex is not a domain. In fact, there is an isomorphism \Complex \times \Complex \to \Complex \otimes_{\R} \Complex defined by (z, w) \mapsto z \cdot e_1 + w \cdot e_2. Its inverse is defined by z \otimes w \mapsto (zw, z\overline{w}). This example shows that a
fiber product of irreducible affine schemes need not be irreducible. == Divisibility, prime elements, and irreducible elements ==