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 Z\mathbb{Z} or in F[x]F[x] 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:

Fields⊊Euclidean Domains⊊PIDs⊊UFDs⊊Integral Domains.\text{Fields} \subsetneq \text{Euclidean Domains} \subsetneq \text{PIDs} \subsetneq \text{UFDs} \subsetneq \text{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.

Key takeaways
  • 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 RR-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 F[x]F[x]). 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 F[x]/(f(x))F[x]/(f(x)) and Euclidean-domain arithmetic in Z\mathbb{Z} or F[x]F[x] (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 F[x]F[x] 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 Z[−5]\mathbb{Z}[\sqrt{-5}] 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 F[x,y]F[x,y], the polynomial ring in two variables over a field, a PID?] No. The ideal (x,y)⊆F[x,y](x,y) \subseteq F[x,y] — polynomials with zero constant term — is not principal. If (x,y)=(f)(x,y) = (f) for some ff, then f∣xf \mid x and f∣yf \mid y; since xx and yy are irreducible and non-associate, ff would have to be a unit, forcing (f)=F[x,y](f) = F[x,y], but 1∉(x,y)1 \notin (x,y) (every element of (x,y)(x,y) 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 Z[−5]\mathbb{Z}[\sqrt{-5}] fails to be a PID by proving (2,1+−5)(2,1+\sqrt{-5}) is not principal?

DefinitionPrincipal Ideal Domain

Let RR be a commutative ring with identity 1≠01 \neq 0. Recall that RR is an integral domain if RR has no zero divisors: ab=0  ⟹  a=0ab = 0 \implies a = 0 or b=0b = 0. An ideal I⊆RI \subseteq R is principal if there exists a∈Ra \in R with

I=(a):={ra:r∈R}.I = (a) := \{ ra : r \in R \}.

A principal ideal domain (PID) is an integral domain RR in which every ideal is principal: for each ideal I⊆RI \subseteq R there exists a∈Ra \in R with I=(a)I = (a). Equivalently: RR is a PID if RR is an integral domain and, whenever I⊆RI \subseteq R is an ideal, there is a single element a∈Ia \in I such that every element of II is a multiple of aa.

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 Z\mathbb{Z}, the subgroup of multiples of 66 and multiples of 99 together, closed under addition and multiplication by any integer, turns out to collapse to the multiples of a single number: gcd⁡(6,9)=3\gcd(6,9) = 3. 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 a,ba, b of an ideal II and you can always divide one by the other with a "smaller" remainder that stays in II, then you can keep shrinking elements of II 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 II, 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 (a,b)(a,b) generated by two elements is principal, say (a,b)=(d)(a,b) = (d); since a,b∈(d)a,b \in (d), dd divides both; and since d∈(a,b)d \in (a,b), d=ra+sbd = ra + sb for some r,s∈Rr,s \in R, so any common divisor of a,ba,b divides dd. This single ideal-theoretic fact is the existence of gcds and Bézout's identity, simultaneously.

Figure
Ideals of Z\mathbb{Z} ordered by divisibility: principal ideals form a lattice controlled by gcd/lcm
Ideals of ℤ: (6), (9), and their sum/intersection (1) = ℤ (3) = (6,9) (6) (9) (18) = (6) ∩ (9)
TheoremEuclidean Domain implies PID

Let RR be a Euclidean domain: an integral domain equipped with a Euclidean function N:R∖{0}→Z≥0N : R \setminus \{0\} \to \mathbb{Z}_{\geq 0} such that for all a,b∈Ra, b \in R with b≠0b \neq 0, there exist q,r∈Rq, r \in R with

a=qb+r,where r=0 or N(r)<N(b).a = qb + r, \qquad \text{where } r = 0 \text{ or } N(r) < N(b).

Then RR is a principal ideal domain.

Proof

The proof technique is well-ordering / minimal counterexample, applied directly to the values of the Euclidean function. Let I⊆RI \subseteq R be an ideal. We must produce d∈Rd \in R with I=(d)I = (d).

Case 1: I={0}I = \{0\}. Then I=(0)I = (0), which is principal, and we are done.

Case 2: I≠{0}I \neq \{0\}. Consider the set

S={N(a):a∈I, a≠0}⊆Z≥0.S = \{ N(a) : a \in I,\ a \neq 0 \} \subseteq \mathbb{Z}_{\geq 0}.

Since I≠{0}I \neq \{0\}, SS is a nonempty subset of Z≥0\mathbb{Z}_{\geq 0}. By the well-ordering principle for Z≥0\mathbb{Z}_{\geq 0}, SS has a least element. Choose d∈I∖{0}d \in I \setminus \{0\} such that N(d)N(d) equals this least element; that is, N(d)≤N(a)N(d) \leq N(a) for every nonzero a∈Ia \in I. We claim I=(d)I = (d). (⊇\supseteq): Since d∈Id \in I and II is an ideal, rd∈Ird \in I for every r∈Rr \in R, so (d)⊆I(d) \subseteq I. (⊆\subseteq): Let a∈Ia \in I be arbitrary. Since RR is Euclidean and d≠0d \neq 0, apply the division algorithm to aa and dd: there exist q,r∈Rq, r \in R with

a=qd+r,r=0 or N(r)<N(d).a = qd + r, \qquad r = 0 \text{ or } N(r) < N(d).

Rearrange: r=a−qdr = a - qd. Now a∈Ia \in I by assumption, and qd∈Iqd \in I because d∈Id \in I and II is an ideal (closed under multiplication by ring elements). Since II is closed under subtraction (it is an additive subgroup, being an ideal), r=a−qd∈Ir = a - qd \in I. Now suppose toward a contradiction that r≠0r \neq 0. Then rr is a nonzero element of II with N(r)<N(d)N(r) < N(d). But N(d)N(d) was chosen to be the minimum of N(x)N(x) over all nonzero x∈Ix \in I, so N(r)<N(d)N(r) < N(d) is impossible for a nonzero r∈Ir \in I. This contradiction forces r=0r = 0. Hence a=qda = qd, so a∈(d)a \in (d). Since a∈Ia \in I was arbitrary, I⊆(d)I \subseteq (d). Combining both inclusions, I=(d)I = (d). Since II was an arbitrary ideal of RR, every ideal of RR is principal, so RR is a PID. ■\blacksquare

∎

:::corollary[Z\mathbb{Z} and F[x]F[x] are PIDs] Z\mathbb{Z} with N(n)=∣n∣N(n) = |n|, and F[x]F[x] for any field FF with N(f)=deg⁡fN(f) = \deg f, are Euclidean domains, hence PIDs.

Proof

That Z\mathbb{Z} is Euclidean via ordinary division with remainder, and F[x]F[x] 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. ■\blacksquare

∎
LemmaIrreducibles generate maximal ideals among proper principal ideals — a divisibility restatement

Let RR be a PID and let p∈Rp \in R be a nonzero non-unit. Then pp is irreducible if and only if (p)(p) is maximal among proper principal ideals of RR; equivalently, pp is irreducible if and only if (p)⊊I⊊R(p) \subsetneq I \subsetneq R has no solution ideal II.

Proof

Recall pp is irreducible if pp is a nonzero non-unit and whenever p=abp = ab, either aa or bb is a unit. (⇒\Rightarrow) Suppose pp is irreducible and suppose (p)⊆I⊆R(p) \subseteq I \subseteq R for some ideal II. Since RR is a PID, I=(a)I = (a) for some a∈Ra \in R. Since p∈(p)⊆(a)p \in (p) \subseteq (a), we may write p=abp = ab for some b∈Rb \in R. Irreducibility of pp forces aa a unit or bb a unit. If aa is a unit, then (a)=R(a) = R, so I=RI = R. If bb is a unit, then a=pb−1∈(p)a = pb^{-1} \in (p), so (a)⊆(p)(a) \subseteq (p); combined with (p)⊆(a)(p) \subseteq (a) we get I=(a)=(p)I = (a) = (p). Thus the only ideals between (p)(p) and RR are (p)(p) itself and RR, i.e. (p)(p) is maximal among proper (principal, hence all, since RR is a PID) ideals. (⇐\Leftarrow) Suppose (p)(p) is maximal among proper ideals and suppose p=abp = ab. Then (p)⊆(a)⊆R(p) \subseteq (a) \subseteq R. By maximality, (a)=(p)(a) = (p) or (a)=R(a) = R. If (a)=R(a) = R, aa is a unit. If (a)=(p)(a) = (p), then a=pca = pc for some c∈Rc \in R, so p=ab=pcbp = ab = pcb, giving p(1−cb)=0p(1 - cb) = 0. Since RR is an integral domain and p≠0p \neq 0, we get cb=1cb = 1, so bb is a unit. Hence pp is irreducible. ■\blacksquare

∎
TheoremIrreducible implies Prime, in a PID

Let RR be a PID and let p∈Rp \in R be irreducible. Then pp is prime: whenever p∣abp \mid ab for a,b∈Ra, b \in R, either p∣ap \mid a or p∣bp \mid b.

Proof

The proof technique is a Bézout identity argument via the ideal (p,a)(p,a). Suppose p∣abp \mid ab but p∤ap \nmid a; we must show p∣bp \mid b. Consider the ideal (p,a)={rp+sa:r,s∈R}(p, a) = \{ rp + sa : r, s \in R \}, the smallest ideal containing both pp and aa (one checks directly this set is closed under addition and under multiplication by any ring element, and contains p,ap, a, so it is an ideal; any ideal containing pp and aa must contain all such combinations). Since RR is a PID, (p,a)=(d)(p,a) = (d) for some d∈Rd \in R. Since p∈(d)p \in (d), d∣pd \mid p. Since pp is irreducible, its only divisors are units and unit multiples of pp itself. So either dd is a unit, or d=upd = up for some unit uu.

Case A: d=upd = up for a unit uu. Then (d)=(p)(d) = (p), so a∈(d)=(p)a \in (d) = (p), meaning p∣ap \mid a. This contradicts our hypothesis that p∤ap \nmid a. So this case cannot occur.

Case B: dd is a unit. Then (d)=R(d) = R, so 1∈(d)=(p,a)1 \in (d) = (p,a). Hence there exist r,s∈Rr, s \in R with

1=rp+sa.1 = rp + sa.

Multiply both sides by bb:

b=rpb+sab.b = rpb + sab.

Now p∣pbp \mid pb trivially (giving p∣rpbp \mid rpb), and p∣abp \mid ab by hypothesis (giving p∣sabp \mid sab). Since pp divides both terms on the right, pp divides their sum, so p∣bp \mid b. Since Case A is impossible, Case B must hold, and we conclude p∣bp \mid b. This proves pp is prime. ■\blacksquare

∎
Corollarygcd exists and satisfies Bézout's identity in a PID

Let RR be a PID and let a,b∈Ra, b \in R, not both zero. Then there exists d∈Rd \in R such that: 1. d∣ad \mid a and d∣bd \mid b (a common divisor), 2. if c∣ac \mid a and c∣bc \mid b then c∣dc \mid d (a greatest common divisor, in the divisibility order), 3. there exist r,s∈Rr, s \in R with d=ra+sbd = ra + sb (Bézout's identity). Moreover dd is unique up to multiplication by a unit.

Proof

The proof technique is direct construction via the ideal (a,b)(a,b), paralleling the lemma above. Let I=(a,b)={ra+sb:r,s∈R}I = (a,b) = \{ ra + sb : r,s \in R\}. This is an ideal (closed under addition and RR-scaling, as a direct check of the defining formula shows), and it is nonzero since a,ba,b are not both zero. Since RR is a PID, I=(d)I = (d) for some d∈Rd \in R, d≠0d \neq 0.

(1) Since a∈I=(d)a \in I = (d), d∣ad \mid a; since b∈I=(d)b \in I = (d), d∣bd \mid b. So dd is a common divisor.

(3) Since d∈(d)=I=(a,b)d \in (d) = I = (a,b), we may write d=ra+sbd = ra + sb for some r,s∈Rr,s \in R. This is Bézout's identity, established simultaneously with the construction, not as an afterthought.

(2) Suppose c∣ac \mid a and c∣bc \mid b, say a=ca′a = c a', b=cb′b = c b'. Then using the identity from (3),

d=ra+sb=r(ca′)+s(cb′)=c(ra′+sb′),d = ra + sb = r(ca') + s(cb') = c(ra' + sb'),

so c∣dc \mid d.

(Uniqueness up to units) Suppose d′d' also satisfies (1) and (2). By (2) applied to dd and the common divisor property of d′d', d′∣dd' \mid d (taking c=d′c = d' in property (2) for dd). Symmetrically, d∣d′d \mid d' (taking c=dc = d in property (2) for d′d'). Mutual divisibility d∣d′d \mid d' and d′∣dd' \mid d in an integral domain implies d′=udd' = ud for some unit uu: write d′=xdd' = xd and d=yd′d = yd', so d=yxdd = yxd, i.e. d(1−yx)=0d(1-yx)=0; since d≠0d\neq 0 and RR is a domain, yx=1yx=1, so xx (and yy) are units. ■\blacksquare

