MATH2400 2,114 words·11 min read

Rings and Fields

Number Systems and Axioms#

So far we have worked with the familiar number systems N,Z,Q\mathbb{N}, \mathbb{Z}, \mathbb{Q} and R\mathbb{R}. These all behave nicely, but they share one problem for computational purposes; they are all infinite, whilst digital storage is finite. The plan is to eventually build finite number systems that still behave like the ones we know. To do that, we first need to describe our familiar systems as generally as possible, so that we can recognise the same properties in unfamiliar ones.

The properties we care about are called axioms; base assumptions used to build up an algebraic system. Suppose RR is a set of elements equipped with the operations of addition and multiplication. Then RR may or may not satisfy the following axioms.

Note

The Axioms

Additive Multiplicative
Closure For all a,b∈Ra,b \in R, a+b∈Ra+b \in R. For all a,b∈Ra,b \in R, ab∈Rab \in R.
Associativity For all a,b,c∈Ra,b,c \in R, (a+b)+c=a+(b+c)(a+b)+c = a+(b+c). For all a,b,c∈Ra,b,c \in R, (ab)c=a(bc)(ab)c = a(bc).
Commutativity For all a,b∈Ra,b \in R, a+b=b+aa+b=b+a. For all a,b∈Ra,b \in R, ab=baab=ba.
Identity There is an element 0∈R0 \in R such that for all a∈Ra \in R, a+0=0+a=aa+0=0+a=a. There is an element 1∈R1 \in R such that for all a∈Ra \in R, a1=1a=aa1=1a=a.
Inverses For each a∈Ra \in R, there is an element −a∈R-a \in R such that a+(−a)=0a+(-a)=0. For each a∈Ra \in R, if a≠0a \neq 0, there is an a−1∈Ra^{-1} \in R such that aa−1=1aa^{-1}=1.

Distributivity. For all a,b,c∈Ra,b,c \in R,

a(b+c)=ab+acand(a+b)c=ac+bc.a(b+c) = ab+ac \quad \text{and} \quad (a+b)c = ac+bc.

Basically, each axiom captures one piece of "normal" arithmetic behaviour. Closure says the operation never kicks you out of the set; associativity says bracketing doesn't matter; commutativity says order doesn't matter; identity says there is an element that does nothing (00 for addition, 11 for multiplication); inverses say every element can be undone (which is what subtraction and division really are); and distributivity is the one axiom that ties the two operations together.

It is important to note that the "00" and "11" in the identity axioms are just names for whichever elements do nothing; they do not have to literally be the numbers 0 and 1. Also notice the asymmetry in the inverses row; every element needs an additive inverse, but only nonzero elements are ever expected to have a multiplicative inverse (you can never divide by zero).

Rings#

Depending on which of the axioms a system satisfies, it earns different names.

Note

Definition (Non-Unital Ring)
If RR satisfies additive closure, associativity, commutativity, identity and inverses, multiplicative closure and associativity, and distributivity, then RR is called a ring. To avoid ambiguity with other texts, we might prefer to call it a non-unital ring or a ring without (multiplicative) identity.

Basically, a non-unital ring is a system where addition works perfectly (you can add and subtract freely), and multiplication merely exists and is well behaved with brackets; there is no requirement for a 11, for ab=baab = ba, or for division.

Unital Rings#

Note

Definition (Unital Ring)
If RR is a ring that also includes the multiplicative identity, it is called a unital ring or a ring with (multiplicative) identity.

Be aware that some other texts use this as the definition of a ring; always check which convention is in play before quoting a result.

Commutative Unital Rings#

Note

Definition (Commutative Unital Ring)
If RR is a unital ring that also satisfies multiplicative commutativity, it is called a commutative unital ring.

All of the rings we study in this course are unital and commutative. Unless otherwise stated, whenever the word "ring" is used in this course, it is shorthand for "commutative unital ring".

So the running total for a (commutative unital) ring is: everything in the axioms table except multiplicative inverses. In other words, a ring is a place where you can add, subtract and multiply, but not necessarily divide.

Examples and Non-Examples of Rings#

Note

