Unit 2: A gallery of groups

A gallery of groups

Groups turn up everywhere: on clock faces, in remainders, in the symmetries of every polygon, in matrices and in Hamilton's quaternions. This unit is a tour of the examples we'll use for the rest of the course.

123456789101112
In this unit
  1. Clock arithmetic
  2. Multiplication mod n
  3. The dihedral groups
  4. Groups of matrices
  5. The quaternions
  6. Cayley diagrams
  7. Same table, different names
  8. Practice set
  9. Summary and glossary

Clock arithmetic

Nine hours after 8 o'clock it is 5 o'clock, not 17 o'clock. A clock adds numbers and then keeps only the remainder after dividing by 12 (with 12 o'clock playing the role of 0). Any whole number \(n \ge 1\) can play the role of 12.

Definition

The integers mod \(n\), written \(\mathbb Z/n\), are the numbers \(0, 1, \ldots, n-1\) with the operation "add, then take the remainder on division by \(n\)".

For example, in \(\mathbb Z/6\) we have \(4 + 5 = 3\), because \(9\) leaves remainder \(3\) when divided by 6. The whole addition table fits in one picture:

The addition table of the integers mod 6A 6 by 6 table for addition mod 6, rows and columns labelled 0 to 5. Each entry is the sum minus 6 if needed. The colours run in diagonal stripes from top right to bottom left: each row is the row above shifted one place to the left.+001122334455012345123450234501345012450123501234
Addition mod 6. Each row is the row above shifted one place to the left, so the colours run in diagonal stripes.

\(\mathbb Z/n\) is a group of order \(n\). The identity is 0, and the inverse of \(a\) is \(n - a\) (and the inverse of 0 is 0), since \(a + (n - a) = n\), which leaves remainder 0. Associativity comes from ordinary addition: both \((a+b)+c\) and \(a+(b+c)\) leave the same remainder as the ordinary sum \(a+b+c\), because reducing early only changes a number by a multiple of \(n\), which doesn't affect the final remainder. The group is abelian, because \(a + b = b + a\).

Writing \(a \equiv b \pmod n\), read "\(a\) is congruent to \(b\) mod \(n\)", means \(n\) divides \(a - b\): the two numbers leave the same remainder. Clock arithmetic is the arithmetic of remainders, and it was put on a firm footing by Gauss in 1801.

Multiplication mod n

What about multiplying remainders? The numbers \(0, 1, \ldots, n-1\) under multiplication mod \(n\) are never a group (for \(n \ge 2\)), because 0 has no inverse. Throwing out 0 isn't always enough: mod 8, the number 2 has no inverse, since \(2x\) is always even and so can never leave remainder 1 when divided by 8. The right thing to keep is the numbers that share no factor with \(n\) other than 1.

Two tools from number theory will help. The greatest common divisor \(\gcd(a, n)\) is the largest whole number dividing both; when it is 1, \(a\) and \(n\) are called coprime. Bézout's identity says that \(\gcd(a, n)\) can always be written as \(ax + ny\) for some integers \(x, y\) (one of them usually negative). The Euclidean algorithm finds \(x\) and \(y\): divide with remainder repeatedly, then work backwards, as in the example below.

Definition

For \(n \ge 2\), \(U(n)\) is the set of numbers \(a\) with \(1 \le a \le n-1\) and \(\gcd(a, n) = 1\) (that is, \(a\) coprime to \(n\)), with the operation "multiply, then take the remainder on division by \(n\)". Its order is written \(\varphi(n)\), Euler's phi function.

For example, \(U(8) = \{1, 3, 5, 7\}\), \(U(5) = \{1, 2, 3, 4\}\) and \(U(9) = \{1, 2, 4, 5, 7, 8\}\). When \(p\) is prime, every number from 1 to \(p - 1\) qualifies, so \(\varphi(p) = p - 1\).

Theorem

\(U(n)\) is an abelian group under multiplication mod \(n\).

Proof

