Chap 4
Chap 4
In this final chapter we move on from studying the objects of mathematics, like numbers or
matrices, to looking at the ways we compare or combine them. We’ll study binary relations,
which are comparisons between elements of a set (such as < or =), and binary operations,
which are ways of combining elements of a set to produce another element of a set (such as
addition or multiplication of integers, or connectives ∧ and ∨ for statements). Some binary
operations on sets behave ‘nicely’ and the sets with these operations are called groups, for
example the set of integers under addition. Groups occur in many guises and group theory is
a very important part of mathematics. We’ll study groups in the second half of this chapter.
More formally, a binary relation on A is a subset R of A × A. [The set R is the set of all pairs
for which the relation is true.] If (a, b) ∈ R, then we say that a and b are related and write aRb.
If A is finite then a relation R on A can be represented by its adjacency matrix. Given some
ordering a1 , a2 , . . . , an of the elements of A, then the adjacency matrix of R is an n × n matrix
(rij )n×n where
1 if ai Raj ;
rij =
\ j.
0 if ai Ra
88 Proof & Structure Chapter 4: Relations, Operations, Groups
Example 4.1.1 The relation > on the set A = {1, 2, 3, 4, 5, 6} taken in this order has the
following adjacency matrix.
0 0 0 0 0 0
1 0 0 0 0 0
1 1 0 0 0 0
1 1 1 0 0 0
1 1 1 1 0 0
1 1 1 1 1 0
Example 4.1.2 The following table gives a list of sets together with a relation on that set. In
this table E is a universal set and P (E) is its power set. S is the set of statements which can be
made from a collection p1 , p2 , . . . , pn of statements, using the connectives ¬, ∧, ∨ and ⇒, and
M(m, n) is the set of m × n matrices over R.
Set Relation
Z <
Z ≤
Z | (divides)
Z congruence modulo n
Z R0 , where mR0 n if and only if m + n is even
Z+ R1 , where mR1 n if and only if gcd(m, n) > 1
R R2 , where xR2 y if and only if x − y ∈ Q
Z × Z+ R3 , where (a, b)R3 (c, d) if and only if ad = bc
P (E) ⊆
S ⇐⇒ , where s1 ⇐⇒ s2 if and only if s1 and s2 are equivalent statements.
M(n, n) R4 , where AR4 B if and only if there is an
invertible matrix P such that P A = B
M(n, n) R5 , where AR5 B if and only if there is an
invertible matrix P such that P −1 AP = B
M(n, n) R6 , where AR6 B if and only det AB ≥ 0
Exercise 4.1 Give the adjacency matrix of the relations | , R0 and R1 when restricted to the
set A = {1, 2, 3, 4, 5, 6} (taking the elements in increasing order).
Example 4.1.3 The following are the digraphs associated with the relations >, |, R0 and R1
when restricted to the set A = {1, 2, 3, 4, 5, 6}.
�1
�
�5
6
�� ��2 ��4 3�
1 �
�� ��
��
5 3 �
� � ��
� 2 6
4
">" "|"
1 � 4
�� 2
� �� �
� � 1
�
� � �� �
3 5 ��6
2 4
� � 5
�
�
��3
��
6
" R0 " " R1 "
Types of Relation
A relation R on a set A is reflexive if for all a ∈ A, aRa. If a relation is reflexive, then there
is a loop at every vertex in the corresponding digraph, and the main diagonal of the adjacency
matrix is (1, 1, . . . , 1).
Example 4.1.4 We now consider some of the relations given in Example 4.1.2.
The relation < on Z is not reflexive, since no integer is less than itself, but ≤ is reflexive on Z.
For all integers m and n, n divides m − m = 0. Thus the relation congruence modulo n is
reflexive on Z.
\ 1 1 and so R1 is not reflexive on Z+ . Note that for all integers m > 1,
Since gcd(1, 1) = 1, 1R
gcd(m, m) = m > 1 and so mR1 m. However, a relation R is reflexive on a set if and only if
aRa for all a in the set.
The relation R5 on M(n, n) is reflexive, since for all A ∈ M(n, n), In−1 AIn = A. (Here, In is
the identity matrix.)
Exercise 4.2 Determine which, if any, of the remaining relations given in Example 4.1.2 are
reflexive.
� ��
��
�
� �
Example 4.1.5 We now consider some of the relations given in Example 4.1.2.
The relations < and ≤ on Z are not symmetric. For example, 5 ≤ 9 but 9 ≤ 5.
For all integers l, m and n (with n ∈ Z+ ), if l ≡ m (mod n), then n divides l − m. Hence n
divides −(l − m) = m − l and so m ≡ l (mod n). Thus the relation of congruence modulo n
is symmetric on Z.
For all m, n ∈ Z+ , gcd(m, n) = gcd(n, m). Thus R1 is symmetric on Z+ .
The relation R5 on M(n, n) is symmetric since for all A, B ∈ M(n, n), if AR5 B, then there
is an invertible matrix P such that P −1 AP = B. Let Q = P −1 . Then Q−1 BQ = P BP −1 =
P P −1AP −1 P = A. Thus BR5 A.
Exercise 4.3 Determine which, if any, of the remaining relations given in Example 4.1.2 are
symmetric.
A relation R on a set A is transitive if, for all a, b, c ∈ A, if aRb and bRc, then aRc. If a
relation is transitive, then in the corresponding digraph, for every directed path u to v to w
there is an edge joining u to w. In particular, if there are two edges of a triangle, then the
whole triangle is part of the digraph.
v
�
u�
�
�w
Example 4.1.6 We now consider some of the relations given in Example 4.1.2.
The relations < and ≤ on Z are transitive.
For all integers a, b and c, and n ∈ Z+ , if a ≡ b (mod n) and b ≡ c (mod n), then n divides
a − b and b − c. Hence n divides (a − b) + (b − c) = a − c and so a ≡ c (mod n). Thus the
relation of congruence modulo n is transitive on Z.
The relation R1 is not transitive on Z+ . For example, 5R1 10 and 10R1 16 since gcd(5, 10) =
5 > 1 and gcd(10, 16) = 2 > 1. However, 5R\ 116, since gcd(5, 16) = 1.
The relation R5 on M(n, n) is transitive since for all A, B, C ∈ M(n, n), if AR5 B and BR5 C,
then there are invertible matrices P and Q such that P −1 AP = B and Q−1 BQ = C. Let
S = P Q. Then S −1 AS = Q−1 P −1 BP Q = Q−1 BQ = C. Thus AR5 C.
Exercise 4.4 Determine which, if any, of the remaining relations given in Example 4.1.2 are
transitive.
4.2 Equivalence Relations Proof & Structure 91
Exercise 4.5 Which, if any, of the relations in Example 4.1.2 are equivalence relations?
Let ∼ be an equivalence relation on a (nonempty) set A and let a ∈ A. The equivalence class
of a, denoted [a], is the set of elements of A which are related to a. That is
[a] = {b ∈ A : b ∼ a}.
Proof (⇐) Suppose that [a] = [b]. Since a ∼ a, a ∈ [a]. Thus a ∈ [b] and so a ∼ b by the
definition of [b].
(⇒) Suppose a ∼ b. Then by the symmetric property, b ∼ a. Let x ∈ [b]. Then x ∼ b. So
x ∼ b and b ∼ a. Thus, by transitivity, x ∼ a and hence x ∈ [a]. Therefore [b] ⊆ [a]. A similar
argument gives [a] ⊆ [b]. Hence [a] = [b].
Lemma 4.2.5 Let ∼ be an equivalence relation on a set A, and let a, b ∈ A. If [a] = [b], then
[a] ∩ [b] = ∅.
92 Proof & Structure Chapter 4: Relations, Operations, Groups
Proof (Contrapositive) Suppose [a] ∩ [b] = ∅. Then there exists x ∈ [a] ∩ [b]. Since x ∈ [a],
x ∼ a. Thus, by Lemma 4.2.4, [x] = [a]. Since x ∈ [b], x ∼ b. So by Lemma 4.2.4, [x] = [b].
Thus [a] = [x] = [b]. That is, [a] = [b].
Let ∼ be an equivalence relation on a set A. Since every element a ∈ A lies in exactly one
equivalence class, we can reconstruct the classes by giving a list of one representative of each
class. That is, we can choose a collection ai ∈ A, where i ∈ I for some indexing set I, such
that every element is in exactly one of the sets [ai ], i ∈ I. That is {[ai ] : i ∈ I} is a partition of
the elements of A. We call the ai equivalence class representatives.
Example 4.2.6 Consider the equivalence relation on Z of congruence modulo 4. Then [a] = [b]
if and only if a ≡ b (mod 4). There are four equivalence classes, and one set of equivalence
class representatives is {0, 1, 2, 3}. Another set is {8, 5, 2, 3}, as [8] = [0] and [5] = [1]. Any list
containing precisely one representative of each equivalence class is fine.
Example 4.3.2 Let A = Zn = {0, 1, . . . , n − 1}. Then ⊕ and ⊗ are binary operations on A.
[Recall that for a, b ∈ Zn , a ⊕ b and a ⊗ b are the elements of Zn congruent modulo n to a + b
and ab respectively.]
Example 4.3.3 Let P (E) be the power set of E. Then ∩, ∪ and \ are binary operations on
P (E).
Example 4.3.4 Let A be the set of all mappings from a set X to itself (so each f in A, is
a mapping f : X → X). Then ◦, the composition of mappings, is a binary operation on A,
defined as follows: if f, g ∈ A, then for all x ∈ X, f ◦ g(x) = f (g(x)).
Example 4.3.5 Matrix addition is a binary operation on M(m, n) and matrix multiplication
is a binary operation on M(n, n).
The previous examples are all familiar operations. However, it is possible to define all kinds of
‘unusual’ binary operations, as the following examples illustrate.
Example 4.3.8 Let A be any set and let c ∈ A. Then • and · defined by a • b = a and a · b = c
respectively are (rather dull) binary operations on A.
Multiplication Tables
Let A be a finite set. Then we can list the elements of A in some order a1 , a2 , . . . , an , say. If ∗
is a binary operation on A, then the multiplication table of A, with respect to this ordering,
is an n × n array in which the entry in the ith row and j th column (1 ≤ i, j ≤ n) is ai ∗ aj .
Example 4.3.9 The following are the multiplication tables for Z6 under ⊕ and ⊗ respectively.
⊕ 0 1 2 3 4 5 ⊗ 0 1 2 3 4 5
0 0 1 2 3 4 5 0 0 0 0 0 0 0
1 1 2 3 4 5 0 1 0 1 2 3 4 5
2 2 3 4 5 0 1 2 0 2 4 0 2 4
3 3 4 5 0 1 2 3 0 3 0 3 0 3
4 4 5 0 1 2 3 4 0 4 2 0 4 2
5 5 0 1 2 3 4 5 0 5 4 3 2 1
We can also use multiplication tables to define a binary operation on a finite set A.
Example 4.3.10 The following multiplication tables define three different binary operations
on the set A = {a, b, c, d}.
∗ a b c d ∗ a b c d ∗ a b c d
a a b d c a d a b c a c a d b
b b b d c b c d a b b a b c d
c d d a b c a b c d c d c b a
d c c b c d b c d a d b d a c
Example 4.3.11 R is commutative under +, but not under −. For example, 7−3 = 4 = 3−7.
Exercise 4.6 Which of the following binary operations are commutative on the given set?
Give examples to illustrate the cases where the binary operation is not commutative.
(a) C under ×;
(b) Q∗ under ÷;
(c) P (E) under ∩;
(d) M(2, 2) under matrix multiplication;
(e) C under ⊙, where w ⊙ z = wz;
(f) any set A under •, where a • b = a;
(g) any set A under ·, where a · b = c for some constant c ∈ A.
A binary operation ∗ on a set A is associative on A if for all a, b, c ∈ A, a ∗ (b ∗ c) = (a ∗ b) ∗ c.
Unfortunately there is no easy way to verify that a binary operation on A is associative from
its multiplication table.
Example 4.3.14 R under + is associative, but under − is not associative. For example
4 − (8 − 3) = 4 − 5 = −1, but (4 − 8) − 3 = −4 − 3 = −7.
Exercise 4.7 Which of the binary operations (a)–(g) given in Exercise 4.6 are associative
on the given set? Give examples to illustrate the cases where the binary operation is not
associative.
Exercise 4.8 The definitions of commutativity and associativity may seem very similar; both
are concerned with the order in which the elements are combined. But they are independent
properties. Establish this by giving examples of binary operations ∗ and ⋄ on given sets such
that ∗ is commutative but not associative, and ⋄ is associative but not commutative.
Note You may state without proof that the following binary operations on the given sets are
both commutative and associative (and remember that Z ⊆ Q ⊆ C).
Important: you must first check that the given operation ∗ is a binary operation on the given
set – that is, that the product of elements under ∗ is an element of the set.
You can also state without proof that a set of mappings under composition of mappings and a
subset of M(n, n) under matrix multiplication are associative.
A binary operation ∗ on a set A has an identity element e ∈ A if for all a ∈ A, a∗e = a = e∗a.
If ∗ is a binary operation on a finite set of size n with an identity e, then in the multiplication
table, with respect to some ordering a1 , a2 , . . . , an of the elements
of A, the row corresponding
a1
a2
to e is a1 a2 . . . an and the column corresponding to e is .. . By convention we try to
.
an
order the elements of A so that e = a1 .
Example 4.3.17 R under + has an identity, namely 0. However R under − has no identity.
To see this, suppose e is an identity element. Then for all x ∈ R, x − e = x and e − x = x.
From x − e = x we get e = 0, and from x − e = x we get e = 2x. Choosing x = 0 gives 0 = x,
which is a contradiction. Thus R under − has no identity element.
Exercise 4.9 Which of the binary operations (a)–(g) given in Exercise 4.6 have an identity
element on the given set? In each case, either give an identity element or explain why there is
no identity element.
a ∗ b = e = b ∗ a.
If such an element b exists, then it is referred to as the inverse of a. Note that b must be an
element of A. For example, in Z+ under ×, n1 is not an inverse of n ∈ Z+ because n1 ∈ / Z+
(unless n = 1).
If ∗ is a binary operation on a finite set A which has an identity e, then a is invertible with
inverse b if the (a, b)th entry and the (b, a)th entry of the table are both e.
Example 4.3.20 R under + has identity 0. For all a ∈ R, if we set b = −a, then b ∈ R and
a + b = a + (−a) = 0 and b + a = (−a) + a = 0. Thus every element of a is invertible under +.
Example 4.3.21 0 and 1 are identity elements of Zn under ⊕ and ⊗ respectively. For m ∈ Zn ,
n − m ∈ Zn and
m ⊕ (n − m) = 0 = (n − m) ⊕ m.
Thus every element of Zn under ⊕ is invertible. Things are not so straightforward for ⊗;
whether an element m is invertible or not turns out to depend on both m and the modulus n.
For example 5 is invertible in Z6 under ⊗ (since 5 ⊗ 5 = 1) but 2 is not invertible. This will be
covered in more detail in the next section.
96 Proof & Structure Chapter 4: Relations, Operations, Groups
Proof Suppose e and ê are both identity elements of A under ∗. Then, for all a ∈ A
a∗e =a = e∗a
a ∗ ê = a = ê ∗ a.
The next result considers the invertible elements of a set under a binary operation. We can
show that an invertible element has a unique inverse provided that the binary operation is
associative on the set.
Lemma 4.4.2 Let ∗ be an associative binary operation on a set A with an identity element e.
If a ∈ A under ∗ is invertible, then a has a unique inverse.
b̂ ∗ (a ∗ b) = b̂ ∗ e = b̂.
b̂ ∗ (a ∗ b) = (b̂ ∗ a) ∗ b = e ∗ b = b.
Combining the two expressions for b̂ ∗ (a ∗ b) gives b̂ = b. Thus a has a unique inverse.
Lemma 4.4.3 Let ∗ be an associative binary operation on a set A with an identity element e.
If a ∈ A under ∗ is invertible and idempotent, then a = e.
Proof Let a ∈ A be invertible and idempotent. Then there is an element b ∈ A such that
a ∗ b = e = b ∗ a and a2 = a. Consider a2 ∗ b. Since a is idempotent we have
a2 ∗ b = a ∗ b = e.
a2 ∗ b = (a ∗ a) ∗ b = a ∗ (a ∗ b) = a ∗ e = a.
Note that if ∗ is an associative binary operation on a set A with an identity element e and all
elements are invertible, then Lemma 4.4.3 says that the only idempotent element is e.
Lemma 4.4.4 Let ∗ be an associative binary operation on a set A with an identity element e.
If x2 = e for all x ∈ A, then ∗ is commutative on A.
98 Proof & Structure Chapter 4: Relations, Operations, Groups
a ∗ (a ∗ b) ∗ (a ∗ b) ∗ b = a ∗ e ∗ b = a ∗ b
By associativity, and the fact that a2 = e and b2 = e, the left hand side becomes
(a ∗ a) ∗ b ∗ a ∗ (b ∗ b) = a2 ∗ (b ∗ a) ∗ b2 = e ∗ b ∗ a ∗ e = b ∗ a.
In some cases the preceding lemmas can be used to show that a binary operation on a set is
not associative, as the following examples illustrate.
Example 4.4.5 Consider the binary operation ∗ on the set {e, a, b, c} defined by the following
multiplication table.
∗ e a b c
e e a b c
a a c e e
b b e c b
c c e b c
Then ∗ on {e, a, b, c} has an identity, namely e. However, b and c are both inverses of a and so,
by Lemma 4.4.2, ∗ on {e, a, b, c} is not associative.
Example 4.4.6 Consider the binary operation ∗ on the set {e, a, b, c} defined by the following
multiplication table. ∗ e a b c
e e a b c
a a a e c
b b e b a
c c c a c
Then ∗ on {e, a, b, c} has an identity, namely e. However, a and b are both invertible and
idempotent and so, by Lemma 4.4.3, ∗ on {e, a, b, c} is not associative.
Example 4.4.7 Consider the binary operation ∗ on the set {e, a, b, c, d} defined by the follow-
ing multiplication table.
∗ e a b c d
e e a b c d
a a e c d b
b b d e a c
c c b d e a
d d c a b e
Then ∗ on {e, a, b, c, d} has an identity, namely e. Also x2 = e, for all x ∈ {e, a, b, c, d}. However,
a ∗ b = c and b ∗ a = d and so ∗ on {e, a, b, c, d} is not commutative. Thus, by Lemma 4.4.4, ∗
on {e, a, b, c, d} is not associative.
Exercise 4.12 Show that each of the binary operations defined in Examples 4.4.5, 4.4.6 and
4.4.7 is not associative on the given set by finding elements x, y and z in the set such that
x ∗ (y ∗ z) = (x ∗ y) ∗ z.
4.5 Groups Proof & Structure 99
4.5 Groups
There are many examples of binary operations in mathematics, so we ask ourselves what types
of properties do binary operations often have? Over time, three particular properties have
attracted much attention, leading to one of the most fruitful areas of mathematics today,
namely Group Theory. A group is just a set with an associative binary operation in which
there is an identity element and every element has an inverse. Groups are important because
they are so ubiquitous. For example, the set of integers (with addition) is a group, but so is
the set of symmetries of any shape, and there are countless other examples. In this section we
look at many examples of groups and establish some of their properties. Our first task is to
define formally what is meant by a group.
G0 For all g, h ∈ G, g ∗ h ∈ G. That is, G is closed under ∗. This is equivalent to saying that
∗ is a binary operation.
G1 For all g, h, k ∈ G, (g ∗ h) ∗ k = g ∗ (h ∗ k). That is, ∗ is associative on G.
G2 There is an element e ∈ G, such that for all g ∈ G, g ∗ e = e ∗ g = g. That is, G under ∗
has an identity element.
G3 For all g ∈ G, there is an element g −1 ∈ G, such that g ∗ g −1 = e = g −1 ∗ g. That is, every
element of G is invertible under ∗.
We denote a group as a pair (G, ∗), or just G if the binary operation is clear from the context.
Note Sometimes a group is defined as a non-empty set G together with a binary operation
∗, such that axioms G1, G2 and G3 hold. This is equivalent, because by definition, if ∗ is a
binary operation on G, then G is closed under ∗.
The ∗ is usually dropped and we write gh instead of g ∗ h, for the product of g and h. However,
this does not mean that the binary operation is necessarily multiplication, it is just that it gets
a little tedious always writing the ∗.
The identity element is sometimes denoted by 1, which is not necessarily the number 1. If we
are considering several different groups at the same time, then an identity element of G will,
for clarity, be denoted eG or 1G .
If we consider multiplication, we see that the only possibility for the identity element is 1,
because if eg = g, then g(e − 1) = 0, so either e = 1 or g = 0. Since this equation must hold
for all g ∈ G, we must have e = 1. Now since gg −1 = 1, we get that g −1 = 1/g. This does not
100 Proof & Structure Chapter 4: Relations, Operations, Groups
work when g = 0. Therefore Z, Q, R and C are not groups under multiplication. We can rescue
the situation with the following definition:
For x ∈ X ∗ , we can now define 1/x, and so Q∗ , R∗ and C∗ are all groups under multiplication.
Z∗ is not a group under multiplication because, for example, 1/2 ∈/ Z∗ , so 2 has no inverse.
Exercise 4.13 Verify that the sets in the previous two examples are groups under the stated
binary operations.
Although the elements are not actually numbers, we observe that Zn is a group under ⊕, with
identity 0. We also note that in the group (Zn , ⊕) every element can be expressed in terms of
1, since, for all i ∈ Zn ,
i = 1 ⊕ 1 ⊕ · · · ⊕ 1.
i times
We say that (Zn , ⊕) is a cyclic group generated by 1. (More on cyclic groups later.)
Although (Zn , ⊕) is a group, (Zn , ⊗) is not a group. (Why?) However the set Un given by
Un = {m ∈ Zn : gcd(m, n) = 1}
is a group under ⊗. When n is prime, Un = {1, 2, . . . , n − 1} and in this case we sometimes use
the notation Z∗n for Un .
Matrices
Let F be any one of Z, Q, R or C and let Mm,n (F ) denote the set of m × n matrices over F .
Then Mm,n (F ) is a group under matrix addition.
Clearly if Mm,n is to have any hope of being a group under matrix multiplication, then we
must have m = n, but this is not enough. However, if we consider only the invertible n × n
matrices over F , and restrict to the cases F = Q, R and C, then we get a group over matrix
multiplication. This group is denoted by GLn (F ) and is called the general linear group of
degree n over F .
Technical Note We had to exclude Z because the inverse of a matrix with integer entries is
1 2
not guaranteed to have integer entries. For example the matrix M = is an element
0 3
3 −2
of M2,2 (Z) but the inverse is M −1 = 3−1 . Now 3 is not invertible in Z, because
0 1
1
3
∈
/ Z. Hence M is not invertible in M2,2 (Z).
Matrices give us an instance of why the group axioms are useful: they guarantee that can-
cellation is possible. Given a binary operation ∗, it would be nice to be able to deduce that
a ∗ b = a ∗ c implies b = c. To do this we need all the group axioms. Firstly we note that a has
an inverse a−1 .
a∗b = a∗c
−1
a ∗ (a ∗ b) = a−1 ∗ (a ∗ c)
(a−1 ∗ a) ∗ b = (a−1 ∗ a) ∗ c) by associativity
e∗b = e∗c
b = c by the properties of the identity
Cancellation is certainly not an automatic property of binary operations, as the following
exercise shows.
2 3 1 7
Exercise 4.14 Consider the matrices A, B and C given by A = , B = ,
4 6 2 0
4 1
C= . Show that AB = AC, even though B = C. Which of A, B and C are elements
0 4
of GL2 (R)?
Again, many subsets of GLn (F ) are themselves groups under matrix multiplication, and the
following examples show that they may be either finite or infinite.
Example 4.6.4 SLn (F ) = {M ∈ GLn (F ) : det M = 1} is a group under matrix multiplica-
tion, called the special linear group of degree n over F .
Example 4.6.5 The following set Q8 is a group under matrix multiplication.
1 0 −1 0 i 0 −i 0
Q8 = , , , ,
0 1 0 −1 0 −i 0 i
0 1 0 −1 0 i 0 −i
, , ,
−1 0 1 0 i 0 −i 0
Exercise 4.15 Verify that SLn (F ) and Q8 are groups under matrix multiplication.
102 Proof & Structure Chapter 4: Relations, Operations, Groups
Geometry
Let Φ ⊆ Rn (we will only consider n = 2 or 3 here). Φ is sometimes called a figure. A
symmetry of Φ is a bijection α : Φ → Φ, which is distance preserving. That is, for any
x, y ∈ Φ,
d(x, y) = d(α(x), α(y)),
where d(x, y) denotes the distance from x to y.
The set of symmetries of a figure Φ, under composition of mappings, forms a group, denoted
by Sym(Φ). This is verified as follows:
Inverses Since any element α of Sym(Φ) is a bijection, the inverse mapping α−1 : Φ → Φ
exists. It remains to show that a−1 is a symmetry. Now,
Exercise 4.17 (HARD!) Determine the number of elements of Sym(C), where C is a cube.
4.6 Examples of Groups Proof & Structure 103
Example 4.6.6 The figure Φ does not have to be bounded in size. For example, suppose that
Φ(⊆ R2 ) is the infinite ‘brick’ pattern shown in the diagram.
In this case Sym(Φ) is an infinite group. This is because, in addition to the reflections and
rotations we have encountered already, there are two other types of symmetries.
The first of these is a translation, which moves every point the same distance in a specified
direction. Two such translations are shown on the diagram with a directed line segment. Each
of these translations can be composed with itself an arbitrary number of times, so we see that
there are infinitely many translations. Hence Sym(Φ) is infinite.
The second symmetry is a glide reflection, which consists of a reflection in a line l, followed
by a translation in the direction of l.
It can be shown that every symmetry of a figure in R2 has to be either a rotation, a reflection,
a translation or a glide reflection.
Sym(Pn ) is a fairly important group and is called the dihedral group with 2n elements and
is denoted by Dih(2n).
You can check that if α = α1 and β is one of the n reflections, then αβ = βα. This leads to
the following definition.
Exercise 4.18 Which of the groups given so far in this chapter are abelian?
104 Proof & Structure Chapter 4: Relations, Operations, Groups
Permutations
Recall that a permutation of a set X is a bijection from X to itself. If X is a finite set of size
n, then there are n! distinct permutations of X.
Example 4.6.8 Let X = {1, 2, 3, 4}. Then α : X → X, where α(1) = 1, α(2) = 4, α(3) = 2
and α(4) = 3, is a permutation of X.
Convention If X is finite of size n, then we usually take X to be the first n positive integers
(that is, X = {1, 2, . . . , n}). In this case SX is usually denoted Sn , or Sym(n).
Note that Sn is not abelian for n ≥ 3, because for instance a quick calculation shows that
(12)(23) = (123) but (23)(12) = (132).
Recall from Algebra 1 that we can write any permutation in Sn as a product of disjoint cycles,
and also as a product of transpositions. We say a permutation is even if it can be written as a
product of an even number of transpositions and odd otherwise.
Lemma 4.7.1 Let (G, ) be a group with identity e. Then, for all a, b, c ∈ G,
Proof (a) a−1 a = e = aa−1 and so, by definition, a is an inverse of a−1 . Now (a−1 )−1 is also
an inverse of a−1 . Thus, by the uniqueness of inverses, (a−1 )−1 = a.
(b) (ab)(b−1 a−1 ) = a(bb−1 )a−1 = aea−1 = aa−1 = e. Similarly (b−1 a−1 )(ab) = b−1 (a−1 a)b =
b−1 eb = b−1 b = e. Thus, by the uniqueness of inverses, (ab)−1 = b−1 a−1 .
(c) if ab = e, then b = eb = a−1 ab = a−1 e = a−1 . That is, b = a−1 .
(d) if ac = a, then a−1 ac = a−1 a. Simplifying both sides gives the result.
Note that part (c) means that if we are checking whether, h = g −1 , for some group elements g
and h, we only need to check that gh = e.
Warning Do not be seduced by this notation into thinking that all the rules of powers of
numbers apply here. In particular, if a, b ∈ G and n ∈ Z, then in general (ab)n = an bn . This
rule only holds when a and b commute.
Note: if G is abelian, we often use the symbol + for the binary operation, and an is usually
written na. In this case Lemma 4.7.2 is written (a) ma + na = (m + n)a; (b) n(ma) = (mn)a.
Let G be a group with identity e and let a ∈ G. Suppose that there is a non-zero integer m
such that am = e. If m < 0, then a−m = (am )−1 = e−1 = e, so we can assume m > 0. Let
n = min{m ∈ Z+ : am = e}.
Then n is called the order of a and is denoted by o(a). If there is no non-zero integer m such
that am = e, then we say that a has infinite order. (This is equivalent to saying there is no
positive integer m such that am = e.)
Example 4.7.3 In (R∗ , ×), −1 has order 2, since (−1)2 = 1. But 3 has infinite order, since
3n = 1 for all n ∈ Z+ .
Example 4.7.4 α = (123)(45) ∈ S5 has order 6, since α2 = (123)(45)(123)(45) = (132),
α3 = (45), α4 = (123), α5 = (132)(45) and α6 = 1.
Example 4.7.5 In (Z6 , ⊕), o(0) = 1, o(1) = 6, o(2) = 3, o(3) = 2, o(4) = 3 and o(5) = 6.
If G is a group with identity e, then o(e) = 1. Note that the word ‘order’ is also used to refer
to the size of a group. So the order of (Zn , ⊕) is n, and (R, +) has infinite order. These two
uses are linked though, because the order of elements in a group is related to the order of the
group. One extreme example of this is the following result.
Proposition 4.7.6 Let G be a group with identity e and let a ∈ G. Then the set
A = {am : m ∈ Z}
is a group (under the same binary operation as G) and the order of A is o(a).
106 Proof & Structure Chapter 4: Relations, Operations, Groups
It follows that A = {e, a, a2 , . . . , an−1 }. Hence A has order n. Thus we have shown that A is a
group of order o(a).
It is possible that the group A defined in Proposition 4.7.6 is the whole group G. In this
case, every element of G can be written as an integer power of a. This leads to the following
condition.
Example 4.7.9 S3 = (12), (13), (23) . This is because every permutation can be written as
a product of transpositions, and (12), (13) and (23) are the only transpositions in S3 . Since S3
is not abelian, Proposition 4.7.10 will prove that S3 is not cyclic.
Exercise 4.20 Can you find any elements other than 1 that generate (Z, +)? Can you find
any two-element generating sets neither of whose elements generates (Z, +) on its own?
Proof Let G = a . Then for all b, c ∈ G, there exist integers m and n such that b = am
and c = an . Consequently, by Lemma 4.7.2, we have bc = am an = am+n = an+m = an am = cb.
Hence G is abelian.
The converse of Proposition 4.7.10 is false. For example, (Q, +) is an infinite abelian group
which is not cyclic. A finite example is the subset V = {1, (12)(34), (13)(24), (14)(23)} of S4 .
V is called a Klein 4 group and is a finite abelian group which is not cyclic.
Multiplication Tables
If (G, ) is a finite group, then we can construct its multiplication table. The following are
examples of the multiplication tables of some finite groups.
⊕ 0 1 2 3 4
0 0 1 2 3 4
1 1 2 3 4 0
2 2 3 4 0 1
3 3 4 0 1 2
4 4 0 1 2 3
1 3 1
β2 α2
3 2 1 2 2 3
Hence α2 ◦ β2 = β1 . Check as many of the other table entries as you can stand!
◦ e α1 α2 β1 β2 β3
e e α1 α2 β1 β2 β3
α1 α1 α2 e β2 β3 β1
α2 α2 e α1 β3 β1∗ β2
β1 β1 β3 β2 e α2 α1
β2 β2 β1 β3 α1 e α2
β3 β3 β2 β1 α2 α1 e
108 Proof & Structure Chapter 4: Relations, Operations, Groups
With the exception of associativity each of the group axioms is easy to check from a multipli-
cation table. Let S = {s1 , s2 , . . . , sn }.
s1
s2
..
.
sn
Inverses sj ∈ S is the inverse of si ∈ S if si sj = e and sj si = e, that is, if the (i, j)th entry
and the (j, i)th entry of the table are equal to e.
Exercise 4.23 Find a criterion to check, from the multiplication table of a finite group G,
whether or not G contains an element of order 2. Use this to decide which of the groups in
Examples 4.7.11, 4.7.12 and Exercise 4.22 have elements of order 2. Do you think there is a
link between the order of the group and whether or not it has an element of order 2?
4.8 Subgroups
We have already encountered the idea of a subgroup. Here is a reminder of the definition.
Observe that G and {e} are both subgroups of G. In view of this we call H a proper subgroup
if H = G, and a non-trivial subgroup if H = {e}.
4.8 Subgroups Proof & Structure 109
Notes (i) Observe that the binary operation stays the same. So for example (R+ , ×) is not
a subgroup of (R, +). But it is a subgroup of (R∗ , ×).
(ii) By Proposition 4.7.6, if a ∈ G, then A = {am : m ∈ Z} is a subgroup of G.
(iii) If H is a subgroup of G, then the identity of (H, ∗) must be e. To see this, suppose f is
the identity of H. Then f ∗ f = f . Now f has an inverse in G, in other words an element g of
G for which f ∗ g = e(= g ∗ f ). So (f ∗ f ) ∗ g = f ∗ g = e. But f ∗ (f ∗ g) = f ∗ e = f . These
expressions are equal because ∗ is associative. Thus e = f .
Example 4.8.1 (Z, +) ≤ (Q, +) ≤ (R, +) ≤ (C, +) and (Q∗ , ×) ≤ (R∗ , ×) ≤ (C∗ , ×).
Example 4.8.2 The subgroups of (Z6 , ⊕) are {0}, {0, 3}, {0, 2, 4}, Z6 . To show this, we look
at candidate sets H, and use the fact that to be a subgroup, H must be closed under the group
operation, which here is ⊕. Also any subgroup must contain the identity element 0. This means
the only subgroup with one element is the trivial subgroup {0}. Next we move on to consider
sets H that contain at least one non-identity element. If 1 ∈ H, then H = Z6 , as Z6 = 1 . If
2 ∈ H, then the cyclic group generated by 2 must be contained in H. That is {0, 2, 4} ⊆ H.
Now {0, 2, 4} is a cyclic group. So it is a subgroup of H. Considering the next possibility, 3,
we find the subgroup {0, 3}. If 4 ∈ H, we get {0, 2, 4} again. Since Z6 = 5 , if 5 ∈ H, then
H = Z6 .
Next we note that if we add any more elements to any of the non-trivial proper subgroups so
far discovered, they are forced, by the closure property, to be the whole of Z6 . Therefore the
only subgroups of Z6 are {0}, {0, 3}, {0, 2, 4}, Z6 .
Example 4.8.3 The dihedral group Dih(2n) has, among others, a subgroup of order n con-
sisting of all the rotations together with the identity, and n subgroups of order 2 consisting of
a reflection together with the identity.
Proposition 4.8.5 (The subgroup criterion) Let G be a group and let H be a non-empty
subset of G. Then H is a subgroup of G if and only if H satisfies
(i) for all h, k ∈ H, hk ∈ H;
(ii) for all h ∈ H, h−1 ∈ H.
Proof Suppose that H is a subgroup of G. Then in particular, H is closed (hence (i) holds)
and each element h of H has an inverse in H which, by uniqueness of inverses, is equal to h−1 .
Hence (ii) holds.
For the converse, suppose that H satisfies (i) and (ii). Now the binary operation on H is asso-
ciative because G is a group. The closure and inverse properties are (i) and (ii). So all we need
to show is that the identity element e is contained in H. Since H is non-empty, there is some
element h ∈ H. By (ii), h−1 ∈ H. Then by (i), hh−1 = e ∈ H. Therefore H is a subgroup.
In the special case where H is a finite subset, the situation is even better, as the following
Proposition shows.
Proposition 4.8.6 (The finite subgroup criterion) Let G be a group and let H be a finite
non-empty subset of G. Then H is a subgroup of G if and only if H is closed.
110 Proof & Structure Chapter 4: Relations, Operations, Groups
Proof If H is a subgroup, then clearly H is closed. For the converse, suppose that H is finite,
non-empty and closed. By the subgroup criterion it is sufficient to show that for all h ∈ H,
h−1 ∈ H. So let h ∈ H. Since H is closed, hh = h2 ∈ H. Hence hh2 = h3 ∈ H, and in general
hn ∈ H for all n > 0. But H is finite, and therefore h must have finite order. That is, hn = e
for some n ∈ Z+ . Now hhn−1 = hn = e. Therefore hn−1 = h−1 , and so h−1 ∈ H, as required.
Hence H is a subgroup of G.
Exercise 4.25 Give an example of a group G, and a subset H such that H is closed but not
a subgroup of G. (Hint: In light of the last result, H will have to be infinite.)
The next theorem, Lagrange’s Theorem, is very important in group theory. To prove it we need
to define certain subsets of a group. Let G be a group, and H a subgroup. Then for g ∈ G,
the right H-coset of g in G is the set Hg = {hg : h ∈ H}.
Exercise 4.26 Let G = {1, −1, i, −i}. Show that (G, ×) is a group. Let H = {1, −1}. Show
that H is a subgroup of G, and that H1 = H, H(−1) = H, Hi = {i, −i} and H(−i) = {i, −i}.
Lemma 4.8.7 Let G be a group, H ≤ G, and g1 , g2 ∈ G. Then |Hg1| = |H| and either
Hg1 ∩ Hg2 = ∅ or Hg1 = Hg2 .
Proof We have Hg1 = {hg1 : h ∈ H}. Then every element of this set is different. To see this,
suppose hg1 = h′ g1 . Then hg1 g1−1 = h′ g1 g1−1 , and hence h = h′ . Therefore |Hg1| = |H|.
For the second part, if Hg1 ∩ Hg2 = ∅, there is nothing to prove. So suppose that there exists
x ∈ Hg1 ∩ Hg2 . We must show that Hg1 = Hg2. Since x ∈ Hg1 , there exists h1 ∈ H such that
x = h1 g1 . And since x ∈ Hg2 , there exists h2 ∈ H such that x = h2 g2 . Thus h1 g1 = h2 g2 and
hence g1 = h−1
1 h2 g2 .
Now suppose y ∈ Hg1 . Then y = hg1 for some h ∈ H. So
y = hg1 = hh−1
1 h2 g2 ∈ Hg2 .
G = H1 ∪ H 2 ∪ . . . ∪ Hk .
4.8 Subgroups Proof & Structure 111
|G| = m + m + · · · + m = km = k|H|.
Corollary 4.8.9 If G is a group of prime order p, then G is cyclic and any non-identity
element of G generates G.
Corollary 4.8.10 Let G be a finite group and a ∈ G with o(a) = n. Then n divides |G|.
Exercise 4.28 Analogously to the definition of a prime number, let’s call a finite group G
‘prime’ if G has exactly two subgroups, the trivial subgroup {eG }, and G itself. Prove that a
finite group G is prime if and only if |G| is prime. (Hint: If x ∈ G has composite order mn,
consider the subgroup generated by xm .)
Exercise 4.29 (hard – too hard for the exam!) Does it make sense to remove the word ‘finite’
from the definition given in Exercise 4.28? In other words, are there any infinite groups with
exactly two subgroups? If not, why not? And if so, can you give an example?
Exercise 4.30 (i) Suppose A is a group of order 2. Explain why A = {e, a} for some a with
o(a) = 2.
(ii) Suppose B is a group of order 3. Explain why B = {e, b, b2 } for some b with o(b) = 3.
(iii) Consider the group (U7 , ⊗). (Remember that U7 = {1, 2, 3, 4, 5, 6} and that the operation
⊗ is multiplication modulo 7.) Give the order of U7 and the possible orders of subgroups.
(iv) List a2 and a3 for all a ∈ U7 (recall that, for example a2 = a ⊗ a). Use this information to
list the order of each element. Now, using (i) and (ii), list all the subgroups of U7 . Is U7 cyclic?
Explain your answer.
The converse of Lagrange’s Theorem is false – a group G does not necessarily have a subgroup
of order n for each n dividing |G|. For an example of this, see Appendix 6.
112 Proof & Structure Chapter 4: Relations, Operations, Groups
Exam-Style Questions
Section A
Exercise 4.31 Let R be a relation on the set {1, 2, 3, 4, 5, 6, 7} defined by mRn if and only if
mn is divisible by 4.
(a) Write down the adjacency matrix for R on {1, 2, 3, 4, 5, 6, 7}. [2]
(b) Determine whether R is (i) reflexive; (ii) symmetric; (iii) transitive. [3]
Exercise 4.32 The relation ∼ on R is defined by x ∼ y if and only if sin2 x + cos2 y = 1.
(a) Show that ∼ is an equivalence relation on R. [4]
(b) Describe the elements of the equivalence class [π]. [1]
Exercise 4.33 For x, y ∈ R let x ∗ y = xy − x.
(a) Find the idempotent elements of R under ∗. [2]
(b) Show that there is no identity element for ∗ on R. [3]
Exercise 4.34(a) Let G be a group with identity e. Show that if g 2 = e for every g ∈ G, then
G is abelian. [3]
(b) Neither of the following multiplication tables represents a group. In each case, explain why
not.
a b c d a b c d
a a b c d a a b c d
b b a d c b b a d c [2]
c d c a b c c b a d
d c d b a d d c b a
Section B
Exercise 4.35(a) Let V and W be sets of matrices defined as follows.
x y
V = : x, y, z ∈ R and xz = 0 ;
0 z
1 y
W = :y∈R .
0 1
(i) Show that V is a group under matrix multiplication. [4]
(ii) Give an example to show that V is not abelian. [2]
(iii) Find all the elements of order 2 in V . [3]
(iv) State the Subgroup Criterion. [2]
(v) Using the subgroup criterion, or otherwise, show that W is a subgroup of V . [3]
(b) (i) Let G be a finite group and let a ∈ G with o(a) = n. Show that the set A = {am : m ∈ Z}
is a subgroup of G and that |A| = n. [4]
(ii) State Lagrange’s Theorem for finite groups. [1]
(iii) Deduce from (i) and (ii) that the order of an element of a finite group divides the order of
the group. [1]
Note: Exam questions, particularly Section B questions, often combine elements from different
chapters.
4.8 Subgroups Proof & Structure 113
Historical Notes
Abel was born in Norway in 1802. His father died when Abel was a boy, leaving his mother
heavily in debt, at which point she became an alcoholic. Abel showed promise at mathematics
in school, although he enjoyed it rather more when the school appointed a new maths teacher in
1817. The previous one had got the sack for punishing a boy so violently that he actually died.
When Abel went to university he was so obviously poor that some of his professors supported
him financially through his student years. But his life was never easy. He submitted a brilliant
paper to the Paris Academy in 1826, which the referees (Cauchy and Legendre) did nothing
with. When Abel died in 1829 Cauchy had still not reported on the paper, which wasn’t
published in full until 1841. He couldn’t get a job because his work had not been published,
and he eventually succumbed to tuberculosis at only 26 years old. He died cold, hungry and
bitter. In a cruel twist of fate a job offer for him arrived in the post two days after his death.
Still, at least he got abelian groups named after him, eh?
Lagrange was certainly one of the finest mathematicians of his time. He is famous for his
works on celestial mechanics, but also made important contributions to pretty much every
area of mathematics, from analysis to algebra. Lagrange’s theorem as we have stated it would
not have been recognisable to him, because the language of abstract groups had yet to be
developed. Lagrange only proved his theorem in the context of permutations. Suppose you
have a polynomial with n variables, such as 3a − b + 3c + d. Lagrange asked how many different
polynomials can you get by permuting the variables in all possible ways. For example if you
interchange a and b you get 3b − a + 3c + d. He proved that the number of different polynomials
divides n!. How on earth is this related to the Lagrange’s theorem we proved? Well the set of
all possible permutations is just Sn , which has order n! (in our example S4 , where (12) means
‘a → b and b → a’, and so on). The set F of permutations that keep a given polynomial fixed
turns out to be a subgroup. In our example F = {1, (13)}. And every coset of F corresponds
to a different polynomial that can be produced by permuting 3b − a + 3c + d. So our version
of Lagrange’s theorem tells us that |F | × ( number of cosets = |Sn | = n!. In other words our
version of Lagrange’s theorem is a more general version of what Lagrange proved. Incidentally
Lagrange was so organised that he planned all his papers in his head first and then wrote them
out usually without needing to make a single correction.
114 Proof & Structure Chapter 4: Relations, Operations, Groups
Learning Outcomes
After studying this chapter, and the related exercises, you should be able to
• calculate adjacency matrices and directed graphs (digraphs) of binary relations on finite
sets;
• explain what it means for a binary relation on a set to be reflexive, symmetric, or tran-
sitive, and determine whether a given binary relation has these properties;
• define and work with the terms ‘equivalence relation’ and ‘equivalence class’;
• understand the notion of a binary operation, along with the properties of commutativity,
associativity, identity elements, inverses and idempotent elements;
• calculate the multiplication tables for binary operations on finite sets, and use them to
deduce properties of those operations;
• be aware of the basic results for binary operations, such as the uniqueness of identity
elements, where they exist;
• use basic results about binary operations to deduce from the multiplication table that a
given binary operation on a finite set is not associative;
• give the axioms for a group and show that a given set is a group;
• define the following sets and be able to show that they are groups: (Z, +), (Q, +), (R, +),
(C, +), (Zn , ⊕);
• be familiar with the notation S ∗ for a set, and show that the following are groups: (Q∗ , ×),
(R∗ , ×), (C∗ , ×), (Un , ⊗);
• be aware that sets of matrices are a good source of groups, and understand the notation
GLn (F ) and SLn (F ), where F is one of Zn , Q, R, or C;
• find the symmetry groups of simple figures in R2 and R3 , be familiar with the dihedral
group of order 2n, and give a generating set for Dih(2n);
• be aware that the set Sn of permutations is a group;
• understand what is meant by the terms abelian and cyclic and determine whether or not
a given group is abelian or cyclic;
• prove basic properties of groups from the group axioms;
• understand what is meant by the order of an element and of a group, and be able to
calculate these orders;
• show whether or not a subset of a group is a subgroup, and understand the terms proper
subgroup and non-trivial subgroup;
• state and prove the subgroup criterion;
• state and apply Lagrange’s Theorem.