The integers mod $n$ and the symmetries of a triangle or a rectangle are examples of groups. A binary operation or law of composition on a set $G$ is a function $G \times G \rightarrow G$ that assigns to each pair $(a,b) \in G \times G$ a unique element $a \circ b$, or $ab$ in $G$, called the composition of $a$ and $b$. A group $(G, \circ )$ is a set $G$ together with a law of composition $(a,b) \mapsto a \circ b$ that satisfies the following axioms.

• The law of composition is associative. That is, \begin{equation*} (a \circ b) \circ c = a \circ (b \circ c) \end{equation*} for $a, b, c \in G$.

• There exists an element $e \in G$, called the identity element, such that for any element $a \in G$ \begin{equation*} e \circ a = a \circ e = a. \end{equation*}

• For each element $a \in G$, there exists an inverse element in G, denoted by $a^{-1}$, such that \begin{equation*} a \circ a^{-1} = a^{-1} \circ a = e. \end{equation*}

A group $G$ with the property that $a \circ b = b \circ a$ for all $a, b \in G$ is called abelian or commutative. Groups not satisfying this property are said to be nonabelian or noncommutative.

##### Example3.8

The integers ${\mathbb Z } = \{ \ldots , -1, 0, 1, 2, \ldots \}$ form a group under the operation of addition. The binary operation on two integers $m, n \in {\mathbb Z}$ is just their sum. Since the integers under addition already have a well-established notation, we will use the operator $+$ instead of $\circ$; that is, we shall write $m + n$ instead of $m \circ n$. The identity is 0, and the inverse of $n \in {\mathbb Z}$ is written as $-n$ instead of $n^{-1}$. Notice that the set of integers under addition have the additional property that $m + n = n + m$ and therefore form an abelian group.

Most of the time we will write $ab$ instead of $a \circ b$; however, if the group already has a natural operation such as addition in the integers, we will use that operation. That is, if we are adding two integers, we still write $m + n$, $-n$ for the inverse, and 0 for the identity as usual. We also write $m - n$ instead of $m + (-n)$.

It is often convenient to describe a group in terms of an addition or multiplication table. Such a table is called a Cayley table.

##### Example3.9

The integers mod $n$ form a group under addition modulo $n$. Consider ${\mathbb Z}_5$, consisting of the equivalence classes of the integers 0, 1, 2, 3, and 4. We define the group operation on ${\mathbb Z}_5$ by modular addition. We write the binary operation on the group additively; that is, we write $m + n$. The element 0 is the identity of the group and each element in ${\mathbb Z}_5$ has an inverse. For instance, $2 + 3 = 3 + 2 = 0$. Table 3.10 is a Cayley table for ${\mathbb Z}_5$. By Proposition 3.4, ${\mathbb Z}_n = \{0, 1, \ldots, n-1 \}$ is a group under the binary operation of addition mod $n$.

##### Example3.11

Not every set with a binary operation is a group. For example, if we let modular multiplication be the binary operation on ${\mathbb Z}_n$, then ${\mathbb Z}_n$ fails to be a group. The element 1 acts as a group identity since $1 \cdot k = k \cdot 1 = k$ for any $k \in {\mathbb Z}_n$; however, a multiplicative inverse for $0$ does not exist since $0 \cdot k = k \cdot 0 = 0$ for every $k$ in ${\mathbb Z}_n$. Even if we consider the set ${\mathbb Z}_n \setminus \{0 \}$, we still may not have a group. For instance, let $2 \in {\mathbb Z}_6$. Then 2 has no multiplicative inverse since \begin{align*} 0 \cdot 2 & = 0 \qquad 1 \cdot 2 = 2\\ 2 \cdot 2 & = 4 \qquad 3 \cdot 2 = 0\\ 4 \cdot 2 & = 2 \qquad 5 \cdot 2 = 4. \end{align*} By Proposition 3.4, every nonzero $k$ does have an inverse in ${\mathbb Z}_n$ if $k$ is relatively prime to $n$. Denote the set of all such nonzero elements in ${\mathbb Z}_n$ by $U(n)$. Then $U(n)$ is a group called the group of units of ${\mathbb Z}_n$. Table 3.12 is a Cayley table for the group $U(8)$.

##### Example3.13

The symmetries of an equilateral triangle described in Section 3.1 form a nonabelian group. As we observed, it is not necessarily true that $\alpha \beta = \beta \alpha$ for two symmetries $\alpha$ and $\beta$. Using Table 3.7, which is a Cayley table for this group, we can easily check that the symmetries of an equilateral triangle are indeed a group. We will denote this group by either $S_3$ or $D_3$, for reasons that will be explained later.

##### Example3.14

