Ideal (ring theory)

In mathematics, and more specifically in ring theory, an ideal of a ring is a special subset of its elements. Ideals generalize certain subsets of the integers, such as the even numbers or the multiples of 3. Addition and subtraction of even numbers preserves evenness, and multiplying an even number by any integer (even or odd) results in an even number; these closure and absorption properties are the defining properties of an ideal. An ideal can be used to construct a quotient ring in a way similar to how, in group theory, a normal subgroup can be used to construct a quotient group.

Among the integers, the ideals correspond one-for-one with the non-negative integers: in this ring, every ideal is a principal ideal consisting of the multiples of a single non-negative number. However, in other rings, the ideals may not correspond directly to the ring elements, and certain properties of integers, when generalized to rings, attach more naturally to the ideals than to the elements of the ring. For instance, the prime ideals of a ring are analogous to prime numbers, and the Chinese remainder theorem can be generalized to ideals. There is a version of unique prime factorization for the ideals of a Dedekind domain (a type of ring important in number theory).

The related, but distinct, concept of an ideal in order theory is derived from the notion of ideal in ring theory. A fractional ideal is a generalization of an ideal, and the usual ideals are sometimes called integral ideals for clarity.

History
Ernst Kummer invented the concept of ideal numbers to serve as the "missing" factors in number rings in which unique factorization fails; here the word "ideal" is in the sense of existing in imagination only, in analogy with "ideal" objects in geometry such as points at infinity. In 1876, Richard Dedekind replaced Kummer's undefined concept by concrete sets of numbers, sets that he called ideals, in the third edition of Dirichlet's book Vorlesungen über Zahlentheorie, to which Dedekind had added many supplements. Later the notion was extended beyond number rings to the setting of polynomial rings and other commutative rings by David Hilbert and especially Emmy Noether.

Definitions and motivation
For an arbitrary ring $$(R,+,\cdot)$$, let $$(R,+)$$ be its additive group. A subset $I$ is called a left ideal of $$R$$ if it is an additive subgroup of $$R$$ that "absorbs multiplication from the left by elements of $$R$$"; that is, $$I$$ is a left ideal if it satisfies the following two conditions:
 * 1) $$(I,+)$$ is a subgroup of $$(R,+),$$
 * 2) For every $$r \in R$$ and every $$x \in I$$, the product $$r x$$ is in $$I$$.

A right ideal is defined with the condition $$rx\in I$$ replaced by $$xr\in I$$. A two-sided ideal is a left ideal that is also a right ideal, and is sometimes simply called an ideal. In the language of modules, the definitions mean that a left (resp. right, two-sided) ideal of $$R$$ is an $$R$$-submodule of $$R$$ when $$R$$ is viewed as a left (resp. right, bi-) $$R$$-module. When $$R$$ is a commutative ring, the definitions of left, right, and two-sided ideal coincide, and the term ideal is used alone.

To understand the concept of an ideal, consider how ideals arise in the construction of rings of "elements modulo". For concreteness, let us look at the ring $$\Z/n\Z$$ of integers modulo $$n$$ given an integer $$n\in\Z$$ ($$\Z$$ is a commutative ring). The key observation here is that we obtain $$\Z/n\Z$$ by taking the integer line $$\Z$$ and wrapping it around itself so that various integers get identified. In doing so, we must satisfy 2 requirements:

1) $$n$$ must be identified with 0 since $$n$$ is congruent to 0 modulo $$n$$.

2) the resulting structure must again be a ring.

The second requirement forces us to make additional identifications (i.e., it determines the precise way in which we must wrap $$\Z$$ around itself). The notion of an ideal arises when we ask the question: "What is the exact set of integers that we are forced to identify with 0?" The answer is, unsurprisingly, the set $$n\Z=\{nm\mid m\in\Z\}$$ of all integers congruent to 0 modulo $$n$$. That is, we must wrap $$\Z$$ around itself infinitely many times so that the integers $$\ldots,-2n,-n,n,2n,3n,\ldots$$ will all align with 0. If we look at what properties this set must satisfy in order to ensure that $$\Z/n\Z$$ is a ring, then we arrive at the definition of an ideal. Indeed, one can directly verify that $$n\Z$$ is an ideal of $$\Z$$.

