Groups have one operation. Most of the algebra you already use has two: integers, polynomials and matrices can be added and multiplied, and the distributive law ties the two together. A structure with both is a ring. This post builds ring theory the same way posts 01–03 built group theory: definitions and examples, then substructures (ideals play the role of normal subgroups), quotients and a First Isomorphism Theorem. Two questions then drive the rest. Which rings behave like Z\mathbb{Z}, with unique factorisation? And how do you manufacture new fields, such as C\mathbb{C} or a field with 4 elements? The answer to the second, "take polynomials modulo an irreducible polynomial", is the starting point of Galois theory in post 05.

Series map: 00 Integers, Relations & Modular Arithmetic → 01 Groups & Subgroups → 02 Cosets, Lagrange & Quotient Groups → 03 Homomorphisms, Group Actions & Sylow → 04 Rings, Ideals & Fields (this post) → 05 Field Extensions & Galois Theory.


Learning Outcome

  • State the ring axioms (with identity), and recognise units, zero divisors, integral domains and fields.
  • Prove that a finite integral domain is a field and that the characteristic of a domain is 0 or a prime.
  • Define ring homomorphisms, ideals and quotient rings, and prove the First Isomorphism Theorem for rings.
  • Prove that R/PR/P is a domain exactly when PP is prime, and R/MR/M is a field exactly when MM is maximal.
  • Use the division algorithm in F[x]F[x] and prove that F[x]F[x] is a principal ideal domain.
  • Test polynomials for irreducibility: roots, the rational root test, Eisenstein's criterion, reduction mod pp.
  • Place a ring in the chain Euclidean domain ⊂ PID ⊂ UFD ⊂ integral domain, and show that Z[−5]\mathbb{Z}[\sqrt{-5}] is not a UFD.
  • Build C\mathbb{C} as R[x]/(x2+1)\mathbb{R}[x]/(x^2+1) and the finite fields F4\mathbb{F}_4 and F8\mathbb{F}_8, and compute in them.

Chapter 1 — Rings

Terminology

  • Ring — a set RR with two operations ++ and ⋅\cdot such that:
    1. (R,+)(R, +) is an abelian group, with identity 00 and inverses −a-a;
    2. multiplication is associative: (ab)c=a(bc)(ab)c = a(bc);
    3. there is a multiplicative identity 11 with 1a=a1=a1a = a1 = a;
    4. the distributive laws hold: a(b+c)=ab+aca(b + c) = ab + ac and (a+b)c=ac+bc(a + b)c = ac + bc.
  • Convention. In this series every ring has a 11 (some books call these "rings with unity" and allow rings without one). Multiplication need not be commutative.
  • Commutative ring — a ring with ab=baab = ba for all a,ba, b.
  • Zero ring — {0}\{0\} with 1=01 = 0. It is the only ring in which 1=01 = 0 (if 1=01 = 0 then a=1a=0a=0a = 1a = 0a = 0).
  • Unit — an element uu with a two-sided inverse: uv=vu=1uv = vu = 1. The units form a group R×R^\times under multiplication.
  • Zero divisor — a nonzero aa for which some nonzero bb has ab=0ab = 0 or ba=0ba = 0.
  • Integral domain — a commutative ring with 1≠01 \ne 0 and no zero divisors.
  • Field — a commutative ring with 1≠01 \ne 0 in which every nonzero element is a unit.
  • Division ring — like a field but not necessarily commutative (the quaternions are the standard example).

Examples

Ring Commutative? Units Zero divisors?
Z\mathbb{Z} yes ±1\pm 1 none (domain)
Q,R,C\mathbb{Q}, \mathbb{R}, \mathbb{C} yes all nonzero none (fields)
Z/nZ\mathbb{Z}/n\mathbb{Z} yes classes with gcd⁡(a,n)=1\gcd(a, n) = 1 yes, unless nn is prime
M2(R)M_2(\mathbb{R}), 2×22\times 2 real matrices no matrices with det⁡≠0\det \ne 0 yes
R[x]\mathbb{R}[x], real polynomials yes nonzero constants none
Z[i]={a+bi:a,b∈Z}\mathbb{Z}[i] = \{a + bi : a, b \in \mathbb{Z}\} yes ±1,±i\pm 1, \pm i none
C[0,1]C[0,1], continuous functions, pointwise operations yes functions with no zero yes

A few of the entries, worked out:

  • Z/12Z\mathbb{Z}/12\mathbb{Z}. The units are 1,5,7,111, 5, 7, 11 (coprime to 12; each is its own inverse, e.g. 5⋅5=25≡15 \cdot 5 = 25 \equiv 1). Every other nonzero class is a zero divisor: 2⋅6=12≡02 \cdot 6 = 12 \equiv 0, 3⋅4≡03 \cdot 4 \equiv 0, 8⋅3≡08 \cdot 3 \equiv 0, and so on, giving 2,3,4,6,8,9,102, 3, 4, 6, 8, 9, 10. In Z/nZ\mathbb{Z}/n\mathbb{Z} every nonzero element is either a unit or a zero divisor: if d=gcd⁡(a,n)>1d = \gcd(a, n) > 1, then a⋅(n/d)≡0a \cdot (n/d) \equiv 0 with n/d≢0n/d \not\equiv 0.
  • Matrices. (1000)(0001)=(0000)\begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}\begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix} = \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix}, although neither factor is zero.
  • Gaussian integers. Use the norm N(a+bi)=a2+b2=(a+bi)(a−bi)N(a + bi) = a^2 + b^2 = (a+bi)(a-bi), which is multiplicative: N(zw)=N(z)N(w)N(zw) = N(z)N(w). If uv=1uv = 1 then N(u)N(v)=1N(u)N(v) = 1 in the positive integers, so N(u)=1N(u) = 1, and a2+b2=1a^2 + b^2 = 1 leaves ±1,±i\pm 1, \pm i.
  • Functions. Let ff be zero on [0,12][0, \tfrac12] and gg zero on [12,1][\tfrac12, 1], both continuous and not identically zero (for example f(t)=max⁡(0,t−12)f(t) = \max(0, t - \tfrac12), g(t)=max⁡(0,12−t)g(t) = \max(0, \tfrac12 - t)). Then fg=0fg = 0.