Fact
C\mathbb{C}, R\mathbb{R}, Q\mathbb{Q} and Z\mathbb{Z} are all (commutative unital) rings.

Verifying all of the axioms for these is routine and self explanatory so I'm not gonna write it out.

Before doing any non-examples, here is the shortcut that saves you from checking all the axioms every single time. If SS is a subset of a known ring RR and uses the same addition and multiplication, then associativity, commutativity and distributivity hold in SS automatically (they are inherited from RR); you only ever need to check closure, the identities, and inverses. This is why most "is this a ring?" questions come down to hunting for the one or two axioms that fail; and you should always check the cheap axioms (closure and identity) first.

Example. Explain why Z+\mathbb{Z}^+ is not a ring.
Z+={1,2,3,… }\mathbb{Z}^+ = \{1,2,3,\dots\} is a subset of the ring Z\mathbb{Z}, so we only need to test closure, identities and inverses. The additive identity axiom already fails; we need an element z∈Z+z \in \mathbb{Z}^+ with a+z=aa + z = a for all aa, which forces z=0z = 0, but

0∉Z+.0 \notin \mathbb{Z}^+.

Additive inverses fail too; for 1∈Z+1 \in \mathbb{Z}^+ we would need −1∈Z+-1 \in \mathbb{Z}^+, which is false. Therefore, Z+\mathbb{Z}^+ fails the additive identity and additive inverse axioms, so it is not a ring.

Example. Explain why N\mathbb{N} is not a ring.
This time the additive identity is fine, since 0∈N0 \in \mathbb{N} (it is important to remember that the naturals contains 0). However, additive inverses fail; consider 1∈N1 \in \mathbb{N}. We need some x∈Nx \in \mathbb{N} with

1+x=0,x=−1,\begin{align*} 1 + x &= 0, \\ x &= -1, \end{align*}

but −1∉N-1 \notin \mathbb{N}. Therefore, N\mathbb{N} is not a ring, because it lacks additive inverses; basically you cannot subtract inside N\mathbb{N}.

Example. Explain why 2Z={…,−4,−2,0,2,4,… }2\mathbb{Z} = \{\dots,-4,-2,0,2,4,\dots\} is a non-unital commutative ring.
Every element of 2Z2\mathbb{Z} has the form 2m2m for some m∈Zm \in \mathbb{Z}. Since 2Z⊆Z2\mathbb{Z} \subseteq \mathbb{Z} with the usual operations, associativity, commutativity and distributivity are inherited; we check the rest. For any 2m,2n∈2Z2m, 2n \in 2\mathbb{Z},

2m+2n=2(m+n)∈2Z, (closed under addition),(2m)(2n)=2(2mn)∈2Z, (closed under multiplication),0=2⋅0∈2Z, (additive identity),−(2m)=2(−m)∈2Z, (additive inverses).\begin{align*} 2m + 2n &= 2(m+n) \in 2\mathbb{Z} \text{, (closed under addition)}, \\ (2m)(2n) &= 2(2mn) \in 2\mathbb{Z} \text{, (closed under multiplication)}, \\ 0 &= 2 \cdot 0 \in 2\mathbb{Z} \text{, (additive identity)}, \\ -(2m) &= 2(-m) \in 2\mathbb{Z} \text{, (additive inverses)}. \end{align*}

The only axiom left is the multiplicative identity, and this is the one that fails. Suppose some e∈2Ze \in 2\mathbb{Z} acted as an identity; then in particular e⋅2=2e \cdot 2 = 2, which forces e=1e = 1, but 1∉2Z1 \notin 2\mathbb{Z} as 11 is odd. Notice how we did not just say "11 is not in the set"; we showed that no element of 2Z2\mathbb{Z} can do the job of 11. Therefore, 2Z2\mathbb{Z} satisfies every ring axiom except the multiplicative identity, making it a non-unital commutative ring; a structure that fails exactly one axiom.

Example. Is the set of odd integers {…,−3,−1,1,3,… }\{\dots,-3,-1,1,3,\dots\} a ring?
No, and it dies at the very first axiom. Checking closure under addition,

