Skip to main content
Logo image

Section 18.2 Factorization in Integral Domains

The building blocks of the integers are the prime numbers. If F is a field, then irreducible polynomials in F[x] play a role that is very similar to that of the prime numbers in the ring of integers. Given an arbitrary integral domain, we are led to the following series of definitions.
Let R be a commutative ring with identity, and let a and b be elements in R. We say that a divides b, and write ab, if there exists an element cR such that b=ac. A unit in R is an element that has a multiplicative inverse. Two elements a and b in R are said to be associates if there exists a unit u in R such that a=ub.
Let D be an integral domain. A nonzero element pD that is not a unit is said to be irreducible provided that whenever p=ab, either a or b is a unit. Furthermore, p is prime if whenever pab either pa or pb.

Example 18.8.

It is important to notice that prime and irreducible elements do not always coincide. Let R be the subring (with identity) of Q[x,y] generated by x2, y2, and xy. Each of these elements is irreducible in R; however, xy is not prime, since xy divides x2y2 but does not divide either x2 or y2.
The Fundamental Theorem of Arithmetic states that every positive integer n>1 can be factored into a product of prime numbers p1pk, where the pi’s are not necessarily distinct. We also know that such factorizations are unique up to the order of the pi’s. We can easily extend this result to the integers. The question arises of whether or not such factorizations are possible in other rings. Generalizing this definition, we say an integral domain D is a unique factorization domain, or UFD, if D satisfies the following criteria.
  1. Let aD such that a0 and a is not a unit. Then a can be written as the product of irreducible elements in D.
  2. Let a=p1pr=q1qs, where the pi’s and the qi’s are irreducible. Then r=s and there is a πSr such that pi and qπ(j) are associates for j=1,,r.

Example 18.9.

The integers are a unique factorization domain by the Fundamental Theorem of Arithmetic.

Example 18.10.

Not every integral domain is a unique factorization domain. The subring Z[3i]={a+b3i} of the complex numbers is an integral domain (Exercise 16.7.12, Chapter 16). Let z=a+b3i and define ν:Z[3i]N{0} by ν(z)=|z|2=a2+3b2. It is clear that ν(z)0 with equality when z=0. Also, from our knowledge of complex numbers we know that ν(zw)=ν(z)ν(w). It is easy to show that if ν(z)=1, then z is a unit, and that the only units of Z[3i] are 1 and 1.
We claim that 4 has two distinct factorizations into irreducible elements:
4=22=(13i)(1+3i).
We must show that each of these factors is an irreducible element in Z[3i]. If 2 is not irreducible, then 2=zw for elements z,w in Z[3i] where ν(z)=ν(w)=2. However, there does not exist an element in z in Z[3i] such that ν(z)=2 because the equation a2+3b2=2 has no integer solutions. Therefore, 2 must be irreducible. A similar argument shows that both 13i and 1+3i are irreducible. Since 2 is not a unit multiple of either 13i or 1+3i, 4 has at least two distinct factorizations into irreducible elements.

Subsection Principal Ideal Domains

Let R be a commutative ring with identity. Recall that a principal ideal generated by aR is an ideal of the form a={ra:rR}. An integral domain in which every ideal is principal is called a principal ideal domain, or PID.

Proof.

(1) Suppose that ab. Then b=ax for some xD. Hence, for every r in D, br=(ax)r=a(xr) and ba. Conversely, suppose that ba. Then ba. Consequently, b=ax for some xD. Thus, ab.
(2) Since a and b are associates, there exists a unit u such that a=ub. Therefore, ba and ab. Similarly, ba. It follows that a=b. Conversely, suppose that a=b. By part (1), ab and ba. Then a=bx and b=ay for some x,yD. Therefore, a=bx=ayx. Since D is an integral domain, xy=1; that is, x and y are units and a and b are associates.
(3) An element aD is a unit if and only if a is an associate of 1. However, a is an associate of 1 if and only if a=1=D.

Proof.

Suppose that p is a maximal ideal. If some element a in D divides p, then pa. Since p is maximal, either D=a or p=a. Consequently, either a and p are associates or a is a unit. Therefore, p is irreducible.
Conversely, let p be irreducible. If a is an ideal in D such that paD, then ap. Since p is irreducible, either a must be a unit or a and p are associates. Therefore, either D=a or p=a. Thus, p is a maximal ideal.

Proof.