First consequences of the axioms

For all a,ba, b in a ring:

  1. 0⋅a=a⋅0=00 \cdot a = a \cdot 0 = 0. Proof: 0a=(0+0)a=0a+0a0a = (0 + 0)a = 0a + 0a; subtract 0a0a from both sides.
  2. (−a)b=a(−b)=−(ab)(-a)b = a(-b) = -(ab). Proof: ab+(−a)b=(a+(−a))b=0b=0ab + (-a)b = (a + (-a))b = 0b = 0.
  3. (−a)(−b)=ab(-a)(-b) = ab, and in particular (−1)2=1(-1)^2 = 1.

Cancellation. In an integral domain, if a≠0a \ne 0 and ab=acab = ac then b=cb = c, because a(b−c)=0a(b - c) = 0 forces b−c=0b - c = 0. This is exactly what fails in Z/12Z\mathbb{Z}/12\mathbb{Z}: 2⋅1=2⋅72 \cdot 1 = 2 \cdot 7 but 1≠71 \ne 7.

Every field is an integral domain: if a≠0a \ne 0 and ab=0ab = 0, then b=a−1ab=0b = a^{-1}ab = 0. The converse fails (Z\mathbb{Z}), except for finite rings:

Theorem. A finite integral domain is a field.

Proof. Let RR be a finite domain and a≠0a \ne 0. The map μa:R→R\mu_a : R \to R, x↦axx \mapsto ax, is injective by cancellation. An injective map from a finite set to itself is surjective, so ax=1ax = 1 for some xx. Since RR is commutative, xx is a two-sided inverse. ∎

Corollary. Z/nZ\mathbb{Z}/n\mathbb{Z} is a field if and only if nn is prime. (If n=abn = ab with 1<a,b<n1 < a, b < n, then aa and bb are zero divisors. If n=pn = p is prime, Z/pZ\mathbb{Z}/p\mathbb{Z} has no zero divisors because p∣abp \mid ab implies p∣ap \mid a or p∣bp \mid b, post 00; so it is a finite domain.) This field is written Fp\mathbb{F}_p.

Characteristic

The characteristic of a ring RR is the least n≥1n \ge 1 with n⋅1=1+1+⋯+1=0n \cdot 1 = 1 + 1 + \cdots + 1 = 0 (nn terms), or 00 if there is no such nn. So char⁡Z=char⁡Q=0\operatorname{char}\mathbb{Z} = \operatorname{char}\mathbb{Q} = 0 and char⁡Z/nZ=n\operatorname{char}\mathbb{Z}/n\mathbb{Z} = n.

Theorem. The characteristic of an integral domain is 00 or a prime.

Proof. Suppose char⁡R=n>0\operatorname{char} R = n > 0 and n=abn = ab with 1≤a,b<n1 \le a, b < n. Then 0=n⋅1=(a⋅1)(b⋅1)0 = n \cdot 1 = (a \cdot 1)(b \cdot 1). In a domain one factor is 00, contradicting the minimality of nn. And n≠1n \ne 1 because 1≠01 \ne 0. ∎

Watch out: characteristic is about n⋅1n \cdot 1, not about the size of the ring. The infinite field Fp(t)\mathbb{F}_p(t) of rational functions over Fp\mathbb{F}_p has characteristic pp.


Chapter 2 — Homomorphisms, ideals and quotient rings

Terminology

  • Subring — a subset S⊆RS \subseteq R containing 11 that is closed under ++, −- and ⋅\cdot. Example: Z⊂Z[i]⊂C\mathbb{Z} \subset \mathbb{Z}[i] \subset \mathbb{C}.
  • Ring homomorphism — a map φ:R→S\varphi : R \to S with φ(a+b)=φ(a)+φ(b)\varphi(a + b) = \varphi(a) + \varphi(b), φ(ab)=φ(a)φ(b)\varphi(ab) = \varphi(a)\varphi(b) and φ(1)=1\varphi(1) = 1.
  • Kernel — ker⁡φ={a:φ(a)=0}\ker\varphi = \{a : \varphi(a) = 0\}.
  • Ideal — an additive subgroup I⊆RI \subseteq R that absorbs multiplication: ra∈Ir a \in I and ar∈Ia r \in I for all r∈Rr \in R, a∈Ia \in I. (For commutative rings one condition suffices.)
  • Principal ideal — in a commutative ring, (a)=aR={ra:r∈R}(a) = aR = \{ra : r \in R\}, the smallest ideal containing aa. More generally (a1,…,ak)={r1a1+⋯+rkak}(a_1, \dots, a_k) = \{r_1a_1 + \cdots + r_ka_k\}.

Examples of homomorphisms: reduction Z→Z/nZ\mathbb{Z} \to \mathbb{Z}/n\mathbb{Z}; evaluation R[x]→C\mathbb{R}[x] \to \mathbb{C}, f↦f(i)f \mapsto f(i); complex conjugation C→C\mathbb{C} \to \mathbb{C}; the inclusion of a subring.

Ideals are the kernels

Theorem. The kernel of a ring homomorphism is an ideal.

Proof. It is an additive subgroup, being the kernel of a homomorphism of additive groups (post 03). If φ(a)=0\varphi(a) = 0 then φ(ra)=φ(r)⋅0=0\varphi(ra) = \varphi(r) \cdot 0 = 0 and φ(ar)=0\varphi(ar) = 0. ∎

Ideals are to rings what normal subgroups are to groups: exactly the things you can take a quotient by. Two quick facts:

  • If an ideal II contains a unit uu, then I=RI = R: for any rr, r=(ru−1)u∈Ir = (ru^{-1})u \in I. So a proper ideal contains no units, and in particular does not contain 11.
  • A commutative ring RR with 1≠01 \ne 0 is a field if and only if its only ideals are {0}\{0\} and RR. (If RR is a field, any nonzero ideal contains a unit. Conversely, for a≠0a \ne 0, (a)=R∋1(a) = R \ni 1, so ra=1ra = 1 for some rr.) Consequently every ring homomorphism from a field to a nonzero ring is injective: its kernel is a proper ideal (it misses 1), hence {0}\{0\}.

