Our second universal algebraic concept lets us look in the opposite direction from subsystems. Direct products allow us to create larger systems.
In the following definition, we avoid complicating the notation by not specifying how many operations the systems have.

Definition11.6.1Direct Product

If \(\left[V_i;*_i, \diamond_i, \ldots \right]\), \(i = 1, 2, \ldots, n\) are algebraic systems of the same kind, then the direct product of these systems is \(V =V_1\times
V_2\times \cdots \times V_n\) , with operations defined below. The elements of \(V\) are \(n\)-tuples of the form \(\left(a_1, a_2, \dots , a _n \right)\), where \(a_k \in V_k\), \(k = 1, \dots , n\). The systems \(V_1\), \(V_2, \dots, V_n\) are called the factors of \(V\). There are as many operations on \(V\) as there are in the factors. Each of these operations is defined componentwise:

Consider the monoids \(\mathbb{N}\) (the set of natural numbers with addition) and \(B^*\) (the set of finite strings of 0's
and 1's with concatenation). The direct product of \(\mathbb{N}\) with \(B^*\) is a monoid. We illustrate its operation, which we will denote by \(*\), with examples:
\begin{equation*}
\begin{array}{c}
(4, 001) * (3, 11) = (4 + 3, 001+11) = (7, 00111)\\
(0, 11010) * (3,01) = (3, 1101001)\\
(0, \lambda ) * (129, 00011) = (0 + 129, \lambda +00011) = (129, 00011)\\
(2, 01) * (8, 10) = (10,0110)\textrm{, and }\\
(8, 10) * (2, 01) = (10, 1001)
\end{array}
\end{equation*}
Note that our new monoid is not commutative. What is the identity for \(*\) ?

Note11.6.3

On notation. If two or more consecutive factors in a direct product are identical, it is common to combine them using exponential notation. For example, \(\mathbb{Z} \times \mathbb{Z} \times \mathbb{R}\) can be written \(\mathbb{Z}^2 \times \mathbb{R}\), and \(\mathbb{R} \times \mathbb{R}
\times \mathbb{R} \times \mathbb{R}\) can be written \(\mathbb{R}^4\). This is purely a notational convenience; no exponentiation is really taking
place.

We call the operations in a direct product componentwise operations, and they are indeed operations on \(V\). If two \(n\)-tuples, \(a\) and \(b\), are selected from \(V\), the first components of \(a\) and \(b\), \(a_1\) and \(b_1\), are operated on with \(*_1\) to obtain \(a_1*_1b_1\), the first component of \(a * b\). Note
that since \(*_1\) is an operation on \(V_1\), \(a_1*_1b_1\) is an element of \(V_1\). Similarly, all other components of \(a * b\), as they are
defined, belong to their proper sets.

One significant fact about componentwise operations is that the components of the result can all be computed at the same time (concurrently). The
time required to compute in a direct product can be reduced to a length of time that is not much longer than the maximum amount of time needed to
compute in the factors.

A direct product of algebraic systems is not always an algebraic system of the same type as its factors. This is due to the fact that certain axioms that are true for the factors may not be true for the set of \(n\)-tuples. This situation does not occur with groups however. You will find that whenever a new type of algebraic system is introduced, call it type \(T\), one of the first theorems that is usually proven, if possible, is that the direct product of two or more systems of type \(T\) is a system of type \(T\).

Theorem11.6.5The Direct Product of Groups is a Group

The direct product of two or more groups is a group; that is, the algebraic properties of a system obtained by taking the
direct product of two or more groups includes the group axioms.

We will only present the proof of this theorem for the direct product of two groups. Some slight revisions can be made to produce a proof for any
number of factors.

Stating that the direct product of two groups is a group is a short way of saying that if \(\left[G_1; *_1\right]\) and \(\left[G_2; *_2\right]\)
are groups, then \(\left[G_1\times G_2; * \right]\) is also a group, where \(*\) is the componentwise operation on \(G_1\times G_2\).
Associativity of \(*\) : If \(a, b, c \in G_1\times G_2\),
\begin{equation*}
\begin{split}
a * (b * c) & =\left(a_1,a_2\right)*\left(\left(b_1,b_2\right)*\left(c_1,c_2\right)\right)\\
& =\left(a_1,a_2\right)*\left(b_1*_1c_1,b_2*_2c_2\right)\\
& = \left(a_1*_1\left(b_1*_1c_1\right),a_2*_2\left(b_2*_2c_2\right)\right)\\
& = \left(\left(a_1*_1b_1\right)*_1c_1,\left(a_2*_2b_2\right)*_2c_2\right)\\
& = \left(a_1*_1b_1,a_2*_2b_2\right)*\left(c_1,c_2\right)\\
& = \left(\left(a_1,a_2\right)*\left(b_1,b_2\right)\right)*\left(c_1,c_2\right)\\
& = (a * b)*c\\
\end{split}
\end{equation*}
Notice how the associativity property hinges on the associativity in each factor.
An identity for \(*\): As you might expect, if \(e_1\) and \(e_2\) are identities for \(G_1\) and \(G_2\), respectively, then \(e = \left(e_1, e
_2 \right)\) is the identity for \(G_1 \times G_2\). If \(a \in G_1\times G_2\),
\begin{equation*}
\begin{split}
a * e &=\left(a_1,a_2\right)* \left(e_1, e _2 \right)\\
& = \left(a_1*_1e_1,a_2*_2 e _2\right)\\
& = \left(a_1,a_2\right) = a
\end{split}
\end{equation*}
Similarly, \(e * a = a\).

Inverses in \(G_1\times G_2\): The inverse of an element is determined componentwise \(a^{-1}= \left(a_1,a_2\right){}^{-1}=\left(a_1{}^{-1},a_2{}^{-1}\right)\). To verify, we compute \(a * a^{-1}\) :
\begin{equation*}
\begin{split}
a * a^{-1} &=\left(a_1,a_2\right)*\left(a_1{}^{-1},a_2{}^{-1}\right)\\
& =\left(a_1*_1a_1{}^{-1},a_2*_2a_2{}^{-1}\right)\\
& = \left(e_1, e _2 \right) =e
\end{split}
\end{equation*}
Similarly, \(a^{-1} * a=e\).

Example11.6.6Some New Groups

If \(n \geq 2\), \(\mathbb{Z}_2{}^n\) , the direct product of \(n\) factors of \(\mathbb{Z}_2\), is a group with \(2^n\) elements. We
will take a closer look at \(\mathbb{Z}_2{}^3 = \mathbb{Z}_2 \times \mathbb{Z}_2 \times \mathbb{Z}_2\). The elements of this group are triples
of zeros and ones. Since the operation on \(\mathbb{Z}_2\) is \(+_2\), we will use the symbol + for the operation on \(\mathbb{Z}_2{}^3\) . Two of
the eight triples in the group are \(a = (1, 0, 1)\) and \(b = (0, 0, 1)\). Their “sum” is \(a + b = \left(1 +_2 0, 0 +_2 0, 1 +_2 1\right)
= (1, 0, 0)\). One interesting fact about this group is that each element is its own inverse. For example \(a + a = (1, 0, 1) + (1, 0, 1) = (0, 0,
0)\); therefore \(-a = a\). We use the additive notation for the inverse of \(a\) because we are using a form of addition. Note that \(\{(0, 0, 0), (1,
0, 1)\}\) is a subgroup of \(\mathbb{Z}_2{}^3\). Write out the “addition” table for this set and apply Theorem 11.5.5. The same can be said
for any set consisting of (0, 0, 0) and another element of \(\mathbb{Z}_2{}^3\).

The direct product of the positive real numbers with the integers modulo 4, \(\mathbb{R}^+ \times \mathbb{Z}_4\) is an infinite
group since one of its factors is infinite. The operations on the factors are multiplication and modular addition, so we will select the neutral
symbol \(\diamond\) for the operation on \(\mathbb{R}^+ \times \mathbb{Z}_4\). If \(a = (4, 3)\) and \(b = (0.5, 2)\), then
\begin{equation*}
\begin{array}{c}
a \diamond b = (4, 3) \diamond (0.5, 2) = \left(4 \cdot 0.5, 3 +_4 2\right) = (2, 1)\\
b^2 = b \diamond b = (0.5, 2) \diamond (0.5, 2) = (0.25, 0)\\
a^{-1} = \left(4^{-1} , -3\right) = (0.25, 1)\\
b^{-1} = \left(0.5^{-1} , -2\right) = (2, 2)
\end{array}
\end{equation*}

It would be incorrect to say that \(\mathbb{Z}_4\) is a subgroup of \(\mathbb{R}^+\times \mathbb{Z}_4\) , but there is a subgroup of the direct
product that closely resembles \(\mathbb{Z}_4\). It is \(\{(1, 0), (1, 1), (1, 2), (1, 3)\}\). Its table is
\begin{equation*}
\begin{array}{c|cccc}
\diamond &(1, 0)& (1, 1)& (1, 2)& (1, 3)\\
\hline
(1, 0)&(1, 0)& (1, 1)& (1, 2)& (1, 3)\\
(1, 1)&(1, 1)& (1, 2)& (1, 3)& (1, 0)\\
(1, 2)&(1, 2)& (1, 3)& (1, 0)& (1, 1)\\
(1, 3)&(1, 3)& (1, 0)& (1, 1)& (1, 2)\\
\end{array}
\end{equation*}

Imagine erasing \((1, )\) throughout the table and writing \(+_4\) in place of \(\diamond\). What would you get? We will explore this phenomenon in detail in the next section.

The whole direct product could be visualized as four parallel half-lines labeled 0, 1, 2, and 3 as in Figure 11.6.7. On the \(k\)th line, the point that lies \(x\) units to the right of the zero mark would be \((x,k)\). The set \(\{(2^n, (n)1) \mid n \in \mathbb{Z}\}\),
which is depicted on the figure is a subgroup of \(\mathbb{R}^+\times \mathbb{Z}_4\). What cyclic subgroup is it?

The answer: \(\langle (2, 1)\rangle\) or \(\langle(1/2, 3)\rangle\). There are two different generators.

A more conventional direct product is \(\mathbb{R}^2\), the direct product of two factors of \([\mathbb{R}; + ]\). The operation on \(\mathbb{R}^2\)
is componentwise addition; hence we will use + as the operation symbol for this group. You should be familiar with this operation, since it is identical
to addition of \(2 \times 1\) matrices. The Cartesian coordinate system can be used to visualize \(\mathbb{R}^2\) geometrically. We plot the pair
\((s, t)\) on the plane in the usual way: \(s\) units along the \(x\) axis and \(t\) units along the \(y\) axis. There is
a variety of different subgroups of \(\mathbb{R}^2\) , a few of which are:

\(\{(x, 0) \mid x \in \mathbb{R}\}\), all of the points on the \(x\) axis;

\(\{(x, y) \mid 2x- y = 0\}\), all of the points that are on the line 2x - y = 0;

If \(a, b \in \mathbb{R}\), \(\{(x, y) \mid a x + b y = 0\}\). The first two subgroups are special cases of this one, which represents any line
that passes through the origin.

\(\{(x, y) \mid 2x - y = k, k \in \mathbb{Z}\}\), a union of a set of lines that are parallel to \(2x - y = 0\).

\(\{(n, 3n) \mid n \in \mathbb{Z}\}\), which is the only countable subgroup that we have listed.

We will leave it to the reader to verify that these sets are subgroups. We will only point out how the fourth example, call it \(H\), is closed under “addition.” If \(a = (p, q)\) and \(b = (s, t)\) and both belong to \(H\), then \(2p - q = j\) and \(2s - t= k\), where both
\(j\) and \(k\) are integers. \(a + b = (p, q) + (s, t) = (p + s, q + t)\)
We can determine whether \(a + b\) belongs to \(H\) by deciding whether or not \(2(p + s) - (q + t)\) is an integer:
\begin{equation*}
\begin{split}
2(p + s) - (q + t) &= 2p + 2s - q - t\\
& = (2p - q) + (2s - t) \\
& = j + k
\end{split}
\end{equation*}
Since \(j\) and \(k\) are integers, so is \(j +k\). This completes a proof that \(H\) is closed under the operation of \(\mathbb{R}^2\).

Several useful facts can be stated in regards to the direct product of two or more groups. We will combine them into one theorem, which we will present with no proof. Parts a and c were derived for \(n = 2\) in the proof of Theorem 11.6.5.

Theorem11.6.8Properties of Direct Products of Groups

If \(G = G_1\times G_2 \times \cdots \times G_n\) is a direct product of \(n\) groups and \(\left(a_1,
a_2 , \dots , a_n\right) \in G\), then:

The identity of G is \(\left(e_1, e_2 , . . . , e_n\right)\), where \(e_k\), is the identity of \(G_k\).

\(G\) is abelian if and only if each of the factors \(G_1, G_2, \ldots , G_n\) is abelian.

lf \(H_1, H_2, \ldots , H_n\) are subgroups of the corresponding factors, then \(H_1\times H_2 \times \cdots \times H_n\) is
a subgroup of \(G\).

Not all subgroups of a direct product can be created using part e of Theorem 11.6.8. For example, \(\{(n, n) \mid n \in \mathbb{Z}\}\) is a subgroup of \(\mathbb{Z}^2\), but is not a direct product of two subgroups of \(\mathbb{Z}\).

Example11.6.9Linked Lists using a Direct Product

Using the identity \((x + y) + x = y\), in \(\mathbb{Z}_2\), we can devise a scheme for representing a symmetrically linked
list using only one link field. A symmetrically linked list is a list in which each node contains a pointer to its immediate successor and its immediate predecessor (see Figure 11.6.10). If the pointers are \(n\)-digit binary addresses, then each pointer can be taken as an element of \(\mathbb{Z}_2{}^n\). Lists of this type can be accomplished using cells with only one link. In place of a left and a right pointer, the only “link” is the value of the sum (left link) + (right link). All standard list operations (merge, insert, delete, traverse, and so on) are possible with this structure, provided that you know the value of the nil pointer and the address, \(f\), of the first (i. e., leftmost) cell. Since first \(f.\textrm{ left}\) is nil, we can recover \(f.\textrm{ right}\) by adding the value of nil: \(f + \textrm{ nil} = (\textrm{ nil} + f.\textrm{right}) + \textrm{nil} = f.\textrm{right}\),
which is the address of the second item. Now if we temporarily retain the address, \(s\), of the second cell, we can recover
the address of the third item. The link field of the second item contains the sum \(s.\textrm{ left} + s.\textrm{ right} = \textrm{ first} + \textrm{ third}\). Therefore
\begin{equation*}
\begin{split}
(\textrm{first} + \textrm{third})+ \textrm{first} &= s + s.\textrm{left}\\
&=( s.\textrm{left} + s.\textrm{right})+ s.\textrm{left}\\
&=s.\textrm{right}\\
&= \textrm{third}
\end{split}
\end{equation*}

We no longer need the address of the first cell, only the second and third, to recover the fourth address, and so forth.

The following more formal algorithm uses names that reflects the timing of the visits.

Given a symmetric list, a traversal of the list is accomplished as follows, where \(\textit{first}\) is the address of the first cell. We presume that each item has some information that is represented by \(\textrm{item}.\textrm{info}\) and
a field called item.link that is the sum of the left and right links.

Table of \(\mathbb{Z}_2\times \mathbb{Z}_3\):
\begin{equation*}
\begin{array}{c|cccccc}
+&(0,0)&(0,1)&(0,2)&(1,0)&(1,1)&(1,2)\\
\hline
(0,0)&(0,0)&(0,1)&(0,2)&(1,0)&(1,1)&(1,2)\\
(0,1)&(0,1)&(0,2)&(0,0)&(1,1)&(1,2)&(1,0)\\
(0,2)&(0,2)&(0,0)&(0,1)&(1,2)&(1,0)&(1,1)\\
(1,0)&(1,0)&(1,1)&(1,2)&(0,0)&(0,1)&(0,2)\\
(1,1)&(1,1)&(1,2)&(1,0)&(0,1)&(0,2)&(0,0)\\
(1,2)&(1,2)&(1,0)&(1,1)&(0,2)&(0,0)&(0,1)
\end{array}
\end{equation*}
The only two proper subgroups are \(\{(0, 0), (1, 0)\}\) and \(\{(0, 0), (0, 1), (0, 2)\}\)

2

List more examples of proper subgroups of \(\mathbb{R}^2\) that are different from the ones listed in this section.

3Algebraic properties of the \(n\)-cube

The four elements of \(\mathbb{Z}_2^2\) can be visualized geometrically as the four corners of the 2-cube. Algebraically
describe the statements:

Corners \(a\) and \(b\) are adjacent.

Corners \(a\) and \(b\) are diagonally opposite one another.

The eight elements of \(\mathbb{Z}_2{}^3\) can be visualized as the eight corners of the 3-cube. One face contains \(\mathbb{Z}_2 \times
\mathbb{Z}_2\times \{0\}\) and the opposite face contains the remaining four elements so that \((a, b, 1)\) is behind \((a, b, 0)\). As in part a,
describe statements i and ii algebraically.

If you could imagine a geometric figure similar to the square or cube in \(n\) dimensions, and its comers were labeled by elements of
\(\mathbb{Z}_2{}^n\) as in parts a and b, how would statements i and ii be expressed algebraically?

(i) \(a + b \textrm{ could be }(1, 0) \textrm{ or } (0, 1)\).
(ii) \(a + b = (1, 1)\).

(i) \(a + b \textrm{ could be}(1, 0, 0), (0, 1, 0), \textrm{ or }(0, 0, 1)\).
(ii) \(a + b = (1, 1, 1)\).

(i) \(a + b\) has exactly one 1.
(ii) \(a + b\) has all \(1's\).

4

Suppose that you were to be given a group \([G; * ]\) and asked to solve the equation \(x * x = e\). Without knowing the group, can you anticipate
how many solutions there will be?

Answer the same question as part a for the equation \(x * x = x\).

5

Which of the following sets are subgroups of \(\mathbb{Z} \times \mathbb{Z}\)? Give a reason for any negative answers.