Let p be irreducible and suppose that pab. Then abp. By Corollary 16.40, since p is a maximal ideal, p must also be a prime ideal. Thus, either ap or bp. Hence, either pa or pb.

Proof.

We claim that I=i=1Ii is an ideal of D. Certainly I is not empty, since I1I and 0I. If a,bI, then aIi and bIj for some i and j in N. Without loss of generality we can assume that ij. Hence, a and b are both in Ij and so ab is also in Ij. Now let rD and aI. Again, we note that aIi for some positive integer i. Since Ii is an ideal, raIi and hence must be in I. Therefore, we have shown that I is an ideal in D.
Since D is a principal ideal domain, there exists an element aD that generates I. Since a is in IN for some NN, we know that IN=I=a. Consequently, In=IN for nN.
Any commutative ring satisfying the condition in Lemma 18.14 is said to satisfy the ascending chain condition, or ACC. Such rings are called Noetherian rings, after Emmy Noether.

Proof.

Existence of a factorization.
Let D be a PID and a be a nonzero element in D that is not a unit. If a is irreducible, then we are done. If not, then there exists a factorization a=a1b1, where neither a1 nor b1 is a unit. Hence, aa1. By Lemma 18.11, we know that aa1; otherwise, a and a1 would be associates and b1 would be a unit, which would contradict our assumption. Now suppose that a1=a2b2, where neither a2 nor b2 is a unit. By the same argument as before, a1a2. We can continue with this construction to obtain an ascending chain of ideals
aa1a2.
By Lemma 18.14, there exists a positive integer N such that an=aN for all nN. Consequently, aN must be irreducible. We have now shown that a is the product of two elements, one of which must be irreducible.
Now suppose that a=c1p1, where p1 is irreducible. If c1 is not a unit, we can repeat the preceding argument to conclude that ac1. Either c1 is irreducible or c1=c2p2, where p2 is irreducible and c2 is not a unit. Continuing in this manner, we obtain another chain of ideals
ac1c2.
This chain must satisfy the ascending chain condition; therefore,
a=p1p2pr
for irreducible elements p1,,pr.
Uniqueness of the factorization.
To show uniqueness, let
a=p1p2pr=q1q2qs,
where each pi and each qi is irreducible. Without loss of generality, we can assume that r<s. Since p1 divides q1q2qs, by Corollary 18.13 it must divide some qi. By rearranging the qi’s, we can assume that p1q1; hence, q1=u1p1 for some unit u1 in D. Therefore,
a=p1p2pr=u1p1q2qs
or
p2pr=u1q2qs.
Continuing in this manner, we can arrange the qi’s such that p2=q2,p3=q3,,pr=qr, to obtain
u1u2urqr+1qs=1.
In this case qr+1qs is a unit, which contradicts the fact that qr+1,,qs are irreducibles. Therefore, r=s and the factorization of a is unique.

Example 18.17.

Every PID is a UFD, but it is not the case that every UFD is a PID. In Corollary 18.31, we will prove that Z[x] is a UFD. However, Z[x] is not a PID. Let I={5f(x)+xg(x):f(x),g(x)Z[x]}. We can easily show that I is an ideal of Z[x]. Suppose that I=p(x). Since 5I, 5=f(x)p(x). In this case p(x)=p must be a constant. Since xI, x=pg(x); consequently, p=±1. However, it follows from this fact that p(x)=Z[x]. But this would mean that 3 is in I. Therefore, we can write 3=5f(x)+xg(x) for some f(x) and g(x) in Z[x]. Examining the constant term of this polynomial, we see that 3=5f(x), which is impossible.

Subsection Euclidean Domains

We have repeatedly used the division algorithm when proving results about either Z or F[x], where F is a field. We should now ask when a division algorithm is available for an integral domain.
Let D be an integral domain such that there is a function ν:D{0}N0=N{0} satisfying the following conditions.
  1. If a and b are nonzero elements in D, then ν(a)ν(ab).
  2. Let a,bD and suppose that b0. Then there exist elements q,rD such that a=bq+r and either r=0 or ν(r)<ν(b).
Then D is called a Euclidean domain and ν is called a Euclidean valuation.

Example 18.18.

Absolute value on Z is a Euclidean valuation.

Example 18.19.

Let F be a field. Then the degree of a polynomial in F[x] is a Euclidean valuation.

Example 18.20.