1,3∈{odd integers},1+3=4,\begin{align*} 1, 3 &\in \{\text{odd integers}\}, \\ 1 + 3 &= 4, \end{align*}

and 44 is even, so the set is not closed under addition. (It also has no additive identity, since 00 is even.) Therefore, the odd integers are not a ring; there is no point checking any further axioms once closure fails, which is why closure should always be your first check.

Example. Is M2×2(R)M_{2\times 2}(\mathbb{R}), the set of 2×22\times 2 real matrices, a commutative ring?
Matrix addition and multiplication are closed, associative and distributive, the zero matrix is the additive identity, −A-A is the additive inverse of AA, and the identity matrix II is a multiplicative identity; so M2×2(R)M_{2\times 2}(\mathbb{R}) is a unital ring. The axiom that fails is multiplicative commutativity. Take

A=(1101),B=(1011).A = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}, \quad B = \begin{pmatrix} 1 & 0 \\ 1 & 1 \end{pmatrix}.

Then

AB=(1⋅1+1⋅11⋅0+1⋅10⋅1+1⋅10⋅0+1⋅1)=(2111),BA=(1⋅1+0⋅01⋅1+0⋅11⋅1+1⋅01⋅1+1⋅1)=(1112),\begin{align*} AB &= \begin{pmatrix} 1\cdot 1 + 1 \cdot 1 & 1 \cdot 0 + 1 \cdot 1 \\ 0 \cdot 1 + 1 \cdot 1 & 0 \cdot 0 + 1 \cdot 1 \end{pmatrix} \\ &= \begin{pmatrix} 2 & 1 \\ 1 & 1 \end{pmatrix}, \\ BA &= \begin{pmatrix} 1\cdot 1 + 0 \cdot 0 & 1 \cdot 1 + 0 \cdot 1 \\ 1 \cdot 1 + 1 \cdot 0 & 1 \cdot 1 + 1 \cdot 1 \end{pmatrix} \\ &= \begin{pmatrix} 1 & 1 \\ 1 & 2 \end{pmatrix}, \end{align*}

so AB≠BAAB \neq BA. Therefore, M2×2(R)M_{2 \times 2}(\mathbb{R}) is a unital ring but not a commutative one; under this course's convention (where "ring" means commutative unital ring), it does not count as a ring at all. A single explicit counterexample is all you ever need to disprove an axiom, but proving an axiom holds requires an argument for all elements.

Fields#

Note

Definition (Field)
If RR is a commutative unital ring that also includes multiplicative inverses (i.e. it satisfies every axiom in the table), it is called a field. Often instead of using RR to represent a field, we use a double-struck letter like F\mathbb{F}.

Basically, a field is a system where all four operations work; you can add, subtract, multiply, and divide by anything nonzero, since dividing by aa just means multiplying by a−1a^{-1}. Remember that 00 is exempt from the multiplicative inverse axiom; no field lets you divide by zero.

The full hierarchy is worth memorising, since exam questions usually ask you to place a given structure on it:

fields⊆commutative unital rings⊆unital rings⊆non-unital rings.\boxed{\text{fields} \subseteq \text{commutative unital rings} \subseteq \text{unital rings} \subseteq \text{non-unital rings}.}

Each step to the left adds exactly one requirement: a 11, then commutativity of multiplication, then multiplicative inverses.

Note

Fact
C\mathbb{C}, R\mathbb{R} and Q\mathbb{Q} are all fields.

Notice that Z\mathbb{Z} has been dropped from the list compared to the rings fact; that is the whole point of the next example.

Example. Explain why Z\mathbb{Z} is not a field.
Z\mathbb{Z} is a commutative unital ring, so the only axiom in question is multiplicative inverses. Consider 2∈Z2 \in \mathbb{Z}; we need some x∈Zx \in \mathbb{Z} with

2x=1,x=12,\begin{align*} 2x &= 1, \\ x &= \frac{1}{2}, \end{align*}

but 12∉Z\frac{1}{2} \notin \mathbb{Z}. Therefore, Z\mathbb{Z} fails the multiplicative inverse axiom and is not a field; it is "only" a ring.

