Introduction to Modern Algebra

Contents › Chapter 10

Chapter 10. Rings

10.1 Rings

Whole numbers, clock numbers and matrices can all be added and multiplied, and so can real functions. A group has one operation; these systems have two, tied together by the rule a(b+c)=ab+aca(b + c) = ab + ac. Dividing is another matter: in Q\mathbb{Q} every number except 00 can be divided by, while in Z\mathbb{Z} the number 22 cannot.

Rings

Definition 10.1.1 (Ring).

A ring is a set RR with two binary operations, an addition (a,b)↦a+b(a, b) \mapsto a + b and a multiplication (a,b)↦ab(a, b) \mapsto ab, such that:

  • (i) Addition: RR is an abelian group under addition. Its identity is written 00, and the inverse of aa is written −a-a.
  • (ii) Associativity: (ab)c=a(bc)(ab)c = a(bc) for all a,b,c∈Ra, b, c \in R.
  • (iii) One: there is an element 1∈R1 \in R with 1a=a1=a1a = a1 = a for every a∈Ra \in R.
  • (iv) Distributivity: a(b+c)=ab+aca(b + c) = ab + ac and (a+b)c=ac+bc(a + b)c = ac + bc for all a,b,c∈Ra, b, c \in R.

The ring is commutative if ab=baab = ba for all a,b∈Ra, b \in R.

The 11 of a ring is unique, by the argument that shows a group has only one identity (Theorem 1.2.4 (i)), and the negative −a-a of each element is unique, as in any group. A difference a−ba - b means a+(−b)a + (-b), and powers an=a⋅a⋯aa^n = a \cdot a \cdots a follow the usual rules aman=am+na^m a^n = a^{m + n} and (am)n=amn(a^m)^n = a^{mn}, by associativity.

Every ring so far is commutative. Matrices give the most important ring that is not.

Example 10.1.2 (Matrices and functions).

Together with Z\mathbb{Z}, Q\mathbb{Q}, R\mathbb{R}, C\mathbb{C} and Z/nZ\mathbb{Z}/n\mathbb{Z}, two more rings come back again and again.

Matrices. The 2×22 \times 2 real matrices form a ring M2(R)M_2(\mathbb{R}) under matrix addition and multiplication. Addition is entrywise, so it makes M2(R)M_2(\mathbb{R}) an abelian group, with the zero matrix as 00. From linear algebra, matrix multiplication is associative, the identity matrix II serves as 11, and the distributive laws hold. Two matrices show what is new:

A=(0100),B=(0010).A = \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix}, \qquad B = \begin{pmatrix} 0 & 0 \\ 1 & 0 \end{pmatrix}.

Their products in the two orders are

AB=(1000),BA=(0001).AB = \begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}, \qquad BA = \begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix}.

So AB≠BAAB \neq BA, and M2(R)M_2(\mathbb{R}) is not commutative. Also AAAA is the zero matrix although AA is not: in a ring, a product of two non-zero elements can be 00.

Functions. The functions f:R→Rf : \mathbb{R} \to \mathbb{R} form a ring F(R)\mathcal{F}(\mathbb{R}), added and multiplied value by value:

(f+g)(x)=f(x)+g(x),(fg)(x)=f(x)g(x).\begin{aligned} (f + g)(x) &= f(x) + g(x), \\ (fg)(x) &= f(x)g(x). \end{aligned}

Each axiom holds at every point xx because it holds in R\mathbb{R}. The 00 of this ring is the constant function 00, its 11 is the constant function 11, and −f-f is x↦−f(x)x \mapsto -f(x). The ring is commutative. Here fgfg is the product of values, not the composite f∘gf \circ g. Again two non-zero elements can have product 00: for f(x)=max⁡(x,0)f(x) = \max(x, 0) and g(x)=max⁡(−x,0)g(x) = \max(-x, 0), at every xx one of f(x)f(x) and g(x)g(x) is 00, so fgfg is the constant function 00.

Arithmetic in a ring

The rules of signs, such as (−1)(−1)=1(-1)(-1) = 1, are not among the axioms. They follow from the axioms, so they hold in every ring. One ring is an extreme case: the set {0}\{0\}, with 0+0=00 + 0 = 0 and 0⋅0=00 \cdot 0 = 0, satisfies every axiom, with 1=01 = 0. It is called the zero ring.

Theorem 10.1.3 (Arithmetic in a ring).Not yet reviewed

Let RR be a ring and let a,b∈Ra, b \in R.

  • (i) 0a=a0=00a = a0 = 0.
  • (ii) (−a)b=a(−b)=−(ab)(-a)b = a(-b) = -(ab).
  • (iii) (−a)(−b)=ab(-a)(-b) = ab.
  • (iv) If 1=01 = 0 in RR, then R={0}R = \{0\}.
Proof.

Idea. The distributive laws are the only axioms that join multiplication to addition. So each rule comes from expanding a product in which a sum appears, and then canceling in the additive group.

  1. (i) Expanding 0a=(0+0)a0a = (0 + 0)a and canceling 0a0a gives 0a=00a = 0, and likewise a0=0a0 = 0.

    Since 0+0=00 + 0 = 0, distributivity gives 0a=(0+0)a=0a+0a0a = (0 + 0)a = 0a + 0a. So 0a+0a=0a+00a + 0a = 0a + 0, and canceling 0a0a in the additive group (Theorem 1.2.4 (ii)) leaves 0a=00a = 0. In the same way, a0=a(0+0)=a0+a0a0 = a(0 + 0) = a0 + a0 gives a0=0a0 = 0.

  2. (ii) (−a)b(-a)b and a(−b)a(-b) are additive inverses of abab, so each is −(ab)-(ab).

    By distributivity and (i), ab+(−a)b=(a+(−a))b=0b=0ab + (-a)b = (a + (-a))b = 0b = 0. So (−a)b(-a)b is an inverse of abab in the additive group, and since an element of a group has only one inverse (Theorem 1.2.4 (iii)), (−a)b=−(ab)(-a)b = -(ab). In the same way, ab+a(−b)=a(b+(−b))=a0=0ab + a(-b) = a(b + (-b)) = a0 = 0 gives a(−b)=−(ab)a(-b) = -(ab).

  3. (iii) Applying (ii) twice gives (−a)(−b)=−(−(ab))(-a)(-b) = -(-(ab)), which is abab.

    By (ii) with −b-b in place of bb, (−a)(−b)=−(a(−b))(-a)(-b) = -(a(-b)), and by (ii) again a(−b)=−(ab)a(-b) = -(ab). The inverse of the inverse of an element is the element itself (Theorem 1.2.4 (iii)), so −(−(ab))=ab-(-(ab)) = ab.

  4. (iv) If 1=01 = 0, then R={0}R = \{0\}.

    Since 11 is the identity for multiplication, a=1aa = 1a, and 1a=0a1a = 0a when 1=01 = 0. By (i), 0a=00a = 0. So R={0}R = \{0\}.

□

So the integers, the clock numbers, the real functions and the matrices all share the ring axioms, and with them the rules of signs. What they do not share is division: 22 has no inverse in Z\mathbb{Z}, [2][2] has none in Z/4Z\mathbb{Z}/4\mathbb{Z}, and AA has none in M2(R)M_2(\mathbb{R}).

10.2 Integral domains and fields

Dividing by aa means multiplying by an element that undoes multiplication by aa. In Q\mathbb{Q} every non-zero number can be divided by; in Z\mathbb{Z} only 11 and −1-1 can. For which nn can every non-zero class of Z/nZ\mathbb{Z}/n\mathbb{Z} be divided by?

Units

Definition 10.2.1 (Unit; group of units).Not yet reviewed

Let RR be a ring. An element a∈Ra \in R is a unit if there is some b∈Rb \in R with ab=ba=1ab = ba = 1. The units of RR form a group under multiplication, the group of units R×R^\times.

Why the units form a group.