∎

This dd, unique up to a unit multiple, is denoted gcd⁡(a,b)\gcd(a,b).

Worked examples

Example 1: Computing a Bézout identity in Z\mathbb{Z} from the ideal-theoretic proof, with asymmetric inputs. Let R=ZR = \mathbb{Z}, a=252a = 252, b=105b = 105. We find d=gcd⁡(252,105)d = \gcd(252,105) and an explicit Bézout identity d=r⋅252+s⋅105d = r\cdot 252 + s \cdot 105, using exactly the constructive content of the proof above (which relies on the Euclidean algorithm since Z\mathbb{Z} is Euclidean, hence a PID). Run the Euclidean algorithm:

252=2⋅105+42,252 = 2\cdot 105 + 42,
105=2⋅42+21,105 = 2 \cdot 42 + 21,
42=2⋅21+0.42 = 2 \cdot 21 + 0.

The last nonzero remainder is 2121, so gcd⁡(252,105)=21\gcd(252,105) = 21. This matches the theorem: 21∣25221 \mid 252 (252=12⋅21252 = 12\cdot21) and 21∣10521\mid 105 (105=5⋅21105 = 5\cdot 21), and one checks 2121 is indeed the largest such common divisor. Back-substitute to get the Bézout identity:

21=105−2⋅42.21 = 105 - 2\cdot 42.