Recall that the Gaussian integers in Example 16.12 of Chapter 16 are defined by
Z[i]={a+bi:a,bZ}.
We usually measure the size of a complex number a+bi by its absolute value,. |a+bi|=a2+b2; however, a2+b2 may not be an integer. For our valuation we will let ν(a+bi)=a2+b2 to ensure that we have an integer.
We claim that ν(a+bi)=a2+b2 is a Euclidean valuation on Z[i]. Let z,wZ[i]. Then ν(zw)=|zw|2=|z|2|w|2=ν(z)ν(w). Since ν(z)1 for every nonzero zZ[i], ν(z)ν(z)ν(w).
Next, we must show that for any z=a+bi and w=c+di in Z[i] with w0, there exist elements q and r in Z[i] such that z=qw+r with either r=0 or ν(r)<ν(w). We can view z and w as elements in Q(i)={p+qi:p,qQ}, the field of fractions of Z[i]. Observe that
zw1=(a+bi)cdic2+d2=ac+bdc2+d2+bcadc2+d2i=(m1+n1c2+d2)+(m2+n2c2+d2)i=(m1+m2i)+(n1c2+d2+n2c2+d2i)=(m1+m2i)+(s+ti)
in Q(i). In the last steps we are writing the real and imaginary parts as an integer plus a proper fraction. That is, we take the closest integer mi such that the fractional part satisfies |ni/(a2+b2)|1/2. For example, we write
98=1+18158=218.
Thus, s and t are the “fractional parts” of zw1=(m1+m2i)+(s+ti). We also know that s2+t21/4+1/4=1/2. Multiplying by w, we have
z=zw1w=w(m1+m2i)+w(s+ti)=qw+r,
where q=m1+m2i and r=w(s+ti). Since z and qw are in Z[i], r must be in Z[i]. Finally, we need to show that either r=0 or ν(r)<ν(w). However,
ν(r)=ν(w)ν(s+ti)12ν(w)<ν(w).

Proof.

Let D be a Euclidean domain and let ν be a Euclidean valuation on D. Suppose I is a nontrivial ideal in D and choose a nonzero element bI such that ν(b) is minimal for all aI. Since D is a Euclidean domain, there exist elements q and r in D such that a=bq+r and either r=0 or ν(r)<ν(b). But r=abq is in I since I is an ideal; therefore, r=0 by the minimality of b. It follows that a=bq and I=b.

Subsection Factorization in D[x]

One of the most important polynomial rings is Z[x]. One of the first questions that come to mind about Z[x] is whether or not it is a UFD. We will prove a more general statement here. Our first task is to obtain a more general version of Gauss’s Lemma (Theorem 17.14).
Let D be a unique factorization domain and suppose that
p(x)=anxn++a1x+a0
in D[x]. Then the content of p(x) is the greatest common divisor of a0,,an. We say that p(x) is primitive if gcd(a0,,an)=1.

Example 18.23.

In Z[x] the polynomial p(x)=5x43x3+x4 is a primitive polynomial since the greatest common divisor of the coefficients is 1; however, the polynomial q(x)=4x26x+8 is not primitive since the content of q(x) is 2.

Proof.

Let f(x)=i=0maixi and g(x)=i=0nbixi. Suppose that p is a prime dividing the coefficients of f(x)g(x). Let r be the smallest integer such that par and s be the smallest integer such that pbs. The coefficient of xr+s in f(x)g(x) is
cr+s=a0br+s+a1br+s1++ar+s1b1+ar+sb0.
Since p divides a0,,ar1 and b0,,bs1, p divides every term of cr+s except for the term arbs. However, since pcr+s, either p divides ar or p divides bs. But this is impossible.

Proof.

Let p(x)=cp1(x) and q(x)=dq1(x), where c and d are the contents of p(x) and q(x), respectively. Then p1(x) and q1(x) are primitive. We can now write p(x)q(x)=cdp1(x)q1(x). Since p1(x)q1(x) is primitive, the content of p(x)q(x) must be cd.

Proof.

Let a and b be nonzero elements of D such that af(x),bg(x) are in D[x]. We can find a1,b1D such that af(x)=a1f1(x) and bg(x)=b1g1(x), where f1(x) and g1(x) are primitive polynomials in D[x]. Therefore, abp(x)=(a1f1(x))(b1g1(x)). Since f1(x) and g1(x) are primitive polynomials, it must be the case that aba1b1 by Gauss’s Lemma. Thus there exists a cD such that p(x)=cf1(x)g1(x). Clearly, degf(x)=degf1(x) and degg(x)=degg1(x).
The following corollaries are direct consequences of Lemma 18.26.