Remark. Identifications with elements other than 0 also need to be made. For example, the elements in $$1+n\Z$$ must be identified with 1, the elements in $$2+n\Z$$ must be identified with 2, and so on. Those, however, are uniquely determined by $$n\Z$$ since $$\Z$$ is an additive group.

We can make a similar construction in any commutative ring $$R$$: start with an arbitrary $$x\in R$$, and then identify with 0 all elements of the ideal $$xR=\{xr\mid r\in R\}$$. It turns out that the ideal $$xR$$ is the smallest ideal that contains $$x$$, called the ideal generated by $$x$$. More generally, we can start with an arbitrary subset $$S\subseteq R$$, and then identify with 0 all the elements in the ideal generated by $$S$$: the smallest ideal $$(S)$$ such that $$S\subseteq(S)$$. The ring that we obtain after the identification depends only on the ideal $$(S)$$ and not on the set $$S$$ that we started with. That is, if $$(S)=(T)$$, then the resulting rings will be the same.

Therefore, an ideal $$I$$ of a commutative ring $$R$$ captures canonically the information needed to obtain the ring of elements of $$R$$ modulo a given subset $$S\subseteq R$$. The elements of $$I$$, by definition, are those that are congruent to zero, that is, identified with zero in the resulting ring. The resulting ring is called the quotient of $$R$$ by $$I$$ and is denoted $$R/I$$. Intuitively, the definition of an ideal postulates two natural conditions necessary for $$I$$ to contain all elements designated as "zeros" by $$R/I$$: It turns out that the above conditions are also sufficient for $$I$$ to contain all the necessary "zeros": no other elements have to be designated as "zero" in order to form $$R/I$$. (In fact, no other elements should be designated as "zero" if we want to make the fewest identifications.)
 * 1) $$I$$ is an additive subgroup of $$R$$: the zero 0 of $$R$$ is a "zero" $$0\in I$$, and if $$x_1\in I$$ and $$x_2\in I$$ are "zeros", then $$x_1-x_2\in I$$ is a "zero" too.
 * 2) Any $$r\in R$$ multiplied by a "zero" $$x\in I$$ is a "zero" $$rx\in I$$.

Remark. The above construction still works using two-sided ideals even if $$R$$ is not necessarily commutative.