Substitute 42=252−2⋅10542 = 252 - 2\cdot 105:

21=105−2(252−2⋅105)=105−2⋅252+4⋅105=5⋅105−2⋅252.21 = 105 - 2(252 - 2\cdot 105) = 105 - 2\cdot 252 + 4\cdot 105 = 5\cdot 105 - 2\cdot 252.

So

21=(−2)(252)+(5)(105).21 = (-2)(252) + (5)(105).

Check: (−2)(252)=−504(-2)(252) = -504, (5)(105)=525(5)(105) = 525, and −504+525=21-504 + 525 = 21. Correct. This exhibits d=21d = 21, r=−2r=-2, s=5s=5 concretely, verifying the corollary's construction in a specific asymmetric case (note 252≠105252 \neq 105 and neither divides the other trivially, and the coefficients r,sr,s have opposite sign, as is typical).

Example 2: Irreducible implies prime, verified concretely in F[x]F[x] with F=QF = \mathbb{Q}. Let R=Q[x]R = \mathbb{Q}[x], which is a PID by the Euclidean-implies-PID theorem (with N(f)=deg⁡fN(f) = \deg f). Let

p(x)=x2+1.p(x) = x^2 + 1.

This is irreducible over Q\mathbb{Q}: if it factored as a product of two non-unit polynomials in Q[x]\mathbb{Q}[x], both factors would have degree 11 (degrees sum to 22, and units are precisely nonzero constants), giving a real (rational) root of x2+1x^2+1; but x2+1x^2+1 has no real root since x2+1≥1>0x^2 + 1 \geq 1 > 0 for all x∈Rx \in \mathbb{R}. So p(x)p(x) is irreducible. By the theorem, p(x)p(x) is therefore prime in Q[x]\mathbb{Q}[x]. Let's verify this on a specific instance rather than trust it abstractly. Take