We use ${\mathbb M}_2 ( {\mathbb R})$ to denote the set of all $2 \times 2$ matrices. Let $GL_2({\mathbb R})$ be the subset of ${\mathbb M}_2 ( {\mathbb R})$ consisting of invertible matrices; that is, a matrix \begin{equation*}A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}\end{equation*} is in $GL_2( {\mathbb R})$ if there exists a matrix $A^{-1}$ such that $A A^{-1} = A^{-1} A = I$, where $I$ is the $2 \times 2$ identity matrix. For $A$ to have an inverse is equivalent to requiring that the determinant of $A$ be nonzero; that is, $\det A = ad - bc \neq 0$. The set of invertible matrices forms a group called the general linear group. The identity of the group is the identity matrix \begin{equation*}I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}.\end{equation*} The inverse of $A \in GL_2( {\mathbb R})$ is \begin{equation*}A^{-1} = \frac{1}{ad-bc} \begin{pmatrix} d & -b \\ -c & a \end{pmatrix}.\end{equation*} The product of two invertible matrices is again invertible. Matrix multiplication is associative, satisfying the other group axiom. For matrices it is not true in general that $AB = BA$; hence, $GL_2({\mathbb R})$ is another example of a nonabelian group.

##### Example3.15

Let \begin{align*} 1 & = \begin{pmatrix} 1 & 0\\ 0 & 1 \end{pmatrix} \qquad I = \begin{pmatrix} 0 & 1\\ -1 & 0 \end{pmatrix}\\ J & = \begin{pmatrix} 0 & i\\ i & 0 \end{pmatrix} \qquad K = \begin{pmatrix} i & 0\\ 0 & -i \end{pmatrix}, \end{align*} where $i^2 = -1$. Then the relations $I^2 = J^2 = K^2 = -1$, $IJ=K$, $JK = I$, $KI = J$, $JI = -K$, $KJ = -I$, and $IK = -J$ hold. The set $Q_8 = \{\pm 1, \pm I, \pm J, \pm K \}$ is a group called the quaternion group. Notice that $Q_8$ is noncommutative.

##### Example3.16

Let ${\mathbb C}^\ast$be the set of nonzero complex numbers. Under the operation of multiplication ${\mathbb C}^\ast$ forms a group. The identity is 1. If $z = a+bi$ is a nonzero complex number, then \begin{equation*}z^{-1} = \frac{a -bi}{a^2 +b^2}\end{equation*} is the inverse of $z$. It is easy to see that the remaining group axioms hold.

A group is finite, or has finite order, if it contains a finite number of elements; otherwise, the group is said to be infinite or to have infinite order. The order of a finite group is the number of elements that it contains. If $G$ is a group containing $n$ elements, we write $|G| = n$. The group ${\mathbb Z}_5$ is a finite group of order 5; the integers ${\mathbb Z}$ form an infinite group under addition, and we sometimes write $|{\mathbb Z}| = \infty$.

# SubsectionBasic Properties of Groups¶ permalink

Inverses in a group are also unique. If $g'$ and $g''$ are both inverses of an element $g$ in a group $G$, then $gg' = g'g = e$ and $gg'' = g''g = e$. We want to show that $g' = g''$, but $g' = g'e = g'(gg'') = (g'g)g'' = eg'' = g''$. We summarize this fact in the following proposition.

It makes sense to write equations with group elements and group operations. If $a$ and $b$ are two elements in a group $G$, does there exist an element $x \in G$ such that $ax = b$? If such an $x$ does exist, is it unique? The following proposition answers both of these questions positively.

This proposition tells us that the right and left cancellation laws are true in groups. We leave the proof as an exercise.

We can use exponential notation for groups just as we do in ordinary algebra. If $G$ is a group and $g \in G$, then we define $g^0 = e$. For $n \in {\mathbb N}$, we define \begin{equation*}g^n = \underbrace{g \cdot g \cdots g}_{n \; \text{times}} \end{equation*} and \begin{equation*}g^{-n} = \underbrace{g^{-1} \cdot g^{-1} \cdots g^{-1}}_{n \; \text{times}}.\end{equation*}

We will leave the proof of this theorem as an exercise. Notice that $(gh)^n \neq g^nh^n$ in general, since the group may not be abelian. If the group is ${\mathbb Z}$ or ${\mathbb Z}_n$, we write the group operation additively and the exponential operation multiplicatively; that is, we write $ng$ instead of $g^n$. The laws of exponents now become

1. $mg + ng = (m+n)g$ for all $m, n \in {\mathbb Z}$;

2. $m(ng) = (mn)g$ for all $m, n \in {\mathbb Z}$;

3. $m(g + h) = mg + mh$ for all $n \in {\mathbb Z}$.

It is important to realize that the last statement can be made only because ${\mathbb Z}$ and ${\mathbb Z}_n$ are commutative groups.