Examples and properties
(For the sake of brevity, some results are stated only for left ideals but are usually also true for right ideals with appropriate notation changes.)
 * In a ring R, the set R itself forms a two-sided ideal of R called the unit ideal. It is often also denoted by $$(1)$$ since it is precisely the two-sided ideal generated (see below) by the unity $$1_R$$. Also, the set $$\{ 0_R \}$$ consisting of only the additive identity 0R forms a two-sided ideal called the zero ideal and is denoted by $$(0)$$. Every (left, right or two-sided) ideal contains the zero ideal and is contained in the unit ideal.
 * An (left, right or two-sided) ideal that is not the unit ideal is called a proper ideal (as it is a proper subset). Note: a left ideal $$\mathfrak{a}$$ is proper if and only if it does not contain a unit element, since if $$u \in \mathfrak{a}$$ is a unit element, then $$r = (r u^{-1}) u \in \mathfrak{a}$$ for every $$r \in R$$. Typically there are plenty of proper ideals. In fact, if R is a skew-field, then $$(0), (1)$$ are its only ideals and conversely: that is, a nonzero ring R is a skew-field if $$(0), (1)$$ are the only left (or right) ideals. (Proof: if $$x$$ is a nonzero element, then the principal left ideal $$Rx$$ (see below) is nonzero and thus $$Rx = (1)$$; i.e., $$yx = 1$$ for some nonzero $$y$$. Likewise, $$zy = 1$$ for some nonzero $$z$$. Then $$z = z(yx) = (zy)x = x$$.)
 * The even integers form an ideal in the ring $$\mathbb{Z}$$ of all integers, since the sum of any two even integers is even, and the product of any integer with an even integer is also even; this ideal is usually denoted by $$2\mathbb{Z}$$. More generally, the set of all integers divisible by a fixed integer $$n$$ is an ideal denoted $$n\mathbb{Z}$$. In fact, every non-zero ideal of the ring $$\mathbb{Z}$$ is generated by its smallest positive element, as a consequence of Euclidean division, so $$\mathbb{Z}$$ is a principal ideal domain.
 * The set of all polynomials with real coefficients which are divisible by the polynomial $$x^2+1$$ is an ideal in the ring of all real-coefficient polynomials $$\mathbb{R}[x]$$.
 * Take a ring $$R$$ and positive integer $$n$$. For each $$1\leq i\leq n$$, the set of all $$n\times n$$ matrices with entries in $$R$$ whose $$i$$-th row is zero is a right ideal in the ring $$M_n(R)$$ of all $$n\times n$$ matrices with entries in $$R$$. It is not a left ideal. Similarly, for each $$1\leq j\leq n$$, the set of all $$n\times n$$ matrices whose $$j$$-th column is zero is a left ideal but not a right ideal.
 * The ring $$C(\mathbb{R})$$ of all continuous functions $$f$$ from $$\mathbb{R}$$ to $$\mathbb{R}$$ under pointwise multiplication contains the ideal of all continuous functions $$f$$ such that $$f(1)=0$$. Another ideal in $$C(\mathbb{R})$$ is given by those functions which vanish for large enough arguments, i.e. those continuous functions $$f$$ for which there exists a number $$L>0$$ such that $$f(x)=0$$ whenever $$|x|>L$$.
 * A ring is called a simple ring if it is nonzero and has no two-sided ideals other than $$(0), (1)$$. Thus, a skew-field is simple and a simple commutative ring is a field. The matrix ring over a skew-field is a simple ring.
 * If $$f: R \to S$$ is a ring homomorphism, then the kernel $$\ker(f) = f^{-1}(0_S)$$ is a two-sided ideal of $$R$$. By definition, $$f(1_R) = 1_S$$, and thus if $$S$$ is not the zero ring (so $$1_S\ne0_S$$), then $$\ker(f)$$ is a proper ideal. More generally, for each left ideal I of S, the pre-image $$f^{-1}(I)$$ is a left ideal. If I is a left ideal of R, then $$f(I)$$ is a left ideal of the subring $$f(R)$$ of S: unless f is surjective, $$f(I)$$ need not be an ideal of S; see also below.
 * Ideal correspondence: Given a surjective ring homomorphism $$f: R \to S$$, there is a bijective order-preserving correspondence between the left (resp. right, two-sided) ideals of $$R$$ containing the kernel of $$f$$ and the left (resp. right, two-sided) ideals of $$S$$: the correspondence is given by $$I \mapsto f(I)$$ and the pre-image $$J \mapsto f^{-1}(J)$$. Moreover, for commutative rings, this bijective correspondence restricts to prime ideals, maximal ideals, and radical ideals (see the Types of ideals section for the definitions of these ideals).
 * (For those who know modules) If M is a left R-module and $$S \subset M$$ a subset, then the annihilator $$\operatorname{Ann}_R(S) = \{ r \in R \mid rs = 0, s \in S \}$$ of S is a left ideal. Given ideals $$\mathfrak{a}, \mathfrak{b}$$ of a commutative ring R, the R-annihilator of $$(\mathfrak{b} + \mathfrak{a})/\mathfrak{a}$$ is an ideal of R called the ideal quotient of $$\mathfrak{a}$$ by $$\mathfrak{b}$$ and is denoted by $$(\mathfrak{a} : \mathfrak{b})$$; it is an instance of idealizer in commutative algebra.
 * Let $$\mathfrak{a}_i, i \in S$$ be an ascending chain of left ideals in a ring R; i.e., $$S$$ is a totally ordered set and $$\mathfrak{a}_i \subset \mathfrak{a}_j$$ for each $$i < j$$. Then the union $$\textstyle \bigcup_{i \in S} \mathfrak{a}_i$$ is a left ideal of R. (Note: this fact remains true even if R is without the unity 1.)
 * The above fact together with Zorn's lemma proves the following: if $$E \subset R$$ is a possibly empty subset and $$\mathfrak{a}_0 \subset R$$ is a left ideal that is disjoint from E, then there is an ideal that is maximal among the ideals containing $$\mathfrak{a}_0$$ and disjoint from E. (Again this is still valid if the ring R lacks the unity 1.) When $$R \ne 0$$, taking $$\mathfrak{a}_0 = (0)$$ and $$E = \{ 1 \}$$, in particular, there exists a left ideal that is maximal among proper left ideals (often simply called a maximal left ideal); see Krull's theorem for more.
 * An arbitrary union of ideals need not be an ideal, but the following is still true: given a possibly empty subset X of R, there is the smallest left ideal containing X, called the left ideal generated by X and is denoted by $$RX$$. Such an ideal exists since it is the intersection of all left ideals containing X. Equivalently, $$RX$$ is the set of all the (finite) left R-linear combinations of elements of X over R:
 * $$RX = \{r_1x_1+\dots+r_nx_n \mid n\in\mathbb{N}, r_i\in R, x_i\in X\}.$$
 * (since such a span is the smallest left ideal containing X.) A right (resp. two-sided) ideal generated by X is defined in the similar way. For "two-sided", one has to use linear combinations from both sides; i.e.,
 * $$RXR = \{r_1x_1s_1+\dots+r_nx_ns_n \mid n\in\mathbb{N}, r_i\in R,s_i\in R, x_i\in X\}.\,$$


 * A left (resp. right, two-sided) ideal generated by a single element x is called the principal left (resp. right, two-sided) ideal generated by x and is denoted by $$Rx$$ (resp. $$xR, RxR$$). The principal two-sided ideal $$RxR$$ is often also denoted by $$(x)$$. If $$X = \{ x_1, \dots, x_n \}$$ is a finite set, then $$RXR$$ is also written as $$(x_1, \dots, x_n)$$.
 * There is a bijective correspondence between ideals and congruence relations (equivalence relations that respect the ring structure) on the ring: Given an ideal $$I$$ of a ring $$R$$, let $$x\sim y$$ if $$x-y\in I$$. Then $$\sim$$ is a congruence relation on $$R$$. Conversely, given a congruence relation $$\sim$$ on $$R$$, let $$I=\{x\in R:x\sim 0\}$$.  Then $$I$$ is an ideal of $$R$$.