Idea. The check is the one made for (Z/nZ)×(\mathbb{Z}/n\mathbb{Z})^\times in Example 1.3.4: the four group axioms, one at a time, with care for the order of factors, since RR need not be commutative.

  1. (i) Closure: a product of two units is a unit.

    If aa′=a′a=1aa' = a'a = 1 and bb′=b′b=1bb' = b'b = 1, then by associativity (ab)(b′a′)=a(bb′)a′=aa′=1(ab)(b'a') = a(bb')a' = aa' = 1 and (b′a′)(ab)=b′(a′a)b=b′b=1(b'a')(ab) = b'(a'a)b = b'b = 1. So abab is a unit.

  2. (ii) Associativity: multiplication of units is associative.

    Multiplication is associative for all elements of RR.

  3. (iii) Identity: 11 is a unit, and 1a=a1=a1a = a1 = a for every unit aa.

    1⋅1=11 \cdot 1 = 1, so 11 is a unit, and 11 is the multiplicative identity of RR.

  4. (iv) Inverses: if ab=ba=1ab = ba = 1, then bb is a unit.

    The same equations say that bb is a unit, undone by aa.

By Theorem 1.2.4, each unit aa has exactly one inverse, written a−1a^{-1}. □

In Q\mathbb{Q}, R\mathbb{R} and C\mathbb{C} every non-zero element is a unit, so the groups Q×\mathbb{Q}^\times, R×\mathbb{R}^\times and C×\mathbb{C}^\times of non-zero numbers are their groups of units. The element 00 is a unit only in the zero ring: 0b=00b = 0 for every bb (Theorem 10.1.3), so 0b=10b = 1 forces 1=01 = 0.

Integral domains

In Z\mathbb{Z}, the number 22 cannot be divided by, but it can still be canceled: 2b=2c2b = 2c forces b=cb = c. In Z/6Z\mathbb{Z}/6\mathbb{Z} even canceling fails: [2][1]=[2][4][2][1] = [2][4], although [1]≠[4][1] \neq [4]. Moving everything to one side shows what goes wrong: [2]([4]−[1])=[2][3]=[0][2]([4] - [1]) = [2][3] = [0], so two non-zero classes multiply to zero.

Definition 10.2.2 (Integral domain).Not yet reviewed

Let RR be a commutative ring. A zero divisor in RR is a non-zero element aa with ab=0ab = 0 for some non-zero b∈Rb \in R. The ring RR is an integral domain if:

  • (i) Non-zero ring: 1≠01 \neq 0.
  • (ii) No zero divisors: if ab=0ab = 0 for a,b∈Ra, b \in R, then a=0a = 0 or b=0b = 0.

Fields

Definition 10.2.3 (Field).Not yet reviewed

A field is a commutative ring FF such that:

  • (i) Non-zero ring: 1≠01 \neq 0.
  • (ii) Inverses: every non-zero element of FF is a unit.

Since every non-zero element of a field is a unit, the group of units of a field FF is F×=F∖{0}F^\times = F \setminus \{0\}.

Canceling and dividing

The two properties are related: every field is an integral domain, and in a finite ring the two are the same.

Theorem 10.2.4 (Cancellation).Not yet reviewed
  • (i) In an integral domain RR, if ab=acab = ac and a≠0a \neq 0, then b=cb = c.
  • (ii) Every field is an integral domain.
Proof.

The idea is that both parts reduce a product equal to 00 to one of its factors: (i) by the condition on zero divisors, (ii) by multiplying by an inverse.

(i) Suppose ab=acab = ac with a≠0a \neq 0. By distributivity and Theorem 10.1.3 (ii),

a(b−c)=ab+a(−c)=ab−ac=0.a(b - c) = ab + a(-c) = ab - ac = 0.

Since RR has no zero divisors and a≠0a \neq 0, the factor b−cb - c is 00, so b=cb = c.

(ii) A field FF is commutative with 1≠01 \neq 0, so only condition (ii) of an integral domain needs checking. Suppose ab=0ab = 0 and a≠0a \neq 0. Then aa is a unit, and

b=1b=(a−1a)b=a−1(ab)=a−10=0,\begin{aligned} b = 1b &= (a^{-1}a)b \\ &= a^{-1}(ab) = a^{-1}0 = 0, \end{aligned}

using Theorem 10.1.3 (i) at the last step. So a=0a = 0 or b=0b = 0. □

Theorem 10.2.5 (Finite integral domains are fields).

Every finite integral domain is a field.

Proof.

Idea. Let RR be a finite integral domain and let a∈Ra \in R be non-zero. Multiplying by aa never sends two elements to the same place, and a map of a finite set to itself that is one-to-one is also onto, so it reaches 11.

  1. The function ma:R→Rm_a : R \to R, x↦axx \mapsto ax, is injective.

    If ax=ayax = ay, then x=yx = y by Theorem 10.2.4 (i).

  2. ax=1ax = 1 for some x∈Rx \in R.

    An injective function from a finite set to itself is also surjective, so 11 is a value of mam_a.

  3. So every non-zero element of RR is a unit, and RR is a field.

    xa=ax=1xa = ax = 1 because RR is commutative, so aa is a unit. And RR, which has 1≠01 \neq 0, is a field.

□

Which clocks are fields

Clock arithmetic is finite, so by Theorem 10.2.5 a clock ring Z/nZ\mathbb{Z}/n\mathbb{Z} is a field as soon as it is an integral domain, with [1]≠[0][1] \neq [0] and no zero divisors. Which nn give one?

Theorem 10.2.6 (When Z/nZ\mathbb{Z}/n\mathbb{Z} is a field).Not yet reviewed

Let n≥1n \ge 1. The following are equivalent:

  • (i) Z/nZ\mathbb{Z}/n\mathbb{Z} is a field.
  • (ii) Z/nZ\mathbb{Z}/n\mathbb{Z} is an integral domain.
  • (iii) nn is prime.

For a prime pp, the field Z/pZ\mathbb{Z}/p\mathbb{Z} is written Fp\mathbb{F}_p.

Proof.

Idea. When nn is composite, n=abn = ab with 1<a,b<n1 < a, b < n, and the non-zero class [a][a] shares the factor aa with nn, so it has no inverse. When nn is prime, Euclid’s lemma says that nn divides a product only if it divides a factor: no zero divisors. Since the ring is finite, that is enough for a field.

  1. If Z/nZ\mathbb{Z}/n\mathbb{Z} is a field, then nn is prime.

    For n=1n = 1 the ring is the zero ring, where [1]=[0][1] = [0], so it is not a field. If n>1n > 1 is not prime, write n=abn = ab with 1<a<n1 < a < n. Then [a]≠[0][a] \neq [0], since 0<a<n0 < a < n, and gcd⁡(a,n)=a≠1\gcd(a, n) = a \neq 1, so [a][a] is not a unit by Theorem 2.3.4. So Z/nZ\mathbb{Z}/n\mathbb{Z} is not a field.

  2. If n=pn = p is prime, then Z/pZ\mathbb{Z}/p\mathbb{Z} is an integral domain.

    The ring is commutative, and [1]≠[0][1] \neq [0] since p≥2p \ge 2. If [a][b]=[ab]=[0][a][b] = [ab] = [0], then pp divides abab, so by Euclid’s lemma pp divides aa or pp divides bb, that is, [a]=[0][a] = [0] or [b]=[0][b] = [0].

  3. If Z/nZ\mathbb{Z}/n\mathbb{Z} is an integral domain, then it is a field.

    It has nn elements, so it is finite, and Theorem 10.2.5 applies.

  4. So (i), (ii) and (iii) are equivalent.

    The steps prove (i) implies (iii), (iii) implies (ii), and (ii) implies (i), so each of the three implies the other two.

□

So the clock numbers can always be divided exactly when the clock has a prime number of hours: F2,F3,F5,F7,…\mathbb{F}_2, \mathbb{F}_3, \mathbb{F}_5, \mathbb{F}_7, \dots are fields, Z/nZ\mathbb{Z}/n\mathbb{Z} has zero divisors for every composite nn, and Z/1Z\mathbb{Z}/1\mathbb{Z} is the zero ring.

10.3 Subrings and the Gaussian integers

The integers sit inside the rationals, the rationals inside the reals, and the reals inside the complex numbers, each a ring with the operations of the next. When is a subset of a ring a ring in its own right? The answer builds new rings of numbers inside C\mathbb{C}: the Gaussian integers and their relatives.

Subrings

Definition 10.3.1 (Subring).

Let RR be a ring. A subset SS of RR is a subring of RR if:

  • (i) One: 1∈S1 \in S.
  • (ii) Sums: a+b∈Sa + b \in S for all a,b∈Sa, b \in S.
  • (iii) Negatives: −a∈S-a \in S for every a∈Sa \in S.
  • (iv) Products: ab∈Sab \in S for all a,b∈Sa, b \in S.

A subring is a ring under the addition and multiplication of RR.

Why a subring is a ring.

Each axiom either follows from the four conditions or holds in SS because it holds for all elements of RR.

Addition: SS is not empty, since 1∈S1 \in S, and for a,b∈Sa, b \in S the difference a−b=a+(−b)a - b = a + (-b) lies in SS by (iii) and then (ii). By the subgroup test (i), SS is a subgroup of the additive group of RR, so it is a group under addition, and an abelian one, since the addition of RR is commutative.

Multiplication: by (iv), the multiplication of RR is a binary operation on SS. Associativity and the distributive laws hold for all elements of RR, so in particular for those of SS. And 1∈S1 \in S by (i), where it still satisfies 1a=a1=a1a = a1 = a. □

A subring keeps any property that speaks only about pairs of elements. If RR is commutative, so is each subring, since ab=baab = ba for all elements of RR. If RR is an integral domain, so is each subring SS: it has the same elements 1≠01 \neq 0, and if ab=0ab = 0 for a,b∈Sa, b \in S, then a=0a = 0 or b=0b = 0, because that holds in RR. Since every field is an integral domain (Theorem 10.2.4), every subring of C\mathbb{C} is an integral domain.

The Gaussian integers

Example 10.3.2 (Gaussian integers).

The Gaussian integers are the complex numbers whose real and imaginary parts are integers:

Z[i]={a+bi:a,b∈Z}.\mathbb{Z}[i] = \{a + bi : a, b \in \mathbb{Z}\}.

Drawn in the complex plane, with a+bia + bi at the point (a,b)(a, b), they are the points of the square lattice. Multiplying by ii turns the plane a quarter turn about 00, since i=eiπ/2i = e^{i\pi/2}, so it moves lattice points to lattice points.

Z[i]\mathbb{Z}[i] is a subring of C\mathbb{C}. It contains 1=1+0i1 = 1 + 0i, and the negative of a+bia + bi is (−a)+(−b)i(-a) + (-b)i. Sums and products of Gaussian integers are Gaussian integers:

(a+bi)+(c+di)=(a+c)+(b+d)i,(a+bi)(c+di)=(ac−bd)+(ad+bc)i,\begin{aligned} &(a + bi) + (c + di) \\ &\quad = (a + c) + (b + d)i, \\ &(a + bi)(c + di) \\ &\quad = (ac - bd) + (ad + bc)i, \end{aligned}

using i2=−1i^2 = -1. So Z[i]\mathbb{Z}[i] is a commutative ring, and, as a subring of the field C\mathbb{C}, an integral domain.

It is not a field. In C\mathbb{C} the only inverse of 22 is 12\tfrac{1}{2}, which is not a Gaussian integer, so 2b=12b = 1 has no solution b∈Z[i]b \in \mathbb{Z}[i].

Carl Friedrich Gauss introduced these numbers in 1832, in his second paper on biquadratic residues, where he stated the law of biquadratic reciprocity in terms of them.

The same construction works with ii replaced by another square root.

Example 10.3.3 (Quadratic integers).

Let dd be an integer that is not a perfect square, and let d\sqrt{d} be a square root of dd in C\mathbb{C}; for d<0d < 0 it is i∣d∣i\sqrt{\lvert d \rvert}. The set

Z[d]={a+bd:a,b∈Z}\mathbb{Z}[\sqrt{d}] = \{a + b\sqrt{d} : a, b \in \mathbb{Z}\}

is a subring of C\mathbb{C}. It contains 11 and the negative of each element, and since (d)2=d(\sqrt{d})^2 = d,

(a+bd)+(c+ed)=(a+c)+(b+e)d,(a+bd)(c+ed)=(ac+dbe)+(ae+bc)d.\begin{aligned} &(a + b\sqrt{d}) + (c + e\sqrt{d}) \\ &\quad = (a + c) + (b + e)\sqrt{d}, \\ &(a + b\sqrt{d})(c + e\sqrt{d}) \\ &\quad = (ac + dbe) + (ae + bc)\sqrt{d}. \end{aligned}

So Z[d]\mathbb{Z}[\sqrt{d}] is a commutative ring and an integral domain. For d=−1d = -1 it is Z[i]\mathbb{Z}[i]. Two more will come back: Z[2]\mathbb{Z}[\sqrt{2}], which lies inside R\mathbb{R}, and Z[−5]\mathbb{Z}[\sqrt{-5}], which does not. Because dd is not a perfect square, d\sqrt{d} is not rational, so each element has only one such form a+bda + b\sqrt{d}.

These rings can have many more units than Z\mathbb{Z}. In Z[2]\mathbb{Z}[\sqrt{2}],

(1+2)(−1+2)=2−1=1,(1 + \sqrt{2})(-1 + \sqrt{2}) = 2 - 1 = 1,

so 1+21 + \sqrt{2} is a unit, and so is each of its powers. The powers are all different, since 1+2>11 + \sqrt{2} > 1 makes them grow, so Z[2]\mathbb{Z}[\sqrt{2}] has infinitely many units.

So every ring of the form Z[d]\mathbb{Z}[\sqrt{d}] is an integral domain, as Z\mathbb{Z} is, and none of them is a field, since 12\tfrac{1}{2} lies in none of them.

10.4 Ring homomorphisms and ideals

Reducing integers mod nn turns integer arithmetic into clock arithmetic, and it respects both operations: reduce a sum or a product, or reduce first and then add or multiply, and the answer is the same. Group homomorphisms (Definition 4.1.1) compare groups through maps that respect their one operation. Maps between rings should respect both, and what such a map sends to 00 turns out to be a new kind of object, an ideal.

Ring homomorphisms

Definition 10.4.1 (Ring homomorphism).

Let RR and SS be rings. A ring homomorphism from RR to SS is a function φ:R→S\varphi : R \to S such that, for all a,b∈Ra, b \in R:

  • (i) Sums: φ(a+b)=φ(a)+φ(b)\varphi(a + b) = \varphi(a) + \varphi(b).
  • (ii) Products: φ(ab)=φ(a)φ(b)\varphi(ab) = \varphi(a)\varphi(b).
  • (iii) One: φ(1)=1\varphi(1) = 1.

Its kernel is ker⁡φ={a∈R:φ(a)=0}\ker\varphi = \{a \in R : \varphi(a) = 0\}, and its image is φ(R)={φ(a):a∈R}\varphi(R) = \{\varphi(a) : a \in R\}. A bijective ring homomorphism is a ring isomorphism, and R≅SR \cong S means that there is one from RR to SS.

A ring homomorphism is in particular a homomorphism of the additive groups (Definition 4.1.1), by (i), and its kernel is the kernel of that group homomorphism (Definition 4.1.3). So φ(0)=0\varphi(0) = 0 and φ(−a)=−φ(a)\varphi(-a) = -\varphi(a), by Theorem 4.1.2.

Example 10.4.2 (Three ring homomorphisms).
  • (i) Reduction mod nn. The map Z→Z/nZ\mathbb{Z} \to \mathbb{Z}/n\mathbb{Z}, a↦[a]a \mapsto [a], is a ring homomorphism: [a+b]=[a]+[b][a + b] = [a] + [b] and [ab]=[a][b][ab] = [a][b] are the definitions of the operations on classes (Definition 1.3.2), and 1↦[1]1 \mapsto [1]. Its kernel is the set of integers with [a]=[0][a] = [0], which is nZn\mathbb{Z}.
  • (ii) Complex conjugation. The map C→C\mathbb{C} \to \mathbb{C}, a+bi↦a−bia + bi \mapsto a - bi, preserves sums and sends 11 to 11. For products, the conjugate of (a+bi)(c+di)=(ac−bd)+(ad+bc)i(a + bi)(c + di) = (ac - bd) + (ad + bc)i is
    (ac−bd)−(ad+bc)i=(a−bi)(c−di).\begin{aligned} &(ac - bd) - (ad + bc)i \\ &\quad = (a - bi)(c - di). \end{aligned}
    Conjugating twice gives back the number, so conjugation is a bijection: a ring isomorphism from C\mathbb{C} to itself, with kernel {0}\{0\}. It sends Gaussian integers to Gaussian integers, so it is also a ring isomorphism from Z[i]\mathbb{Z}[i] to itself.
  • (iii) Evaluation at a point. For c∈Rc \in \mathbb{R}, the map F(R)→R\mathcal{F}(\mathbb{R}) \to \mathbb{R}, f↦f(c)f \mapsto f(c), is a ring homomorphism: (f+g)(c)=f(c)+g(c)(f + g)(c) = f(c) + g(c) and (fg)(c)=f(c)g(c)(fg)(c) = f(c)g(c) by the definition of the operations (Example 10.1.2), and the constant function 11 goes to 11. Its kernel is the set of functions with f(c)=0f(c) = 0, and it is onto, since each number is the value of a constant function.

Ideals

The kernels just found, the multiples of nn and the functions that vanish at cc, are more than additive subgroups. If φ(a)=0\varphi(a) = 0, then for every rr in the ring, φ(ra)=φ(r)⋅0=0\varphi(ra) = \varphi(r) \cdot 0 = 0: multiplying an element of the kernel by anything at all gives an element of the kernel. Subsets with this property get a name. From now on, ideals, and everything built from them, are defined only for commutative rings.

Definition 10.4.3 (Ideal).

Let RR be a commutative ring. A subset II of RR is an ideal of RR if:

  • (i) Subgroup: II is a subgroup of RR under addition.
  • (ii) Absorbing: ra∈Ira \in I for every r∈Rr \in R and every a∈Ia \in I.

Every commutative ring RR has the two ideals {0}\{0\} and RR.

Theorem 10.4.4 (Kernels are ideals).

Let φ:R→S\varphi : R \to S be a ring homomorphism, with RR commutative. Then ker⁡φ\ker\varphi is an ideal of RR, and φ\varphi is injective if and only if ker⁡φ={0}\ker\varphi = \{0\}.

Proof.

Idea. The additive part is a fact about group homomorphisms, and the absorbing condition comes from φ(ra)=φ(r)φ(a)\varphi(ra) = \varphi(r)\varphi(a).

  1. Subgroup: ker⁡φ\ker\varphi is a subgroup of RR under addition.

    By (i) of the definition, φ\varphi is a homomorphism of the additive groups, and ker⁡φ\ker\varphi is the preimage of the subgroup {0}\{0\} of SS. By Theorem 4.1.2 (iv), it is a subgroup of RR.

  2. Absorbing: if r∈Rr \in R and a∈ker⁡φa \in \ker\varphi, then ra∈ker⁡φra \in \ker\varphi.

    By (ii) of the definition and Theorem 10.1.3 (i) in SS,

    φ(ra)=φ(r)φ(a)=φ(r)⋅0=0.\varphi(ra) = \varphi(r)\varphi(a) = \varphi(r) \cdot 0 = 0.
  3. Injectivity: φ\varphi is injective exactly when ker⁡φ={0}\ker\varphi = \{0\}.

    This is the kernel test for group homomorphisms (Theorem 4.1.5), applied to the additive groups, whose identities are 00.

□

So the three homomorphisms above have ideals for kernels: reduction mod nn has kernel nZn\mathbb{Z}, evaluation at cc has the functions vanishing at cc, and conjugation, which is injective, has {0}\{0\}.

10.5 Quotient rings

Clock arithmetic is the integers with every multiple of nn treated as 00, and the multiples of nn form an ideal. Any ideal II of a commutative ring RR can be treated as 00 in the same way. What remains is a ring R/IR/I, and the first isomorphism theorem says which ring it is.

Ideals generated by elements

The smallest ideal containing given elements collects everything the two conditions of an ideal force into it.

Definition 10.5.1 (Ideal generated by elements).

Let RR be a commutative ring and let a1,…,ak∈Ra_1, \dots, a_k \in R. The ideal generated by a1,…,aka_1, \dots, a_k is the set

(a1,…,ak)={r1a1+⋯+rkak},(a_1, \dots, a_k) = \{r_1a_1 + \dots + r_ka_k\},

where r1,…,rkr_1, \dots, r_k run over all elements of RR.

It is an ideal of RR that contains a1,…,aka_1, \dots, a_k, and it lies inside every ideal of RR that contains them. An ideal (a)={ra:r∈R}(a) = \{ra : r \in R\} generated by one element is a principal ideal.

Why (a1,…,ak)(a_1, \dots, a_k) is the smallest ideal containing a1,…,aka_1, \dots, a_k.

Idea. Write J=(a1,…,ak)J = (a_1, \dots, a_k); its elements are the combinations r1a1+⋯+rkakr_1a_1 + \dots + r_ka_k. Check the conditions of an ideal on combinations, then note that any ideal containing a1,…,aka_1, \dots, a_k is forced to contain every combination.

  1. JJ is a subgroup under addition.

    The sum of two combinations is the combination with the coefficients added, the negative of a combination is the combination with the coefficients negated, and 0=0a1+⋯+0ak0 = 0a_1 + \dots + 0a_k.

  2. JJ absorbs multiplication.

    For s∈Rs \in R, s(r1a1+⋯+rkak)=(sr1)a1+⋯+(srk)aks(r_1a_1 + \dots + r_ka_k) = (sr_1)a_1 + \dots + (sr_k)a_k, by distributivity and associativity.

  3. JJ contains each aja_j.

    Take rj=1r_j = 1 and every other coefficient 00.

  4. JJ lies inside every ideal LL that contains a1,…,aka_1, \dots, a_k.

    LL contains each product rjajr_ja_j, because it absorbs multiplication, and so their sum, because it is closed under addition. So J⊆LJ \subseteq L.

□
Theorem 10.5.2 (Ideals of Z\mathbb{Z}).

Every ideal of Z\mathbb{Z} is principal: it is (n)=nZ(n) = n\mathbb{Z} for exactly one integer n≥0n \ge 0.

Proof.

The idea is that an ideal of Z\mathbb{Z} is in particular a subgroup, and the subgroups of Z\mathbb{Z} are known.

Let II be an ideal of Z\mathbb{Z}. It is a subgroup of Z\mathbb{Z} under addition, so by Theorem 2.3.1 it is nZn\mathbb{Z} for exactly one integer n≥0n \ge 0. And nZ={rn:r∈Z}=(n)n\mathbb{Z} = \{rn : r \in \mathbb{Z}\} = (n). □

Quotient rings

Definition 10.5.3 (Quotient ring).

Let RR be a commutative ring and II an ideal of RR. The quotient ring R/IR/I is the set of cosets a+I={a+x:x∈I}a + I = \{a + x : x \in I\}, for a∈Ra \in R, with the operations

(a+I)+(b+I)=(a+b)+I,(a+I)(b+I)=ab+I.\begin{aligned} (a + I) + (b + I) &= (a + b) + I, \\ (a + I)(b + I) &= ab + I. \end{aligned}

These operations are well defined, and they make R/IR/I a commutative ring, with zero 0+I=I0 + I = I and one 1+I1 + I.

Why R/IR/I is a ring.

Idea. Addition is the quotient group construction, multiplication is well defined because II absorbs products, and then every axiom holds for cosets because it holds for their representatives.

  1. Addition makes the cosets an abelian group, with identity 0+I=I0 + I = I and inverses −(a+I)=(−a)+I-(a + I) = (-a) + I.

    Addition in RR is commutative, so the subgroup II is normal (every subgroup of an abelian group is, Example 7.1.3), and its cosets form the quotient group of Definition 7.2.2, with (a+I)+(b+I)=(a+b)+I(a + I) + (b + I) = (a + b) + I well defined by Theorem 7.2.1. This group is abelian, since a+b=b+aa + b = b + a.

  2. Multiplication is well defined: if a+I=a′+Ia + I = a' + I and b+I=b′+Ib + I = b' + I, then a′b′+I=ab+Ia'b' + I = ab + I.

    Since a′=a′+0a' = a' + 0 lies in a′+I=a+Ia' + I = a + I, we have a′=a+xa' = a + x for some x∈Ix \in I; in the same way, b′=b+yb' = b + y for some y∈Iy \in I. Then

    a′b′=ab+(ay+xb+xy).a'b' = ab + (ay + xb + xy).

    Each of ayay, xbxb and xyxy lies in II by Absorbing, since RR is commutative and x,y∈Ix, y \in I, so their sum zz lies in II. Also z+I=Iz + I = I, since II is closed under addition and each w∈Iw \in I is z+(w−z)z + (w - z). So a′b′+I=(ab+z)+I=ab+(z+I)=ab+Ia'b' + I = (ab + z) + I = ab + (z + I) = ab + I: changing the representatives does not change the product. This is the check made for Z/nZ\mathbb{Z}/n\mathbb{Z} in §1.3, with Absorbing doing the work that the multiples of nn did there.

  3. The ring axioms hold for cosets, because they hold for representatives.

    Associativity: both ((a+I)(b+I))(c+I)((a + I)(b + I))(c + I) and (a+I)((b+I)(c+I))(a + I)((b + I)(c + I)) equal abc+Iabc + I. One: (1+I)(a+I)=1a+I=a+I(1 + I)(a + I) = 1a + I = a + I, and likewise on the right. Distributivity: (a+I)((b+I)+(c+I))=a(b+c)+I=(ab+ac)+I(a + I)\bigl((b + I) + (c + I)\bigr) = a(b + c) + I = (ab + ac) + I, which is (a+I)(b+I)+(a+I)(c+I)(a + I)(b + I) + (a + I)(c + I), and likewise on the other side. Commutativity: (a+I)(b+I)=ab+I=ba+I=(b+I)(a+I)(a + I)(b + I) = ab + I = ba + I = (b + I)(a + I).

□

The multiplication of clock arithmetic, checked by hand in Definition 1.3.2, is thus one case of a single construction, in which any ideal of a commutative ring is treated as 00. The map R→R/IR \to R/I, a↦a+Ia \mapsto a + I, is a surjective ring homomorphism, since (a+b)+I(a + b) + I and ab+Iab + I are the sum and the product of a+Ia + I and b+Ib + I, and 1↦1+I1 \mapsto 1 + I. Its kernel is {a:a+I=I}\{a : a + I = I\}, which is II. So every ideal is the kernel of a ring homomorphism, and by Theorem 10.4.4 every kernel is an ideal.

The first isomorphism theorem for rings

Theorem 10.5.4 (First isomorphism theorem for rings).Not yet reviewed

Let φ:R→S\varphi : R \to S be a ring homomorphism, with RR commutative. Then the image φ(R)\varphi(R) is a subring of SS, and the rule

a+ker⁡φ↦φ(a)a + \ker\varphi \mapsto \varphi(a)

is a well-defined ring isomorphism from R/ker⁡φR/\ker\varphi to φ(R)\varphi(R). So R/ker⁡φ≅φ(R)R/\ker\varphi \cong \varphi(R).

Proof.

Idea. The first isomorphism theorem for groups already gives a bijection that respects addition, so only products and the 11 need checking. Write K=ker⁡φK = \ker\varphi.

  1. KK is an ideal, so R/KR/K is a ring.

    Since RR is commutative, KK is an ideal by Theorem 10.4.4, so R/KR/K is a ring.

  2. The image φ(R)\varphi(R) is a subring of SS.

    It meets the four conditions of a subring. It contains 1=φ(1)1 = \varphi(1), and for a,b∈Ra, b \in R, φ(a)+φ(b)=φ(a+b)\varphi(a) + \varphi(b) = \varphi(a + b), φ(a)φ(b)=φ(ab)\varphi(a)\varphi(b) = \varphi(ab) and −φ(a)=φ(−a)-\varphi(a) = \varphi(-a) lie in φ(R)\varphi(R). The last holds because φ(a)+φ(−a)=φ(0)=0\varphi(a) + \varphi(-a) = \varphi(0) = 0, as for any homomorphism of additive groups.

  3. The rule ψ(a+K)=φ(a)\psi(a + K) = \varphi(a) is a well-defined bijection from R/KR/K onto φ(R)\varphi(R) that respects addition.

    Apply the first isomorphism theorem to φ\varphi as a homomorphism of additive groups: it says that ψ\psi is well defined, that it is a bijection from R/KR/K onto φ(R)\varphi(R), and that ψ((a+K)+(b+K))=ψ(a+K)+ψ(b+K)\psi\bigl((a + K) + (b + K)\bigr) = \psi(a + K) + \psi(b + K).

  4. ψ\psi respects products and 11, so it is a ring isomorphism.

    For a,b∈Ra, b \in R,

    ψ((a+K)(b+K))=ψ(ab+K)=φ(ab)=φ(a)φ(b)=ψ(a+K) ψ(b+K),\begin{aligned} &\psi\bigl((a + K)(b + K)\bigr) \\ &\quad = \psi(ab + K) = \varphi(ab) \\ &\quad = \varphi(a)\varphi(b) \\ &\quad = \psi(a + K)\,\psi(b + K), \end{aligned}

    and ψ(1+K)=φ(1)=1\psi(1 + K) = \varphi(1) = 1. So ψ\psi is a bijective ring homomorphism, a ring isomorphism.

□

So a quotient ring can be recognized without listing its cosets: find a surjective ring homomorphism whose kernel is the ideal, and the quotient is its target.

10.6 Prime and maximal ideals

The ring Z/nZ\mathbb{Z}/n\mathbb{Z} is an integral domain, and then a field, exactly when nn is prime (Theorem 10.2.6). Now that Z/nZ\mathbb{Z}/n\mathbb{Z} is the quotient Z/(n)\mathbb{Z}/(n), that is a statement about the ideal (n)(n). Which property of an ideal II of a commutative ring RR makes R/IR/I an integral domain, and which makes it a field?

Ideals and units

Theorem 10.6.1 (Ideals and units).

Let RR be a commutative ring.

  • (i) An ideal of RR that contains a unit is all of RR.
  • (ii) If 1≠01 \neq 0 in RR, then RR is a field if and only if its only ideals are {0}\{0\} and RR.
Proof.

Idea. An ideal containing a unit uu contains (ru−1)u=r(ru^{-1})u = r for every rr. Part (ii) applies this to a field, and conversely to the principal ideal (a)(a) of a non-zero element aa.

  1. (i) An ideal that contains a unit is all of RR.

    Let II be an ideal containing a unit uu, and let r∈Rr \in R. Since II absorbs multiplication, r=(ru−1)ur = (ru^{-1})u lies in II. So I=RI = R.

  2. (ii) If RR is a field, its only ideals are {0}\{0\} and RR.

    Let II be an ideal other than {0}\{0\}. Then II contains a non-zero element, which is a unit, so I=RI = R by (i).

  3. Conversely, if 1≠01 \neq 0 and the only ideals of RR are {0}\{0\} and RR, then RR is a field.

    Let a≠0a \neq 0. The principal ideal (a)(a) of Definition 10.5.1 contains a=1⋅aa = 1 \cdot a, so it is not {0}\{0\}, and therefore (a)=R(a) = R. In particular 1∈(a)1 \in (a), so 1=ra1 = ra for some r∈Rr \in R, and aa is a unit. Since 1≠01 \neq 0, RR is a field.

□

Prime and maximal ideals

An ideal II of RR with I≠RI \neq R is called proper.

Definition 10.6.2 (Prime ideal).

Let RR be a commutative ring. A proper ideal PP of RR is prime if, for all a,b∈Ra, b \in R, ab∈Pab \in P implies a∈Pa \in P or b∈Pb \in P.

The name comes from Z\mathbb{Z}: for a prime pp, Euclid’s lemma (Theorem 2.3.3) says that p∣abp \mid ab forces p∣ap \mid a or p∣bp \mid b, which is the statement that (p)(p) is a prime ideal.

Definition 10.6.3 (Maximal ideal).

Let RR be a commutative ring. A proper ideal MM of RR is maximal if the only ideals JJ of RR with M⊆J⊆RM \subseteq J \subseteq R are J=MJ = M and J=RJ = R.

Quotients that are domains or fields

Theorem 10.6.4 (Prime and maximal ideals).

Let RR be a commutative ring and let II be an ideal of RR.

  • (i) R/IR/I is an integral domain if and only if II is prime.
  • (ii) R/IR/I is a field if and only if II is maximal.
  • (iii) Every maximal ideal of RR is prime.
Proof.

Idea. Translate each condition on R/IR/I into one on II, using that a+Ia + I is the zero coset exactly when a∈Ia \in I, and (a+I)(b+I)=ab+I(a + I)(b + I) = ab + I. Then “no zero divisors in R/IR/I” is the prime condition word for word, and “every non-zero coset is invertible” says that II together with any a∉Ia \notin I fills all of RR, which is maximality.

  1. A coset a+Ia + I is the zero coset 0+I=I0 + I = I exactly when a∈Ia \in I.

    If a+I=Ia + I = I, then a=a+0∈Ia = a + 0 \in I. If a∈Ia \in I, then a+I⊆Ia + I \subseteq I, since II is closed under addition, and each w∈Iw \in I is a+(w−a)a + (w - a) with w−a∈Iw - a \in I; so a+I=Ia + I = I.

  2. R/IR/I is a commutative ring with 1+I≠0+I1 + I \neq 0 + I exactly when I≠RI \neq R.

    An integral domain and a field are both, first of all, commutative rings with 1≠01 \neq 0. R/IR/I is always a commutative ring, because RR is (Definition 10.5.3). By the first step, 1+I=0+I1 + I = 0 + I exactly when 1∈I1 \in I, and an ideal contains the unit 11 exactly when it is RR (Theorem 10.6.1 (i)).

  3. R/IR/I is an integral domain exactly when II is prime.

    By the first step, (a+I)(b+I)=ab+I(a + I)(b + I) = ab + I is the zero coset exactly when ab∈Iab \in I, and a+Ia + I is the zero coset exactly when a∈Ia \in I. So “if (a+I)(b+I)(a + I)(b + I) is zero, then a+Ia + I or b+Ib + I is zero” says word for word “if ab∈Iab \in I, then a∈Ia \in I or b∈Ib \in I”. Together with the second step, R/IR/I is an integral domain exactly when II is proper and satisfies this condition, that is, when II is prime. This proves (i).

  4. If II is maximal, then R/IR/I is a field.

    I≠RI \neq R, so R/IR/I is a commutative ring with 1+I≠0+I1 + I \neq 0 + I by the second step. Let a+Ia + I be non-zero, so a∉Ia \notin I by the first step. The set J={x+ra:x∈I, r∈R}J = \{x + ra : x \in I, \ r \in R\}, built like the ideal (a)(a) of Definition 10.5.1, is an ideal: sums (x+ra)+(x′+r′a)=(x+x′)+(r+r′)a(x + ra) + (x' + r'a) = (x + x') + (r + r')a and negatives −x+(−r)a-x + (-r)a stay in JJ, and s(x+ra)=sx+(sr)as(x + ra) = sx + (sr)a with sx∈Isx \in I. It contains II (take r=0r = 0) and aa (take x=0x = 0, r=1r = 1), so J≠IJ \neq I, and maximality gives J=RJ = R. So 1=x+ra1 = x + ra for some x∈Ix \in I and r∈Rr \in R. Then ra−1=−x∈Ira - 1 = -x \in I, so (r+I)(a+I)−(1+I)=(ra−1)+I{(r + I)(a + I) - (1 + I)} = {(ra - 1) + I} is the zero coset by the first step, that is, (r+I)(a+I)=1+I(r + I)(a + I) = 1 + I: the coset a+Ia + I is a unit.

  5. If R/IR/I is a field, then II is maximal.

    1+I≠0+I1 + I \neq 0 + I, so I≠RI \neq R by the second step. Let JJ be an ideal with I⊊JI \subsetneq J, and pick a∈Ja \in J with a∉Ia \notin I. Then a+Ia + I is non-zero, so (b+I)(a+I)=1+I(b + I)(a + I) = 1 + I for some b∈Rb \in R. So (ba−1)+I=(b+I)(a+I)−(1+I){(ba - 1) + I} = {(b + I)(a + I) - (1 + I)} is the zero coset, that is, ba−1∈I⊆Jba - 1 \in I \subseteq J by the first step. Also ba∈Jba \in J, since JJ absorbs multiplication. So 1=ba−(ba−1)∈J1 = ba - (ba - 1) \in J, and J=RJ = R by Theorem 10.6.1 (i). This proves (ii).

  6. Every maximal ideal is prime.

    If II is maximal, then R/IR/I is a field by (ii), so an integral domain by Theorem 10.2.4 (ii), so II is prime by (i). This proves (iii).

□

Rings: Exercises

Exercise 10.1.

Let TT be the set of upper triangular matrices in M2(R)M_2(\mathbb{R}), those of the form

(ab0d),a,b,d∈R.\begin{pmatrix} a & b \\ 0 & d \end{pmatrix}, \qquad a, b, d \in \mathbb{R}.

Show that TT is a subring of M2(R)M_2(\mathbb{R}). Then find two elements of TT that do not commute, and two non-zero elements of TT whose product is the zero matrix.

Solution.

Check the four conditions of Definition 10.3.1.

  • One: the identity matrix II is upper triangular, with a=d=1a = d = 1 and b=0b = 0.
  • Sums and negatives: adding two upper triangular matrices, or negating one, keeps the bottom left entry 00.
  • Products: the product of two upper triangular matrices is upper triangular, since
(ab0d)(a′b′0d′)=(aa′ab′+bd′0dd′).\begin{aligned} &\begin{pmatrix} a & b \\ 0 & d \end{pmatrix} \begin{pmatrix} a' & b' \\ 0 & d' \end{pmatrix} \\ &\quad = \begin{pmatrix} aa' & ab' + bd' \\ 0 & dd' \end{pmatrix}. \end{aligned}

So TT is a subring. Now let

E=(1000),N=(0100),E = \begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}, \qquad N = \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix},