Closure. If neither \(a\) nor \(b\) shares a prime factor with \(n\), neither does \(ab\), since the prime factors of \(ab\) are those of \(a\) and \(b\). Reducing mod \(n\) doesn't change this: if \(ab = qn + c\), any prime dividing both \(c\) and \(n\) would divide \(ab\).

Associativity and commutativity are inherited from ordinary multiplication, as for \(\mathbb Z/n\). Identity: 1.

Inverses. If \(\gcd(a, n) = 1\), Bézout's identity gives integers \(x, y\) (one of them negative) with \(ax + ny = 1\). So \(ax\) leaves remainder 1 on division by \(n\): the remainder \(x'\) of \(x\) is an inverse of \(a\). It lies in \(U(n)\): any common factor of \(x'\) and \(n\) also divides \(x = x' + mn\) (for some integer \(m\)), and so divides \(ax + ny = 1\). ∎

Bézout's identity is also a recipe. To invert 7 in \(U(30)\), run the Euclidean algorithm backwards: \(30 = 4 \cdot 7 + 2\) and \(7 = 3 \cdot 2 + 1\), so \(1 = 7 - 3 \cdot 2 = 7 - 3(30 - 4 \cdot 7) = 13 \cdot 7 - 3 \cdot 30\). The inverse of 7 is 13; check: \(7 \cdot 13 = 91 = 3 \cdot 30 + 1\).

\(U(n)\) is the group of units of the ring \(\mathbb Z/n\): the elements with a multiplicative inverse. The companion course Ring theory, from scratch studies units in every ring.

The dihedral groups

Unit 1 found the six symmetries of a triangle. A regular polygon with \(n\) sides has \(2n\) symmetries: \(n\) rotations and \(n\) flips. Here are the eight symmetries of a square, again with corners numbered anticlockwise, starting with 1 at the top left:

The dihedral group \(D_4\). \(r\) is a quarter turn anticlockwise and \(s\) is the flip across the diagonal through the top-left corner of the frame. As in Unit 1, \(rs\) means "first \(s\), then \(r\)". The axes are fixed in the frame.

In general, for \(n \ge 3\), \(D_n\) is the group of symmetries of a regular \(n\)-sided polygon. Let \(r\) be the rotation by \(\frac{360°}{n}\) anticlockwise, and \(s\) a flip. Then:

The last rule lets us push \(s\) to the right through any power of \(r\): \(sr^j = r^{-j}s\). So every product can be simplified to the form \(r^is\) or \(r^i\). For instance, two flips always give a rotation:

\[ (r^is)(r^js) = r^i(sr^j)s = r^i r^{-j} s s = r^{i-j}. \]
Going deeper: why exactly \(2n\) symmetries?

A symmetry is a rigid motion, so it keeps neighbouring corners next to each other. Corner 1 can go to any of the \(n\) positions. Corner 2 is a neighbour of corner 1, so it must go to one of the two positions next to wherever corner 1 went. Once two neighbouring corners are placed, a rigid motion has no further freedom: corner 3 must be the other neighbour of corner 2, and so on around the polygon. So there are at most \(2n\) symmetries. The \(n\) rotations and \(n\) flips listed above are all different: a rotation keeps the anticlockwise order of the corners while a flip reverses it, and two rotations, or two flips, differ in where they send corner 1. So there are exactly \(2n\).

Groups of matrices

The invertible \(2 \times 2\) matrices with real entries form a group under matrix multiplication, called the general linear group \(GL_2(\mathbb R)\). Closure holds because \(\det(AB) = \det A \det B\), which is nonzero when both factors are. The identity is the identity matrix \(I\), inverses exist by definition, and matrix multiplication is associative because it is composition of linear maps.

This group is not abelian:

\[ \begin{pmatrix}1&1\\0&1\end{pmatrix}\begin{pmatrix}1&0\\1&1\end{pmatrix} = \begin{pmatrix}2&1\\1&1\end{pmatrix}, \qquad \begin{pmatrix}1&0\\1&1\end{pmatrix}\begin{pmatrix}1&1\\0&1\end{pmatrix} = \begin{pmatrix}1&1\\1&2\end{pmatrix}. \]

Inside it sit smaller groups:

Entries don't have to be real numbers. Take entries in \(\mathbb Z/2 = \{0, 1\}\), with arithmetic mod 2. Of the 16 possible matrices, exactly 6 are invertible, and they form a non-abelian group \(GL_2(\mathbb Z/2)\) of order 6, just like \(D_3\). Is it "the same" group as \(D_3\)? Unit 6 makes that question precise; the answer is yes.

The companion course Linear algebra, from scratch covers matrices and determinants from the beginning.

The quaternions

On 16 October 1843, walking along the Royal Canal in Dublin, William Rowan Hamilton found how to multiply in four dimensions, and carved the rule into Brougham Bridge:

\[ i^2 = j^2 = k^2 = ijk = -1. \]

The eight elements \(\pm1, \pm i, \pm j, \pm k\) form the quaternion group \(Q_8\). Signs combine as usual, and \(-1\) commutes with everything. The products of \(i, j, k\) go round a cycle: \(ij = k\), \(jk = i\), \(ki = j\), while going backwards flips the sign: \(ji = -k\), \(kj = -i\), \(ik = -j\). Associativity can be checked, for example by writing the eight elements as \(2 \times 2\) complex matrices; we take it on trust here.

The multiplication table of the quaternion groupAn 8 by 8 table for the quaternion group, rows and columns labelled 1, −1, i, −i, j, −j, k, −k. The entry in row a, column b is ab. The diagonal entries are 1 for the rows 1 and −1, and −1 for the other six rows, so only −1 squares to 1 apart from 1 itself. The table is not symmetric: row i, column j holds k, but row j, column i holds −k.·11−1−1ii−i−ijj−j−jkk−k−k1−1i−ij−jk−k−11−ii−jj−kki−i−11k−k−jj−ii1−1−kkj−jj−j−kk−11i−i−jjk−k1−1−iik−kj−j−ii−11−kk−jji−i1−1
The quaternion group \(Q_8\). Row \(i\), column \(j\) holds \(k\), but row \(j\), column \(i\) holds \(-k\). On the diagonal, only \(1\) and \(-1\) square to \(1\).

\(Q_8\) and \(D_4\) both have order 8 and both are non-abelian. Yet they are genuinely different. In \(D_4\), five elements other than \(e\) square to the identity: \(r^2\) and the four flips. In \(Q_8\), only one does: \(-1\). Counting like this is our first tool for telling groups apart.

Cayley diagrams

A Cayley table lists every product, which quickly becomes unwieldy. A Cayley diagram shows a group as a map instead. Each element is a dot. Choose a few elements, called generators (elements from which every element can be built; see the definition below), and give each a colour. An arrow of colour \(x\) goes from every element \(g\) to \(gx\).

A Cayley diagram of the integers mod 6Six dots labelled 0 to 5 around a hexagon, anticlockwise. Green arrows go from each number to the next, 0 to 1 to 2 and so on, and from 5 back to 0: each arrow means add 1.012345
\(\mathbb Z/6\) with generator 1. Each green arrow adds 1. Going round the hexagon once brings you back to 0.
A Cayley diagram of the triangle's symmetriesSix dots. On the outer triangle, e, r and r² are joined by green arrows going anticlockwise: e to r to r² and back to e. Each is joined by a red line to the dot just inside it: e to s, r to rs, r² to r²s. On the inner triangle the green arrows run the other way round: s to r²s to rs and back to s.err²srsr²s
\(D_3\) with generators \(r\) (green) and \(s\) (red). Each green arrow goes from \(g\) to \(gr\), each red line from \(g\) to \(gs\). The red lines have no arrowheads because \(s\) is its own inverse: the move goes both ways.

A path through the diagram spells out a product, read from left to right. Start at \(e\), follow a green arrow to \(r\), then a red line to \(rs\): the path "\(r\), then \(s\)" ends at \(e \cdot r \cdot s = rs\). Careful: the path spells the word \(rs\) in reading order, because each arrow multiplies on the right, so the step taken last is written last. As a symmetry, \(rs\) still means "first \(s\), then \(r\)".