Types of ideals
''To simplify the description all rings are assumed to be commutative. The non-commutative case is discussed in detail in the respective articles.''

Ideals are important because they appear as kernels of ring homomorphisms and allow one to define factor rings. Different types of ideals are studied because they can be used to construct different types of factor rings.


 * Maximal ideal: A proper ideal $I$ is called a maximal ideal if there exists no other proper ideal J with $I$ a proper subset of J. The factor ring of a maximal ideal is a simple ring in general and is a field for commutative rings.
 * Minimal ideal: A nonzero ideal is called minimal if it contains no other nonzero ideal.
 * Prime ideal: A proper ideal $$I$$ is called a prime ideal if for any $$a$$ and $$b$$ in $$R$$, if $$ab$$ is in $$I$$, then at least one of $$a$$ and $$b$$ is in $$I$$. The factor ring of a prime ideal is a prime ring in general and is an integral domain for commutative rings.
 * Radical ideal or semiprime ideal: A proper ideal $I$ is called radical or semiprime if for any a in R, if an is in $I$ for some n, then a is in $I$. The factor ring of a radical ideal is a semiprime ring for general rings, and is a reduced ring for commutative rings.
 * Primary ideal: An ideal $I$ is called a primary ideal if for all a and b in R, if ab is in $I$, then at least one of a and bn is in $I$ for some natural number n. Every prime ideal is primary, but not conversely. A semiprime primary ideal is prime.
 * Principal ideal: An ideal generated by one element.
 * Finitely generated ideal: This type of ideal is finitely generated as a module.
 * Primitive ideal: A left primitive ideal is the annihilator of a simple left module.
 * Irreducible ideal: An ideal is said to be irreducible if it cannot be written as an intersection of ideals which properly contain it.
 * Comaximal ideals: Two ideals $$\mathfrak{i}, \mathfrak{j}$$ are said to be comaximal if $$x + y = 1$$ for some $$x \in \mathfrak{i}$$ and $$y \in \mathfrak{j}$$.
 * Regular ideal: This term has multiple uses. See the article for a list.
 * Nil ideal: An ideal is a nil ideal if each of its elements is nilpotent.
 * Nilpotent ideal: Some power of it is zero.
 * Parameter ideal: an ideal generated by a system of parameters.