both in TT. By the product rule above, EN=NEN = N, while NENE is the zero matrix. So EN≠NEEN \neq NE, and NN and EE are non-zero elements of TT with NE=0NE = 0. □

Exercise 10.2.
  • (a) List the zero divisors of Z/20Z\mathbb{Z}/20\mathbb{Z}.
  • (b) Find the inverse of [7][7] in the field F17\mathbb{F}_{17}.
Solution.

(a) By Theorem 2.3.4, a non-zero class [a][a], with 0<a<200 < a < 20, is a unit exactly when gcd⁡(a,20)=1\gcd(a, 20) = 1. A unit is never a zero divisor: if [a][a] is a unit and [a][b]=[0][a][b] = [0], then [b]=[a]−1[a][b]=[0][b] = [a]^{-1}[a][b] = [0]. If d=gcd⁡(a,20)>1d = \gcd(a, 20) > 1, then b=20/db = 20/d satisfies 0<b<200 < b < 20 and ab=(a/d)⋅20ab = (a/d) \cdot 20, so [a][b]=[0][a][b] = [0] with [b]≠[0][b] \neq [0]. So the zero divisors are the non-zero classes [a][a] with gcd⁡(a,20)>1\gcd(a, 20) > 1:

[2],[4],[5],[6],[8],[10],[12],[14],[15],[16],[18].\begin{aligned} &[2], [4], [5], [6], [8], [10], \\ &[12], [14], [15], [16], [18]. \end{aligned}