Notice that on the inner triangle the green arrows run the other way round. From \(s\), the green arrow leads to \(sr = r^{-1}s = r^2s\), the inner partner of \(r^2\) rather than of \(r\). That is the rule \(sr = r^{-1}s\), drawn as a picture.

Definition

A set \(S\) of elements generates a group \(G\) if every element of \(G\) can be written as a product of elements of \(S\) and their inverses. In a Cayley diagram, this means every dot can be reached from \(e\) by following the arrows forwards or backwards.

\(\mathbb Z/6\) is generated by 1 alone (and also by 5). \(D_3\) is generated by \(r\) and \(s\), but also by two flips: \(s \cdot rs = r^2\), and \(r = (r^2)^2\). A group can have many generating sets, and so many different Cayley diagrams.

Same table, different names

Here are three groups of order 4. The tables use colour by position: the first element listed is grey, the second green, and so on.

Three groups of order 4. The first two tables have exactly the same colour pattern; the third does not.

In \(U(5)\), the elements are listed as \(1, 2, 4, 3\): the powers \(2^0, 2^1, 2^2, 2^3\) of 2, reduced mod 5. Multiplying powers of 2 adds the exponents, and since \(2^4 = 16\) leaves remainder 1, the exponents add mod 4. So the rename \(0 \to 1\), \(1 \to 2\), \(2 \to 4\), \(3 \to 3\) turns the addition table of \(\mathbb Z/4\) into the multiplication table of \(U(5)\), cell for cell. The two groups are the same group in different clothes.

