Semidirect product

In mathematics, specifically in group theory, the concept of a semidirect product is a generalization of a direct product. There are two closely related concepts of semidirect product: As with direct products, there is a natural equivalence between inner and outer semidirect products, and both are commonly referred to simply as semidirect products.
 * an inner semidirect product is a particular way in which a group can be made up of two subgroups, one of which is a normal subgroup.
 * an outer semidirect product is a way to construct a new group from two given groups by using the Cartesian product as a set and a particular multiplication operation.

For finite groups, the Schur–Zassenhaus theorem provides a sufficient condition for the existence of a decomposition as a semidirect product (also known as splitting extension).

Inner semidirect product definitions
Given a group $G$ with identity element $e$, a subgroup $H$, and a normal subgroup $N ◁ G$, the following statements are equivalent:
 * $G$ is the product of subgroups, $G = NH$, and these subgroups have trivial intersection: $N ∩ H = \{e\}$.
 * For every $g ∈ G$, there are unique $n ∈ N$ and $h ∈ H$ such that $g = nh$.
 * The composition $π ∘ i$ of the natural embedding $i: H → G$ with the natural projection $π: G → G/N$ is an isomorphism between $H$ and the quotient group $G/N$.
 * There exists a homomorphism $G → H$ that is the identity on $H$ and whose kernel is $N$. In other words, there is a split exact sequence
 * $$1 \to N \to G \to H \to 1$$


 * of groups (which is also known as group extension of $$H$$ by $$N$$).

If any of these statements holds (and hence all of them hold, by their equivalence), we say $G$ is the semidirect product of $N$ and $H$, written


 * $$G = N \rtimes H$$ or $$G = H \ltimes N,$$

or that $G$ splits over $N$; one also says that $G$ is a semidirect product of $H$ acting on $N$, or even a semidirect product of $H$ and $N$. To avoid ambiguity, it is advisable to specify which is the normal subgroup.

