Introduction to Modern Algebra

Contents › Chapter 12. Unique factorization

12.3 Principal ideal domains and Euclidean domains

In Z\mathbb{Z}, unique factorization rests on Euclid’s lemma, and Euclid’s lemma rests on Bézout’s identity: the combinations ax+byax + by of two integers are the multiples of one number, gcd⁡(a,b)\gcd(a, b) (Theorem 2.3.2). In the language of ideals, every ideal of Z\mathbb{Z} is principal (Theorem 10.5.2), and so is every ideal of F[x]F[x] (Theorem 11.3.1). Z[i]\mathbb{Z}[i] has the same property, for the same reason: it too has a division with remainder.

Principal ideal domains

Definition 12.3.1 (Principal ideal domain).

An integral domain RR is a principal ideal domain, or PID, if every ideal of RR is principal: each ideal II is (a)={ra:r∈R}(a) = \{ra : r \in R\} for some a∈Ra \in R.

So in a PID, as in Z\mathbb{Z}, any two elements aa and bb have a greatest common divisor: a common divisor dd of aa and bb that every common divisor of aa and bb divides. A generator dd of the ideal (a,b)(a, b) is one: aa and bb lie in (d)(d), so dd divides both; and dd lies in (a,b)(a, b), so Bézout’s identity d=ra+sbd = ra + sb holds for some r,s∈Rr, s \in R, and every common divisor of aa and bb divides dd. Two greatest common divisors divide each other, so they are associates (Definition 12.1.1), and the greatest common divisor is unique only up to associates. One of the two non-examples, Z[−5]\mathbb{Z}[\sqrt{-5}], is also the ring in which unique factorization failed.

Euclidean domains

The proofs for Z\mathbb{Z} and for F[x]F[x] share one move: divide by an element of least size, and the remainder is too small to be anything but 00. Division with remainder in Z\mathbb{Z} and in F[x]F[x] (Theorem 11.2.1) are the two cases of one definition.

Definition 12.3.2 (Euclidean domain).

An integral domain RR is a Euclidean domain if there is a function δ\delta from the non-zero elements of RR to the integers 0,1,2,…0, 1, 2, \dots, a size function, such that for all a,b∈Ra, b \in R with b≠0b \neq 0 there are q,r∈Rq, r \in R with

a=qb+r,r=0 or δ(r)<δ(b).a = qb + r, \quad r = 0 \text{ or } \delta(r) < \delta(b).
Theorem 12.3.3 (Euclidean domains are PIDs).

Let RR be a Euclidean domain with size function δ\delta, and let II be a non-zero ideal of RR. Then I=(b)I = (b) for every non-zero b∈Ib \in I with δ(b)\delta(b) as small as possible. Since also {0}=(0)\{0\} = (0), every Euclidean domain is a PID.

Proof.

The idea is to divide any element of II by bb: the remainder lies in II and is smaller than bb, so it is 00.

The sizes of the non-zero elements of II are non-negative integers, so some non-zero b∈Ib \in I has the least size. Since b∈Ib \in I and II absorbs multiplication, (b)⊆I(b) \subseteq I.

Conversely, let a∈Ia \in I. As RR is Euclidean, a=qb+ra = qb + r with r=0r = 0 or δ(r)<δ(b)\delta(r) < \delta(b). Here r=a−qbr = a - qb lies in II, because aa and qbqb do. A non-zero rr would be an element of II smaller than bb, so r=0r = 0 and a=qb∈(b)a = qb \in (b). So I=(b)I = (b). □

For Z\mathbb{Z} this is the proof that every subgroup of Z\mathbb{Z} is nZn\mathbb{Z} (Theorem 2.3.1), and for F[x]F[x] the proof of Theorem 11.3.1: both are this theorem for a particular size function.

The Gaussian integers

In Z[i]\mathbb{Z}[i] there is no obvious remainder, but there is a size, the norm N(a+bi)=a2+b2N(a + bi) = a^2 + b^2, the square of the distance from 00 to a+bia + bi.

Theorem 12.3.4 (The Gaussian integers are Euclidean).

For all z,w∈Z[i]z, w \in \mathbb{Z}[i] with w≠0w \neq 0 there are q,r∈Z[i]q, r \in \mathbb{Z}[i] with

z=qw+r,N(r)≤12N(w).z = qw + r, \quad N(r) \le \tfrac{1}{2}N(w).

So Z[i]\mathbb{Z}[i] is a Euclidean domain with size function the norm NN, and therefore a PID.

Proof.

Idea. Divide in C\mathbb{C} and round the quotient to the nearest Gaussian integer.

  1. Rounding z/wz/w gives q,r∈Z[i]q, r \in \mathbb{Z}[i] with z=qw+rz = qw + r.

    Divide in C\mathbb{C}: z/w=s+tiz/w = s + ti for real numbers ss and tt. Choose integers mm and nn with ∣s−m∣≤12\lvert s - m\rvert \le \tfrac{1}{2} and ∣t−n∣≤12\lvert t - n\rvert \le \tfrac{1}{2}, and put q=m+niq = m + ni and r=z−qwr = z - qw. Both lie in Z[i]\mathbb{Z}[i], and z=qw+rz = qw + r.

  2. N(r)≤12N(w)N(r) \le \tfrac{1}{2}N(w).

    For a Gaussian integer, N(a+bi)=a2+b2=∣a+bi∣2N(a + bi) = a^2 + b^2 = \lvert a + bi\rvert^2, and absolute values of complex numbers multiply. So

    N(r)=∣w∣2 ∣z/w−q∣2=N(w)((s−m)2+(t−n)2)≤N(w)(14+14).\begin{aligned} N(r) &= \lvert w\rvert^2 \, \lvert z/w - q\rvert^2 \\ &= N(w)\bigl((s - m)^2 + (t - n)^2\bigr) \\ &\le N(w)\bigl(\tfrac{1}{4} + \tfrac{1}{4}\bigr). \end{aligned}
  3. NN is a size function, and Z[i]\mathbb{Z}[i] is a PID.

    The norm takes non-negative integer values, and N(w)≥1N(w) \ge 1 for w≠0w \neq 0 (Proposition 12.1.3). So r=0r = 0 or N(r)≤12N(w)<N(w)N(r) \le \tfrac{1}{2}N(w) < N(w), and Z[i]\mathbb{Z}[i] is a PID by Theorem 12.3.3.

□
Example 12.3.5 (The first principal ideal domains).

Each of these rings is Euclidean, and so a PID by Theorem 12.3.3:

  • Z\mathbb{Z}, with size ∣a∣\lvert a\rvert;
  • F[x]F[x] for a field FF, with size deg⁡f\deg f;
  • Z[i]\mathbb{Z}[i], with size the norm (Theorem 12.3.4).

For Z\mathbb{Z} and F[x]F[x] this recovers Theorem 10.5.2 and Theorem 11.3.1 as one theorem. Not every integral domain is a PID: Z[x]\mathbb{Z}[x] is not, since (2,x)(2, x) is not principal, and neither is Z[−5]\mathbb{Z}[\sqrt{-5}].

So any two elements of Z[i]\mathbb{Z}[i] have a greatest common divisor, a common divisor that every common divisor divides, unique up to the units ±1\pm 1, ±i\pm i. It is found by the Euclidean algorithm with rounded quotients, exactly as in Z\mathbb{Z}.