Principal Ideals and Ideal Generation
What is the smallest ideal of a ring that contains a given element? What about a given finite set of elements? This question — deceptively simple — is the seed from which enormous structure theory grows. Every ideal you have ever seen written down explicitly, like in or in , was described in a specific way. It was not described by listing its elements. Instead, it was named by a small set of generators. The ideal is declared to be everything those generators can build using ring operations. Understanding exactly what "everything they can build" means is the subject of this article. So is understanding when one generator suffices. The idea matters because generation is how we actually compute with ideals. An ideal, defined abstractly, is a certain kind of subset. It is closed under addition and absorption of ring multiplication. But abstract closure conditions are hard to check by hand. Generators translate this abstraction into concrete algebra: every element of has the explicit form . This is the bridge between the axiomatic definition of an ideal and the hands-on manipulation of elements. That manipulation is what one does in a computation. The big picture is this: ideals generated by a single element — principal ideals — turn out to be extremely special. Rings in which every ideal is principal are called principal ideal domains. These form one of the best-behaved classes in all of algebra. They sit between fields and general commutative rings in a hierarchy. That hierarchy controls factorization, greatest common divisors, and much of classical number theory. Finitely generated ideals occupy a middle ground. They are not always principal, but tame enough to support a rich structure theory. Noetherian rings, for instance, are exactly those in which every ideal is finitely generated. This article delivers a rigorous definition of the ideal generated by a subset. It gives a full proof that this construction produces the smallest ideal containing the subset. It offers an explicit description of principal and finitely generated ideals in a commutative ring with identity. It includes worked computations in and . Finally, it presents a counterexample showing why the "with identity" hypothesis cannot be dropped.
- For a subset of a ring , the ideal generated by , written , is the smallest ideal of containing .
- Concretely, in a commutative ring with identity, equals the set of all finite -linear combinations of elements of .
- A principal ideal is one generated by a single element: in a commutative ring with identity.
- A finitely generated ideal is ; not every ideal need be finitely generated.
- Different generating sets can produce the same ideal — for example in — so generation is many-to-one.
- Key idea: an ideal generated by a set is built "from the inside out" as the intersection of all ideals containing that set, and equals the collection of all finite ring-combinations of its generators.
Where this lives today
Principal and finitely generated ideals are the computational backbone of commutative algebra and algebraic geometry: an affine variety is cut out by a finitely generated ideal of polynomials, and Hilbert's basis theorem (that polynomial rings over Noetherian rings are Noetherian) guarantees finite generation is always available even when it is not obvious. In algebraic number theory, the failure of principal ideals to capture every ideal in a ring of integers measures the ideal class number, a fundamental invariant controlling factorization and appearing in class field theory and the study of Diophantine equations. In cryptography, ideal lattices — ideals in polynomial quotient rings such as — underlie ring-based lattice cryptosystems used in post-quantum key exchange. In computer algebra, Gröbner basis algorithms are precisely machinery for finding well-behaved finite generating sets of ideals in polynomial rings, enabling automated solving of polynomial systems. Even in linear algebra, the minimal polynomial of a matrix arises as the unique monic generator of a principal ideal inside , the ideal of polynomials annihilating the matrix.
:::quiz[Why is not principal in ?]
- Because and have no common factor besides units, yet no single polynomial generates exactly the "even constant term" ideal ✓
- Because has no ideals at all
- Because is not a unit in
- Because is not invertible
Ask the tutor: How do sums and products of ideals interact with their generating sets, and why does while in a commutative ring?
Let be a ring and let be any subset.
The ideal generated by . Define
(The intersection is over a nonempty family since itself is an ideal containing .) The set is called the ideal generated by .
Principal ideal. An ideal of is principal if for some single element , i.e. is generated by a one-element set .
Finitely generated ideal. An ideal is finitely generated if for some finite set .
Explicit description (commutative ring with ). If is commutative with multiplicative identity , and is finite, then
In particular, for a single generator,
For an infinite subset , the ideal equals the set of all finite sums with , only finitely many nonzero.
Intuition
Think of an ideal as a "closed room" in the ring: once you are inside it, adding two elements of the room, or multiplying a room-element by any ring element, keeps you inside the room. Given a handful of elements , the ideal they generate is the smallest such room that contains them — you build it by throwing in , then throwing in everything that closure forces you to add (all ring multiples, all sums), and stopping the instant no more elements are forced in. There are two equivalent ways to picture this construction, and the theorem below proves they agree. The top-down picture: intersect every ideal that contains ; since an intersection of ideals is again an ideal (a fact one checks directly from the definition of ideal), this produces an ideal, and it is visibly the smallest one containing , since it sits inside every candidate. The bottom-up picture: start with and mechanically close it up — form all finite -linear combinations — and check that this set is already an ideal. The theorem shows these two constructions yield the same set, which is why we are entitled to compute with generators concretely instead of reasoning abstractly about intersections of unnamed ideals. Principal ideals are the simplest nontrivial case: the "room" generated by one element is just all its ring-multiples, . In , is the set of all multiples of , so . When more generators are allowed, the room can only grow (or stay the same): . Whether a multi-generator ideal secretly collapses to a principal one — as collapses to in — is a deep structural question, and rings where this always happens are the principal ideal domains foreshadowed at the end of this article.
Let be a commutative ring with identity , and let be a nonempty subset. Define
the set of all finite -linear combinations of elements of (with ranging over all nonnegative integers, and the empty sum, , giving ). Then: 1. is an ideal of . 2. . 3. If is any ideal of with , then . Consequently , the ideal generated by as defined by the intersection formula. In particular, for finite,
and for , .
The proof technique is direct verification of the ideal axioms for , followed by a minimality argument comparing to an arbitrary ideal containing , and finally a double-containment argument identifying with .
Step 1: is an ideal. Recall (from the definition of Ideals) that a nonempty subset is an ideal if and only if (i) is closed under subtraction, i.e. , and (ii) absorbs multiplication, i.e. (and , automatic here by commutativity). We verify both for . Nonempty. Taking (the empty sum) gives , so . (Equivalently, since , pick and note .) Closed under subtraction. Let and be two elements of , with and . Then
which is again a finite sum of the form with coefficients in and terms in (using that , since is a ring and hence closed under additive inverses). Hence . Absorbs multiplication. Let and let . Then
using distributivity and associativity of multiplication in ; since each , this is again a finite -linear combination of elements of , so . By commutativity as well. By the ideal criterion, is an ideal of .
Step 2: . For , write (using the multiplicative identity, which exists in by hypothesis). This exhibits as a one-term -linear combination of an element of , so .
Step 3: minimality — for every ideal . Let be any ideal of with . Let be arbitrary, with , . Since and is an ideal, for each (absorption). Since is closed under addition (an ideal is in particular an additive subgroup of ), the finite sum lies in . Hence . As was arbitrary, .
Step 4: identification . Recall . (): By Steps 1 and 2, itself is an ideal containing , so is one of the sets in the intersection defining ; more precisely, since is the intersection of all ideals containing and is such an ideal, we get trivially from the definition of intersection being a lower bound... we must be careful about direction, so let us redo this cleanly using both steps 1–3 together. Since is an ideal containing (Steps 1, 2), appears as one of the ideals ranging over the intersection . An intersection of a family of sets is contained in each member of the family, so
Conversely, is itself an ideal containing (an arbitrary intersection of ideals is an ideal — each is an additive subgroup and absorbs multiplication, and these properties are preserved under intersection — and clearly for every in the family forces ). Since is an ideal containing , Step 3 (applied with ) gives
Combining the two containments, .
Finite case. When , a finite -linear combination of elements of is exactly an expression with (repeated use of the same can be absorbed into a single coefficient by adding coefficients, since ). Hence
Taking gives .
∎Worked examples
Example 1: in collapses to a principal ideal. Work in , commutative with identity . By the theorem,
We claim . : Every element is even, since and are both even and a sum of two even integers is even. Hence for all . : We must express itself as an integer combination . By the Euclidean algorithm on and : , then , then , so . Back-substituting:
So . Since and is an ideal, every multiple is absorbed into , i.e. . Both containments give . This illustrates the general fact (a preview of Principal Ideal Domains) that in , every finitely generated ideal is principal, generated by the greatest common divisor of the given generators: .
Example 2: in is not principal. Work in , the ring of polynomials in one variable over , again commutative with identity. Let
First, note explicitly what looks like: an element has constant term (since contributes to the constant term), which is always even. Conversely, any polynomial with even can be written as : take (constant) and , so that and , summing to . Hence
We now show is not principal, i.e. there is no single with . Suppose toward contradiction that for some . Since , we can write for some . Comparing degrees (degree is additive for products of nonzero polynomials over the integral domain ), , forcing ; so and are nonzero integer constants with . Thus .
- If , then (since forces every polynomial, including and constant , to lie in ), but because has odd constant term. Contradiction.
- If , then , the set of polynomials all of whose coefficients are even. But (constant term is even) while (its coefficient of is , odd). Contradiction.
In every case we reach a contradiction, so no such exists: is finitely generated (by two elements) but not principal. This shows is not a principal ideal domain, even though is — generation by two elements can be genuinely necessary.
The explicit formula in the theorem depended on writing to guarantee itself lies in the linear-combination set. Drop the hypothesis that has a multiplicative identity, and this formula can fail. Let , the ring of even integers, with the usual addition and multiplication (this is a commutative ring without a multiplicative identity, since no even integer satisfies for all even ). Consider . The naive candidate , the multiples of . Note : the generator itself is not even a member of the set ! So cannot be the ideal generated by , since by definition always (Step 2 of the theorem), and here but . The correct ideal generated by in must be computed from the definition , or equivalently — since without identity we must allow "integer multiples plus ring multiples" — as
because alone already ranges over all of as ranges over (allowing -multiples, not just -multiples, is the correction needed in the non-unital setting; this is forced because generates an additive subgroup that already needs integer, not just ring, coefficients to close up). Here , so the clean formula genuinely breaks down without an identity element, and the general theory of ideal generation must be patched with extra "-multiple" terms — exactly the complication the identity hypothesis was designed to avoid.
Scope, edge cases & common traps
| Situation | What happens |
|---|---|
| commutative with | , the clean formula of the theorem applies |
| without identity | Must also allow integer multiples ; in general (see counterexample) |
| noncommutative | One must distinguish left ideals , right ideals , and two-sided ideals (sums of ); these can all differ |
| , the zero ideal, since the empty intersection convention / empty sum gives just | |
| infinite | still consists only of finite linear combinations — infinite sums are not permitted unless carries extra topological structure |
| Generating set not unique | can equal for a completely different-looking generating set, e.g. |
The mathematician behind it
Origins · 1 minRichard Dedekind and how this was discovered
Dedekind introduced the very word ideal in the 1870s while trying to repair unique factorization in rings of algebraic integers, where ordinary numbers fail to factor uniquely into primes. His insight was to replace "numbers" by certain sets closed under addition and multiplication-absorption — his ideal numbers, later just ideals — and to show that these sets, rather than individual elements, factor uniquely. The question of which ideals are generated by a single element (principal) versus needing several generators became, in Dedekind's hands, the precise measure of how far a ring of integers deviates from unique factorization — the origin of the ideal class group.
What exactly is the difference between "an ideal generated by " and " itself"?
is just a set of elements chosen as generators; is the full ideal they produce once you close up under addition, subtraction, and multiplication by arbitrary ring elements. Typically is much larger than : for instance in is a one-element set, but is an infinite set containing every even integer. The generating set is a compact description; the ideal is everything that description forces to exist inside the ring.
Is the generating set of an ideal unique?
No. Many different generating sets can produce the same ideal, and this is one of the central subtleties of the theory. In , , since all three describe the ideal of even integers (check: after simplification via the Euclidean algorithm). In general, the minimal number of generators needed for a given ideal is itself an important invariant, studied through tools like Nakayama's lemma in local rings.
Does every ideal have a finite generating set?
No, not in every ring. Rings in which every ideal is finitely generated are called Noetherian rings, and this is a strong, nontrivial condition. A standard example of a non-Noetherian ring is the polynomial ring in infinitely many variables over a field : the ideal generated by all the variables cannot be generated by any finite subset, since any finite list of polynomials only involves finitely many variables and so cannot generate a variable outside that list.
How does this relate to greatest common divisors?
In (and more generally in any principal ideal domain), the ideal generated by two elements equals the principal ideal generated by their greatest common divisor: . This is exactly what Example 1 verifies for . The Euclidean algorithm, which computes , is simultaneously an algorithm for expressing as an integer linear combination — this is Bézout's identity, and it is the computational engine behind collapsing a two-generator ideal to a principal one.
Why does the proof need to be commutative and have an identity?
Commutativity lets us avoid tracking left versus right multiplication separately, so the formula (left multiples) automatically equals (right multiples), and absorbing an element into or is the same operation. The identity element is needed to guarantee each generator itself lies in the linear-combination set , via ; without an identity this step fails, as the counterexample with demonstrates concretely.
What is a principal ideal domain, in one sentence, and how does this article connect to it?
A principal ideal domain (PID) is an integral domain in which every ideal, not just some, is principal — a strong global condition built directly on the notions defined here. turns out to be a PID (Example 1 is a special case of the general fact that always holds there), while is not, since Example 2 exhibits a non-principal finitely generated ideal in it.
Can an ideal be generated by an infinite set with no finite subset generating the same ideal?
Yes; this is exactly the non-Noetherian phenomenon mentioned above. In , the ideal requires infinitely many generators — no finite subcollection can generate for an index outside that finite list, since (as one can check using degree/variable-support arguments) every element of only involves the variables .