(b) Bézout’s identity for 77 and 1717: 17=2⋅7+317 = 2 \cdot 7 + 3 and 7=2⋅3+17 = 2 \cdot 3 + 1, so 1=7−2⋅3=7−2(17−2⋅7)=5⋅7−2⋅171 = 7 - 2 \cdot 3 = 7 - 2(17 - 2 \cdot 7) = 5 \cdot 7 - 2 \cdot 17. So [7][5]=[35]=[1][7][5] = [35] = [1] and [7]−1=[5][7]^{-1} = [5], as Theorem 2.3.4 predicts. Check: 35=2⋅17+135 = 2 \cdot 17 + 1. □

Exercise 10.3.

Decide which of these subsets of Z[i]\mathbb{Z}[i] are ideals of Z[i]\mathbb{Z}[i], and justify each answer.

  • (a) {a+bi:a and b are both divisible by 3}\{a + bi : a \text{ and } b \text{ are both divisible by } 3\}.
  • (b) Z\mathbb{Z}, the Gaussian integers with b=0b = 0.
  • (c) {a+bi:a=b}\{a + bi : a = b\}.
Solution.

Each set is a subgroup under addition: sums and negatives keep both parts divisible by 33 in (a), keep b=0b = 0 in (b), and keep a=ba = b in (c), and each contains 00. So the question is whether each absorbs multiplication by every Gaussian integer.