a(x)=x3−x2+x−1,b(x)=x5+2x3+x.a(x) = x^3 - x^2 + x - 1, \qquad b(x) = x^5 + 2x^3 + x.

First, a(x)=x2(x−1)+(x−1)=(x−1)(x2+1)a(x) = x^2(x-1) + (x - 1) = (x-1)(x^2+1), so p(x)∣a(x)p(x) \mid a(x) already — not the interesting case. Instead let's genuinely test p∣abp \mid ab without p∣ap\mid a directly visible, using

a(x)=x−1,b(x)=x5+2x3+x=x(x4+2x2+1)=x(x2+1)2.a(x) = x - 1, \qquad b(x) = x^5 + 2x^3 + x = x(x^4 + 2x^2 + 1) = x(x^2+1)^2.

Here ab=(x−1)⋅x(x2+1)2ab = (x-1)\cdot x (x^2+1)^2, so certainly p(x)=x2+1p(x) = x^2+1 divides abab (it divides bb directly, visibly). To make the test non-trivial, we instead verify the converse direction fails safely: check that p(x)p(x) does not divide a(x)=x−1a(x) = x-1 (consistent with primality: since p∣abp \mid ab and p∣bp \mid b, the theorem imposes no constraint forcing p∣ap \mid a, and indeed it does not). Suppose instead, to genuinely stress-test primality, c(x)=x2−1=(x−1)(x+1)c(x) = x^2 - 1= (x-1)(x+1) and d(x)=x2+2d(x) = x^2+2, and set ab=c⋅d=(x2−1)(x2+2)=x4+x2−2ab = c \cdot d = (x^2-1)(x^2+2) = x^4 + x^2 - 2. Does p(x)=x2+1p(x) = x^2+1 divide x4+x2−2x^4+x^2-2? Perform polynomial division:

x4+x2−2=(x2+1)(x2)+(−x2−2)=(x2+1)(x2)−(x2+1)+(−1)⋅1,x^4 + x^2 - 2 = (x^2+1)(x^2) + (-x^2 - 2) = (x^2+1)(x^2) - (x^2+1) + (-1) \cdot 1,

more carefully:

x4+x2−2÷(x2+1):x4+x2−2=(x2+1)(x2+0)+(0⋅x2−2) — remainder −2,x^4+x^2-2 \div (x^2+1): \quad x^4 + x^2 - 2 = (x^2+1)(x^2 + 0) + (0\cdot x^2 - 2) \text{ — remainder } -2,

so x4+x2−2=(x2+1)x2−2x^4+x^2-2 = (x^2+1)x^2 - 2, remainder −2≠0-2 \neq 0. So p(x)∤c(x)d(x)p(x) \nmid c(x)d(x) here, meaning this pair simply doesn't test the theorem (the hypothesis p∣abp\mid ab 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 p∣abp \mid ab actually holds.

Counterexample

CounterexampleDropping "principal ideal domain" for a general integral domain breaks irreducible ⟹ prime

Consider R=Z[−5]={a+b−5:a,b∈Z}R = \mathbb{Z}[\sqrt{-5}] = \{ a + b\sqrt{-5} : a, b \in \mathbb{Z} \}, an integral domain (it sits inside C\mathbb{C}, which has no zero divisors). We drop the PID hypothesis — RR is not a PID — and show irreducible no longer implies prime. Define the norm N(a+b−5)=a2+5b2∈Z≥0N(a+b\sqrt{-5}) = a^2 + 5b^2 \in \mathbb{Z}_{\geq 0}, which is multiplicative: N(xy)=N(x)N(y)N(xy) = N(x)N(y) for x,y∈Rx,y \in R (direct computation, since N(x)=xxˉN(x) = x\bar x where xˉ\bar x is complex conjugation, and conjugation is a ring homomorphism). Note N(x)=0  ⟺  x=0N(x) = 0 \iff x = 0, and xx is a unit iff N(x)=1N(x) = 1 (if xy=1xy=1 then N(x)N(y)=1N(x)N(y)=1 in Z≥0\mathbb{Z}_{\geq0} forces N(x)=N(y)=1N(x)=N(y)=1; conversely N(x)=1N(x)=1 means xxˉ=1x\bar x = 1 so xx is a unit with inverse xˉ\bar x). Consider the identity