Example. Show that the only elements of Z\mathbb{Z} that have multiplicative inverses in Z\mathbb{Z} are ±1\pm 1.
Suppose a,b∈Za,b \in \mathbb{Z} with ab=1ab = 1. Taking absolute values,

∣a∣∣b∣=1,\begin{align*} |a||b| &= 1, \end{align*}

where ∣a∣|a| and ∣b∣|b| are positive integers (neither can be 00, since 0⋅b=0≠10 \cdot b = 0 \neq 1). If ∣a∣≥2|a| \geq 2, then ∣a∣∣b∣≥2>1|a||b| \geq 2 > 1; so we are forced into ∣a∣=∣b∣=1|a| = |b| = 1, i.e. a=±1a = \pm 1. Both actually work, since 1⋅1=11 \cdot 1 = 1 and (−1)(−1)=1(-1)(-1) = 1. Therefore, Z\mathbb{Z} doesn't just barely fail the field axioms; every integer other than ±1\pm 1 is missing an inverse. (Elements of a ring that do have multiplicative inverses are called units; so the units of Z\mathbb{Z} are exactly ±1\pm 1, while in a field every nonzero element is a unit.)

Example. Explain why Q[i]={a+bi:a,b∈Q, i2=−1}\mathbb{Q}[i] = \{a+bi : a,b \in \mathbb{Q},\ i^2 = -1\} is a field.
Q[i]\mathbb{Q}[i] is a subset of the field C\mathbb{C} with the same operations, so associativity, commutativity and distributivity are inherited; we check the rest. For closure, given a+bi,c+di∈Q[i]a+bi, c+di \in \mathbb{Q}[i],

(a+bi)+(c+di)=(a+c)+(b+d)i,(a+bi)(c+di)=ac+adi+bci+bdi2=(ac−bd)+(ad+bc)i,\begin{align*} (a+bi) + (c+di) &= (a+c) + (b+d)i, \\ (a+bi)(c+di) &= ac + adi + bci + bdi^2 \\ &= (ac - bd) + (ad+bc)i, \end{align*}

and since Q\mathbb{Q} is closed under addition and multiplication, all of the components a+ca+c, b+db+d, ac−bdac-bd and ad+bcad+bc are rational; so both results stay in Q[i]\mathbb{Q}[i]. The identities are 0=0+0i0 = 0 + 0i and 1=1+0i1 = 1 + 0i, and the additive inverse of a+bia+bi is (−a)+(−b)i(-a)+(-b)i, all clearly in Q[i]\mathbb{Q}[i].

The interesting axiom is multiplicative inverses. Given a+bi≠0a + bi \neq 0 (so aa and bb are not both zero), we rationalise using the conjugate:

1a+bi=1a+bi⋅a−bia−bi=a−bia2−(bi)2=a−bia2+b2=aa2+b2−ba2+b2i.\begin{align*} \frac{1}{a+bi} &= \frac{1}{a+bi} \cdot \frac{a-bi}{a-bi} \\ &= \frac{a-bi}{a^2 - (bi)^2} \\ &= \frac{a-bi}{a^2+b^2} \\ &= \frac{a}{a^2+b^2} - \frac{b}{a^2+b^2}i. \end{align*}

Both components are rational, and the denominator a2+b2>0a^2 + b^2 > 0 because a,ba,b are not both zero; so the inverse exists inside Q[i]\mathbb{Q}[i]. Therefore, Q[i]\mathbb{Q}[i] satisfies every axiom and is a field, with

(a+bi)−1=aa2+b2−ba2+b2i.\boxed{(a+bi)^{-1} = \frac{a}{a^2+b^2} - \frac{b}{a^2+b^2}i.}

Example. Find the multiplicative inverse of 2+3i2+3i in Q[i]\mathbb{Q}[i], and verify it.
Using the boxed formula with a=2a=2, b=3b=3 (so a2+b2=13a^2+b^2 = 13),

(2+3i)−1=213−313i.\begin{align*} (2+3i)^{-1} &= \frac{2}{13} - \frac{3}{13}i. \end{align*}