(a) Yes. If a=3a′a = 3a' and b=3b′b = 3b', then (c+di)(a+bi)=3((c+di)(a′+b′i))(c + di)(a + bi) = 3\bigl((c + di)(a' + b'i)\bigr), and 33 times a Gaussian integer has both parts divisible by 33. This ideal is the principal ideal (3)(3).

(b) No. 1∈Z1 \in \mathbb{Z} and i∈Z[i]i \in \mathbb{Z}[i], but i⋅1=i∉Zi \cdot 1 = i \notin \mathbb{Z}. (Z\mathbb{Z} is a subring of Z[i]\mathbb{Z}[i], but not an ideal.)

(c) No. 1+i1 + i is in the set, but i(1+i)=−1+ii(1 + i) = -1 + i has real part −1-1 and imaginary part 11, which differ. □

Exercise 10.4.Not yet reviewed

A ring RR is called Boolean if a2=aa^2 = a for every a∈Ra \in R. Show that in a Boolean ring a+a=0a + a = 0 for every aa, and that every Boolean ring is commutative.

Hint.

Apply x2=xx^2 = x to x=a+ax = a + a, and then to x=a+bx = a + b, and expand with the distributive laws.

Solution.

The plan is to expand squares of sums, which brings in the products the statement is about, and then use x2=xx^2 = x to simplify.

