In
group theory, define the direct product of two groups (G, \circ) and (H, \cdot), can be denoted by G \times H. For
abelian groups that are written additively, it may also be called the
direct sum of two groups, denoted by G \oplus H. It is defined as follows: • the
set of the elements of the new group is the
Cartesian product of the sets of elements of G \text{ and } H, that is \{(g, h) : g \in G, h \in H\}; • on these elements put an operation, defined element-wise: (g, h) \times \left(g', h'\right) = \left(g \circ g', h \cdot h'\right) Note that (G, \circ) may be the same as (H, \cdot). The construction gives a new group, which has a
normal subgroup that is isomorphic to G (given by the elements of the form (g, 1)) and one that is isomorphic to H (comprising the elements (1, h)). The reverse also holds in the recognition theorem. If a group K contains two normal subgroups G \text{ and } H, such that K = GH and the intersection of G \text{ and } H contains only the identity, K is isomorphic to G \times H. A relaxation of those conditions by requiring only one subgroup to be normal gives the
semidirect product. For example, G \text{ and } H are taken as two copies of the unique (up to isomorphisms) group of order 2, C^2: say \{1, a\} \text{ and } \{1, b\}. Then, C_2 \times C_2 = \{(1,1), (1,b), (a,1), (a,b)\}, with the operation element by element. For instance, (1,b)^* (a,1) = \left(1^* a, b^* 1\right) = (a, b), and(1,b)^* (1, b) = \left(1, b^2\right) = (1, 1). With a direct product, some natural
group homomorphisms are obtained for free: the projection maps defined by \begin{align} \pi_1: G \times H \to G, \ \ \pi_1(g, h) &= g \\ \pi_2: G \times H \to H, \ \ \pi_2(g, h) &= h \end{align} are called the
coordinate functions. Also, every homomorphism f to the direct product is totally determined by its component functions f_i = \pi_i \circ f. For any group (G, \circ) and any integer n \geq 0, repeated application of the direct product gives the group of all n-
tuples G^n (for n = 0, that is the
trivial group); for example, \Z^n and \R^n. == Direct product of modules ==