Checking:

(2+3i)(213−313i)=413−613i+613i−913i2=413+913=1.\begin{align*} (2+3i)\left( \frac{2}{13} - \frac{3}{13}i \right) &= \frac{4}{13} - \frac{6}{13}i + \frac{6}{13}i - \frac{9}{13}i^2 \\ &= \frac{4}{13} + \frac{9}{13} \\ &= 1. \end{align*}

Therefore, the inverse of 2+3i2+3i is 213−313i\frac{2}{13} - \frac{3}{13}i, as required.

Example. Explain why Q[2]={a+b2:a,b∈Q}\mathbb{Q}[\sqrt{2}] = \{a + b\sqrt{2} : a,b \in \mathbb{Q}\} is a field.
This runs exactly like Q[i]\mathbb{Q}[i]; it is a subset of the field R\mathbb{R}, closure and identities are straightforward (e.g. (a+b2)(c+d2)=(ac+2bd)+(ad+bc)2(a+b\sqrt{2})(c+d\sqrt{2}) = (ac+2bd) + (ad+bc)\sqrt{2}, which has rational components), so the real content is multiplicative inverses. Given a+b2≠0a + b\sqrt{2} \neq 0, we rationalise with the conjugate a−b2a - b\sqrt{2}:

1a+b2=1a+b2⋅a−b2a−b2=a−b2a2−2b2=aa2−2b2−ba2−2b22.\begin{align*} \frac{1}{a+b\sqrt{2}} &= \frac{1}{a+b\sqrt{2}} \cdot \frac{a-b\sqrt{2}}{a-b\sqrt{2}} \\ &= \frac{a-b\sqrt{2}}{a^2-2b^2} \\ &= \frac{a}{a^2-2b^2} - \frac{b}{a^2-2b^2}\sqrt{2}. \end{align*}

The subtle step is showing the denominator is nonzero; this is where irrationality earns its keep. Suppose a2−2b2=0a^2 - 2b^2 = 0 with a,ba,b not both zero. If b=0b = 0 then a2=0a^2 = 0 forces a=0a = 0 too, a contradiction; so b≠0b \neq 0, and then

a2=2b2,(ab)2=2,2=∣ab∣,\begin{align*} a^2 &= 2b^2, \\ \left( \frac{a}{b} \right)^2 &= 2, \\ \sqrt{2} &= \left| \frac{a}{b} \right|, \end{align*}

which says 2\sqrt{2} is rational; a contradiction. Hence the denominator is never zero and every nonzero element has an inverse in Q[2]\mathbb{Q}[\sqrt{2}]. Therefore, Q[2]\mathbb{Q}[\sqrt{2}] is a field. As a quick sanity check with clean numbers, the inverse of 1+21 + \sqrt{2} is

1−212−2⋅12=1−2−1=−1+2,\begin{align*} \frac{1 - \sqrt{2}}{1^2 - 2 \cdot 1^2} &= \frac{1-\sqrt{2}}{-1} \\ &= -1 + \sqrt{2}, \end{align*}

and indeed (1+2)(−1+2)=−1+2−2+2=1(1+\sqrt{2})(-1+\sqrt{2}) = -1 + \sqrt{2} - \sqrt{2} + 2 = 1.

Example. (Edge case.) Is the one-element set {0}\{0\}, with 0+0=00 + 0 = 0 and 0⋅0=00 \cdot 0 = 0, a field under the axioms as stated?
Run through the table: closure, associativity, commutativity and distributivity are trivial since every computation outputs 00. The additive identity is 00; the multiplicative identity is also 00, since 0⋅a=a0 \cdot a = a holds for the only element a=0a = 0 (recall the "11" in the axiom is just a name, and nothing says 1≠01 \neq 0). The additive inverse of 00 is 00, and the multiplicative inverse axiom only concerns nonzero elements, of which there are none; so it holds vacuously. Therefore, under the axioms exactly as stated, {0}\{0\} (called the zero ring) technically qualifies as a field; many texts add the extra axiom 1≠01 \neq 0 purely to rule this degenerate case out. This one is worth knowing because it tests whether you read the inverse axiom carefully, not because the zero ring is ever useful.

