Rings and Fields
Number Systems and Axioms
So far we have worked with the familiar number systems and . 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 is a set of elements equipped with the operations of addition and multiplication. Then may or may not satisfy the following axioms.
Note
The Axioms
| Additive | Multiplicative | |
|---|---|---|
| Closure | For all , . | For all , . |
| Associativity | For all , . | For all , . |
| Commutativity | For all , . | For all , . |
| Identity | There is an element such that for all , . | There is an element such that for all , . |
| Inverses | For each , there is an element such that . | For each , if , there is an such that . |
Distributivity. For all ,
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 ( for addition, 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 "" and "" 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 satisfies additive closure, associativity, commutativity, identity and inverses, multiplicative closure and associativity, and distributivity, then 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 , for , or for division.
Unital Rings
Note
Definition (Unital Ring)
If 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 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
, , and 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 is a subset of a known ring and uses the same addition and multiplication, then associativity, commutativity and distributivity hold in automatically (they are inherited from ); 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 is not a ring.
is a subset of the ring , so we only need to test closure, identities and inverses. The additive identity axiom already fails; we need an element with for all , which forces , but
Additive inverses fail too; for we would need , which is false. Therefore, fails the additive identity and additive inverse axioms, so it is not a ring.
Example. Explain why is not a ring.
This time the additive identity is fine, since (it is important to remember that the naturals contains 0). However, additive inverses fail; consider . We need some with
but . Therefore, is not a ring, because it lacks additive inverses; basically you cannot subtract inside .
Example. Explain why is a non-unital commutative ring.
Every element of has the form for some . Since with the usual operations, associativity, commutativity and distributivity are inherited; we check the rest. For any ,
The only axiom left is the multiplicative identity, and this is the one that fails. Suppose some acted as an identity; then in particular , which forces , but as is odd. Notice how we did not just say " is not in the set"; we showed that no element of can do the job of . Therefore, 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 a ring?
No, and it dies at the very first axiom. Checking closure under addition,
and is even, so the set is not closed under addition. (It also has no additive identity, since 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 , the set of real matrices, a commutative ring?
Matrix addition and multiplication are closed, associative and distributive, the zero matrix is the additive identity, is the additive inverse of , and the identity matrix is a multiplicative identity; so is a unital ring. The axiom that fails is multiplicative commutativity. Take
Then
so . Therefore, 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 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 to represent a field, we use a double-struck letter like .
Basically, a field is a system where all four operations work; you can add, subtract, multiply, and divide by anything nonzero, since dividing by just means multiplying by . Remember that 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:
Each step to the left adds exactly one requirement: a , then commutativity of multiplication, then multiplicative inverses.
Note
Fact
, and are all fields.
Notice that has been dropped from the list compared to the rings fact; that is the whole point of the next example.
Example. Explain why is not a field.
is a commutative unital ring, so the only axiom in question is multiplicative inverses. Consider ; we need some with
but . Therefore, fails the multiplicative inverse axiom and is not a field; it is "only" a ring.
Example. Show that the only elements of that have multiplicative inverses in are .
Suppose with . Taking absolute values,
where and are positive integers (neither can be , since ). If , then ; so we are forced into , i.e. . Both actually work, since and . Therefore, doesn't just barely fail the field axioms; every integer other than is missing an inverse. (Elements of a ring that do have multiplicative inverses are called units; so the units of are exactly , while in a field every nonzero element is a unit.)
Example. Explain why is a field.
is a subset of the field with the same operations, so associativity, commutativity and distributivity are inherited; we check the rest. For closure, given ,
and since is closed under addition and multiplication, all of the components , , and are rational; so both results stay in . The identities are and , and the additive inverse of is , all clearly in .
The interesting axiom is multiplicative inverses. Given (so and are not both zero), we rationalise using the conjugate:
Both components are rational, and the denominator because are not both zero; so the inverse exists inside . Therefore, satisfies every axiom and is a field, with
Example. Find the multiplicative inverse of in , and verify it.
Using the boxed formula with , (so ),
Checking:
Therefore, the inverse of is , as required.
Example. Explain why is a field.
This runs exactly like ; it is a subset of the field , closure and identities are straightforward (e.g. , which has rational components), so the real content is multiplicative inverses. Given , we rationalise with the conjugate :
The subtle step is showing the denominator is nonzero; this is where irrationality earns its keep. Suppose with not both zero. If then forces too, a contradiction; so , and then
which says is rational; a contradiction. Hence the denominator is never zero and every nonzero element has an inverse in . Therefore, is a field. As a quick sanity check with clean numbers, the inverse of is
and indeed .
Example. (Edge case.) Is the one-element set , with and , a field under the axioms as stated?
Run through the table: closure, associativity, commutativity and distributivity are trivial since every computation outputs . The additive identity is ; the multiplicative identity is also , since holds for the only element (recall the "" in the axiom is just a name, and nothing says ). The additive inverse of is , 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, (called the zero ring) technically qualifies as a field; many texts add the extra axiom 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 or . The classic construction is : take the set , and add and multiply as usual but always replace the result with its remainder on division by (which exists and is unique by the division theorem). With these operations, is a commutative unital ring for every ; the interesting question is when it is a field.
Example. Is a field?
Everything down to the multiplicative inverse axiom checks out, so we hunt for inverses. Consider ; we need for some , so just try all six candidates:
The outputs only ever cycle through and never hit , so has no multiplicative inverse. Therefore, is a commutative unital ring but not a field. Intuitively, fails because it shares a common factor with ; every multiple of stays even, and so does its remainder after dividing by the even number .
Notice something from that list that should feel deeply wrong: in , even though and (such elements are called zero divisors). In a field, two nonzero elements can never multiply to give zero; if and exists, then
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 a field?
Again only inverses are in question, and this time every nonzero element has one:
So , , and ; every nonzero element is a unit. Therefore, 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 turns out to be a field precisely when is prime (for composite , the factors and are zero divisors just like and were in ); 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.