\(U(8)\) is different. Every element is its own inverse: \(3^2 = 9\), \(5^2 = 25\) and \(7^2 = 49\) all leave remainder 1 mod 8. In \(\mathbb Z/4\), on the other hand, \(1 + 1 = 2 \neq 0\). No renaming can change that. \(U(8)\) is a copy of the Klein four-group, named after Felix Klein, who called it the Vierergruppe. It also appears as the symmetries of a rectangle that isn't a square: do nothing, a half turn, and two flips. In fact any group of order 4 in which every element squares to the identity has the same table: the product of two different non-identity elements can't be \(e\) (they'd be inverses, so equal) or either of them (cancellation), so it is the third.

"The same group in different clothes" is the idea of an isomorphism, the subject of Unit 6. It is why group theorists talk about "the" cyclic group of order 4 or "the" Klein four-group, whatever their elements are made of.

GroupOrderAbelian?
\(\mathbb Z/n\), addition mod \(n\)\(n\)Yes
\(U(n)\), multiplication mod \(n\)\(\varphi(n)\)Yes
\(D_n\), symmetries of an \(n\)-gon (\(n \ge 3\))\(2n\)No
\(GL_2(\mathbb R)\), \(SL_2(\mathbb R)\)InfiniteNo
\(SO(2)\), rotations of the planeInfiniteYes
\(GL_2(\mathbb Z/2)\)6No
\(Q_8\), quaternions8No

History

Gauss introduced congruences in his Disquisitiones Arithmeticae (1801), where many groups of remainders appear without the name. Hamilton discovered the quaternions in 1843. Cayley developed matrix algebra in 1858, and drew the first Cayley diagrams in 1878. Klein named the Vierergruppe in 1884, in his lectures on the icosahedron and the equation of degree five.

Practice set

Mixed questions covering the whole unit. Try each one before opening the answer.

1. In \(\mathbb Z/9\), compute \(5 + 7\) and find the inverse of 4.

Show answer

\(5 + 7 = 12\), which leaves remainder 3, so \(5 + 7 = 3\). The inverse of 4 is \(9 - 4 = 5\), since \(4 + 5 = 9\) leaves remainder 0.

2. List the elements of \(U(12)\). Which known group of order 4 is it?

Show answer

\(U(12) = \{1, 5, 7, 11\}\), the numbers below 12 sharing no factor with 12. Each squares to 1: \(25 = 2 \cdot 12 + 1\), \(49 = 4 \cdot 12 + 1\), \(121 = 10 \cdot 12 + 1\). So, like \(U(8)\), it is a Klein four-group: as shown above, a group of order 4 in which every element squares to 1 has only one possible table.

3. Use the Euclidean algorithm to find the inverse of 5 in \(U(17)\).

Show answer

\(17 = 3 \cdot 5 + 2\) and \(5 = 2 \cdot 2 + 1\). So \(1 = 5 - 2 \cdot 2 = 5 - 2(17 - 3 \cdot 5) = 7 \cdot 5 - 2 \cdot 17\). The inverse is 7; check: \(5 \cdot 7 = 35 = 2 \cdot 17 + 1\).

4. In \(D_4\), simplify \(srs\) and \(rsr\) to the form \(r^i\) or \(r^is\).

Show answer

Using \(sr = r^{-1}s\): \(srs = r^{-1}ss = r^{-1} = r^3\), and \(rsr = r(sr) = r r^{-1} s = s\). You can check both against the pictures of the square.

5. Let \(A = \begin{pmatrix}0&-1\\1&0\end{pmatrix}\) and \(B = \begin{pmatrix}1&0\\0&-1\end{pmatrix}\). Compute \(A^4\), \(B^2\), \(AB\) and \(BA\), and check that \(BA = A^{-1}B\). Which group do \(A\) and \(B\) generate?

Show answer

\(A\) is a quarter turn, so \(A^4 = I\); \(B\) is a reflection, so \(B^2 = I\). Then \(AB = \begin{pmatrix}0&1\\1&0\end{pmatrix}\) and \(BA = \begin{pmatrix}0&-1\\-1&0\end{pmatrix}\), so \(AB \neq BA\). Since \(A^{-1} = \begin{pmatrix}0&1\\-1&0\end{pmatrix}\), we get \(A^{-1}B = \begin{pmatrix}0&-1\\-1&0\end{pmatrix} = BA\). These are the rules of \(D_4\) with \(r = A\) and \(s = B\): the matrices generate the eight symmetries of a square. (Here \(B\) is the flip across the horizontal axis, not the diagonal flip used as \(s\) in the pictures; any flip can play the role of \(s\).)

6. In \(Q_8\), use \(ij = k\) and \(i^2 = j^2 = k^2 = -1\) to show that \(ji = -k\).

Show answer

\((ij)(ji) = i(jj)i = i(-1)i = -i^2 = 1\), so \(ji\) is the inverse of \(ij = k\). And \(k(-k) = -k^2 = 1\), so the inverse of \(k\) is \(-k\). Since inverses are unique, \(ji = -k\).

Summary and glossary

  1. \(\mathbb Z/n\) (addition mod \(n\)) is an abelian group of order \(n\).
  2. \(U(n)\), the numbers coprime to \(n\) under multiplication mod \(n\), is an abelian group of order \(\varphi(n)\); inverses come from Bézout's identity.
  3. \(D_n\) has \(2n\) elements \(r^i\) and \(r^is\), with \(r^n = s^2 = e\) and \(sr = r^{-1}s\).
  4. Invertible matrices form groups, usually non-abelian; \(Q_8\) is a non-abelian group of order 8 different from \(D_4\).
  5. Cayley diagrams draw a group from its generators; groups with the same table up to renaming are "the same" (isomorphic).
\(\mathbb Z/n\)
The integers \(0, \ldots, n-1\) under addition mod \(n\).
\(U(n)\)
The numbers from 1 to \(n-1\) coprime to \(n\), under multiplication mod \(n\).
Euler's phi function
\(\varphi(n)\), the number of elements of \(U(n)\).
Dihedral group \(D_n\)
The \(2n\) symmetries of a regular \(n\)-gon.
\(GL_2\), \(SL_2\)
Invertible \(2 \times 2\) matrices; those with determinant 1.
Quaternion group \(Q_8\)
\(\{\pm1, \pm i, \pm j, \pm k\}\) with \(i^2 = j^2 = k^2 = ijk = -1\).
Generators
Elements whose products and inverses give the whole group.
Cayley diagram
A picture of a group: dots for elements, an arrow \(g \to gx\) for each generator \(x\).
Powered by Webloyt | Report abuse