Principal Ideal Domains
Why does the Euclidean algorithm work for both integers and polynomials? It produces a greatest common divisor as an explicit combination of the original two elements. The answer lies not in division with remainder itself. Instead, it lies in a purely ideal-theoretic consequence of it: every ideal in or in is generated by a single element. Rings with this property are called principal ideal domains (PIDs). They form one of the most important classes of commutative rings. They sit strictly between Euclidean Domains and Unique Factorization Domains in the hierarchy of integral domains. The significance of the PID condition is that it is purely about the lattice of ideals. Yet it forces extremely strong arithmetic consequences. Irreducible elements automatically become prime. Greatest common divisors exist and are expressible as linear combinations (a Bézout identity). Later results build on this one: unique factorization into irreducibles holds. This is remarkable because "principal ideal" is a structural, additive condition. Meanwhile, "prime = irreducible" and "unique factorization" are multiplicative arithmetic conditions. The bridge between them is exactly the content of this article. The big picture is a chain of increasingly special integral domains:
Each containment is strict. Each stage buys you more arithmetic structure at the cost of more restrictive hypotheses. Knowing exactly where a ring sits in this chain tells you which tools are available. These include division algorithms, Bézout identities, unique factorization, or none of the above. This article gives the precise definition of a PID. It proves that every Euclidean domain is a PID (the main structural theorem). Then it develops the basic arithmetic of PIDs. This includes the equivalence of primes and irreducibles. It also includes the existence of gcds as ideal-generators and as linear combinations. Finally, it covers the ascending chain condition on principal ideals. These results are the essential toolkit used later to prove unique factorization. They also connect ring theory with Noetherian Rings.
- A principal ideal domain (PID) is an integral domain in which every ideal is generated by one element.
- Main theorem: every Euclidean domain is a PID — the division algorithm is exactly what makes every ideal principal.
- In a PID every irreducible element is prime, reversing the implication that holds in general domains.
- Every pair of elements in a PID has a gcd, and that gcd is an -linear combination of the two elements (Bézout's identity).
- PIDs satisfy the ascending chain condition on ideals, foreshadowing Noetherian Rings.
- Key idea: in a PID, the additive structure (ideals generated by one element) completely controls the multiplicative structure (divisibility, primality, factorization).
Where this lives today
Principal ideal domains underpin the structure theorem for finitely generated modules over a PID, which simultaneously explains the classification of finite abelian groups and the Jordan/rational canonical form of linear operators (viewing a vector space as a module over ). In algebraic number theory, whether the ring of integers of a number field is a PID governs whether unique factorization of algebraic integers holds directly at the element level, versus only at the level of ideals (class number greater than one signals failure). In coding theory and cryptography, polynomial rings and Euclidean-domain arithmetic in or (both PIDs) drive algorithms for the extended Euclidean algorithm, RSA key generation, Reed–Solomon codes, and CRC checksums. In computer algebra systems, gcd computations for polynomials rely on the PID structure of to guarantee Bézout identities exist and can be computed efficiently. In numerical linear algebra and control theory, the PID/Euclidean structure of polynomial matrices underlies Smith normal form computations.
:::quiz[Which statement about is correct, based on the counterexample given?]
- It is a PID, and 2 is prime there
- It is not a PID, and 2 is irreducible but not prime there ✓
- It is a Euclidean domain
- It contains no irreducible elements
:::faq[Is , the polynomial ring in two variables over a field, a PID?] No. The ideal — polynomials with zero constant term — is not principal. If for some , then and ; since and are irreducible and non-associate, would have to be a unit, forcing , but (every element of has zero constant term), a contradiction. This shows the PID property genuinely depends on the ring, not just on having "nice" elements, and explains why multivariable polynomial rings require the more general theory of Noetherian Rings and unique factorization domains rather than PIDs.
Ask the tutor: Can you show me step by step why fails to be a PID by proving is not principal?
Let be a commutative ring with identity . Recall that is an integral domain if has no zero divisors: or . An ideal is principal if there exists with
A principal ideal domain (PID) is an integral domain in which every ideal is principal: for each ideal there exists with . Equivalently: is a PID if is an integral domain and, whenever is an ideal, there is a single element such that every element of is a multiple of .
Intuition
Think of an ideal as a "collection of forbidden remainders" — the set of all elements a division process can produce as multiples of something. In , the subgroup of multiples of and multiples of together, closed under addition and multiplication by any integer, turns out to collapse to the multiples of a single number: . This is not an accident of small numbers; it is a theorem, and it is exactly the PID property in action. The mechanism is the division algorithm. If you have two elements of an ideal and you can always divide one by the other with a "smaller" remainder that stays in , then you can keep shrinking elements of until you hit a smallest one — and that smallest element must generate the whole ideal, because otherwise dividing by it would produce an even smaller nonzero remainder inside , a contradiction. This is the intuitive core of the Euclidean-implies-PID theorem below. Once you know ideals are principal, arithmetic becomes geometric. The ideal generated by two elements is principal, say ; since , divides both; and since , for some , so any common divisor of divides . This single ideal-theoretic fact is the existence of gcds and Bézout's identity, simultaneously.
Let be a Euclidean domain: an integral domain equipped with a Euclidean function such that for all with , there exist with
Then is a principal ideal domain.
The proof technique is well-ordering / minimal counterexample, applied directly to the values of the Euclidean function. Let be an ideal. We must produce with .
Case 1: . Then , which is principal, and we are done.
Case 2: . Consider the set
Since , is a nonempty subset of . By the well-ordering principle for , has a least element. Choose such that equals this least element; that is, for every nonzero . We claim . (): Since and is an ideal, for every , so . (): Let be arbitrary. Since is Euclidean and , apply the division algorithm to and : there exist with
Rearrange: . Now by assumption, and because and is an ideal (closed under multiplication by ring elements). Since is closed under subtraction (it is an additive subgroup, being an ideal), . Now suppose toward a contradiction that . Then is a nonzero element of with . But was chosen to be the minimum of over all nonzero , so is impossible for a nonzero . This contradiction forces . Hence , so . Since was arbitrary, . Combining both inclusions, . Since was an arbitrary ideal of , every ideal of is principal, so is a PID.
∎:::corollary[ and are PIDs] with , and for any field with , are Euclidean domains, hence PIDs.
That is Euclidean via ordinary division with remainder, and is Euclidean via polynomial long division, are the standard verifications from the theory of Euclidean Domains (division algorithm and degree bound), which we take as given by hypothesis (prerequisite material). Applying the theorem above to each yields the corollary immediately.
∎Let be a PID and let be a nonzero non-unit. Then is irreducible if and only if is maximal among proper principal ideals of ; equivalently, is irreducible if and only if has no solution ideal .
Recall is irreducible if is a nonzero non-unit and whenever , either or is a unit. () Suppose is irreducible and suppose for some ideal . Since is a PID, for some . Since , we may write for some . Irreducibility of forces a unit or a unit. If is a unit, then , so . If is a unit, then , so ; combined with we get . Thus the only ideals between and are itself and , i.e. is maximal among proper (principal, hence all, since is a PID) ideals. () Suppose is maximal among proper ideals and suppose . Then . By maximality, or . If , is a unit. If , then for some , so , giving . Since is an integral domain and , we get , so is a unit. Hence is irreducible.
∎Let be a PID and let be irreducible. Then is prime: whenever for , either or .
The proof technique is a Bézout identity argument via the ideal . Suppose but ; we must show . Consider the ideal , the smallest ideal containing both and (one checks directly this set is closed under addition and under multiplication by any ring element, and contains , so it is an ideal; any ideal containing and must contain all such combinations). Since is a PID, for some . Since , . Since is irreducible, its only divisors are units and unit multiples of itself. So either is a unit, or for some unit .
Case A: for a unit . Then , so , meaning . This contradicts our hypothesis that . So this case cannot occur.
Case B: is a unit. Then , so . Hence there exist with
Multiply both sides by :
Now trivially (giving ), and by hypothesis (giving ). Since divides both terms on the right, divides their sum, so . Since Case A is impossible, Case B must hold, and we conclude . This proves is prime.
∎Let be a PID and let , not both zero. Then there exists such that: 1. and (a common divisor), 2. if and then (a greatest common divisor, in the divisibility order), 3. there exist with (Bézout's identity). Moreover is unique up to multiplication by a unit.
The proof technique is direct construction via the ideal , paralleling the lemma above. Let . This is an ideal (closed under addition and -scaling, as a direct check of the defining formula shows), and it is nonzero since are not both zero. Since is a PID, for some , .
(1) Since , ; since , . So is a common divisor.
(3) Since , we may write for some . This is Bézout's identity, established simultaneously with the construction, not as an afterthought.
(2) Suppose and , say , . Then using the identity from (3),
so .
(Uniqueness up to units) Suppose also satisfies (1) and (2). By (2) applied to and the common divisor property of , (taking in property (2) for ). Symmetrically, (taking in property (2) for ). Mutual divisibility and in an integral domain implies for some unit : write and , so , i.e. ; since and is a domain, , so (and ) are units.
∎This , unique up to a unit multiple, is denoted .
Worked examples
Example 1: Computing a Bézout identity in from the ideal-theoretic proof, with asymmetric inputs. Let , , . We find and an explicit Bézout identity , using exactly the constructive content of the proof above (which relies on the Euclidean algorithm since is Euclidean, hence a PID). Run the Euclidean algorithm:
The last nonzero remainder is , so . This matches the theorem: () and (), and one checks is indeed the largest such common divisor. Back-substitute to get the Bézout identity:
Substitute :
So
Check: , , and . Correct. This exhibits , , concretely, verifying the corollary's construction in a specific asymmetric case (note and neither divides the other trivially, and the coefficients have opposite sign, as is typical).
Example 2: Irreducible implies prime, verified concretely in with . Let , which is a PID by the Euclidean-implies-PID theorem (with ). Let
This is irreducible over : if it factored as a product of two non-unit polynomials in , both factors would have degree (degrees sum to , and units are precisely nonzero constants), giving a real (rational) root of ; but has no real root since for all . So is irreducible. By the theorem, is therefore prime in . Let's verify this on a specific instance rather than trust it abstractly. Take
First, , so already — not the interesting case. Instead let's genuinely test without directly visible, using
Here , so certainly divides (it divides directly, visibly). To make the test non-trivial, we instead verify the converse direction fails safely: check that does not divide (consistent with primality: since and , the theorem imposes no constraint forcing , and indeed it does not). Suppose instead, to genuinely stress-test primality, and , and set . Does divide ? Perform polynomial division:
more carefully:
so , remainder . So here, meaning this pair simply doesn't test the theorem (the hypothesis fails, so there's nothing to check) — illustrating that not every triple is a valid test case, which is itself an instructive check of quantifiers: the theorem only asserts something when actually holds.
Counterexample
Consider , an integral domain (it sits inside , which has no zero divisors). We drop the PID hypothesis — is not a PID — and show irreducible no longer implies prime. Define the norm , which is multiplicative: for (direct computation, since where is complex conjugation, and conjugation is a ring homomorphism). Note , and is a unit iff (if then in forces ; conversely means so is a unit with inverse ). Consider the identity
Compute norms: , , .
Claim: is irreducible in . If then . Since takes values in , the only values of achievable that are are (no element has norm or , since or has no integer solutions). So is or (impossible) — hence , meaning one of has norm , i.e. is a unit. So is irreducible. The same norm argument (with ; no element has norm ) shows is irreducible, and (with ; no element has norm or ) shows are irreducible.
Claim: is not prime. We have . If were prime, would divide or in . But does not divide (since ), and divisibility would force (as is multiplicative and integer-valued). So and . Hence is irreducible but not prime. This is only possible because is not a PID: one can show the ideal is not principal (it satisfies in the sense of ideal multiplication, yet no single element generates , since any generator would need norm dividing both and , forcing norm or , but no element has norm , and norm would make , contradicting since have no common unit factor forcing — this can be checked directly: would give for some , and reducing modulo the prime in a suitable quotient shows this is impossible). This exactly witnesses that removing the PID hypothesis breaks <span class="wiki-link-missing">irreducible implies prime</span>, the central mechanism of the theorem above.
Scope, edge cases & common traps
| Situation | What holds | What can fail |
|---|---|---|
| Euclidean | is a PID (proved above) | Not every PID is Euclidean (e.g. is a PID but admits no Euclidean function) |
| a PID | irreducible prime; gcds exist with Bézout identity; ACC on ideals | need not be Euclidean; explicit gcd algorithms may not exist |
| a general integral domain | prime irreducible always | irreducible prime can fail (see counterexample) |
| a field | every nonzero ideal is itself, so is (vacuously) a PID | there are no irreducibles or primes to discuss (every nonzero element is a unit) |
| ideal | always principal, generated by | do not forget to check the zero ideal separately when verifying "PID" by hand |
The mathematician behind it
Origins · 1 minRichard Dedekind and how this was discovered
Dedekind's work on ideals in rings of algebraic integers, developed to restore unique factorization where it visibly fails (as in ), created the very language of "ideal" in which the PID concept is phrased. His insight was that even when elements fail to factor uniquely, the ideals they generate can be repaired to factor uniquely into prime ideals — a program that made rings like tractable, and singled out PIDs as the special rings where element-factorization already suffices.
Is every PID a Euclidean domain?
No. The implication only goes one way: Euclidean domains are always PIDs, but there exist PIDs with no Euclidean function at all. The classic example is , which is a PID (this requires deeper number-theoretic input, related to the ring of integers of having class number one) but which admits no Euclidean norm function satisfying the division algorithm property. This shows the PID condition is strictly weaker — more general — than the Euclidean condition, even though every standard classroom example (like and ) happens to be Euclidean.
Why does "irreducible implies prime" need the PID hypothesis specifically, rather than just "integral domain"?
The proof crucially uses that the ideal is principal, say , to conclude is either a unit or an associate of . This dichotomy relies on knowing has a single generator whose divisibility relationship with can be analyzed via irreducibility. In a general integral domain, may not be principal at all, so there is no such to analyze, and the Bézout identity that powers the rest of the proof simply may not exist. The counterexample demonstrates concretely that without this hypothesis the conclusion fails.
Does every ideal in a PID have a unique generator?
No — the generator is unique only up to multiplication by a unit. If , then and , and in an integral domain this mutual divisibility forces for some unit . For example, in , since and is a unit. In , since is a unit in (assuming is a field). So "the" generator is really an equivalence class under units, often normalized (e.g., to be positive in , or monic in ).
How does the gcd defined via ideals relate to the gcd learned in elementary number theory?
They agree exactly, once you fix the unit ambiguity. In , the ideal-theoretic gcd satisfying is unique up to sign; choosing the nonnegative representative recovers the familiar elementary-school gcd. The ideal-theoretic proof additionally guarantees, for free, that can be written as for integers — the Bézout identity — which is exactly what the extended Euclidean algorithm computes constructively. The PID framework explains why this identity must exist in the first place, rather than just providing an algorithm to find it.
Can a PID have zero divisors or fail to have a multiplicative identity?
No, by definition a PID is required to be an integral domain, which by convention (as in Dummit–Foote and Artin) is a commutative ring with and no zero divisors. Dropping either requirement changes the theory substantially: without an identity, "principal ideal" and "unit" become ambiguous notions; with zero divisors present, the mutual-divisibility argument used to prove uniqueness of gcds up to units breaks down, since no longer forces .
Why does this article foreshadow Unique Factorization Domains and Noetherian Rings?
Once irreducibles are known to be prime in a PID, one can prove every nonzero non-unit factors into irreducibles, and that this factorization is unique up to order and units — the defining property of a UFD. Separately, the same minimality argument used to prove Euclidean domains are PIDs generalizes to show every ideal in a PID is finitely generated (trivially, by one element), which is the defining condition of a Noetherian ring; PIDs are thus the simplest nontrivial examples of Noetherian rings, one ideal-generator at a time.