Theorem. Every ideal of Z\mathbb{Z} is nZ=(n)n\mathbb{Z} = (n) for a unique n≥0n \ge 0.

Proof. Let I≠{0}I \ne \{0\} and let nn be the least positive element of II. For a∈Ia \in I divide: a=qn+ra = qn + r with 0≤r<n0 \le r < n. Then r=a−qn∈Ir = a - qn \in I, so r=0r = 0 by minimality, and a∈(n)a \in (n). ∎

In Z\mathbb{Z}, (a,b)=(gcd⁡(a,b))(a, b) = (\gcd(a, b)): for example (4,6)=(2)(4, 6) = (2). This is Bézout's identity from post 00 in ideal language.

Quotient rings

Let II be an ideal of RR. The additive cosets a+Ia + I form an abelian group R/IR/I (post 02). Define multiplication by (a+I)(b+I)=ab+I(a + I)(b + I) = ab + I.

Well defined. If a′=a+ia' = a + i and b′=b+jb' = b + j with i,j∈Ii, j \in I, then a′b′=ab+(aj+ib+ij)a'b' = ab + (aj + ib + ij), and the bracket lies in II because II absorbs multiplication. This is precisely where "ideal" (rather than just "subring") is needed. The ring axioms for R/IR/I follow from those of RR, with 1+I1 + I as identity, and π:R→R/I\pi : R \to R/I, a↦a+Ia \mapsto a + I, is a surjective homomorphism with kernel II.

Theorem (First Isomorphism Theorem for rings). If φ:R→S\varphi : R \to S is a ring homomorphism, then R/ker⁡φ≅im⁡φR/\ker\varphi \cong \operatorname{im}\varphi via a+ker⁡φ↦φ(a)a + \ker\varphi \mapsto \varphi(a).

Proof. By the group version (post 03) the map φˉ\bar\varphi is a well-defined isomorphism of additive groups. It is multiplicative: φˉ((a+K)(b+K))=φˉ(ab+K)=φ(ab)=φ(a)φ(b)\bar\varphi((a + K)(b + K)) = \bar\varphi(ab + K) = \varphi(ab) = \varphi(a)\varphi(b); and φˉ(1+K)=φ(1)=1\bar\varphi(1 + K) = \varphi(1) = 1. ∎

