📚 The CoCalc Library - books, templates and other resources
License: OTHER
Abstract Algebra: An Interactive Approach, 2e
©2015 This notebook is provided with the textbook, "Abstract Algebra: An Interactive Approach, 2nd Ed." by William Paulsen. Users of this notebook are encouraged to buy the textbook.
Chapter 9
Introduction to Rings
Initialization: This cell MUST be evaluated first:
The Definition of a Ring
While studying the previous chapters on groups, we discovered different patterns in the group's structure by which we could project and prove many useful properties. However, many of the examples of groups we studied possess some additional structure which we have yet to take advantage of.
In the remaining chapters we will look at groups which have not just one, but two operations defined on the set of elements. Not only will we be able to multiply elements together as we did for groups, but we also will be able to add elements together.
The simpliest example to consider is the group of integers, ℤ. This is a group under the operation of addition, in fact an Abelian group with the identity element being 0. However, we can also multiply two integers together, always forming another integer. Is ℤ a group using multiplication instead of addition? No, because most elements do not have an inverse. However, this extra operation gives ℤ a much richer structure than standard groups. Can you find some of the additional properties?
EXPERIMENT:
Even though ℤ is not a group using multiplication, what "grouplike" properties does multiplication have over the integers? Are there any properties which show a relationship between multiplication and addition?
We can also consider subgroups of the group of integers, ℤ. The simpliest subgroup is the set of even integers. This still is closed under multiplication, since the product of two even numbers is even. But what about the other properties of multiplication?
EXPERIMENT:
Are there any of the properties discovered in the last experiment which do not hold for the even integers?
Likewise, the group of rationals ℚ and real numbers ℝ have two operations. Although these are both abelian groups under addition, they are almost groups under multiplication as well. The multiplicative inverse exists for all elements except 0. If we considered the remaining elements ℚ-{0} or ℝ-{0}, we have the multiplicative groups denoted ℚ* and ℝ*.
Not only do ℤ, ℚ, and ℝ allow for an additional operation to be defined on them, but also some groups that we studied in Chapter 1. Take for example the groups formed by modular arithmatic, Zn. To define Z6, we used the command:
Here is the multiplication table for the group Z6, with 0 being the identity element:
Can we define another operation on this group? The natural operation would be to try multiplication modulo 6. This is defined by the command
Let us look at the new multiplication table.
Notice that this is not a group, since we don't get a Latin square. In particular, the element 0 does not have an inverse. But that shouldn't matter since 0 didn't have an inverse in any of the other examples we looked at. What if we considered the set without the zero element? Would this be a group?
EXPERIMENT:
In all of the previous groups we looked at, (ℤ, Even numbers, ℚ, Reals,) the product of two nonzero numbers was always nonzero. This allowed us to consider throwing out the zero element, and consider multiplication on the remaining elements. But what about multiplication modulo 6? Is the product of two nonzero elements always nonzero? Or is there an example where
x · y = 0
where x and y are both nonzero? If so, how many examples can you find?Here is one last example of appending an additional operation on a group.
EXAMPLE:
The following command produces the quaternion group of order 8 which we studied in chapter 4:
This group has the following multiplication table:
Notice that the multiplication of the elements of the group acts a little like the cross product of two vectors in ℝ3 expressed in terms of i, j, and k. That is,
i·j = k, j·k = i, and k·i = j.
This suggests that we can also add multiples of these elements together like vectors, forming such elements aswhich represents the vector ⟨ 1, 2,-1⟩. Two vectors can be added together in the standard way.
Can we define multiplication on all three-dimensional vectors by extending the group of quaternions?
EXPERIMENT:
Is it true that whenever we multiply two three-dimension vectors using the rules in the above table, we get another three-dimension vector? For example, try the product:
Here we get the vector which one might recognize as the cross product. Try changing the numbers in the example to see if the answer is always a three-dimensional vector.
In doing the experiment, you may have seen results that look as though a number was added to a vector. This we never allowed in Calculus class!
What could such an expression represent? We could consider the number added to the vector as a fourth dimension. This extra dimension would represent time. Thus, we would say the expression
would represent the four-dimensional vector ⟨ 2, 1, 2, -1 ⟩.
(Notice that the time dimension is listed before the three spacial dimensions.)
EXPERIMENT:
Try multiplying different four dimensional vectors together. Will the answer always be able to be represented by a four dimentional vector?
EXPERIMENT:
What happens if we try to take an inverse of a vector?
Verify that the product of the element with its inverse is 1.
Sage can help us prove the following proposition.
We call the group of four-dimensional vectors of the form a + bi + cj + dk the quaternions, denoted
by ℍ after their descoverer, William Rowan Hamilton (1805-1865).
We have seen many examples of groups that exhibit not one but two operations defined on them. One of these operations is represented with the plus sign, and the other is usually denoted with a dot. Our goal will be to come up with a definition that unites these examples. Let us consider which properties these examples have in common. However, some of the different groups we looked at possessed additional properties. To help us organize our findings, let us construct the following table to tell us which property holds for which groups.
Property | ℤ | Even integers | ℚ | Reals | Z6 | Quaternions |
---|---|---|---|---|---|---|
Closed under addition | x | x | x | x | x | x |
Closed under multiplication | ||||||
(a + b) + c = a + (b + c) |
||||||
(a·b)·c = a·(b·c) | ||||||
Additive identity (0) | ||||||
Multiplicative identity (1) | ||||||
Additive inverses exist | ||||||
Multiplicative inverses exist except for 0 | ||||||
a + b = b + a | ||||||
a·b = b·a | ||||||
a·b = 0 only if a or b = 0 | ||||||
(a + b)·c = a·c + b·c | ||||||
a·(b + c) = a·b + a·c |
EXPERIMENT:
Complete the above table by marking an "x" whenever a group possesses a given property for all elements in the group, and marking an "o" otherwise. The first row already been done. You may have to redefine some of the groups to test some of this properties. For which groups do all of the properties hold? Which properties hold for all of these groups?
We want to pay special attention to the properties that hold for all of the groups studied so far. In fact, let us define a ring as a group possessing all of these properties. In this way, we force all six of the above examples to be rings.
EXPERIMENT:
If the above table was completed correctly, one ought to be able to come up with a definition of a ring. Try to find a definition that uses only one sentence.
DEFINITION 9.1
A ring is an abelian group with the operation (+) on which a second associative operation (·) is defined such that the two distributive laws
(a + b)·c = (a·c) + (b·c)
anda·(b + c) = (a·b) + (a·c)
hold for all a, b, and c in the ring.For any ring we will use the symbol 0 to denote the additive identity of a ring, and the notation −x for the additive inverse of x.
Notice that for a group to be a ring, only 9 of the above 13 properties must hold. However, the other four properties mentioned in the table will sometimes play an important role as we study rings. Thus, if a ring has one of these additional four properties, we will give the ring a special name.
DEFINITION 9.2
A ring for which x·y = y·x for all elements x and y is called a commutative ring.
Obviously, commutative rings play a similar role in ring theory that abelian groups play in group theory.
DEFINITION 9.3
A ring for which there is an element e such that
x·e = e·x = x
for all elements x in the ring is called a unity ring or ring with identity. The element e is called the unity or multiplicative identity of the ring, to distinguish it from that additive identity 0.It should be noted before we go on that if a ring has a multiplicative identity, it has only one. If there were two, say e and e′, then
e = e · e′ = e′.
The next definition will deal with rings for which x·y = 0 implies that either x or y must be 0. However, it is reasonable to first prove the following lemma:
This proof shows that we can get the equivalent of subtraction by adding the additive inverse. But although we can add, subtract, and multiply elements in a ring, we
cannot, in general, divide elements. In fact, we can find some rings for which the product of two nonzero elements produces 0, such as 3·2=0 in the ring
Z6.
DEFINITION 9.4
If x is a nonzero element of a ring such that either x·y = 0 or y·x = 0 for a nonzero element y, then x is called a zero divisor of the ring. If a ring has no zero divisors, it is called a ring without zero divisors.
We see from this definition that 2 and 3 are zero divisors of the ring Z6, since 3·2 = 0 in this ring. A related definition stems from the product of two elements equaling the multiplicative identity.
DEFINITION 9.5
If, for the element x in a ring with identity, there is an element y such that
x·y = y·x = e,
we say that x has a multiplicative inverse, or is invertible.Just because an element is not a zero divisor does not mean that it is invertiable. For example, 2 is not a zero divisor of the ring ℤ, yet 2 is not invertible in this ring.
There is one special ring to introduce, the smallest possible ring. It is called the trivial ring, and is defined by the command:
The only element of this ring is the zero element, so here are its addition and multiplication tables:
Although this may seem like a boring example, this ring is rather interesting because the multiplicative identity is 0! (Zero times any element is that element, since that element would be 0.) In fact, 0 has itself for its multiplicative inverse. These two facts are true for no other ring, since there would be a nonzero element x, and hence
0·x = 0, not x.
Likewise, for a non-trival ring, 0 cannot have a multiplicative inverse, for otherwise0·(0-1) = 0,
which we just proved was not the multiplicative identity.Even though 0 is never invertible except for the trivial ring, we have seen several cases where all other elements have inverses.
DEFINITION 9.6
A ring for which every nonzero element has a multiplicative inverse is called a division ring.
Note that division rings automatically have some of the other properties we have discussed.
We see from this proposition that a division ring must have all but one of the 13 properties we listed, the remaining property being the commutivity of multiplication.
We will give a division ring different names depending on whether or not this last property holds.
DEFINITION 9.7
A nontrivial division ring for which x·y = y·x for all x and y is called a field. A division ring for which multiplication is not commutative is called a skew field.
We can now classify each possible type of ring. For example, the ring ℤ is a commutative unity ring without zero divisors. The ring of even integers, however, has no identity element, so we would call this a commutative ring without zero divisors. Both ℚ and the reals satisfied all 13 properties, so these two rings are fields. The ring Z6 has zero divisors, so we would call this a commutative unity ring. The quaternions have all the properties of a field except that multiplication is not commutative, so this would be an example of a skew field.
EXPERIMENT:
How many different classifications of rings are possible? Note that the trivial ring is technically not a field, so this ring would be in a catagory all by itself. By the end of this chapter we will see examples of each different type of ring.
Entering Finite Rings into Sage
Now that we have started working with rings, it is time to learn how to program Sage to work with any finite ring.
In the first eight chapters, we entered finite groups into Sage by using the generators of the group. We will use a very similar process for finite rings. If we consider a finite ring simply as an abelian group under addition, we can find a set of generators B for this group. That is, we temporally ignore the multiplication structure, and proceed as we did for groups. For each element in B we determine the additive order of the element. That is, for each generator x we want to find the smallest number n such that
We introduce a simple notation for the above equation.
DEFINITION 9.8
If n is a positive integer, and x is any element in a ring, we define n x inductively by letting 1 x = x, and
n x = (n − 1) x + x.
We also define (−n) x to be −(n x) for n a positive integer. Finally, we define 0 x = 0.Because this "multiplication by an integer" is merely a shorthand for repeated addition, we immediately see that
(m + n) x = m x + n x and (m n) x = m (n x)
for any element x and any integers n and m.However, there are other properties which are true for this notation.
We can now use this notation within Sage to generate a finite ring. For example, suppose that we wish to define a ring whose additive group is isomorphic to
Z15* = {1, 2, 4, 7, 8, 11, 13, 14}.
Two elements which generate this group are a = 2 and b = 14. Since24 ≡ 1 (mod 15) and 142 ≡ 1 (mod 15),
a is of order 4 and b is of order 2. But in the new notation, we would write4 a = 0 and 2 b = 0.
since 0 is the additive identity for the ring.To define this group in Sage, we begin by declaring that a and b will be the variables. We do this as we initialize the ring, putting the variables in quotations, just as we did with AddGroupVar for groups.
Next, we need to tell Sage what the additive order of this elements would be, expressed as a list. Since a is of order 4, and b is of order 2, this could be writen as the list [4, 2]. The following command gives us the additive group that we want.
We will explain the meaning of the second parameter [[0,0],[0,0]] later. For now, this is sufficient to define the group structure of the ring to Sage. The eight elements of the group are denoted as follows:
We notice several things from this list. First of all, the zero element is listed as 0*a, not just 0. Sage interprets 0 to mean only the integer 0, so the zero element of a ring needs a different notation. Of course 0·a would give us the zero element for any generator a, so Sage picks the first generator mentioned.
Also, we see that 3*a is simplified to -a. Sage tries to find the simplest way to express the elements of the ring. We combine two elements of this group with a plus sign rather than the dot that we used for groups. For example, here is the sum of two elements:
We can then produce an addition table for this group as follows:
Notice that there are several differences between defining a group and defining the group structure of a ring. The obvious difference is that we use the plus sign instead of the dot for our operation. Also, when we defined a group, we began by telling Sage the identity element. But for a ring, the additive identity is always denoted 0*a, and the multiplicative identity may not exist. So the first statement tells Sage the generators for the ring. Finally, all of the Define commands are combined into a single DefineRing command, which gives all of the necessary information about the ring.
There is one drawback to this approach―we must choose our generators carefully! Suppose we had chosen the generators a = 2 and b = 7. These two elements generate the group Z15*, but both are of order 4. So the Sage commands for entering these two generators would be
This gives 16 elements instead of 8. The problem is that Sage is not using the identity 2 a = 2 b, which is true since 22 ≡ 72 (mod 15). Trying to add an additional Sage command defining 2 a = 2 b would produce some potiential problems later on. A better solution is simply to make the following restriction on the set of generators.
DEFINITION 9.9
Let G be an abelian group. A basis is a set B = {x1, x2, x3, …xk} which generates the group such that the only way in which
n1 x1 + n2 x2 + n3 x3 + ··· + nk xk = 0
for integers n1, n2, n3, … nk is ifn1 x1 = n2 x2 = n3 x3 = ··· = nk xk = 0.
For a finite group, it is clear that if we have a basis, then every combination of the form
n1 x1 + n2 x2 + n3 x3 + ··· + nk xk
where each ni is non-negative and less then the order of xi, forms a distinct element. Also, every element of G could be put in that form. Thus, the product of the orders of all the elements of B equals the order of the group.It should be noted that any finite abelian group has a basis, as guaranteed by the fundemental theorem of finite abelian groups (6.2). See Problem 17. For example, we found two elements of orders 4 and 2 which generate Z15* , and since 4·2 = 8, the order of the group, so these two generators form a basis.
If we begin with a basis, it is clear that entering the order of the generators as a list like [4,2] is sufficient to define the additive group. All we need to consider now is the multiplicative definitions.
Since we have two generators a and b we will need to define 22 = 4 multiplications: a·a, a·b, b·a, and b·b.
These four products could be defined to be any of the 8 elements of the ring. This means that there are up to 84 = 4096 ways to finish defining this ring! However, very few of these ways of defining the products will satisfy both the distributive laws and the associative laws. For example, b·b cannot be defined to be a, otherwise we have the contradiction
2 a = a + a = b·b + b·b = (b + b)·b = (2 b)·b = 0·b = 0.
An example of a ring definition that does not produce such a contradiction comes from defining a2 = a, b2 = b, and a·b = b·a = 0. All other products in the ring can be determined from these using the distributive law. For example,
(2 a + b)·(a + b) = 2 a2 + b·a + 2 a·b + b2 = 2 a + 0 + 0 + b = 2 a + b.
The second argument of the DefineRing command allows us to tell Sage all of the possible products of two generators. These are entered as a array, using the same ordering as the original basis elements were ordered. For example, if a and b are the two generators, then the array would consist of
[[a·a, a·b], [b·a, b·b]].
To define the ring described in the above paragraph, we can useHere is a table of both the addition and multiplication operation:
Of course we still have not proven that this is a ring, since we have not verified the distributive laws and the associativity law for multiplication. This tedious task can be handled my Sage by the command
Here Sage knows to check the ring that we have just defined, so we don't need an argument for the CheckRing command. Sage found that this was indeed a ring.
Since R is obviously commutative from the multiplication table, the next question is whether R has a unity. Sage can search the ring for a unity element with the command
Even though we did not use the unity to construct the ring, Sage found one!
By looking at the multiplication table
we see that there are many zero-divisors. (How many?) Hence, this is not a division ring. Nonetheless, Sage can try to take the inverses of some of the elements.
In many respects, this ring has similar properties as the ring Z6 that was studied in the last section.
Can we try defining a non-commutative ring? It is apparent that we need at least two additive generators, since the multiplication is completely determined by the products of the generators.
EXAMPLE:
Try to define a non-commutative ring using Z15* as the additive group.
If we make a·b = b, and b·a = 2a, then the ring will not be commutative.
Does this form a ring? No, Sage complained that sometimes the associative law doesn't hold. Can we change the definition of a2 and b2 to make this a ring?
EXPERIMENT:
By changing only the ??? in the Sage command
see if you can form a ring.
Hint: Although this seems like a trial and error process with 8·8 = 64 combinations, all but a handful can be eliminated using algebra! (There are actually two different solutions.) For example, since (a·b)·a = a·(b·a), we see that 2 a = 2 a2.
Assuming that you have found the right definition for a2 and b2, you can list the elements of the ring with the command
Does this ring have a unity? We can find out:
So there is no unity element. In fact, if we look at the multiplication table:
we find that there is one element which, when multiplied by any element, gives 0! Hence every element is a zero-divisor. This example shows that rings can have rather bizarre multiplication properties.
Since we have seen an example of a non-communitive ring without a unity, can we find a non-communitive unity ring? The following proposition shows that we will not be able to use Z15* for the additive group.
The smallest group which requires more than two generators is the group Z24*. So naturally we should begin with this group in looking
for a non-communative unity ring. We may suppose that the ring is additively generated by the unity e, along with two other
elements a and b. Since e is the unity, we know that e2 = e,
e·a = a·e = a, and e·b = b·e = b. We can enter
this information into Sage with the following commands:
Finally, we have to define a·a, a·b, b·a, and b·b. These entries were entered as 0 in the previous command. Suppose we instead have a·b = a and b·a = b. This would make the ring non-commutative. Let's try it out:
Sage complains that this is not a ring. Can we try changing the definitions for a2 and b2 so that the result will be a ring?
EXPERIMENT:
Can you form a ring by changing the two ???'s in the following command?
There is a unique answer, and it can be found without resorting to trial and error methods.
Once we have completed the definition of the ring, we can look at the addition and multiplication tables.
We can verify by looking at the tables that this ring indeed has a unity, or we can use Sage to find it.
Because we will refer to this ring often, we will call this ring T8.
It is easy to see that any finite ring can be quickly entered into Sage. In fact many infinite rings such as the quaternions, can also be explored with Sage. This will allow us to experiment with many different rings, and find properties which are common to all rings. In the next section we will look at some of the basic relationships between rings.
Some Properties of Rings
Now that we can enter finite rings into Sage, let us turn our attention to using Sage to help us discover some truths about rings. In particular, we want to study in what circumstances multiplicative inverses exist.
One of the simpliest rings to study are the rings Zn for n > 1.
We have learned how to define the addition structure with a ZGroup command, and the multiplication can be defined using a ZStar command. We actually can define both of these at once with the command
This defines both the addition and multiplication operations at the same time. The ring is generated by the identity element, 1. Thus, the elements of the ring Z15 are:
We can see both the addition and multiplication table for Z15:
We can perform simple operations in Z15
This last operation shows that we can take multiplicative inverses of some of the elements.
EXPERIMENT:
Change the 15 in the following command to other positive integers. This produces both a multiplication table for Zn along with a circle graph of the inverse function.
In each case, observe from the circle graph which elements have multiplicative inverses. Which elements are zero divisors? Is there a relationship between the invertible elements and the zero divisors? Can you replace the 15 with some integer so that the ring has no zero divisors?
Before going on, we should double check that it is imposible for an element to have two inverses. The proof is similar to the corrisponding result for groups.
Now we can return our attention to the ring Zn. In trying to find values for n in which Zn has no zero divisors, you may have noticed the following:
Even if n is not prime, one of the observations that can be made while studying Zn is that the zero divisors were precisely the nonzero
elements that did not have an inverse. Is this true in the other rings that we have studied? For example, here is the
multiplication table of the non-commutative unity ring T8
that we found before:
Notice that there are two invertible elements, determined by the 2 e's inside the table. The other 5 nonzero elements can be seen to be zero divisors. This suggests a pattern, but before we can prove that this pattern continues to other rings, we will need the following lemma.
We are now ready to show a relationship between zero divisors and invertible elements. Notice that in the ring ℤ, the element 2 is not invertible, but neither is it a zero divisor. This example seems to break the pattern that we have been observing, but also notice that ℤ is an infinite ring. Perhaps if we consider only finite rings, that is, rings with only a finite number of elements, we will be able to prove that a relationship between zero divisors and invertible elements.
There are some immediate consequences to Proposition 9.6.
This corollary allows us to find many examples of fields.
To conclude this chapter, let us find an example of each of the 11 different types of rings that could exist. Every ring will fall into one of the following catagories.
Type I: The Trivial Ring
Of course, there is only the one ring in this catagory, whose addition and multiplication tables are both given by the following command:
Type II: Fields
We have already seen several examples of fields in the first section, such as the rational numbers and the real numbers. But Corollary 9.2 has given us many more examples. Here is the addition and multiplication table for one of the finite fields, Z7:
Type III: Skew Fields
The only example of a skew field that we have seen so far is the quaternions, the first known example. Unlike fields, skew fields are quite rare―in fact there are no finite skew fields.
Type IV: Commutative unity rings without zero divisors, but which are not fields
We have seen one important example of a ring of this type, namely the ring of integers ℤ. All rings of this type possess many of the properties of integers, such as having "prime elements.". Thus, we give this important class of rings a special name―integral domains. We will study integral domains in depth in Chapters 10 and 13.
Type V: Non-commutative unity rings without zero divisors, but which are not skew fields
By Proposition 9.6, any ring of this type must be an infinite ring. So the natural place to look for such a ring would be some restriction of the quaternions. We consider the integer quaternions, that is, quaternions of the form
a + b i + c j + d k
where a, b, c, and d are all integers. Certainly the product and sum of two integer quaternions would yield integer quaternions, and so these would form a ring. However, 2 has no inverse in the integer quaternions, so this is not a skew field.Type VI: Commutative rings without unity and without zero divisors
We saw one example of a ring of this type in the first section, the even integers. In fact, if n > 1, then all multiples of n will form a ring of this type. We will see more examples of rings of this type when we study ideals in Chapter 10.
Type VII: Non-commutative rings without unity and without zero divisors
Again, by Proposition 9.6, all rings of this form must be infinite rings. We can apply the same trick used for the type VI ring to the integer quaternions, and obtain the even quaternions, that is, quaternions of the form
a + b i + c j + d k
where a, b, c, and d are all even integers. It is easy to check that the sum and product of two even quaternions yield even quaternions. However, this ring does not have a unity element.Type VIII: Commutative unity rings with zero divisors
Proposition 9.5 gives us many examples of such rings―Zn for any n > 1 which is not prime. Here is one example:
Type IX: Non-commutative unity rings with zero divisors.
We constructed one example of this type of ring in the last section. We called this ring T8, the smallest non-commutative ring with an identity. Here is the addition and multiplication table of T8:
Proposition 9.3 shows that there is no smaller ring of this type.
Type X: Commutative rings without unity and with zero divisors
One of the simpliest example of ring of this type would be the ring of even elements of Z8: {0,2,4,6}. By setting a = 2, we can list the elements of this ring as {0, a, 2a, 3a}, and hence enter this ring into Sage with the commands
Are there any smaller rings which fit into this catagory?
Type XI: Non-commutative rings without unity and with zero divisors
We constructed one example of a ring of this type in the previous section:
This is not the smallest ring of this type. In fact, there is a non-commutative ring of order 4, with the following addition and multiplication tables:
+ | 0 | a | b | c |
---|---|---|---|---|
0 | 0 | a | b | c |
a | a | 0 | c | b |
b | b | c | 0 | a |
c | c | b | a | 0 |
· | 0 | a | b | c |
---|---|---|---|---|
0 | 0 | 0 | 0 | 0 |
a | 0 | a | a | 0 |
b | 0 | b | b | 0 |
c | 0 | c | c | 0 |
We will refer to this ring as T4.
EXPERIMENT:
See if you can change the definition of the last ring to produce this non-commutative ring of order 4.
After the trivial ring, these rings are basically ordered from the most important to the least. As you might guess from this list, the study of rings can go deeper than group theory. However, by making observations on the rings mentioned in this list we can get a feel for how rings of different types behave.
Proofs:
Proof of Proposition 9.1:
If x = a + b i + c j + d k is non-zero, then
x-1 = | a | + | − b | i + | − c | j + | − d | k |
a² + b² + c² + d² | a² + b² + c² + d² | a² + b² + c² + d² | a² + b² + c² + d² |
forms a multiplicative inverse, since it is a simple exerise to show that x·x-1 = x-1·x = 1, the multiplicative identity. (See Problem 10.)
Note that since x ≠0, the denominator a2 + b2 + c2 + d2 > 0. It is easy to see that multiplication is closed. The only hard part is to show that the associative law holds, which is best done in Sage.
First we define lots of variables.
Next, we define three general quaternions.
Let us find (x·y)·z in two steps, and call this w
This looks like a total mess. Now let us find x·(y·z).
This gives another big mess. Are the two messes equal?
This produces 0, showing that (x·y)·z = x·(y·z). Thus, Sage has proven that multiplication is associative.
Given that the associative law holds, it is easy to see that the product of two nonzero vectors must be nonzero. If x·y =0, and say x ≠ 0, then
y = (x-1·x)·y = x-1·(x·y) = x-1·0 = 0.
Thus, if both x≠0 and y≠0, then x·y≠0.Proof of Lemma 9.1:
This proof is just a little tricky because there are no other propositions to rely on. Thus, every step must directly use one of the nine properties of rings. (The temptation is to rely on some property we suspect is true, but haven't yet proven.)
Note that
(0·x + 0·x) =(0 + 0)·x = 0·x,
so(0·x + 0·x) + (−(0·x)) = 0·x + (−(0·x)) = 0.
Hence0·x + (0·x + (−(0·x))) = 0,
so0·x + 0 = 0·x = 0.
Similarly,
(x·0 + x·0) = x·(0 + 0) = x·0,
so(x·0 + x·0) + (−(x·0)) = x·0 + (−(x·0)) = 0.
Hencex·0 + (x·0 + (−(x·0))) = 0,
sox·0 + 0 = x·0= 0.
Proof of Proposition 9.2:
We just saw that the trivial ring has a unity and has no zero divisors, so we may assume that the ring has a nonzero element y. Then y has a multiplicative inverse z, so we have y·z = e, the unity. Thus, every division ring must have a unity.
Now suppose that x·y = 0 in a division ring, with both x and y nonzero. Then y has a multiplicative inverse z, so that y·z = e. But then
x = x·e = x·(y·z) = (x·y)·z = 0·z = 0,
which contradicts the fact that x is nonzero. Thus, a division ring has no zero divisors.Proof of Lemma 9.2:
We will proceed by induction. The statement is certainly true for n = 0 or n = 1. Suppose that the statement is true for the previous case n − 1. But then
((n − 1) x)·y + x·y = (n − 1) (x·y) + x·y = x·((n − 1) y) + x·y.
Hence, by the distributive law,((n − 1) x + x)·y = ((n − 1) + 1) (x·y) = x·((n − 1) y + y),
and so(n x)·y = n (x·y) = x·(n y).
Hence, the statement is true for all positive integers.For negative integers, we can merely show that
(n x)·y + ((−n) x)·y = (n x + (−n) x)·y = ((n − n) x)·y = 0·y = 0.
n (x·y) + (−n) (x·y) = (n − n) (x·y) = 0 (x·y) = 0.
x·(n y) + x·((−n) y) = x·(n y + (−n) y) = x·(( − n) y) = x·0 = 0.
Thus, ((−n) x)·y, (−n) (x·y), and x·((−n) y) are the additive inverses of (n x)·y, n (x·y) and x·(n y), respectively. But since these latter three are equal for positive n, we have((−n) x)·y = (−n) (x·y) = x·((−n) y).
Hence the lemma is proven for all integers n.
Proof of Proposition 9.3:
Suppose that x and y are two elements of the ring that generate the group under addition. That is, every element can be expressed as m x + n y for integers m and n. In particular, the unity
e = m x + n y
for some integers m and n. Since e commutes with both x and y, we havem x·x + n y·x = (m x + n y)·x = e·x = x·e = m x·x + n x·y,
so n y·x = n x·y.Likewise,
m x·y + n y·y = (m x + n y)·y = e·y = y·e = m y·x + n y·y,
so m x·y = m y·x.By the greatest common divisor theorem (0.4), there are integers u and v such that
u m + v n = gcd(m, n).
If we let c denote the greatest common divisor of m and n, thenc(x·y − y·x) = (u m + v n)(x·y − y·x) = u (m x·y − m y·x) + v (n x·y − n y·x) = 0.
What we need to show is that x·y − y·x = 0. The tempting thing to do is divide by c, but this operation is not allowed in rings. Instead, we will again utilize the unity. Since c = gcd(m, n), there are integers a and b such that m = a c and n = b c.
Then
x·y − y·x = e·(x·y − y·x) = (a·c·x + b·c·y)·(x·y − y·x) = (a·x + b·y)·(c·(x·y − y·x)) = (a·x + b·y)·0 = 0.
So x·y = y·x, and the ring is commutative.Proof of Lemma 9.3:
Suppose that y and z are two inverses of x. Then
y = y·e = y·(x·z) = (y·x)·z = e·z = z,
which is a contradiction.Proof of Proposition 9.4:
Since the unity element is invertible, R is non-empty. Also, if x is invertible, then (x-1)-1 = x, so x-1 is also in R. Finally, if x and y are both invertible, then since
(x·y)·(y-1·x-1) = x·x-1 = e,
we see that x·y is invertible. The associative law comes from the associative multiplication of the ring. So the set of invertible elements forms a group.
Proof of Proposition 9.5:
First suppose that n is not prime. Then we can express n = a b, where a and b are less then n. If e represents the identity element of Zn, we would then have
(a e)·(b e) = (a b) (e·e) = (a b) e = n e = 0.
But since a and b are both less than n, (a e) and (b e) are both nonzero. Hence, these would both be zero divisors in Zn.
Now suppose that n is prime, and that there are two nonzero elements (a e) and (b e) such that (a e)·(b e) = 0. Then
(a e)·(b e) = (a b) (e·e) = (a b) e = 0.
This would imply that (a b) is a multiple of n. But since n is prime, we would have to conclude that either a or b is a multiple of n. But this contradicts the fact that both (a e) and (b e) are nonzero. Thus, if n is prime, there are no zero divisors in Zn.
Proof of Lemma 9.4:
The tempting thing to do is to multiply both sides of the equation by a-1. But the inverse of a may not exist, so we have to use the properties of rings instead.
If a·b = a·c, then we have
0 = a·b − a·c = a·(b − c).
But since a is not a zero-divisor and is nonzero, we must have that b − c = 0. Hence b = c.Likewise, if b·a = c·a, then
0 = b·a − c·a = (b − c)·a,
and since a is nonzero and not a zero divisor, b − c = 0, and so b = c.Proof of Proposition 9.6:
To utilize the fact that R is finite, let us construct a sequence of powers of b:
{b1, b2, b3, b4, …}
Since R is finite, two elements of this sequence must be equal, say bm = bn for m < n. Using the law of cancellation, we have bm−1 = bn−1. Continuing this way, we eventually getb = bn−m+1
(It is tempting to use Lemma 9.4 one more time to get e = bn−m, but unfortunately we have yet to prove that R has a unity.)If we now let a = n − m + 1, we have that a > 1 and ba = b.
Next, let us show that ba−1 is a unity element in R. For any element x in R, we have
x·ba = x·b,
and since b is nonzero and not a zero divisor, we can use the law of cancellation to getx·ba−1 = x.
Likewise, since ba·x = b·x, we have that ba−1·x = x. Hence, there is a unity element in R, namely ba−1.Finally, we need to construct an inverse for the element b. If a = 2, then we have just shown that b = e, and hence b is its own inverse. If a > 2, consider the element ba−2. We have that
b·ba−2 = ba−1 = e, and ba−2·b = ba−1 = e.
So ba−2 is the multiplicative inverse of b.Proof of Corollary 9.1:
The trivial ring is already considered to be a division ring, so we may assume that the ring is nontrivial. Then there exists a nonzero element that is not a zero divisor, so by Proposition 9.6, the ring has a unity. Also by Proposition 9.6, every nonzero element will have a multiplicative inverse, so the ring is a division ring.
Proof of Corollary 9.2:
If n = 1, then the ring Zn = Z1 is the trivial ring, which we did not consider to be a field. We may suppose that n > 1. If n is prime, then by Proposition 9.5, Zn has no zero divisors, and so by Corollary 9.1 Zn is a division ring. Since Zn is obviously commutative, this tells us that Zn is a field.
Now suppose that n > 1 and n is not prime. By Proposition 9.5, Zn has zero divisors, which cannot exist is a field according to Proposition 9.2. Therefore Zn is a field if, and only if, n is prime.
Sage Interactive Problems
§9.1 #20)
We saw that the ring Z6 had zero divisors. We can enter this ring in Sage with the command
Try this with Z5, Z7, Z8, Z9, Z10, Z11, and Z12, and form the multiplication tables of these rings. Which ones have zero divisors? Which ones are fields?
§9.1 #21)
Use Sage to show that quaternion multiplication is associative. That is, if we define
then show that (x·y)·z = x·(y·z).
§9.2 #18)
Use Sage or define a ring of order 2 that has no identity element. Show both the addition table and the multiplication table.
§9.2 #19)
Use Sage to find a non-commutative ring of order 8, for which the additive group is isomorphic to Z24*, formed from the basis {a, b, c}, and for which
a·b = a, b·a = b, a·c = c, and c·a = a.
(Hint: Using the associtivity law, determine what a2, b2, and c2 must be. Then show that c·b must commute with a. Use trial and error to determine b·c.
§9.2 #20)
Use Sage to find a non-commutative ring of order 8, for which the additive group is isomorphic to Z24*, formed from the basis {a, b, c}, and for which
a2 = a + c, a·b = b + c, b·a = b, and c·b = c.
§9.2 #21)
Define in Sage a non-commutative ring of order 4.
(Hint: By Problem 12, the additive group must be isomorphic to Z8*.)
§9.3 #19)
9.4 ) Define in Sage the smallest non-commutative ring T4 described in the text. Use a and c for the generators.
§9.3 #20)
Define in Sage the smallest non-commutative unity ring T8 described in the text.
(Hint: The basis can be chosen to be e, a, and b.)