The geometric structure of an affine variety is linked in a deep way to the algebraic structure of its coordinate ring. Let
I and
J be ideals of
k[
V], the coordinate ring of an affine variety
V. Let I(
V) be the set of all polynomials in k[x_1, \ldots, x_n], that vanish on
V, and let \sqrt{I} denote the
radical of the ideal
I, the set of polynomials
f for which some power of
f is in
I. The reason that the base field is required to be algebraically closed is that affine varieties automatically satisfy
Hilbert's Nullstellensatz: for an ideal
J in k[x_1, \ldots, x_n], where
k is an algebraically closed field, \mathrm{I}(\mathrm{V}(J))=\sqrt{J}. Radical ideals (ideals that are their own radical) of
k[
V] correspond to algebraic subsets of
V. Indeed, for radical ideals
I and
J, I\subseteq J if and only if \mathrm{V}(J)\subseteq \mathrm{V}(I). Hence V(
I)
= V(
J) if and only if
I = J. Furthermore, the function taking an affine algebraic set
W and returning I(
W), the set of all functions that also vanish on all points of
W, is the inverse of the function assigning an algebraic set to a radical ideal, by the Nullstellensatz. Hence the correspondence between affine algebraic sets and radical ideals is a bijection. The coordinate ring of an affine algebraic set is
reduced (nilpotent-free), as an ideal
I in a ring
R is radical if and only if the quotient ring
R/I is reduced. Prime ideals of the coordinate ring correspond to affine subvarieties. An affine algebraic set V(
I) can be written as the union of two other algebraic sets if and only if
I = JK for proper ideals
J and
K not equal to
I (in which case \mathrm{V}(I)=\mathrm{V}(J)\cup \mathrm{V}(K)). This is the case if and only if
I is not prime. Affine subvarieties are precisely those whose coordinate ring is an integral domain. This is because an ideal is prime if and only if the quotient of the ring by the ideal is an integral domain.
Maximal ideals of
k[
V] correspond to points of
V. If
I and
J are radical ideals, then \mathrm{V}(J)\subseteq \mathrm{V}(I) if and only if I\subseteq J. As maximal ideals are radical, maximal ideals correspond to minimal algebraic sets (those that contain no proper algebraic subsets), which are points in
V. If
V is an affine variety with coordinate ring R=k[x_1, \ldots, x_n]/\langle f_1, \ldots, f_m\rangle, this correspondence becomes explicit through the map (a_1,\ldots, a_n) \mapsto \langle \overline{x_1-a_1}, \ldots, \overline{x_n-a_n}\rangle, where \overline{x_i-a_i} denotes the image in the quotient algebra
R of the polynomial x_i-a_i. An algebraic subset is a point if and only if the coordinate ring of the subset is a field, as the quotient of a ring by a maximal ideal is a field. The following table summarizes this correspondence, for algebraic subsets of an affine variety and ideals of the corresponding coordinate ring: ==Products of affine varieties==