Proof.

Let p(x) be a nonzero polynomial in D[x]. If p(x) is a constant polynomial, then it must have a unique factorization since D is a UFD. Now suppose that p(x) is a polynomial of positive degree in D[x]. Let F be the field of fractions of D, and let p(x)=f1(x)f2(x)fn(x) by a factorization of p(x), where each fi(x) is irreducible. Choose aiD such that aifi(x) is in D[x]. There exist b1,,bnD such that aifi(x)=bigi(x), where gi(x) is a primitive polynomial in D[x]. By Corollary 18.27, each gi(x) is irreducible in D[x]. Consequently, we can write
a1anp(x)=b1bng1(x)gn(x).
Let b=b1bn. Since g1(x)gn(x) is primitive, a1an divides b. Therefore, p(x)=ag1(x)gn(x), where aD. Since D is a UFD, we can factor a as uc1ck, where u is a unit and each of the ci’s is irreducible in D.
We will now show the uniqueness of this factorization. Let
p(x)=a1amf1(x)fn(x)=b1brg1(x)gs(x)
be two factorizations of p(x), where all of the factors are irreducible in D[x]. By Corollary 18.27, each of the fi’s and gi’s is irreducible in F[x]. The ai’s and the bi’s are units in F. Since F[x] is a PID, it is a UFD; therefore, n=s. Now rearrange the gi(x)’s so that fi(x) and gi(x) are associates for i=1,,n. Then there exist c1,,cn and d1,,dn in D such that (ci/di)fi(x)=gi(x) or cifi(x)=digi(x). The polynomials fi(x) and gi(x) are primitive; hence, ci and di are associates in D. Thus, a1am=ub1br in D, where u is a unit in D. Since D is a unique factorization domain, m=s. Finally, we can reorder the bi’s so that ai and bi are associates for each i. This completes the uniqueness part of the proof.
The theorem that we have just proven has several obvious but important corollaries.

Remark 18.33.

It is important to notice that every Euclidean domain is a PID and every PID is a UFD. However, the converse of each of these statements fails. There are principal ideal domains that are not Euclidean domains, and there are unique factorization domains that are not principal ideal domains (Z[x]).

Subsection Historical Note

Karl Friedrich Gauss, born in Brunswick, Germany on April 30, 1777, is considered to be one of the greatest mathematicians who ever lived. Gauss was truly a child prodigy. At the age of three he was able to detect errors in the books of his father’s business. Gauss entered college at the age of 15. Before the age of 20, Gauss was able to construct a regular 17-sided polygon with a ruler and compass. This was the first new construction of a regular n-sided polygon since the time of the ancient Greeks. Gauss succeeded in showing that if N=22n+1 was prime, then it was possible to construct a regular N-sided polygon.
Gauss obtained his Ph.D. in 1799 under the direction of Pfaff at the University of Helmstedt. In his dissertation he gave the first complete proof of the Fundamental Theorem of Algebra, which states that every polynomial with real coefficients can be factored into linear factors over the complex numbers. The acceptance of complex numbers was brought about by Gauss, who was the first person to use the notation of i for 1.
Gauss then turned his attention toward number theory; in 1801, he published his famous book on number theory, Disquisitiones Arithmeticae. Throughout his life Gauss was intrigued with this branch of mathematics. He once wrote, “Mathematics is the queen of the sciences, and the theory of numbers is the queen of mathematics.”
In 1807, Gauss was appointed director of the Observatory at the University of Göttingen, a position he held until his death. This position required him to study applications of mathematics to the sciences. He succeeded in making contributions to fields such as astronomy, mechanics, optics, geodesy, and magnetism. Along with Wilhelm Weber, he coinvented the first practical electric telegraph some years before a better version was invented by Samuel F. B. Morse.
Gauss was clearly the most prominent mathematician in the world in the early nineteenth century. His status naturally made his discoveries subject to intense scrutiny. Gauss’s cold and distant personality many times led him to ignore the work of his contemporaries, making him many enemies. He did not enjoy teaching very much, and young mathematicians who sought him out for encouragement were often rebuffed. Nevertheless, he had many outstanding students, including Eisenstein, Riemann, Kummer, Dirichlet, and Dedekind. Gauss also offered a great deal of encouragement to Sophie Germain (1776–1831), who overcame the many obstacles facing women in her day to become a very prominent mathematician. Gauss died at the age of 78 in Göttingen on February 23, 1855.