6=2⋅3=(1+−5)(1−−5).6 = 2 \cdot 3 = (1+\sqrt{-5})(1-\sqrt{-5}).

Compute norms: N(2)=4N(2) = 4, N(3)=9N(3) = 9, N(1±−5)=1+5=6N(1\pm\sqrt{-5}) = 1 + 5 = 6.

Claim: 22 is irreducible in RR. If 2=xy2 = xy then N(x)N(y)=N(2)=4N(x)N(y) = N(2) = 4. Since NN takes values in {a2+5b2}\{a^2+5b^2\}, the only values of NN achievable that are ≤4\le 4 are 0,1,40,1,4 (no element has norm 22 or 33, since a2+5b2=2a^2+5b^2=2 or 33 has no integer solutions). So {N(x),N(y)}\{N(x),N(y)\} is {1,4}\{1,4\} or {2,2}\{2,2\}(impossible) — hence {N(x),N(y)}={1,4}\{N(x),N(y)\} = \{1,4\}, meaning one of x,yx,y has norm 11, i.e. is a unit. So 22 is irreducible. The same norm argument (with N=9N=9; no element has norm 33) shows 33 is irreducible, and (with N=6N=6; no element has norm 22 or 33) shows 1±−51\pm\sqrt{-5} are irreducible.