Finite Rings and Fields#

Recall that the entire motivation for this abstraction was to find finite systems that behave like Z\mathbb{Z} or Q\mathbb{Q}. The classic construction is Zn\mathbb{Z}_n: take the set {0,1,2,…,n−1}\{0, 1, 2, \dots, n-1\}, and add and multiply as usual but always replace the result with its remainder on division by nn (which exists and is unique by the division theorem). With these operations, Zn\mathbb{Z}_n is a commutative unital ring for every n≥2n \geq 2; the interesting question is when it is a field.

Example. Is Z6={0,1,2,3,4,5}\mathbb{Z}_6 = \{0,1,2,3,4,5\} a field?
Everything down to the multiplicative inverse axiom checks out, so we hunt for inverses. Consider 2∈Z62 \in \mathbb{Z}_6; we need 2k≡12k \equiv 1 for some kk, so just try all six candidates:

2⋅0=0,2⋅1=2,2⋅2=4,2⋅3=6≡0,2⋅4=8≡2,2⋅5=10≡4.\begin{align*} 2 \cdot 0 &= 0, \\ 2 \cdot 1 &= 2, \\ 2 \cdot 2 &= 4, \\ 2 \cdot 3 &= 6 \equiv 0, \\ 2 \cdot 4 &= 8 \equiv 2, \\ 2 \cdot 5 &= 10 \equiv 4. \end{align*}

The outputs only ever cycle through {0,2,4}\{0,2,4\} and never hit 11, so 22 has no multiplicative inverse. Therefore, Z6\mathbb{Z}_6 is a commutative unital ring but not a field. Intuitively, 22 fails because it shares a common factor with 66; every multiple of 22 stays even, and so does its remainder after dividing by the even number 66.

Notice something from that list that should feel deeply wrong: 2⋅3≡02 \cdot 3 \equiv 0 in Z6\mathbb{Z}_6, even though 2≠02 \neq 0 and 3≠03 \neq 0 (such elements are called zero divisors). In a field, two nonzero elements can never multiply to give zero; if ab=0ab = 0 and a−1a^{-1} exists, then

b=1b=(a−1a)b=a−1(ab)=a−1⋅0=0,\begin{align*} b &= 1b \\ &= (a^{-1}a)b \\ &= a^{-1}(ab) \\ &= a^{-1} \cdot 0 \\ &= 0, \end{align*}

so one of them was zero all along. Spotting a zero divisor is therefore an instant way to conclude a ring is not a field, without hunting for a specific element with no inverse.

Example. Is Z5={0,1,2,3,4}\mathbb{Z}_5 = \{0,1,2,3,4\} a field?
Again only inverses are in question, and this time every nonzero element has one:

1⋅1=1,2⋅3=6≡1,3⋅2=6≡1,4⋅4=16≡1.\begin{align*} 1 \cdot 1 &= 1, \\ 2 \cdot 3 &= 6 \equiv 1, \\ 3 \cdot 2 &= 6 \equiv 1, \\ 4 \cdot 4 &= 16 \equiv 1. \end{align*}

So 1−1=11^{-1} = 1, 2−1=32^{-1} = 3, 3−1=23^{-1} = 2 and 4−1=44^{-1} = 4; every nonzero element is a unit. Therefore, Z5\mathbb{Z}_5 is a field, and a finite one; exactly the kind of object we set out to find. The pattern behind these two examples is that Zn\mathbb{Z}_n turns out to be a field precisely when nn is prime (for composite n=abn = ab, the factors aa and bb are zero divisors just like 22 and 33 were in Z6\mathbb{Z}_6); we will make heavy use of this later.

To summarise the working method: to classify a structure, march down the axioms from cheapest to most expensive; closure first, then identities and inverses, remembering that associativity, commutativity and distributivity come for free inside a known ring. To disprove an axiom, exhibit one concrete counterexample; to prove one, argue for arbitrary elements. And once all the boxes are ticked, the name of the structure just reads off how far down the field axioms you got.