First, a+a=0a + a = 0. By distributivity,

(a+a)2=a2+a2+a2+a2=a+a+a+a,\begin{aligned} (a + a)^2 &= a^2 + a^2 + a^2 + a^2 \\ &= a + a + a + a, \end{aligned}

using a2=aa^2 = a. Since (a+a)2=a+a(a + a)^2 = a + a, this gives (a+a)+(a+a)=a+a(a + a) + (a + a) = a + a, and canceling a+aa + a in the additive group leaves a+a=0a + a = 0. So every element is its own negative: −a=a-a = a.

Next, ab=baab = ba. For a,b∈Ra, b \in R, distributivity gives

(a+b)2=a2+ab+ba+b2=a+ab+ba+b.\begin{aligned} (a + b)^2 &= a^2 + ab + ba + b^2 \\ &= a + ab + ba + b. \end{aligned}

Since (a+b)2=a+b(a + b)^2 = a + b, canceling aa and bb leaves ab+ba=0ab + ba = 0, so ab=−(ba)ab = -(ba). By the first part, −(ba)=ba-(ba) = ba. So ab=baab = ba, and RR is commutative. □

Exercise 10.5.

Let φ:R→S\varphi : R \to S be a ring homomorphism. Show that φ\varphi sends units to units, and that the restriction of φ\varphi to R×R^\times is a group homomorphism R×→S×R^\times \to S^\times. Deduce that there is no ring homomorphism from Q\mathbb{Q} to Z\mathbb{Z}.