If $$G = N \rtimes H$$, then there is a group homomorphism $$\varphi\colon H\rightarrow \mathrm{Aut} (N)$$ given by $$\varphi_h(n)=hnh^{-1}$$, and for $$g=nh,g'=n'h'$$, we have $$gg'=nhn'h' = nhn'h^{-1}hh' = n\varphi_{h}(n')hh' = n^* h^* $$.

Inner and outer semidirect products
Let us first consider the inner semidirect product. In this case, for a group $$G$$, consider a normal subgroup $N$ and another subgroup $H$ (not necessarily normal). Assume that the conditions on the list above hold. Let $$\operatorname{Aut}(N)$$ denote the group of all automorphisms of $N$, which is a group under composition. Construct a group homomorphism $$\varphi \colon H \to \operatorname{Aut}(N)$$ defined by conjugation,
 * $$\varphi_h(n) = hnh^{-1}$$, for all $h$ in $H$ and $n$ in $N$.

In this way we can construct a group $$G'=(N,H)$$ with group operation defined as
 * $$ (n_1, h_1) \cdot (n_2, h_2) = (n_1 \varphi_{h_1}(n_2),\, h_1 h_2)$$ for $n_{1}, n_{2}$ in $N$ and $h_{1}, h_{2}$ in $H$.

The subgroups $N$ and $H$ determine $G$ up to isomorphism, as we will show later. In this way, we can construct the group $G$ from its subgroups. This kind of construction is called an inner semidirect product (also known as internal semidirect product ).

Let us now consider the outer semidirect product. Given any two groups $N$ and $H$ and a group homomorphism $φ: H → Aut(N)$, we can construct a new group $N ⋊φ H$, called the outer semidirect product of $N$ and $H$ with respect to $φ$, defined as follows: • The underlying set is the Cartesian product $N × H$.

• The group operation $\bullet$ is determined by the homomorphism $φ$:
 * $\begin{align}

\bullet : (N \rtimes_\varphi H) \times (N \rtimes_\varphi H) &\to N \rtimes_\varphi H\\ (n_1, h_1) \bullet (n_2, h_2) &= (n_1 \varphi_{h_1}(n_2),\, h_1 h_2) \end{align}$ for $n_{1}, n_{2}$ in $N$ and $h_{1}, h_{2}$ in $H$.

This defines a group in which the identity element is $(e_{N}, e_{H})$ and the inverse of the element $(n, h)$ is $(φ_{h^{−1}}(n^{−1}), h^{−1})|undefined$. Pairs $(n, e_{H})$ form a normal subgroup isomorphic to $N$, while pairs $(e_{N}, h)$ form a subgroup isomorphic to $H$. The full group is a semidirect product of those two subgroups in the sense given earlier.

Conversely, suppose that we are given a group $G$ with a normal subgroup $N$ and a subgroup $H$, such that every element $g$ of $G$ may be written uniquely in the form $g = nh$ where $n$ lies in $N$ and $h$ lies in $H$. Let $φ: H → Aut(N)$ be the homomorphism (written $φ(h) = φ_{h}$) given by
 * $$\varphi_h(n) = hnh^{-1}$$

for all $n ∈ N, h ∈ H$.

Then $G$ is isomorphic to the semidirect product $N ⋊φ H$. The isomorphism $λ: G → N ⋊φ H$ is well defined by $λ(a) = λ(nh) = (n, h)$ due to the uniqueness of the decomposition $a = nh$.

In $G$, we have
 * $$(n_1 h_1)(n_2 h_2) = n_1 h_1 n_2(h_1^{-1}h_1) h_2 =

(n_1 \varphi_{h_1}(n_2))(h_1 h_2)$$ Thus, for $a = n1h1$ and $b = n2h2$ we obtain
 * $$\begin{align}

\lambda(ab) & = \lambda(n_1 h_1 n_2 h_2) = \lambda(n_1 \varphi_{h_1} (n_2) h_1 h_2) = (n_1 \varphi_{h_1} (n_2), h_1 h_2) = (n_1, h_1) \bullet (n_2, h_2) \\[5pt] & = \lambda(n_1 h_1) \bullet \lambda(n_2 h_2) = \lambda(a) \bullet \lambda(b), \end{align}$$ which proves that $λ$ is a homomorphism. Since $λ$ is obviously an epimorphism and monomorphism, then it is indeed an isomorphism. This also explains the definition of the multiplication rule in $N ⋊φ H$.

The direct product is a special case of the semidirect product. To see this, let $φ$ be the trivial homomorphism (i.e., sending every element of $H$ to the identity automorphism of $N$) then $N ⋊φ H$ is the direct product $N × H$.

A version of the splitting lemma for groups states that a group $G$ is isomorphic to a semidirect product of the two groups $N$ and $H$ if and only if there exists a short exact sequence


 * $$ 1 \longrightarrow N \,\overset{\beta}{\longrightarrow}\, G \,\overset{\alpha}{\longrightarrow}\, H \longrightarrow 1$$

and a group homomorphism $γ: H → G$ such that $α&thinsp;∘&thinsp;γ = id_{H}$, the identity map on $H$. In this case, $φ: H → Aut(N)$ is given by $φ(h) = φ_{h}$, where
 * $$\varphi_h(n) = \beta^{-1}(\gamma(h)\beta(n)\gamma(h^{-1})).$$

Dihedral group
The dihedral group $D2n$ with $2n$ elements is isomorphic to a semidirect product of the cyclic groups $Cn$ and $C2$. Here, the non-identity element of $C2$ acts on $Cn$ by inverting elements; this is an automorphism since $Cn$ is abelian. The presentation for this group is:
 * $$\langle a,\;b \mid a^2 = e,\; b^n = e,\; aba^{-1} = b^{-1}\rangle.$$

Cyclic groups
More generally, a semidirect product of any two cyclic groups $Cm$ with generator $a$ and $Cn$ with generator $b$ is given by one extra relation, $aba−1 = bk$, with $k$ and $n$ coprime, and $$k^m\equiv 1 \pmod{n}$$; that is, the presentation:
 * $$\langle a,\;b \mid a^m = e,\;b^n = e,\;aba^{-1} = b^k\rangle.$$

If $r$ and $m$ are coprime, $ar$ is a generator of $Cm$ and $arba−r = bkr$, hence the presentation:
 * $$\langle a,\;b \mid a^m = e,\;b^n = e,\;aba^{-1} = b^{k^{r}}\rangle$$

gives a group isomorphic to the previous one.

Holomorph of a group
One canonical example of a group expressed as a semi-direct product is the holomorph of a group. This is defined as"$\operatorname{Hol}(G)=G\rtimes \operatorname{Aut}(G)$"where $$\text{Aut}(G)$$ is the automorphism group of a group $$G$$ and the structure map $$\varphi$$ comes from the right action of $$\text{Aut}(G)$$ on $$G$$. In terms of multiplying elements, this gives the group structure"$(g,\alpha)(h,\beta)=(g(\varphi(\alpha)\cdot h),\alpha\beta).$"

Fundamental group of the Klein bottle
The fundamental group of the Klein bottle can be presented in the form
 * $$\langle a,\;b \mid aba^{-1} = b^{-1}\rangle.$$

and is therefore a semidirect product of the group of integers, $$\mathbb{Z}$$, with $$\mathbb{Z}$$. The corresponding homomorphism $φ: $\mathbb{Z}$ → Aut($\mathbb{Z}$)$ is given by $φ(h)(n) = (−1)hn$.

Upper triangular matrices
The group $$\mathbb{T}_n$$ of upper triangular matrices with non-zero determinant in an arbitrary field, that is with non-zero entries on the diagonal, has a decomposition into the semidirect product $$\mathbb{T}_n \cong \mathbb{U}_n \rtimes \mathbb{D}_n$$ where $$\mathbb{U}_n$$ is the subgroup of matrices with only $$1$$'s on the diagonal, which is called the upper unitriangular matrix group, and $$\mathbb{D}_n$$ is the subgroup of diagonal matrices.

The group action of $$\mathbb{D}_n$$ on $$\mathbb{U}_n$$ is induced by matrix multiplication. If we set

$$A = \begin{bmatrix} x_1 & 0 & \cdots & 0 \\ 0 & x_2 & \cdots & 0 \\ \vdots & \vdots & & \vdots \\ 0 & 0 & \cdots & x_n \end{bmatrix}$$ and $$B = \begin{bmatrix} 1 & a_{12} & a_{13} & \cdots & a_{1n} \\ 0 & 1 & a_{23} & \cdots & a_{2n} \\ \vdots & \vdots & \vdots & & \vdots \\ 0 & 0 & 0 & \cdots & 1 \end{bmatrix}$$

then their matrix product is
 * $$AB =

\begin{bmatrix} x_1 & x_1a_{12} & x_1a_{13} & \cdots & x_1a_{1n} \\ 0 & x_2 & x_2a_{23} & \cdots & x_2a_{2n} \\ \vdots & \vdots & \vdots & & \vdots \\ 0 & 0 & 0 & \cdots & x_n \end{bmatrix}.$$ This gives the induced group action $$m:\mathbb{D}_n\times \mathbb{U}_n \to \mathbb{U}_n$$
 * $$m(A,B) = \begin{bmatrix}

1 & x_1a_{12} & x_1a_{13} & \cdots & x_1a_{1n} \\ 0 & 1 & x_2a_{23} & \cdots & x_2a_{2n} \\ \vdots & \vdots & \vdots & & \vdots \\ 0 & 0 & 0 & \cdots & 1 \end{bmatrix}.$$ A matrix in $$\mathbb{T}_n$$ can be represented by matrices in $$\mathbb{U}_n$$ and $$\mathbb{D}_n$$. Hence $$\mathbb{T}_n \cong \mathbb{U}_n \rtimes \mathbb{D}_n$$.

Group of isometries on the plane
The Euclidean group of all rigid motions (isometries) of the plane (maps $f: $\mathbb{R}$2 → $\mathbb{R}$2$ such that the Euclidean distance between $x$ and $y$ equals the distance between $f(x)$ and $f(y)$ for all $x$ and $y$ in $$\mathbb{R}^2$$) is isomorphic to a semidirect product of the abelian group $$\mathbb{R}^2$$ (which describes translations) and the group $O(2)$ of orthogonal $2 × 2$ matrices (which describes rotations and reflections that keep the origin fixed). Applying a translation and then a rotation or reflection has the same effect as applying the rotation or reflection first and then a translation by the rotated or reflected translation vector (i.e. applying the conjugate of the original translation). This shows that the group of translations is a normal subgroup of the Euclidean group, that the Euclidean group is a semidirect product of the translation group and $O(2)$, and that the corresponding homomorphism $φ: O(2) → Aut($\mathbb{R}$2)$ is given by matrix multiplication: $φ(h)(n) = hn$.

Orthogonal group O(n)
The orthogonal group $O(n)$ of all orthogonal real $n × n$ matrices (intuitively the set of all rotations and reflections of $n$-dimensional space that keep the origin fixed) is isomorphic to a semidirect product of the group $SO(n)$ (consisting of all orthogonal matrices with determinant $1$, intuitively the rotations of $n$-dimensional space) and $C2$. If we represent $C2$ as the multiplicative group of matrices ${I, R}$, where $R$ is a reflection of $n$-dimensional space that keeps the origin fixed (i.e., an orthogonal matrix with determinant $–1$ representing an involution), then $φ: C2 → Aut(SO(n))$ is given by $φ(H)(N) = HNH−1$ for all H in $C2$ and $N$ in $SO(n)$. In the non-trivial case ($H$ is not the identity) this means that $φ(H)$ is conjugation of operations by the reflection (in 3-dimensional space a rotation axis and the direction of rotation are replaced by their "mirror image").

Semi-linear transformations
The group of semilinear transformations on a vector space $V$ over a field $$\mathbb{K}$$, often denoted $ΓL(V)$, is isomorphic to a semidirect product of the linear group $GL(V)$ (a normal subgroup of $ΓL(V)$), and the automorphism group of $$\mathbb{K}$$.

Crystallographic groups
In crystallography, the space group of a crystal splits as the semidirect product of the point group and the translation group if and only if the space group is symmorphic. Non-symmorphic space groups have point groups that are not even contained as subset of the space group, which is responsible for much of the complication in their analysis.

Non-examples
Of course, no simple group can be expressed as a semi-direct product (because they do not have nontrivial normal subgroups), but there are a few common counterexamples of groups containing a non-trivial normal subgroup that nonetheless cannot be expressed as a semi-direct product. Note that although not every group $$G$$ can be expressed as a split extension of $$H$$ by $$A$$, it turns out that such a group can be embedded into the wreath product $$A\wr H$$ by the universal embedding theorem.

Z4
The cyclic group $$\mathbb{Z}_4$$ is not a simple group since it has a subgroup of order 2, namely $$\{0,2\} \cong \mathbb{Z}_2$$ is a subgroup and their quotient is $$\mathbb{Z}_2$$, so there's an extension"$0 \to \mathbb{Z}_2 \to \mathbb{Z}_4 \to \mathbb{Z}_2 \to 0$"If the extension was split, then the group $$G$$ in"$0 \to \mathbb{Z}_2 \to G \to \mathbb{Z}_2 \to 0$"would be isomorphic to $$\mathbb{Z}_2\times\mathbb{Z}_2$$.

Q8
The group of the eight quaternions $$\{\pm 1,\pm i,\pm j,\pm k\}$$ where $$ijk = -1$$ and $$i^2 = j^2 = k^2 = -1$$, is another example of a group which has non-trivial normal subgroups yet is still not split. For example, the subgroup generated by $$i$$ is isomorphic to $$\mathbb{Z}_4$$ and is normal. It also has a subgroup of order $$2$$ generated by $$-1$$. This would mean $$Q_8$$ would have to be a split extension in the following hypothetical exact sequence of groups: "$0 \to \mathbb{Z}_4 \to Q_8 \to \mathbb{Z}_2 \to 0$,"but such an exact sequence does not exist. This can be shown by computing the first group cohomology group of $$\mathbb{Z}_2$$ with coefficients in $$\mathbb{Z}_4$$, so $$H^1(\mathbb{Z}_2,\mathbb{Z}_4) \cong \mathbb{Z}/2$$ and noting the two groups in these extensions are $$\mathbb{Z}_2\times\mathbb{Z}_4$$ and the dihedral group $$D_8$$. But, as neither of these groups is isomorphic with $$Q_8$$, the quaternion group is not split. This non-existence of isomorphisms can be checked by noting the trivial extension is abelian while $$Q_8$$ is non-abelian, and noting the only normal subgroups are $$\mathbb{Z}_2$$ and $$\mathbb{Z}_4$$, but $$Q_8$$ has three subgroups isomorphic to $$\mathbb{Z}_4$$.

Properties
If $G$ is the semidirect product of the normal subgroup $N$ and the subgroup $H$, and both $N$ and $H$ are finite, then the order of $G$ equals the product of the orders of $N$ and $H$. This follows from the fact that $G$ is of the same order as the outer semidirect product of $N$ and $H$, whose underlying set is the Cartesian product $N × H$.

Relation to direct products
Suppose $G$ is a semidirect product of the normal subgroup $N$ and the subgroup $H$. If $H$ is also normal in $G$, or equivalently, if there exists a homomorphism $G → N$ that is the identity on $N$ with kernel $H$, then $G$ is the direct product of $N$ and $H$.

The direct product of two groups $N$ and $H$ can be thought of as the semidirect product of $N$ and $H$ with respect to $φ(h) = idN$ for all $h$ in $H$.

Note that in a direct product, the order of the factors is not important, since $N × H$ is isomorphic to $H × N$. This is not the case for semidirect products, as the two factors play different roles.

Furthermore, the result of a (proper) semidirect product by means of a non-trivial homomorphism is never an abelian group, even if the factor groups are abelian.

Non-uniqueness of semidirect products (and further examples)
As opposed to the case with the direct product, a semidirect product of two groups is not, in general, unique; if $G$ and $G′$ are two groups that both contain isomorphic copies of $N$ as a normal subgroup and $H$ as a subgroup, and both are a semidirect product of $N$ and $H$, then it does not follow that $G$ and $G′$ are isomorphic because the semidirect product also depends on the choice of an action of $H$ on $N$.

For example, there are four non-isomorphic groups of order 16 that are semidirect products of $C8$ and $C2$; in this case, $C8$ is necessarily a normal subgroup because it has index 2. One of these four semidirect products is the direct product, while the other three are non-abelian groups:
 * the dihedral group of order 16
 * the quasidihedral group of order 16
 * the Iwasawa group of order 16

If a given group is a semidirect product, then there is no guarantee that this decomposition is unique. For example, there is a group of order 24 (the only one containing six elements of order 4 and six elements of order 6) that can be expressed as semidirect product in the following ways: $(D8 ⋉ C3) ≅ (C2 ⋉ Q12) ≅ (C2 ⋉ D12) ≅ (D6 ⋉ V)$.

Existence
In general, there is no known characterization (i.e., a necessary and sufficient condition) for the existence of semidirect products in groups. However, some sufficient conditions are known, which guarantee existence in certain cases. For finite groups, the Schur–Zassenhaus theorem guarantees existence of a semidirect product when the order of the normal subgroup is coprime to the order of the quotient group.

For example, the Schur–Zassenhaus theorem implies the existence of a semi-direct product among groups of order 6; there are two such products, one of which is a direct product, and the other a dihedral group. In contrast, the Schur–Zassenhaus theorem does not say anything about groups of order 4 or groups of order 8 for instance.

Generalizations
Within group theory, the construction of semidirect products can be pushed much further. The Zappa–Szép product of groups is a generalization that, in its internal version, does not assume that either subgroup is normal.

There is also a construction in ring theory, the crossed product of rings. This is constructed in the natural way from the group ring for a semidirect product of groups. The ring-theoretic approach can be further generalized to the semidirect sum of Lie algebras.

For geometry, there is also a crossed product for group actions on a topological space; unfortunately, it is in general non-commutative even if the group is abelian. In this context, the semidirect product is the space of orbits of the group action. The latter approach has been championed by Alain Connes as a substitute for approaches by conventional topological techniques; c.f. noncommutative geometry.

The semidirect product is a special case of the Grothendieck construction in category theory. Specifically, an action of $$H$$ on $$N$$ (respecting the group, or even just monoid structure) is the same thing as a functor
 * $$F : BH \to Cat$$

from the groupoid $$BH$$ associated to H (having a single object *, whose endomorphisms are H) to the category of categories such that the unique object in $$BH$$ is mapped to $$BN$$. The Grothendieck construction of this functor is equivalent to $$B(H \rtimes N)$$, the (groupoid associated to) semidirect product.

Groupoids
Another generalization is for groupoids. This occurs in topology because if a group $G$ acts on a space $X$ it also acts on the fundamental groupoid $π1(X)$ of the space. The semidirect product $π1(X) ⋊ G$ is then relevant to finding the fundamental groupoid of the orbit space $X/G$. For full details see Chapter 11 of the book referenced below, and also some details in semidirect product in ncatlab.

Abelian categories
Non-trivial semidirect products do not arise in abelian categories, such as the category of modules. In this case, the splitting lemma shows that every semidirect product is a direct product. Thus the existence of semidirect products reflects a failure of the category to be abelian.

Notation
Usually the semidirect product of a group $H$ acting on a group $N$ (in most cases by conjugation as subgroups of a common group) is denoted by $N ⋊ H$ or $H ⋉ N$. However, some sources may use this symbol with the opposite meaning. In case the action $φ: H → Aut(N)$ should be made explicit, one also writes $N ⋊φ H$. One way of thinking about the $N ⋊ H$ symbol is as a combination of the symbol for normal subgroup ($◁$) and the symbol for the product ($×$). Barry Simon, in his book on group representation theory, employs the unusual notation $$N\mathbin{\circledS_{\varphi}}H$$ for the semidirect product.

Unicode lists four variants:


 * {| class="wikitable"

!  !! Value  !! MathML !! Unicode description
 * ⋉ || U+22C9 || ltimes || LEFT NORMAL FACTOR SEMIDIRECT PRODUCT
 * ⋊ || U+22CA || rtimes || RIGHT NORMAL FACTOR SEMIDIRECT PRODUCT
 * ⋋ || U+22CB || lthree || LEFT SEMIDIRECT PRODUCT
 * ⋌ || U+22CC || rthree || RIGHT SEMIDIRECT PRODUCT
 * }
 * ⋋ || U+22CB || lthree || LEFT SEMIDIRECT PRODUCT
 * ⋌ || U+22CC || rthree || RIGHT SEMIDIRECT PRODUCT
 * }
 * }

Here the Unicode description of the rtimes symbol says "right normal factor", in contrast to its usual meaning in mathematical practice.

In LaTeX, the commands \rtimes and \ltimes produce the corresponding characters. With the AMS symbols package loaded, \leftthreetimes produces ⋋ and \rightthreetimes produces ⋌.