Claim: 22 is not prime. We have 2∣(1+−5)(1−−5)=62 \mid (1+\sqrt{-5})(1-\sqrt{-5}) = 6. If 22 were prime, 22 would divide 1+−51+\sqrt{-5} or 1−−51-\sqrt{-5} in RR. But N(2)=4N(2) = 4 does not divide N(1±−5)=6N(1\pm\sqrt{-5}) = 6 (since 6/4∉Z6/4 \notin \mathbb{Z}), and divisibility 2∣z2 \mid z would force N(2)∣N(z)N(2) \mid N(z) (as NN is multiplicative and integer-valued). So 2∤(1+−5)2 \nmid (1+\sqrt{-5}) and 2∤(1−−5)2 \nmid (1-\sqrt{-5}). Hence 22 is irreducible but not prime. This is only possible because R=Z[−5]R = \mathbb{Z}[\sqrt{-5}] is not a PID: one can show the ideal I=(2,1+−5)I = (2, 1+\sqrt{-5}) is not principal (it satisfies I2=(2)I^2 = (2) in the sense of ideal multiplication, yet no single element generates II, since any generator would need norm dividing both N(2)=4N(2)=4 and N(1+−5)=6N(1+\sqrt{-5})=6, forcing norm 11 or 22, but no element has norm 22, and norm 11 would make I=RI = R, contradicting I≠RI \neq R since 2,1+−52, 1+\sqrt{-5} have no common unit factor forcing I=RI=R — this can be checked directly: I=RI=R would give 2r+(1+−5)s=12r+(1+\sqrt{-5})s=1 for some r,s∈Rr,s\in R, and reducing modulo the prime 22 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

SituationWhat holdsWhat can fail
RR EuclideanRR is a PID (proved above)Not every PID is Euclidean (e.g. Z[1+−192]\mathbb{Z}[\tfrac{1+\sqrt{-19}}{2}] is a PID but admits no Euclidean function)
RR a PIDirreducible   ⟺  \iff prime; gcds exist with Bézout identity; ACC on idealsRR need not be Euclidean; explicit gcd algorithms may not exist
RR a general integral domainprime   ⟹  \implies irreducible alwaysirreducible   ⟹  \implies prime can fail (see counterexample)
RR a fieldevery nonzero ideal is RR itself, so RR is (vacuously) a PIDthere are no irreducibles or primes to discuss (every nonzero element is a unit)
(0)(0) idealalways principal, generated by 00do 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
RD
Richard Dedekind
1831–1916 · Göttingen, foundational algebraic number theory

Dedekind's work on ideals in rings of algebraic integers, developed to restore unique factorization where it visibly fails (as in Z[−5]\mathbb{Z}[\sqrt{-5}]), 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 Z[−5]\mathbb{Z}[\sqrt{-5}] tractable, and singled out PIDs as the special rings where element-factorization already suffices.

History
- 1871 — Dedekind introduces the term "ideal" and develops ideal theory for rings of integers in number fields, motivated by failures of unique factorization.
- 1882 — Dedekind and Weber extend ideal-theoretic methods to function fields, foreshadowing the ring-theoretic generality later formalized.
- 1897 — Kürschák and others study general Euclidean-style division algorithms in abstract settings, isolating the mechanism behind the PID property.
- 1921 — Emmy Noether's paper on ideal theory in general rings formalizes ascending chain conditions, embedding PIDs inside the broader theory of Noetherian Rings.
- 1949 — Oscar Zariski and Pierre Samuel's Commutative Algebra systematizes the modern PID/UFD hierarchy used in algebra courses today.
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 R=Z[1+−192]R = \mathbb{Z}\left[\frac{1+\sqrt{-19}}{2}\right], which is a PID (this requires deeper number-theoretic input, related to the ring of integers of Q(−19)\mathbb{Q}(\sqrt{-19}) 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 Z\mathbb{Z} and F[x]F[x]) 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 (p,a)(p,a) is principal, say (p,a)=(d)(p,a) = (d), to conclude dd is either a unit or an associate of pp. This dichotomy relies on knowing (p,a)(p, a) has a single generator whose divisibility relationship with pp can be analyzed via irreducibility. In a general integral domain, (p,a)(p,a) may not be principal at all, so there is no such dd to analyze, and the Bézout identity 1=rp+sa1 = rp+sa that powers the rest of the proof simply may not exist. The counterexample Z[−5]\mathbb{Z}[\sqrt{-5}] 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 I=(a)=(b)I = (a) = (b), then a∣ba \mid b and b∣ab \mid a, and in an integral domain this mutual divisibility forces b=uab = ua for some unit uu. For example, in Z\mathbb{Z}, (5)=(−5)(5) = (-5) since −5=(−1)⋅5-5 = (-1)\cdot 5 and −1-1 is a unit. In F[x]F[x], (x−1)=(2x−2)(x-1) = (2x-2) since 22 is a unit in FF (assuming FF is a field). So "the" generator is really an equivalence class under units, often normalized (e.g., to be positive in Z\mathbb{Z}, or monic in F[x]F[x]).

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 Z\mathbb{Z}, the ideal-theoretic gcd dd satisfying (d)=(a,b)(d) = (a,b) is unique up to sign; choosing the nonnegative representative recovers the familiar elementary-school gcd. The ideal-theoretic proof additionally guarantees, for free, that dd can be written as ra+sbra+sb for integers r,sr,s — 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 1≠01 \neq 0 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 d(1−yx)=0d(1-yx) = 0 no longer forces yx=1yx=1.

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.

Before this

Where this leads