Two other important terms using "ideal" are not always ideals of their ring. See their respective articles for details:
 * Fractional ideal: This is usually defined when R is a commutative domain with quotient field K. Despite their names, fractional ideals are R submodules of K with a special property. If the fractional ideal is contained entirely in R, then it is truly an ideal of R.
 * Invertible ideal: Usually an invertible ideal A is defined as a fractional ideal for which there is another fractional ideal B such that $AB = BA = R$. Some authors may also apply "invertible ideal" to ordinary ring ideals A and B with $AB = BA = R$ in rings other than domains.

Ideal operations
The sum and product of ideals are defined as follows. For $$\mathfrak{a}$$ and $$\mathfrak{b}$$, left (resp. right) ideals of a ring R, their sum is


 * $$\mathfrak{a}+\mathfrak{b}:=\{a+b \mid a \in \mathfrak{a} \mbox{ and } b \in \mathfrak{b}\}$$,

which is a left (resp. right) ideal, and, if $$\mathfrak{a}, \mathfrak{b}$$ are two-sided,
 * $$\mathfrak{a} \mathfrak{b}:=\{a_1b_1+ \dots + a_nb_n \mid a_i \in \mathfrak{a} \mbox{ and } b_i \in \mathfrak{b}, i=1, 2, \dots, n; \mbox{ for } n=1, 2, \dots\},$$

i.e. the product is the ideal generated by all products of the form ab with a in $$\mathfrak{a}$$ and b in $$\mathfrak{b}$$.

Note $$\mathfrak{a} + \mathfrak{b}$$ is the smallest left (resp. right) ideal containing both $$\mathfrak{a}$$ and $$\mathfrak{b}$$ (or the union $$\mathfrak{a} \cup \mathfrak{b}$$), while the product $$\mathfrak{a}\mathfrak{b}$$ is contained in the intersection of $$\mathfrak{a}$$ and $$\mathfrak{b}$$.

The distributive law holds for two-sided ideals $$\mathfrak{a}, \mathfrak{b}, \mathfrak{c}$$, If a product is replaced by an intersection, a partial distributive law holds:
 * $$\mathfrak{a}(\mathfrak{b} + \mathfrak{c}) = \mathfrak{a} \mathfrak{b} + \mathfrak{a} \mathfrak{c}$$,
 * $$(\mathfrak{a} + \mathfrak{b}) \mathfrak{c} = \mathfrak{a}\mathfrak{c} + \mathfrak{b}\mathfrak{c}$$.
 * $$\mathfrak{a} \cap (\mathfrak{b} + \mathfrak{c}) \supset \mathfrak{a} \cap \mathfrak{b} + \mathfrak{a} \cap \mathfrak{c}$$

where the equality holds if $$\mathfrak{a}$$ contains $$\mathfrak{b}$$ or $$\mathfrak{c}$$.