Hint.

Apply φ\varphi to aa−1=a−1a=1aa^{-1} = a^{-1}a = 1. For the last part, look at where 22 must go.

Solution.

Let a∈R×a \in R^\times. Applying φ\varphi to aa−1=1aa^{-1} = 1 and a−1a=1a^{-1}a = 1, and using that φ\varphi preserves products and sends 11 to 11,

φ(a)φ(a−1)=φ(1)=1,φ(a−1)φ(a)=φ(1)=1.\begin{aligned} \varphi(a)\varphi(a^{-1}) &= \varphi(1) = 1, \\ \varphi(a^{-1})\varphi(a) &= \varphi(1) = 1. \end{aligned}

So φ(a)\varphi(a) is a unit of SS, with inverse φ(a−1)\varphi(a^{-1}). The restriction R×→S×R^\times \to S^\times, a↦φ(a)a \mapsto \varphi(a), therefore has values in S×S^\times, and it satisfies φ(ab)=φ(a)φ(b)\varphi(ab) = \varphi(a)\varphi(b), which is the condition for a group homomorphism (Definition 4.1.1).

Now suppose φ:Q→Z\varphi : \mathbb{Q} \to \mathbb{Z} were a ring homomorphism. Then φ(2)=φ(1+1)=1+1=2\varphi(2) = \varphi(1 + 1) = 1 + 1 = 2. But 22 is a unit of Q\mathbb{Q}, so φ(2)=2\varphi(2) = 2 would be a unit of Z\mathbb{Z}, and Z×={1,−1}\mathbb{Z}^\times = \{1, -1\}. This contradiction shows that there is no such homomorphism. □

Exercise 10.6.

Let RR be an integral domain.

  • (a) Show that the only elements x∈Rx \in R with x2=1x^2 = 1 are 11 and −1-1.
  • (b) Show that (a) fails in Z/8Z\mathbb{Z}/8\mathbb{Z}.
  • (c) Let pp be an odd prime. Show that the product of all the non-zero classes of Fp\mathbb{F}_p is [−1][-1], that is, (p−1)!≡−1(modp)(p - 1)! \equiv -1 \pmod p.
Hint.

For (a), factor x2−1x^2 - 1. For (c), pair each non-zero class with its inverse.

Solution.

(a) If x2=1x^2 = 1, then by distributivity and Theorem 10.1.3,

(x−1)(x+1)=x2+x−x−1=x2−1=0.\begin{aligned} (x - 1)(x + 1) &= x^2 + x - x - 1 \\ &= x^2 - 1 = 0. \end{aligned}

Since RR has no zero divisors, x−1=0x - 1 = 0 or x+1=0x + 1 = 0, that is, x=1x = 1 or x=−1x = -1.

(b) In Z/8Z\mathbb{Z}/8\mathbb{Z}, [3]2=[9]=[1][3]^2 = [9] = [1], but [3][3] is neither [1][1] nor [−1]=[7][-1] = [7]. The step in (a) fails because Z/8Z\mathbb{Z}/8\mathbb{Z} has zero divisors: ([3]−[1])([3]+[1])=[2][4]=[0]([3] - [1])([3] + [1]) = [2][4] = [0].

(c) Fp\mathbb{F}_p is a field (Theorem 10.2.6), so it is an integral domain (Theorem 10.2.4), and every non-zero class has an inverse in the group Fp×\mathbb{F}_p^\times. By (a), the only classes equal to their own inverse are [1][1] and [−1][-1], and these are different since p>2p > 2. The other p−3p - 3 non-zero classes fall into pairs {[a],[a]−1}\{[a], [a]^{-1}\} with [a]≠[a]−1[a] \neq [a]^{-1}: each class has exactly one inverse, and the inverse of [a]−1[a]^{-1} is [a][a], so the pairs do not overlap. Each pair multiplies to [1][1]. Multiplying all the non-zero classes in any order (the ring is commutative) gives

[1]⋅[−1]⋅[1]⋯[1]=[−1].[1] \cdot [-1] \cdot [1] \cdots [1] = [-1].

The non-zero classes are [1],[2],…,[p−1][1], [2], \dots, [p - 1], so their product is [(p−1)!][(p - 1)!], and (p−1)!≡−1(modp)(p - 1)! \equiv -1 \pmod p. □

Exercise 10.7.

Let mm and nn be positive integers.

  • (a) Show that the intersection of two ideals of a commutative ring is an ideal.
  • (b) Show that (m)∩(n)=(lcm⁡(m,n))(m) \cap (n) = (\operatorname{lcm}(m, n)) in Z\mathbb{Z}.
  • (c) Show that (m,n)=(gcd⁡(m,n))(m, n) = (\gcd(m, n)) in Z\mathbb{Z}.
Hint.

For (b), every ideal of Z\mathbb{Z} is (l)(l) for some l≥0l \ge 0; which positive element is ll? For (c), use Bézout’s identity.

Solution.

(a) Let II and JJ be ideals of a commutative ring RR. The intersection of two subgroups is a subgroup: it contains 00, and if aa and bb lie in both, so do a+ba + b and −a-a. If a∈I∩Ja \in I \cap J and r∈Rr \in R, then ra∈Ira \in I and ra∈Jra \in J, since both ideals absorb multiplication, so ra∈I∩Jra \in I \cap J.

(b) By (a), (m)∩(n)(m) \cap (n) is an ideal of Z\mathbb{Z}, and by Theorem 10.5.2 it is (l)(l) for some l≥0l \ge 0. It contains mn≠0mn \neq 0, so l>0l > 0, and by Theorem 2.3.1 ll is its least positive element. The elements of (m)∩(n)(m) \cap (n) are the common multiples of mm and nn, so ll is the least positive common multiple, lcm⁡(m,n)\operatorname{lcm}(m, n).

(c) Let d=gcd⁡(m,n)d = \gcd(m, n). Every element am+bnam + bn of (m,n)(m, n) is a multiple of dd, since dd divides mm and nn. Conversely, by Bézout’s identity, d=xm+ynd = xm + yn for some integers xx and yy, so d∈(m,n)d \in (m, n), and then every multiple rd=(rx)m+(ry)nrd = (rx)m + (ry)n lies in (m,n)(m, n). So (m,n)=(d)(m, n) = (d). □

Exercise 10.8.

Let RR be a commutative ring. For an integer nn, write n⋅1n \cdot 1 for the nn-th multiple of 11 in the additive group of RR.

  • (a) Show that χ:Z→R\chi : \mathbb{Z} \to R, n↦n⋅1n \mapsto n \cdot 1, is a ring homomorphism, and that it is the only ring homomorphism from Z\mathbb{Z} to RR.
  • (b) Show that ker⁡χ=(m)\ker\chi = (m) for exactly one integer m≥0m \ge 0.
  • (c) Show that if RR is an integral domain, then mm is 00 or a prime.
