# Semidirect product

Algebraic structure → Group theory Group theory :
Basic notions
Subgroup
Normal subgroup
Group action
Quotient group
(Semi-)direct product
Direct sum
Free product
Wreath product
Group homomorphisms
kernel
image
simple
finite
infinite
continuous
multiplicative
additive
cyclic
abelian
dihedral
nilpotent
solvable
Glossary of group theory
List of group theory topics :
Finite groups
Cyclic group Z$_n$
Symmetric group S$_n$
Alternating group A$_n$
Dihedral group D$_n$
Quaternion group Q
Cauchy's theorem
Lagrange's theorem
Sylow theorems
Hall's theorem
p-group
Elementary abelian group
Frobenius group
Schur multiplier
Classification of finite simple groups
cyclic
alternating
Lie type
sporadic :
Discrete groupsLattices
Integers ($\mathbb {Z}$)
Free group
Modular groups PSL(2, $\mathbb {Z}$)SL(2, $\mathbb {Z}$)
Arithmetic group
Lattice
Hyperbolic group :
Topological and Lie groups
Solenoid
Circle
General linear GL(n)
Special linear SL(n)
Orthogonal O(n)
Euclidean E(n)
Special orthogonal SO(n)
Unitary U(n)
Special unitary SU(n)
Symplectic Sp(n)
G$_2$
F$_4$
E$_6$
E$_7$
E$_8$
Lorentz
Poincaré
Conformal
Diffeomorphism
Loop
Infinite dimensional Lie group O(∞)SU(∞)Sp(∞) :
Algebraic groups
Linear algebraic group
Reductive group
Abelian variety
Elliptic curve :
vte :
In mathematics, specifically in group theory, the concept of a semidirect product is a generalization of a direct product. It is usually denoted with the symbol ⋉. There are two closely related concepts of semidirect product:
* 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.
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.
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\triangleleft 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 a split 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 :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
### Inner semidirect product

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 :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).

### Outer 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 φ: for n$_1$, n$_2$ in N and h$_1$, h$_2$ in H.
    ${\begin{aligned}\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{aligned}}$
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}$). 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 = n$_1$h$_1$ and b = n$_2$h$_2$ we obtain
    ${\begin{aligned}\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{aligned}}$
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 α ∘ γ = 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})).$

## Examples
### Dihedral group

The dihedral group D$_{2n}$ with 2n elements is isomorphic to a semidirect product of the cyclic groups C$_n$ and C$_2$. Here, the non-identity element of C$_2$ acts on C$_n$ by inverting elements; this is an automorphism since C$_n$ 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 C$_m$ with generator a and C$_n$ with generator b is given by one extra relation, aba$^{−1}$ = b$^k$, 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, a$^r$ is a generator of C$_m$ and a$^r$ba$^{−r}$ = b$^{kr}$, 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 semidirect 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 with addition, $\mathrm {Z}$, with $\mathrm {Z}$. The corresponding homomorphism φ : $\mathrm {Z}$ → Aut($\mathrm {Z}$) is given by φ(h)(n) = (−1)$^h$n.

### 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_{1}a_{12}&x_{1}a_{13}&\cdots &x_{1}a_{1n}\\0&x_{2}&x_{2}a_{23}&\cdots &x_{2}a_{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_{1}a_{12}&x_{1}a_{13}&\cdots &x_{1}a_{1n}\\0&1&x_{2}a_{23}&\cdots &x_{2}a_{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 C$_2$. If we represent C$_2$ 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 φ : C$_2$ → Aut(SO(n)) is given by φ(H)(N) = HNH$^{−1}$ for all H in C$_2$ 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 $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 $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 semidirect 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 semidirect 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.

### Z$_4$

The cyclic group $\mathrm {Z} _{4}$ is not a simple group since it has a subgroup of order 2, namely $\{0,2\}\cong \mathrm {Z} _{2}$ is a subgroup and their quotient is $\mathrm {Z} _{2}$, so there is an extension
   $0\to \mathrm {Z} _{2}\to \mathrm {Z} _{4}\to \mathrm {Z} _{2}\to 0$
If instead this extension is split, then the group $G$ in
   $0\to \mathrm {Z} _{2}\to G\to \mathrm {Z} _{2}\to 0$
would be isomorphic to $\mathrm {Z} _{2}\times \mathrm {Z} _{2}$.

### Q$_8$

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 $\mathrm {Z} _{4}$ and is normal. It also has a subgroup of order $2$ generated by $-1$. This would mean $\mathrm {Q} _{8}$ would have to be a split extension in the following hypothetical exact sequence of groups:
   $0\to \mathrm {Z} _{4}\to \mathrm {Q} _{8}\to \mathrm {Z} _{2}\to 0$,
but such an exact sequence does not exist. This can be shown by computing the first group cohomology group of $\mathrm {Z} _{2}$ with coefficients in $\mathrm {Z} _{4}$, so $H^{1}(\mathrm {Z} _{2},\mathrm {Z} _{4})\cong \mathrm {Z} /2$ and noting the two groups in these extensions are $\mathrm {Z} _{2}\times \mathrm {Z} _{4}$ and the dihedral group $\mathrm {D} _{8}$. But, as neither of these groups is isomorphic with $\mathrm {Q} _{8}$, the quaternion group is not split. This non-existence of isomorphisms can be checked by noting the trivial extension is abelian while $\mathrm {Q} _{8}$ is non-abelian, and noting the only normal subgroups are $\mathrm {Z} _{2}$ and $\mathrm {Z} _{4}$, but $\mathrm {Q} _{8}$ has three subgroups isomorphic to $\mathrm {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) = id$_N$ 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 C$_8$ and C$_2$; in this case, C$_8$ 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: (D$_8$ ⋉ C$_3$) ≅ (C$_2$ ⋉ Q$_{12}$) ≅ (C$_2$ ⋉ D$_{12}$) ≅ (D$_6$ ⋉ 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 semidirect 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:
    ValueMathMLUnicode description ⋉U+22C9ltimesLEFT NORMAL FACTOR SEMIDIRECT PRODUCT ⋊U+22CArtimesRIGHT NORMAL FACTOR SEMIDIRECT PRODUCT ⋋U+22CBlthreeLEFT SEMIDIRECT PRODUCT ⋌U+22CCrthreeRIGHT 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 ⋌.