Remark: The sum and the intersection of ideals is again an ideal; with these two operations as join and meet, the set of all ideals of a given ring forms a complete modular lattice. The lattice is not, in general, a distributive lattice. The three operations of intersection, sum (or join), and product make the set of ideals of a commutative ring into a quantale.

If $$\mathfrak{a}, \mathfrak{b}$$ are ideals of a commutative ring R, then $$\mathfrak{a} \cap \mathfrak{b} = \mathfrak{a} \mathfrak{b}$$ in the following two cases (at least) (More generally, the difference between a product and an intersection of ideals is measured by the Tor functor: $$\operatorname{Tor}^R_1(R/\mathfrak{a}, R/\mathfrak{b}) = (\mathfrak{a} \cap \mathfrak{b})/ \mathfrak{a} \mathfrak{b}.$$ )
 * $$\mathfrak{a} + \mathfrak{b} = (1)$$
 * $$\mathfrak{a}$$ is generated by elements that form a regular sequence modulo $$\mathfrak{b}$$.

An integral domain is called a Dedekind domain if for each pair of ideals $$\mathfrak{a} \subset \mathfrak{b}$$, there is an ideal $$\mathfrak{c}$$ such that $$\mathfrak \mathfrak{a} = \mathfrak{b} \mathfrak{c}$$. It can then be shown that every nonzero ideal of a Dedekind domain can be uniquely written as a product of maximal ideals, a generalization of the fundamental theorem of arithmetic.

Examples of ideal operations
In $$\mathbb{Z}$$ we have
 * $$(n)\cap(m) = \operatorname{lcm}(n,m)\mathbb{Z}$$

since $$(n)\cap(m)$$ is the set of integers which are divisible by both $$n$$ and $$m$$.

Let $$R = \mathbb{C}[x,y,z,w]$$ and let $$ \mathfrak{a} = (z, w), \mathfrak{b} = (x+z,y+w),\mathfrak{c} = (x+z, w)$$. Then, In the first computation, we see the general pattern for taking the sum of two finitely generated ideals, it is the ideal generated by the union of their generators. In the last three we observe that products and intersections agree whenever the two ideals intersect in the zero ideal. These computations can be checked using Macaulay2.
 * $$ \mathfrak{a} + \mathfrak{b} = (z,w, x+z, y+w) = (x, y, z, w)$$ and $$\mathfrak{a} + \mathfrak{c} = (z, w, x + z)$$
 * $$\mathfrak{a}\mathfrak{b} = (z(x + z), z(y + w), w(x + z), w(y + w))= (z^2 + xz, zy + wz, wx + wz, wy + w^2)$$
 * $$\mathfrak{a}\mathfrak{c} = (xz + z^2, zw, xw + zw, w^2)$$
 * $$\mathfrak{a} \cap \mathfrak{b} = \mathfrak{a}\mathfrak{b}$$ while $$\mathfrak{a} \cap \mathfrak{c} = (w, xz + z^2) \neq \mathfrak{a}\mathfrak{c}$$

Radical of a ring
Ideals appear naturally in the study of modules, especially in the form of a radical.


 * For simplicity, we work with commutative rings but, with some changes, the results are also true for non-commutative rings.

Let R be a commutative ring. By definition, a primitive ideal of R is the annihilator of a (nonzero) simple R-module. The Jacobson radical $$J = \operatorname{Jac}(R)$$ of R is the intersection of all primitive ideals. Equivalently,
 * $$J = \bigcap_{\mathfrak{m} \text{ maximal ideals}} \mathfrak{m}.$$

Indeed, if $$M$$ is a simple module and x is a nonzero element in M, then $$Rx = M$$ and $$R/\operatorname{Ann}(M) = R/\operatorname{Ann}(x) \simeq M$$, meaning $$\operatorname{Ann}(M)$$ is a maximal ideal. Conversely, if $$\mathfrak{m}$$ is a maximal ideal, then $$\mathfrak{m}$$ is the annihilator of the simple R-module $$R/\mathfrak{m}$$. There is also another characterization (the proof is not hard):
 * $$J = \{ x \in R \mid 1 - yx \, \text{ is a unit element for every } y \in R\}.$$