Hint.

For uniqueness in (a), a ring homomorphism must send 11 to 11 and preserve sums. For (c), what does the first isomorphism theorem say about the image of χ\chi?

Solution.

(a) Sums: by the rules for multiples in a group (Definition 2.2.1), (m+n)⋅1=m⋅1+n⋅1(m + n) \cdot 1 = m \cdot 1 + n \cdot 1. One: 1⋅1=11 \cdot 1 = 1.

Products: first, for every a∈Ra \in R and integer nn, (n⋅1)a=n⋅a(n \cdot 1)a = n \cdot a. For n≥0n \ge 0 this follows from distributivity, since (1+⋯+1)a=a+⋯+a(1 + \dots + 1)a = a + \dots + a with nn terms; for n<0n < 0, (n⋅1)a=(−((−n)⋅1))a=−((−n)⋅a)=n⋅a(n \cdot 1)a = (-((-n) \cdot 1))a = -((-n) \cdot a) = n \cdot a by Theorem 10.1.3 (ii). Applying this with a=n⋅1a = n \cdot 1,

(m⋅1)(n⋅1)=m⋅(n⋅1)=(mn)⋅1,(m \cdot 1)(n \cdot 1) = m \cdot (n \cdot 1) = (mn) \cdot 1,

again by the rules for multiples. So χ\chi is a ring homomorphism.

Uniqueness: let ψ:Z→R\psi : \mathbb{Z} \to R be any ring homomorphism. Then ψ(1)=1\psi(1) = 1, so for n>0n > 0, ψ(n)=ψ(1+⋯+1)=1+⋯+1=n⋅1\psi(n) = \psi(1 + \dots + 1) = 1 + \dots + 1 = n \cdot 1. Also ψ(0)=0\psi(0) = 0 and ψ(−n)=−ψ(n)\psi(-n) = -\psi(n), since ψ\psi is a homomorphism of additive groups. So ψ=χ\psi = \chi.

(b) By Theorem 10.4.4, ker⁡χ\ker\chi is an ideal of Z\mathbb{Z}, and by Theorem 10.5.2 it is (m)(m) for exactly one m≥0m \ge 0.

(c) By Theorem 10.5.4, Z/(m)≅χ(Z)\mathbb{Z}/(m) \cong \chi(\mathbb{Z}), and χ(Z)\chi(\mathbb{Z}) is a subring of RR. A subring of an integral domain is an integral domain (it contains the same 1≠01 \neq 0, and a product of two of its non-zero elements is non-zero in RR). So Z/(m)\mathbb{Z}/(m) is an integral domain. For m≥1m \ge 1, Z/(m)=Z/mZ\mathbb{Z}/(m) = \mathbb{Z}/m\mathbb{Z} is a domain only when mm is prime (Theorem 10.2.6). So m=0m = 0 or mm is prime. □

Exercise 10.9.

Find a surjective ring homomorphism from Z[i]\mathbb{Z}[i] to Z/5Z\mathbb{Z}/5\mathbb{Z}, show that its kernel is the principal ideal (2+i)(2 + i), and conclude that (2+i)(2 + i) is a maximal ideal of Z[i]\mathbb{Z}[i].

Hint.

A ring homomorphism must send ii to a class whose square is [−1][-1]. Which classes of Z/5Z\mathbb{Z}/5\mathbb{Z} square to [−1]=[4][-1] = [4], and which of them sends 2+i2 + i to [0][0]?

Solution.

Since i2=−1i^2 = -1, a ring homomorphism must send ii to a class [t][t] with [t]2=[−1]=[4][t]^2 = [-1] = [4], so [t]=[2][t] = [2] or [3][3]. To have 2+i2 + i in the kernel we need [2]+[t]=[0][2] + [t] = [0], so take [t]=[3][t] = [3] and define

φ(a+bi)=[a+3b].\varphi(a + bi) = [a + 3b].

It is a ring homomorphism. It sends 11 to [1][1] and preserves sums. For products, (a+bi)(c+di)=(ac−bd)+(ad+bc)i(a + bi)(c + di) = (ac - bd) + (ad + bc)i goes to [ac−bd+3ad+3bc][ac - bd + 3ad + 3bc], while [a+3b][c+3d]=[ac+3ad+3bc+9bd][a + 3b][c + 3d] = [ac + 3ad + 3bc + 9bd]; these agree because 9bd≡−bd(mod5)9bd \equiv -bd \pmod 5. It is onto, since φ(a)=[a]\varphi(a) = [a] for every integer aa.

Its kernel is (2+i)(2 + i). First, (2+i)(c+di)=(2c−d)+(c+2d)i(2 + i)(c + di) = (2c - d) + (c + 2d)i goes to [2c−d+3c+6d]=[5c+5d]=[0][2c - d + 3c + 6d] = [5c + 5d] = [0], so (2+i)⊆ker⁡φ(2 + i) \subseteq \ker\varphi. Conversely, suppose a+3b≡0(mod5)a + 3b \equiv 0 \pmod 5, so a≡2b(mod5)a \equiv 2b \pmod 5. Solving 2c−d=a2c - d = a and c+2d=bc + 2d = b gives

c=2a+b5,d=2b−a5,c = \frac{2a + b}{5}, \qquad d = \frac{2b - a}{5},

and both are integers: 2b−a≡02b - a \equiv 0, and 2a+b≡4b+b=5b≡0(mod5)2a + b \equiv 4b + b = 5b \equiv 0 \pmod 5. So a+bi=(2+i)(c+di)a + bi = (2 + i)(c + di) lies in (2+i)(2 + i).

By Theorem 10.5.4, Z[i]/(2+i)≅Z/5Z\mathbb{Z}[i]/(2 + i) \cong \mathbb{Z}/5\mathbb{Z}, which is a field (Theorem 10.2.6). So (2+i)(2 + i) is maximal, by Theorem 10.6.4 (ii). □

Exercise 10.10.

An element aa of a commutative ring RR is called nilpotent if an=0a^n = 0 for some n≥1n \ge 1. Show that the nilpotent elements of RR form an ideal of RR, and find this ideal for R=Z/12ZR = \mathbb{Z}/12\mathbb{Z}.

Hint.

If am=0a^m = 0 and bn=0b^n = 0, expand (a+b)m+n−1(a + b)^{m + n - 1} by the binomial theorem, which holds in any commutative ring, and look at the exponents in each term.

Solution.

The one non-obvious condition is closure under addition; the binomial theorem reduces it to a count of exponents. Let NN be the set of nilpotent elements.

NN contains 00, since 01=00^1 = 0. If an=0a^n = 0, then (−a)n=(−1)nan=0(-a)^n = (-1)^n a^n = 0, using Theorem 10.1.3 and commutativity, so −a∈N-a \in N. If r∈Rr \in R, then (ra)n=rnan=0(ra)^n = r^n a^n = 0 by commutativity, so ra∈Nra \in N: NN absorbs multiplication.

Sums: let am=0a^m = 0 and bn=0b^n = 0. In a commutative ring the binomial theorem holds, with the same proof by induction as for numbers, so

(a+b)m+n−1=∑k=0m+n−1(m+n−1k)akbm+n−1−k.\begin{aligned} &(a + b)^{m + n - 1} \\ &\quad = \sum_{k = 0}^{m + n - 1} \binom{m + n - 1}{k} a^k b^{m + n - 1 - k}. \end{aligned}

In each term, either k≥mk \ge m, and then ak=amak−m=0a^k = a^m a^{k - m} = 0, or k≤m−1k \le m - 1, and then the exponent of bb is m+n−1−k≥nm + n - 1 - k \ge n, so that power of bb is 00. Every term is 00 (by Theorem 10.1.3 (i)), so (a+b)m+n−1=0(a + b)^{m + n - 1} = 0 and a+b∈Na + b \in N. So NN is a subgroup under addition that absorbs multiplication: an ideal.

For Z/12Z\mathbb{Z}/12\mathbb{Z}: if [a]n=[0][a]^n = [0], then 1212 divides ana^n, so 22 and 33 divide ana^n, and hence, by Euclid’s lemma, 22 and 33 divide aa: aa is a multiple of 66. Conversely [6]2=[36]=[0][6]^2 = [36] = [0]. So the nilpotent elements are [0][0] and [6][6], and N={[0],[6]}N = \{[0], [6]\}, the ideal generated by [6][6]. □