Worked applications:

  • Z[x]/(x)≅Z\mathbb{Z}[x]/(x) \cong \mathbb{Z}. Evaluation at 0, f↦f(0)f \mapsto f(0), is surjective, and its kernel is the polynomials with zero constant term, which is (x)(x).
  • R[x]/(x2+1)≅C\mathbb{R}[x]/(x^2 + 1) \cong \mathbb{C}. Evaluation at ii is surjective (a+bx↦a+bia + bx \mapsto a + bi). Its kernel contains x2+1x^2 + 1; Chapter 6 shows that (x2+1)(x^2 + 1) is a maximal ideal, so the kernel (a proper ideal containing it) is exactly (x2+1)(x^2 + 1).
  • Z[x]/(2,x)≅Z/2Z\mathbb{Z}[x]/(2, x) \cong \mathbb{Z}/2\mathbb{Z}. The map f↦f(0) mod 2f \mapsto f(0) \bmod 2 is surjective with kernel {f:f(0) even}=(2,x)\{f : f(0) \text{ even}\} = (2, x).
  • Chinese Remainder Theorem. If gcd⁡(m,n)=1\gcd(m, n) = 1, the map Z→Z/m×Z/n\mathbb{Z} \to \mathbb{Z}/m \times \mathbb{Z}/n, a↦(a mod m,a mod n)a \mapsto (a \bmod m, a \bmod n), is a surjective ring homomorphism (surjective by post 00's CRT) with kernel (m)∩(n)=(mn)(m) \cap (n) = (mn). So Z/mnZ≅Z/mZ×Z/nZ\mathbb{Z}/mn\mathbb{Z} \cong \mathbb{Z}/m\mathbb{Z} \times \mathbb{Z}/n\mathbb{Z} as rings, and taking units gives ϕ(mn)=ϕ(m)ϕ(n)\phi(mn) = \phi(m)\phi(n) for Euler's function.

Trick: the fastest way to understand R/IR/I is again to find a surjective homomorphism out of RR whose kernel is II. Evaluation maps are the usual candidates for polynomial rings.


Chapter 3 — Prime and maximal ideals

From here on, "ring" means commutative ring with 11.

Terminology

  • Prime ideal — a proper ideal PP such that ab∈Pab \in P implies a∈Pa \in P or b∈Pb \in P.
  • Maximal ideal — a proper ideal MM such that no ideal lies strictly between MM and RR: if M⊆J⊆RM \subseteq J \subseteq R then J=MJ = M or J=RJ = R.

In Z\mathbb{Z}: (p)(p) for a prime pp is prime (this is Euclid's lemma) and maximal; (0)(0) is prime (because Z\mathbb{Z} is a domain) but not maximal, since (0)⊊(2)⊊Z(0) \subsetneq (2) \subsetneq \mathbb{Z}; (6)(6) is neither, since 2⋅3∈(6)2 \cdot 3 \in (6) but 2,3∉(6)2, 3 \notin (6).

The two quotient theorems

Theorem. PP is a prime ideal of RR if and only if R/PR/P is an integral domain.

Proof. R/PR/P is not the zero ring exactly when 1∉P1 \notin P, i.e. when PP is proper. In R/PR/P, the product (a+P)(b+P)=ab+P(a + P)(b + P) = ab + P is zero exactly when ab∈Pab \in P, and a+Pa + P is zero exactly when a∈Pa \in P. So "no zero divisors in R/PR/P" says word for word "ab∈P⇒a∈Pab \in P \Rightarrow a \in P or b∈Pb \in P". ∎

Theorem. MM is a maximal ideal of RR if and only if R/MR/M is a field.

Proof. (⇒\Rightarrow) Let a+M≠0a + M \ne 0, i.e. a∉Ma \notin M. The ideal M+(a)={m+ra}M + (a) = \{m + ra\} strictly contains MM, so by maximality it is RR and contains 11: 1=m+ra1 = m + ra for some m∈Mm \in M, r∈Rr \in R. Then (r+M)(a+M)=ra+M=1−m+M=1+M(r + M)(a + M) = ra + M = 1 - m + M = 1 + M, so a+Ma + M is a unit. Also 1+M≠01 + M \ne 0 because MM is proper.

(⇐\Leftarrow) If R/MR/M is a field, MM is proper. Let M⊊JM \subsetneq J and pick a∈J∖Ma \in J \setminus M. Then a+Ma + M has an inverse r+Mr + M, so ra−1∈M⊆Jra - 1 \in M \subseteq J. Since ra∈Jra \in J, also 1∈J1 \in J and J=RJ = R. ∎

Corollary. Every maximal ideal is prime (a field is a domain).

Examples in Z[x]\mathbb{Z}[x].

  • (x)(x) is prime but not maximal: Z[x]/(x)≅Z\mathbb{Z}[x]/(x) \cong \mathbb{Z} is a domain but not a field. Indeed (x)⊊(2,x)⊊Z[x](x) \subsetneq (2, x) \subsetneq \mathbb{Z}[x].
  • (2,x)(2, x) is maximal: Z[x]/(2,x)≅Z/2Z\mathbb{Z}[x]/(2, x) \cong \mathbb{Z}/2\mathbb{Z}, a field.
  • (x2+1)(x^2 + 1) is prime but not maximal: Z[x]/(x2+1)≅Z[i]\mathbb{Z}[x]/(x^2+1) \cong \mathbb{Z}[i], a domain that is not a field.

A standard existence result (it needs Zorn's lemma): every proper ideal of a ring with 11 is contained in a maximal ideal.


Chapter 4 — Polynomial rings over a field

Let FF be a field. F[x]F[x] is the ring of polynomials a0+a1x+⋯+anxna_0 + a_1x + \cdots + a_nx^n with ai∈Fa_i \in F. If an≠0a_n \ne 0, the degree is nn and ana_n is the leading coefficient; the polynomial is monic if an=1a_n = 1. The zero polynomial has no degree (some books use −∞-\infty).

Degree, units, roots

If RR is a domain, the leading coefficient of fgfg is the product of the leading coefficients, which is nonzero. Hence, for nonzero f,gf, g:

deg⁡(fg)=deg⁡f+deg⁡g,\deg(fg) = \deg f + \deg g,

R[x]R[x] is again a domain, and the units of F[x]F[x] are the nonzero constants (a unit ff has deg⁡f+deg⁡f−1=0\deg f + \deg f^{-1} = 0).

Theorem (division algorithm). For f,g∈F[x]f, g \in F[x] with g≠0g \ne 0 there are unique q,r∈F[x]q, r \in F[x] with f=qg+rf = qg + r and either r=0r = 0 or deg⁡r<deg⁡g\deg r < \deg g.

Proof sketch. Existence by induction on deg⁡f\deg f: if deg⁡f≥deg⁡g=m\deg f \ge \deg g = m, subtract (an/bm) xn−mg(a_n/b_m)\,x^{n-m}g to kill the leading term of ff and apply induction to the result. Dividing by bmb_m is where a field is used. Uniqueness: if qg+r=q′g+r′qg + r = q'g + r' then (q−q′)g=r′−r(q - q')g = r' - r; the right side has degree <m< m, so q=q′q = q' by the degree formula, and then r=r′r = r'. ∎

Worked example. Divide f=x4+3x3−2x+5f = x^4 + 3x^3 - 2x + 5 by g=x2+x+1g = x^2 + x + 1 in Q[x]\mathbb{Q}[x]:

x4+3x3−2x+5=(x2+x+1)(x2+2x−3)+(8−x).x^4 + 3x^3 - 2x + 5 = (x^2 + x + 1)(x^2 + 2x - 3) + (8 - x).

(Check: (x2+x+1)(x2+2x−3)=x4+3x3−x−3(x^2 + x + 1)(x^2 + 2x - 3) = x^4 + 3x^3 - x - 3, and adding 8−x8 - x gives ff.)

Factor theorem. aa is a root of ff if and only if (x−a)∣f(x - a) \mid f (divide by x−ax - a; the remainder is the constant f(a)f(a)). So a nonzero polynomial of degree nn over a domain has at most nn roots.

Common pitfall: over a ring with zero divisors this fails. In Z/8Z\mathbb{Z}/8\mathbb{Z}, x2−1x^2 - 1 has four roots: 1,3,5,71, 3, 5, 7 (each squares to 11 mod 8).

F[x] is a principal ideal domain

A principal ideal domain (PID) is an integral domain in which every ideal is principal.

Theorem. If FF is a field, F[x]F[x] is a PID.

Proof. Let I≠{0}I \ne \{0\} be an ideal and let g∈Ig \in I be nonzero of least degree. For f∈If \in I write f=qg+rf = qg + r. Then r=f−qg∈Ir = f - qg \in I and, if r≠0r \ne 0, deg⁡r<deg⁡g\deg r < \deg g, contradicting minimality. So r=0r = 0 and I=(g)I = (g). ∎

The proof is the one for Z\mathbb{Z} with "size" replaced by "degree". As in Z\mathbb{Z}, (f,g)=(gcd⁡(f,g))(f, g) = (\gcd(f, g)), and the Euclidean algorithm computes the gcd:

x6−1=x2 (x4−1)+(x2−1),x4−1=(x2+1)(x2−1)+0,\begin{aligned} x^6 - 1 &= x^2\,(x^4 - 1) + (x^2 - 1), \\ x^4 - 1 &= (x^2 + 1)(x^2 - 1) + 0, \end{aligned}

so gcd⁡(x6−1,x4−1)=x2−1\gcd(x^6 - 1, x^4 - 1) = x^2 - 1.

Watch out: Z[x]\mathbb{Z}[x] is not a PID, although Z\mathbb{Z} is. Suppose (2,x)=(h)(2, x) = (h). Then h∣2h \mid 2, so hh is a constant ±1\pm 1 or ±2\pm 2. h=±1h = \pm 1 is impossible because (2,x)(2, x) is proper (its quotient is Z/2\mathbb{Z}/2). h=±2h = \pm 2 is impossible because x∉(2)x \notin (2).

Irreducibility tests

A nonzero non-unit f∈F[x]f \in F[x] is irreducible if it is not a product of two polynomials of smaller degree. Irreducible polynomials are the "primes" of F[x]F[x], and whether ff is irreducible depends on the field: x2−2x^2 - 2 is irreducible over Q\mathbb{Q} but factors as (x−2)(x+2)(x - \sqrt2)(x + \sqrt2) over R\mathbb{R}; x2+1x^2 + 1 is irreducible over R\mathbb{R} but not over C\mathbb{C}.

  1. Degree 2 or 3. A polynomial of degree 2 or 3 over a field is irreducible if and only if it has no root in the field (any factorisation includes a linear factor).
  2. Rational root test. If f=anxn+⋯+a0∈Z[x]f = a_nx^n + \cdots + a_0 \in \mathbb{Z}[x] and p/qp/q in lowest terms is a root, then p∣a0p \mid a_0 and q∣anq \mid a_n.
  3. Gauss's lemma. A polynomial in Z[x]\mathbb{Z}[x] that factors in Q[x]\mathbb{Q}[x] into factors of lower degree already factors in Z[x]\mathbb{Z}[x] into factors of those same degrees. So it suffices to look for integer factorisations.
  4. Eisenstein's criterion. Let f=anxn+⋯+a0∈Z[x]f = a_nx^n + \cdots + a_0 \in \mathbb{Z}[x] and pp a prime with p∤anp \nmid a_n, p∣aip \mid a_i for all i<ni < n, and p2∤a0p^2 \nmid a_0. Then ff is irreducible in Q[x]\mathbb{Q}[x].
  5. Reduction mod pp. Let f∈Z[x]f \in \mathbb{Z}[x] and let pp be a prime not dividing the leading coefficient. If the reduction fˉ∈Fp[x]\bar f \in \mathbb{F}_p[x] is irreducible (of the same degree), then ff is irreducible in Q[x]\mathbb{Q}[x].

Worked examples:

  • x3−2x^3 - 2: Eisenstein with p=2p = 2. Also, the rational root test leaves only ±1,±2\pm 1, \pm 2, none of which is a root.
  • x3+2x+1x^3 + 2x + 1: candidates ±1\pm 1 give 44 and −2-2, so no rational root; degree 3, so irreducible over Q\mathbb{Q}.
  • x5−4x+2x^5 - 4x + 2: Eisenstein with p=2p = 2 (2∣−42 \mid -4, 2∣22 \mid 2, 4∤24 \nmid 2). This polynomial returns in post 05.
  • Cyclotomic polynomial Φ5(x)=x4+x3+x2+x+1=(x5−1)/(x−1)\Phi_5(x) = x^4 + x^3 + x^2 + x + 1 = (x^5 - 1)/(x - 1). Eisenstein does not apply directly, but f(x)f(x) is irreducible exactly when f(x+1)f(x+1) is, and
    Φ5(x+1)=x4+5x3+10x2+10x+5\Phi_5(x + 1) = x^4 + 5x^3 + 10x^2 + 10x + 5, which is Eisenstein at 55.
  • x4+5x3+3x2+7x+11x^4 + 5x^3 + 3x^2 + 7x + 11: reduce mod 2 to x4+x3+x2+x+1x^4 + x^3 + x^2 + x + 1, which is irreducible in F2[x]\mathbb{F}_2[x]. So the original is irreducible over Q\mathbb{Q}.

Common pitfall: "no rational roots" proves irreducibility only in degree 2 and 3. x4+4x^4 + 4 has no rational root, yet x4+4=(x2+2x+2)(x2−2x+2)x^4 + 4 = (x^2 + 2x + 2)(x^2 - 2x + 2).

Common pitfall: the reduction test only works one way. x2+1x^2 + 1 is irreducible over Q\mathbb{Q}, but mod 2 it is (x+1)2(x + 1)^2. A reducible reduction proves nothing; so does a failed Eisenstein check.


Chapter 5 — Unique factorisation

Terminology

In an integral domain RR:

  • aa divides bb, written a∣ba \mid b, if b=acb = ac for some c∈Rc \in R.
  • aa and bb are associates if a=uba = ub for a unit uu (for example 22 and −2-2 in Z\mathbb{Z}, or 1+i1 + i and i(1+i)=−1+ii(1+i) = -1 + i in Z[i]\mathbb{Z}[i]).
  • A nonzero non-unit pp is irreducible if p=abp = ab forces aa or bb to be a unit.
  • A nonzero non-unit pp is prime if p∣abp \mid ab forces p∣ap \mid a or p∣bp \mid b (equivalently, (p)(p) is a prime ideal).
  • Unique factorisation domain (UFD) — a domain in which every nonzero non-unit is a product of irreducibles, uniquely up to order and associates.
  • Euclidean domain — a domain with a function N:R∖{0}→Z≥0N : R \setminus \{0\} \to \mathbb{Z}_{\ge 0} such that for all aa and b≠0b \ne 0 there are q,rq, r with a=qb+ra = qb + r and r=0r = 0 or N(r)<N(b)N(r) < N(b).

Prime implies irreducible in any domain: if pp is prime and p=abp = ab, then p∣abp \mid ab, say p∣ap \mid a, so a=pca = pc and p=pcbp = pcb; cancelling gives cb=1cb = 1, so bb is a unit. The converse holds in a UFD (and so in a PID) but fails in general, which is exactly how unique factorisation breaks.

The hierarchy

fields⊂Euclidean domains⊂PIDs⊂UFDs⊂integral domains.\text{fields} \subset \text{Euclidean domains} \subset \text{PIDs} \subset \text{UFDs} \subset \text{integral domains}.

  • Euclidean ⇒ PID: the proof that F[x]F[x] is a PID works verbatim with NN in place of degree.
  • PID ⇒ UFD: a standard theorem (existence uses the fact that increasing chains of ideals in a PID stop; uniqueness uses "irreducible ⇒ prime" in a PID).
  • Every inclusion is strict, as the diagram's examples show.

Nested classes of commutative rings: fields inside Euclidean domains inside PIDs inside UFDs inside integral domains inside commutative rings, each band labelled with an example that belongs to it but not to the next class inside

Gaussian integers are Euclidean

Take N(a+bi)=a2+b2N(a + bi) = a^2 + b^2. To divide α\alpha by β\beta, compute α/β\alpha/\beta in C\mathbb{C} and round each coordinate to the nearest integer to get qq; the rounding error has both coordinates at most 12\tfrac12, so N(α/β−q)≤14+14<1N(\alpha/\beta - q) \le \tfrac14 + \tfrac14 < 1 and r=α−qβr = \alpha - q\beta has N(r)<N(β)N(r) < N(\beta).

Worked example. Divide 7+2i7 + 2i by 2−i2 - i:

7+2i2−i=(7+2i)(2+i)5=12+11i5=2.4+2.2i.\frac{7 + 2i}{2 - i} = \frac{(7 + 2i)(2 + i)}{5} = \frac{12 + 11i}{5} = 2.4 + 2.2i.

Round to q=2+2iq = 2 + 2i. Then r=(7+2i)−(2+2i)(2−i)=(7+2i)−(6+2i)=1r = (7 + 2i) - (2 + 2i)(2 - i) = (7 + 2i) - (6 + 2i) = 1, and N(1)=1<N(2−i)=5N(1) = 1 < N(2 - i) = 5. So Z[i]\mathbb{Z}[i] is a PID and a UFD.

A domain without unique factorisation

Let R=Z[−5]={a+b−5:a,b∈Z}R = \mathbb{Z}[\sqrt{-5}] = \{a + b\sqrt{-5} : a, b \in \mathbb{Z}\} with norm N(a+b−5)=a2+5b2N(a + b\sqrt{-5}) = a^2 + 5b^2, again multiplicative. In RR,

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

  • Norms. N(2)=4N(2) = 4, N(3)=9N(3) = 9, N(1±−5)=1+5=6N(1 \pm \sqrt{-5}) = 1 + 5 = 6.
  • Units. N(u)=1N(u) = 1 forces a2+5b2=1a^2 + 5b^2 = 1, so u=±1u = \pm 1.
  • All four factors are irreducible. A proper factor of an element of norm 4, 9 or 6 would have norm 2 or 3. But a2+5b2=2a^2 + 5b^2 = 2 or 33 has no integer solutions (b≠0b \ne 0 gives at least 5; b=0b = 0 needs a2∈{2,3}a^2 \in \{2, 3\}).
  • The factorisations really differ. 22 is not an associate of 1±−51 \pm \sqrt{-5} (the only units are ±1\pm 1, and the norms 4 and 6 differ).

So RR is not a UFD. Equivalently, 22 is irreducible but not prime: 2∣(1+−5)(1−−5)2 \mid (1 + \sqrt{-5})(1 - \sqrt{-5}), but 22 divides neither factor, since (1±−5)/2∉R(1 \pm \sqrt{-5})/2 \notin R.

The other separating examples, stated without proof: Z[x]\mathbb{Z}[x] and F[x,y]F[x, y] are UFDs (Gauss: RR a UFD implies R[x]R[x] a UFD) but not PIDs, as shown for (2,x)(2, x) above; and Z[1+−192]\mathbb{Z}\big[\tfrac{1 + \sqrt{-19}}{2}\big] is a PID that is not Euclidean (Dummit & Foote, §8.1–8.2).


Chapter 6 — Building fields from polynomials

Theorem. Let FF be a field and p∈F[x]p \in F[x] nonconstant. Then F[x]/(p)F[x]/(p) is a field if and only if pp is irreducible.

Proof. In a PID, (p)(p) is maximal exactly when pp is irreducible. If pp is irreducible and (p)⊆(h)(p) \subseteq (h), then h∣ph \mid p, so hh is a unit (and (h)(h) is everything) or an associate of pp (and (h)=(p)(h) = (p)). If p=abp = ab with a,ba, b of lower degree, then (p)⊊(a)⊊F[x](p) \subsetneq (a) \subsetneq F[x]. Now apply "maximal ⇔ quotient is a field" from Chapter 3. ∎

What the elements look like. By the division algorithm every class has exactly one representative of degree <n=deg⁡p< n = \deg p. So F[x]/(p)F[x]/(p) is an nn-dimensional vector space over FF with basis 1,α,…,αn−11, \alpha, \dots, \alpha^{n-1}, where α=x+(p)\alpha = x + (p) is a root of pp. If F=FqF = \mathbb{F}_q is finite, the field has qnq^n elements. To multiply, multiply polynomials and reduce with p(α)=0p(\alpha) = 0; to invert, use the extended Euclidean algorithm (since gcd⁡(f,p)=1\gcd(f, p) = 1, there are s,ts, t with sf+tp=1sf + tp = 1, so s=f−1s = f^{-1}).

The complex numbers

x2+1x^2 + 1 has no real root, so it is irreducible over R\mathbb{R} and R[x]/(x2+1)\mathbb{R}[x]/(x^2 + 1) is a field whose elements are a+bαa + b\alpha with α2=−1\alpha^2 = -1:

(a+bα)(c+dα)=ac+(ad+bc)α+bd α2=(ac−bd)+(ad+bc)α.(a + b\alpha)(c + d\alpha) = ac + (ad + bc)\alpha + bd\,\alpha^2 = (ac - bd) + (ad + bc)\alpha.

That is exactly complex multiplication, and the evaluation map of Chapter 2 is the isomorphism with C\mathbb{C}. Example: (3+2α)(1−α)=3−3α+2α−2α2=5−α(3 + 2\alpha)(1 - \alpha) = 3 - 3\alpha + 2\alpha - 2\alpha^2 = 5 - \alpha, matching (3+2i)(1−i)=5−i(3 + 2i)(1 - i) = 5 - i.

A field with 4 elements

Over F2\mathbb{F}_2, x2+x+1x^2 + x + 1 has no root (0↦10 \mapsto 1, 1↦11 \mapsto 1), so it is irreducible and F4=F2[x]/(x2+x+1)\mathbb{F}_4 = \mathbb{F}_2[x]/(x^2 + x + 1) is a field with elements 0,1,α,α+10, 1, \alpha, \alpha + 1 and the rule α2=α+1\alpha^2 = \alpha + 1 (since −1=1-1 = 1 in characteristic 2).

Addition (coefficients add mod 2):

++ 00 11 α\alpha α+1\alpha+1
00 00 11 α\alpha α+1\alpha+1
11 11 00 α+1\alpha+1 α\alpha
α\alpha α\alpha α+1\alpha+1 00 11
α+1\alpha+1 α+1\alpha+1 α\alpha 11 00

Multiplication:

×\times 00 11 α\alpha α+1\alpha+1
00 00 00 00 00
11 00 11 α\alpha α+1\alpha+1
α\alpha 00 α\alpha α+1\alpha+1 11
α+1\alpha+1 00 α+1\alpha+1 11 α\alpha

Two entries in detail: α(α+1)=α2+α=(α+1)+α=1\alpha(\alpha + 1) = \alpha^2 + \alpha = (\alpha + 1) + \alpha = 1, and (α+1)2=α2+2α+1=α2+1=α(\alpha + 1)^2 = \alpha^2 + 2\alpha + 1 = \alpha^2 + 1 = \alpha. Every nonzero element has an inverse, and the multiplicative group {1,α,α+1}\{1, \alpha, \alpha + 1\} is cyclic of order 3.

Common pitfall: F4\mathbb{F}_4 is not Z/4Z\mathbb{Z}/4\mathbb{Z}. In Z/4Z\mathbb{Z}/4\mathbb{Z}, 2⋅2=02 \cdot 2 = 0, so it is not even a domain. The additive group of F4\mathbb{F}_4 is Z/2×Z/2\mathbb{Z}/2 \times \mathbb{Z}/2, not Z/4\mathbb{Z}/4.

A field with 8 elements

x3+x+1x^3 + x + 1 has no root in F2\mathbb{F}_2 (0↦10 \mapsto 1, 1↦11 \mapsto 1), so, being cubic, it is irreducible, and F8=F2[x]/(x3+x+1)\mathbb{F}_8 = \mathbb{F}_2[x]/(x^3 + x + 1) has 23=82^3 = 8 elements c0+c1α+c2α2c_0 + c_1\alpha + c_2\alpha^2 with α3=α+1\alpha^3 = \alpha + 1. The powers of α\alpha run through all 7 nonzero elements:

kk 0 1 2 3 4 5 6
αk\alpha^k 11 α\alpha α2\alpha^2 α+1\alpha + 1 α2+α\alpha^2 + \alpha α2+α+1\alpha^2 + \alpha + 1 α2+1\alpha^2 + 1

and α7=α⋅α6=α3+α=1\alpha^7 = \alpha \cdot \alpha^6 = \alpha^3 + \alpha = 1. This "log table" makes multiplication easy: αi⋅αj=α(i+j) mod 7\alpha^i \cdot \alpha^j = \alpha^{(i + j) \bmod 7}. For example (1+α)−1=(α3)−1=α4=α2+α(1 + \alpha)^{-1} = (\alpha^3)^{-1} = \alpha^4 = \alpha^2 + \alpha; check: (1+α)(α2+α)=α3+α=1(1 + \alpha)(\alpha^2 + \alpha) = \alpha^3 + \alpha = 1.

Post 05 proves that for every prime power pnp^n there is exactly one field of that size, up to isomorphism.


Practice Exercises

1. List the units and the zero divisors of Z/15Z\mathbb{Z}/15\mathbb{Z}.

Solution

Units are the classes coprime to 15: 1,2,4,7,8,11,13,141, 2, 4, 7, 8, 11, 13, 14 (there are ϕ(15)=8\phi(15) = 8). The other nonzero classes, 3,5,6,9,10,123, 5, 6, 9, 10, 12, are zero divisors: for example 3⋅5=15≡03 \cdot 5 = 15 \equiv 0 and 6⋅5=30≡06 \cdot 5 = 30 \equiv 0.

2. Show that (x)(x) is a prime ideal of Q[x]\mathbb{Q}[x] that is also maximal, while in Z[x]\mathbb{Z}[x] it is prime but not maximal. What changes?

Solution

Evaluation at 0 gives Q[x]/(x)≅Q\mathbb{Q}[x]/(x) \cong \mathbb{Q}, a field, so (x)(x) is maximal in Q[x]\mathbb{Q}[x]. The same map gives Z[x]/(x)≅Z\mathbb{Z}[x]/(x) \cong \mathbb{Z}, a domain but not a field, so (x)(x) is prime but not maximal in Z[x]\mathbb{Z}[x]; indeed (x)⊊(2,x)(x) \subsetneq (2, x). What changed is the coefficient ring: the quotient is the coefficient ring itself.

3. Decide whether x3+2x+1x^3 + 2x + 1 is irreducible over Q\mathbb{Q} and over F3\mathbb{F}_3.

Solution

Over Q\mathbb{Q}: the rational root test leaves ±1\pm 1, giving values 44 and −2-2; no root, degree 3, so irreducible. Over F3\mathbb{F}_3: f(0)=1f(0) = 1, f(1)=4≡1f(1) = 4 \equiv 1, f(2)=13≡1f(2) = 13 \equiv 1; no root, so irreducible, and F3[x]/(x3+2x+1)\mathbb{F}_3[x]/(x^3 + 2x + 1) is a field with 2727 elements.

4. Use Eisenstein's criterion to show x4+10x+5x^4 + 10x + 5 is irreducible over Q\mathbb{Q}. Why does "it has no rational root" not suffice on its own?

Solution

With p=5p = 5: 5∤15 \nmid 1 (leading coefficient), 55 divides 0,0,10,50, 0, 10, 5, and 25∤525 \nmid 5. So it is irreducible. Absence of roots only rules out linear factors; a quartic could still split into two quadratics, as x4+4x^4 + 4 does.

5. In F4=F2[x]/(x2+x+1)\mathbb{F}_4 = \mathbb{F}_2[x]/(x^2 + x + 1), compute α3\alpha^3, (α+1)2(\alpha + 1)^2 and α−1\alpha^{-1}.

Solution

α3=α⋅α2=α(α+1)=α2+α=1\alpha^3 = \alpha \cdot \alpha^2 = \alpha(\alpha + 1) = \alpha^2 + \alpha = 1. (α+1)2=α2+1=α(\alpha + 1)^2 = \alpha^2 + 1 = \alpha (the cross term 2α2\alpha is 00). Since α(α+1)=1\alpha(\alpha + 1) = 1, α−1=α+1\alpha^{-1} = \alpha + 1.

6. Show that 33 is irreducible but not prime in Z[−5]\mathbb{Z}[\sqrt{-5}], using 9=(2+−5)(2−−5)9 = (2 + \sqrt{-5})(2 - \sqrt{-5}).

Solution

N(3)=9N(3) = 9. A proper factor would have norm 3, and a2+5b2=3a^2 + 5b^2 = 3 has no integer solution, so 33 is irreducible. Next, (2+−5)(2−−5)=4+5=9(2 + \sqrt{-5})(2 - \sqrt{-5}) = 4 + 5 = 9, so 33 divides this product. But 33 divides neither factor, since (2±−5)/3∉Z[−5](2 \pm \sqrt{-5})/3 \notin \mathbb{Z}[\sqrt{-5}]. So 33 is not prime.

7. Show that Z[i]/(2+i)≅Z/5Z\mathbb{Z}[i]/(2 + i) \cong \mathbb{Z}/5\mathbb{Z}.

Solution

Let ψ:Z→Z[i]/(2+i)\psi : \mathbb{Z} \to \mathbb{Z}[i]/(2 + i) be the natural map. It is surjective: i≡−2i \equiv -2 modulo (2+i)(2 + i), so a+bi≡a−2ba + bi \equiv a - 2b, an integer. Its kernel contains 5=(2+i)(2−i)5 = (2 + i)(2 - i). If an integer nn lies in (2+i)(2 + i), then n=(2+i)γn = (2 + i)\gamma and n2=N(n)=5N(γ)n^2 = N(n) = 5N(\gamma), so 5∣n25 \mid n^2 and 5∣n5 \mid n. So the kernel is 5Z5\mathbb{Z}, and the First Isomorphism Theorem gives Z/5Z≅Z[i]/(2+i)\mathbb{Z}/5\mathbb{Z} \cong \mathbb{Z}[i]/(2 + i).


Cheat-sheet

Concept Key fact
Ring (this series) abelian group under ++, associative ⋅\cdot with 11, distributive
Unit / zero divisor invertible / nonzero with ab=0ab = 0 for some nonzero bb
Integral domain commutative, 1≠01 \ne 0, no zero divisors; cancellation holds
Field every nonzero element a unit; finite domain is a field
Characteristic least nn with n⋅1=0n \cdot 1 = 0; a domain has 0 or a prime
Ideal additive subgroup absorbing multiplication; exactly the kernels
First Isomorphism Theorem R/ker⁡φ≅im⁡φR/\ker\varphi \cong \operatorname{im}\varphi
Prime ideal R/PR/P is a domain
Maximal ideal R/MR/M is a field; maximal implies prime
F[x]F[x] division algorithm; PID; degree-nn polynomial has at most nn roots
Irreducibility deg 2–3: no roots; rational roots; Eisenstein; reduce mod pp
Hierarchy field ⊂ Euclidean ⊂ PID ⊂ UFD ⊂ domain, all strict
Non-UFD 6=2⋅3=(1+−5)(1−−5)6 = 2 \cdot 3 = (1+\sqrt{-5})(1-\sqrt{-5}) in Z[−5]\mathbb{Z}[\sqrt{-5}]
New fields F[x]/(p)F[x]/(p) is a field exactly when pp is irreducible; size qnq^n
F4\mathbb{F}_4 F2[x]/(x2+x+1)\mathbb{F}_2[x]/(x^2+x+1), α2=α+1\alpha^2 = \alpha + 1
F8\mathbb{F}_8 F2[x]/(x3+x+1)\mathbb{F}_2[x]/(x^3+x+1), α3=α+1\alpha^3 = \alpha + 1, α\alpha has order 7

What's next

Post 05 turns the construction of Chapter 6 into a theory. If pp is irreducible over FF, the field F[x]/(p)F[x]/(p) contains a root of pp, so it is an extension of FF of degree deg⁡p\deg p. Degrees multiply in towers, which already settles the Greek problems of doubling the cube and trisecting an angle. Adding all the roots of a polynomial gives its splitting field, and the automorphisms of that field form its Galois group. The Fundamental Theorem of Galois Theory matches subfields with subgroups, and it explains why there is no formula in radicals for the roots of a general quintic.


References

  • D. S. Dummit and R. M. Foote, Abstract Algebra, 3rd edition, Wiley, 2004 — Chapters 7 (rings, ideals, quotients), 8 (Euclidean domains, PIDs, UFDs; the example Z[(1+−19)/2]\mathbb{Z}[(1+\sqrt{-19})/2]) and 9 (polynomial rings, irreducibility criteria).
  • M. Artin, Algebra, 2nd edition, Pearson, 2011 — Chapters 11 (rings) and 12 (factoring, Gauss's lemma, Gaussian integers).
  • J. A. Gallian, Contemporary Abstract Algebra, 10th edition, CRC Press, 2021 — rings, integral domains, ideals and factor rings, divisibility in integral domains.
  • T. W. Hungerford, Algebra, Springer GTM 73, 1974 — Chapter III for a more formal treatment (rings without 1, Zorn's lemma for maximal ideals).
  • MIT OpenCourseWare, 18.702 Algebra II (Spring 2011) — lecture notes on rings, factoring and finite fields.
  • K. Conrad, Expository papers ("blurbs") — short notes on ring theory, Eisenstein's criterion and finite fields.

Note: this post is in progress. Planned additions: a full proof that PIDs are UFDs, Gauss's lemma with proof, localisation and fields of fractions, and a short section on noncommutative examples (quaternions, matrix rings and their two-sided ideals).