Introduction to Modern Algebra

Contents › Chapter 10. Rings

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.