For a not-necessarily-commutative ring, it is a general fact that $$1 - yx$$ is a unit element if and only if $$1 - xy$$ is (see the link) and so this last characterization shows that the radical can be defined both in terms of left and right primitive ideals.

The following simple but important fact (Nakayama's lemma) is built-in to the definition of a Jacobson radical: if M is a module such that $$JM = M$$, then M does not admit a maximal submodule, since if there is a maximal submodule $$L \subsetneq M$$, $$J \cdot (M/L) = 0$$ and so $$M = JM \subset L \subsetneq M$$, a contradiction. Since a nonzero finitely generated module admits a maximal submodule, in particular, one has:
 * If $$JM = M$$ and M is finitely generated, then $$M = 0.$$

A maximal ideal is a prime ideal and so one has
 * $$\operatorname{nil}(R) =

\bigcap_{\mathfrak{p} \text { prime ideals }} \mathfrak{p} \subset \operatorname{Jac}(R)$$ where the intersection on the left is called the nilradical of R. As it turns out, $$\operatorname{nil}(R)$$ is also the set of nilpotent elements of R.

If R is an Artinian ring, then $$\operatorname{Jac}(R)$$ is nilpotent and $$\operatorname{nil}(R) = \operatorname{Jac}(R)$$. (Proof: first note the DCC implies $$J^n = J^{n+1}$$ for some n. If (DCC) $$\mathfrak{a} \supsetneq \operatorname{Ann}(J^n)$$ is an ideal properly minimal over the latter, then $$J \cdot (\mathfrak{a}/\operatorname{Ann}(J^n)) = 0$$. That is, $$J^n \mathfrak{a} = J^{n+1} \mathfrak{a} = 0$$, a contradiction.)

Extension and contraction of an ideal
Let A and B be two commutative rings, and let f : A → B be a ring homomorphism. If $$\mathfrak{a}$$ is an ideal in A, then $$f(\mathfrak{a})$$ need not be an ideal in B (e.g. take f to be the inclusion of the ring of integers Z into the field of rationals Q). The extension $$\mathfrak{a}^e$$ of $$\mathfrak{a}$$ in B is defined to be the ideal in B generated by $$f(\mathfrak{a})$$. Explicitly,


 * $$\mathfrak{a}^e = \Big\{ \sum y_if(x_i) : x_i \in \mathfrak{a}, y_i \in B \Big\}$$

If $$\mathfrak{b}$$ is an ideal of B, then $$f^{-1}(\mathfrak{b})$$ is always an ideal of A, called the contraction $$\mathfrak{b}^c$$ of $$\mathfrak{b}$$ to A.

Assuming f : A → B is a ring homomorphism, $$\mathfrak{a}$$ is an ideal in A, $$\mathfrak{b}$$ is an ideal in B, then:


 * $$\mathfrak{b}$$ is prime in B $$\Rightarrow$$ $$\mathfrak{b}^c$$ is prime in A.
 * $$\mathfrak{a}^{ec} \supseteq \mathfrak{a}$$
 * $$\mathfrak{b}^{ce} \subseteq \mathfrak{b}$$

It is false, in general, that $$\mathfrak{a}$$ being prime (or maximal) in A implies that $$\mathfrak{a}^e$$ is prime (or maximal) in B. Many classic examples of this stem from algebraic number theory. For example, embedding $$\mathbb{Z} \to \mathbb{Z}\left\lbrack i \right\rbrack$$. In $$B = \mathbb{Z}\left\lbrack i \right\rbrack$$, the element 2 factors as $$2 = (1 + i)(1 - i)$$ where (one can show) neither of $$1 + i, 1 - i$$ are units in B. So $$(2)^e$$ is not prime in B (and therefore not maximal, as well). Indeed, $$(1 \pm i)^2 = \pm 2i$$ shows that $$(1 + i) = ((1 - i) - (1 - i)^2)$$, $$(1 - i) = ((1 + i) - (1 + i)^2)$$, and therefore $$(2)^e = (1 + i)^2$$.

On the other hand, if f is surjective and $ \mathfrak{a} \supseteq \ker f$ then:


 * $$\mathfrak{a}^{ec}=\mathfrak{a} $$ and $$\mathfrak{b}^{ce}=\mathfrak{b}$$.
 * $$\mathfrak{a}$$ is a prime ideal in A $$\Leftrightarrow$$ $$\mathfrak{a}^e$$ is a prime ideal in B.
 * $$\mathfrak{a}$$ is a maximal ideal in A $$\Leftrightarrow$$ $$\mathfrak{a}^e$$ is a maximal ideal in B.

Remark: Let K be a field extension of L, and let B and A be the rings of integers of K and L, respectively. Then B is an integral extension of A, and we let f be the inclusion map from A to B. The behaviour of a prime ideal $$\mathfrak{a} = \mathfrak{p}$$ of A under extension is one of the central problems of algebraic number theory.

The following is sometimes useful: a prime ideal $$\mathfrak{p}$$ is a contraction of a prime ideal if and only if $$\mathfrak{p} = \mathfrak{p}^{ec}$$. (Proof: Assuming the latter, note $$\mathfrak{p}^e B_{\mathfrak{p}} = B_{\mathfrak{p}} \Rightarrow \mathfrak{p}^e$$ intersects $$A - \mathfrak{p}$$, a contradiction. Now, the prime ideals of $$B_{\mathfrak{p}}$$ correspond to those in B that are disjoint from $$A - \mathfrak{p}$$. Hence, there is a prime ideal $$\mathfrak{q}$$ of B, disjoint from $$A - \mathfrak{p}$$, such that $$\mathfrak{q} B_{\mathfrak{p}}$$ is a maximal ideal containing $$\mathfrak{p}^e B_{\mathfrak{p}}$$. One then checks that $$\mathfrak{q}$$ lies over $$\mathfrak{p}$$. The converse is obvious.)

Generalizations
Ideals can be generalized to any monoid object $$(R,\otimes)$$, where $$R$$ is the object where the monoid structure has been forgotten. A left ideal of $$R$$ is a subobject $$I$$ that "absorbs multiplication from the left by elements of $$R$$"; that is, $$I$$ is a left ideal if it satisfies the following two conditions:
 * 1) $$I$$ is a subobject of $$R$$
 * 2) For every $$r \in (R,\otimes)$$ and every $$x \in (I, \otimes)$$, the product $$r \otimes x$$ is in $$(I, \otimes)$$.

A right ideal is defined with the condition "$$r \otimes x \in (I, \otimes)$$" replaced by "'$$x \otimes r \in (I, \otimes)$$". A two-sided ideal is a left ideal that is also a right ideal, and is sometimes simply called an ideal. When $$R$$ is a commutative monoid object respectively, the definitions of left, right, and two-sided ideal coincide, and the term ideal is used alone.

An ideal can also be thought of as a specific type of $R$-module. If we consider $$R$$ as a left $$R$$-module (by left multiplication), then a left ideal $$I$$ is really just a left sub-module of $$R$$. In other words, $$I$$ is a left (right) ideal of $$R$$ if and only if it is a left (right) $$R$$-module which is a subset of $$R$$. $$I$$ is a two-sided ideal if it is a sub-$$R$$-bimodule of $$R$$.

Example: If we let $$R=\mathbb{Z}$$, an ideal of $$\mathbb{Z}$$ is an abelian group which is a subset of $$\mathbb{Z}$$, i.e. $$m\mathbb{Z}$$ for some $$m\in\mathbb{Z}$$. So these give all the ideals of $$\mathbb{Z}$$.