# Modular group

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, the modular group is the projective special linear group $\operatorname {PSL} (2,\mathbb {Z} )$ of $2\times 2$ matrices with integer coefficients and determinant $1$, such that the matrices $A$ and $-A$ are identified. The modular group acts on the upper-half of the complex plane by linear fractional transformations. The name "modular group" comes from the relation to moduli spaces, and not from modular arithmetic.

## Definition

The modular group Γ is the group of fractional linear transformations of the complex upper half-plane, which have the form
    $z\mapsto {\frac {az+b}{cz+d}},$
where $a,b,c,d$ are integers, and $ad-bc=1$. The group operation is function composition.
This group of transformations is isomorphic to the projective special linear group $\operatorname {PSL} (2,\mathbb {Z} )$, which is the quotient of the 2-dimensional special linear group $\operatorname {SL} (2,\mathbb {Z} )$ by its center $\{I,-I\}$. In other words, $\operatorname {PSL} (2,\mathbb {Z} )$ consists of all matrices
    ${\begin{pmatrix}a&b\\c&d\end{pmatrix}}$
where $a,b,c,d$ are integers, $ad-bc=1$, and pairs of matrices $A$ and $-A$ are considered to be identical. The group operation is usual matrix multiplication.
Some authors define the modular group to be $\operatorname {PSL} (2,\mathbb {Z} )$, and still others define the modular group to be the larger group $\operatorname {SL} (2,\mathbb {Z} )$.
Some mathematical relations require the consideration of the group $\operatorname {GL} (2,\mathbb {Z} )$ of matrices with determinant plus or minus one. ($\operatorname {SL} (2,\mathbb {Z} )$ is a subgroup of this group.) Similarly, $\operatorname {PGL} (2,\mathbb {Z} )$ is the quotient group $\operatorname {GL} (2,\mathbb {Z} )/\{I,-I\}$.
Since all $2\times 2$ matrices with determinant 1 are symplectic matrices, then $\operatorname {SL} (2,\mathbb {Z} )=\operatorname {Sp} (2,\mathbb {Z} )$, the symplectic group of $2\times 2$ matrices.

### Finding elements

To find an explicit matrix
    ${\begin{pmatrix}a&x\\b&y\end{pmatrix}}$
in $\operatorname {SL} (2,\mathbb {Z} )$, begin with two coprime integers $a,b$, and solve the determinant equation $ay-bx=1$.
For example, if $a=7,{\text{ }}b=6$ then the determinant equation reads
    $7y-6x=1,$
then taking $y=-5$ and $x=-6$ gives $-35-(-36)=1$. Hence
    ${\begin{pmatrix}7&-6\\6&-5\end{pmatrix}}$
is a matrix. Then, using the projection, these matrices define elements in $\operatorname {PSL} (2,\mathbb {Z} )$.

## Number-theoretic properties

The unit determinant of
    ${\begin{pmatrix}a&b\\c&d\end{pmatrix}}$
implies that the fractions $_{⁠a/b⁠}$, $_{⁠a/c⁠}$, $_{⁠c/d⁠}$, $_{⁠b/d⁠}$ are all irreducible, that is having no common factors (provided the denominators are non-zero, of course). More generally, if ⁠p/q⁠ is an irreducible fraction, then
    ${\frac {ap+bq}{cp+dq}}$
is also irreducible (again, provided the denominator be non-zero). Any pair of irreducible fractions can be connected in this way; that is, for any pair ⁠p/q⁠ and ⁠r/s⁠ of irreducible fractions, there exist elements
    ${\begin{pmatrix}a&b\\c&d\end{pmatrix}}\in \operatorname {SL} (2,\mathbb {Z} )$
such that
    $r=ap+bq\quad {\mbox{ and }}\quad s=cp+dq.$
Elements of the modular group provide a symmetry on the two-dimensional lattice. Let ω$_1$ and ω$_2$ be two complex numbers whose ratio is not real. Then the set of points
    $\Lambda (\omega _{1},\omega _{2})=\{m\omega _{1}+n\omega _{2}:m,n\in \mathbb {Z} \}$
is a lattice of parallelograms on the plane. A different pair of vectors α$_1$ and α$_2$ will generate exactly the same lattice if and only if
    ${\begin{pmatrix}\alpha _{1}\\\alpha _{2}\end{pmatrix}}={\begin{pmatrix}a&b\\c&d\end{pmatrix}}{\begin{pmatrix}\omega _{1}\\\omega _{2}\end{pmatrix}}$
for some matrix in GL(2, Z). It is for this reason that doubly periodic functions, such as elliptic functions, possess a modular group symmetry.
The action of the modular group on the rational numbers can most easily be understood by envisioning a square grid, with grid point (p, q) corresponding to the fraction ⁠p/q⁠ (see Euclid's orchard). An irreducible fraction is one that is visible from the origin; the action of the modular group on a fraction never takes a visible (irreducible) to a hidden (reducible) one, and vice versa.
Note that any member of the modular group maps the projectively extended real line one-to-one to itself, and furthermore bijectively maps the projectively extended rational line (the rationals with infinity) to itself, the irrationals to the irrationals, the transcendental numbers to the transcendental numbers, the non-real numbers to the non-real numbers, the upper half-plane to the upper half-plane, et cetera.
If ⁠p$_{n−1}$/q$_{n−1}$⁠ and ⁠p$_n$/q$_n$⁠ are two successive convergents of a continued fraction, then the matrix
    ${\begin{pmatrix}p_{n-1}&p_{n}\\q_{n-1}&q_{n}\end{pmatrix}}$
belongs to GL(2, Z). In particular, if bc − ad = 1 for positive integers a, b, c, d with a < b and c < d then ⁠a/b⁠ and ⁠c/d⁠ will be neighbours in the Farey sequence of order max(b, d). Important special cases of continued fraction convergents include the Fibonacci numbers and solutions to Pell's equation. In both cases, the numbers can be arranged to form a semigroup subset of the modular group.

## Group-theoretic properties
### Presentation

The modular group can be shown to be generated by the two transformations
    ${\begin{aligned}S&:z\mapsto -{\frac {1}{z}}\\T&:z\mapsto z+1\end{aligned}}$
so that every element in the modular group can be represented (in a non-unique way) by the composition of powers of S and T. Geometrically, S represents inversion in the unit circle followed by reflection with respect to the imaginary axis, while T represents a unit translation to the right.
The generators S and T obey the relations S$^2$ = 1 and (ST)$^3$ = 1. It can be shown that these are a complete set of relations, so the modular group has the presentation:
    $\Gamma \cong \left\langle S,T\mid S^{2}=I,\left(ST\right)^{3}=I\right\rangle$
This presentation describes the modular group as the rotational triangle group D(2, 3, ∞) (infinity as there is no relation on T), and it thus maps onto all triangle groups (2, 3, n) by adding the relation T$^n$ = 1, which occurs for instance in the congruence subgroup Γ(n).
Using the generators S and ST instead of S and T, this shows that the modular group is isomorphic to the free product of the cyclic groups C$_2$ and C$_3$:
    $\Gamma \cong C_{2}*C_{3}$
* The action of T : z ↦ z + 1 on H
* The action of S : z ↦ −⁠1/z⁠ on H

### Braid group

The braid group B$_3$ is the universal central extension of the modular group, with these sitting as lattices inside the (topological) universal covering group SL$_2$(R) → PSL$_2$(R). Further, the modular group has a trivial center, and thus the modular group is isomorphic to the quotient group of B$_3$ modulo its center; equivalently, to the group of inner automorphisms of B$_3$.
The braid group B$_3$ in turn is isomorphic to the knot group of the trefoil knot.

### Quotients

The quotients by congruence subgroups are of significant interest.
Other important quotients are the (2, 3, n) triangle groups, which correspond geometrically to descending to a cylinder, quotienting the x coordinate modulo n, as T$^n$ = (z ↦ z + n). (2, 3, 5) is the group of icosahedral symmetry, and the (2, 3, 7) triangle group (and associated tiling) is the cover for all Hurwitz surfaces.

### Presenting as a matrix group

The group ${\text{SL}}_{2}(\mathbb {Z} )$ can be generated by the two matrices
    $S={\begin{pmatrix}0&-1\\1&0\end{pmatrix}},{\text{ }}T={\begin{pmatrix}1&1\\0&1\end{pmatrix}}$
since
    $S^{2}=-I_{2},{\text{ }}(ST)^{3}={\begin{pmatrix}0&-1\\1&1\end{pmatrix}}^{3}=-I_{2}$
The projection ${\text{SL}}_{2}(\mathbb {Z} )\to {\text{PSL}}_{2}(\mathbb {Z} )$ turns these matrices into generators of ${\text{PSL}}_{2}(\mathbb {Z} )$, with relations similar to the group presentation.

## Relationship to hyperbolic geometry

The modular group is important because it forms a subgroup of the group of isometries of the hyperbolic plane. If we consider the upper half-plane model H of hyperbolic plane geometry, then the group of all orientation-preserving isometries of H consists of all Möbius transformations of the form
    $z\mapsto {\frac {az+b}{cz+d}}$
where a, b, c, d are real numbers. In terms of projective coordinates, the group PSL(2, R) acts on the upper half-plane H by projectivity:
    $[z,\ 1]{\begin{pmatrix}a&c\\b&d\end{pmatrix}}\,=\,[az+b,\ cz+d]\,\thicksim \,\left[{\frac {az+b}{cz+d}},\ 1\right].$
This action is faithful. Since PSL(2, Z) is a subgroup of PSL(2, R), the modular group is a subgroup of the group of orientation-preserving isometries of H.

### Tessellation of the hyperbolic plane

The modular group Γ acts on H{\textstyle \mathbb {H} } as a discrete subgroup of PSL⁡(2, R){\textstyle \operatorname {PSL} (2, \mathbb {R} )}, that is, for each z in H{\textstyle \mathbb {H} } we can find a neighbourhood of z which does not contain any other element of the orbit of z. This also means that we can construct fundamental domains, which (roughly) contain exactly one representative from the orbit of every z in H. (Care is needed on the boundary of the domain.)
There are many ways of constructing a fundamental domain, but a common choice is the region
    $R=\left\{z\in \mathbb {H} \colon \left|z\right|>1,\,\left|\operatorname {Re} (z)\right|<{\tfrac {1}{2}}\right\}$
bounded by the vertical lines Re(z) = ⁠1/2⁠ and Re(z) = −⁠1/2⁠, and the circle |z| = 1. This region is a hyperbolic triangle. It has vertices at ⁠1/2⁠ + i⁠√3/2⁠ and −⁠1/2⁠ + i⁠√3/2⁠, where the angle between its sides is ⁠π/3⁠, and a third vertex at infinity, where the angle between its sides is 0.
There is a strong connection between the modular group and elliptic curves. Each point $z$ in the upper half-plane gives an elliptic curve, namely the quotient of $\mathbb {C}$ by the lattice generated by 1 and $z$.
Two points in the upper half-plane give isomorphic elliptic curves if and only if they are related by a transformation in the modular group. Thus, the quotient of the upper half-plane by the action of the modular group is the so-called moduli space of elliptic curves: a space whose points describe isomorphism classes of elliptic curves. This is often visualized as the fundamental domain described above, with some points on its boundary identified.
The modular group and its subgroups are also a source of interesting tilings of the hyperbolic plane. By transforming this fundamental domain in turn by each of the elements of the modular group, a regular tessellation of the hyperbolic plane by congruent hyperbolic triangles known as the V6.6.∞ Infinite-order triangular tiling is created. Note that each such triangle has one vertex either at infinity or on the real axis Im(z) = 0.
This tiling can be extended to the Poincaré disk, where every hyperbolic triangle has one vertex on the boundary of the disk. The tiling of the Poincaré disk is given in a natural way by the J-invariant, which is invariant under the modular group, and attains every complex number once in each triangle of these regions.
This tessellation can be refined slightly, dividing each region into two halves (conventionally colored black and white), by adding an orientation-reversing map; the colors then correspond to orientation of the domain. Adding in (x, y) ↦ (−x, y) and taking the right half of the region R (where Re(z) ≥ 0) yields the usual tessellation. This tessellation first appears in print in (Klein & 1878/79a), where it is credited to Richard Dedekind, in reference to (Dedekind 1877).
The map of groups (2, 3, ∞) → (2, 3, n) (from modular group to triangle group) can be visualized in terms of this tiling (yielding a tiling on the modular curve), as depicted in the video at right.
Paracompact uniform tilings in [∞,3] family vte :
| Symmetry: [∞,3], (*∞32) | Symmetry: [∞,3], (*∞32) | Symmetry: [∞,3], (*∞32) | Symmetry: [∞,3], (*∞32) | Symmetry: [∞,3], (*∞32) | Symmetry: [∞,3], (*∞32) | Symmetry: [∞,3], (*∞32) | [∞,3]$^+$ (∞32) | [1$^+$,∞,3] (*∞33) | [1$^+$,∞,3] (*∞33) | [∞,3$^+$] (3*∞) |
| | | = | = | = | | | | = or | = or | = |
| {∞,3} | t{∞,3} | r{∞,3} | t{3,∞} | {3,∞} | rr{∞,3} | tr{∞,3} | sr{∞,3} | h{∞,3} | h$_2${∞,3} | s{3,∞} |
| Uniform duals |||||||||||
| V∞$^3$ | V3.∞.∞ | V(3.∞)$^2$ | V6.6.∞ | V3$^∞$ | V4.3.4.∞ | V4.6.∞ | V3.3.3.3.∞ | V(3.∞)$^3$ | | V3.3.3.3.3.∞ |

## Congruence subgroups

Important subgroups of the modular group Γ, called congruence subgroups, are given by imposing congruence relations on the associated matrices.
There is a natural homomorphism SL(2, Z) → SL(2, Z/NZ) given by reducing the entries modulo N. This induces a homomorphism on the modular group PSL(2, Z) → PSL(2, Z/NZ). The kernel of this homomorphism is called the principal congruence subgroup of level N, denoted Γ(N). We have the following short exact sequence:
    $1\to \Gamma (N)\to \Gamma \to \operatorname {PSL} (2,\mathbb {Z} /N\mathbb {Z} )\to 1.$
Being the kernel of a homomorphism Γ(N) is a normal subgroup of the modular group Γ. The group Γ(N) is given as the set of all modular transformations
    $z\mapsto {\frac {az+b}{cz+d}}$
for which a ≡ d ≡ ±1 (mod N) and b ≡ c ≡ 0 (mod N).
It is easy to show that the trace of a matrix representing an element of Γ(N) cannot be −1, 0, or 1, so these subgroups are torsion-free groups. (There are other torsion-free subgroups.)
The principal congruence subgroup of level 2, Γ(2), is also called the modular group Λ. Since PSL(2, Z/2Z) is isomorphic to S$_3$, Λ is a subgroup of index 6. The group Λ consists of all modular transformations for which a and d are odd and b and c are even.
Another important family of congruence subgroups are the modular group Γ$_0$(N) defined as the set of all modular transformations for which c ≡ 0 (mod N), or equivalently, as the subgroup whose matrices become upper triangular upon reduction modulo N. Note that Γ(N) is a subgroup of Γ$_0$(N). The modular curves associated with these groups are an aspect of monstrous moonshine – for a prime number p, the modular curve of the normalizer is genus zero if and only if p divides the order of the monster group, or equivalently, if p is a supersingular prime.

## Dyadic monoid

One important subset of the modular group is the dyadic monoid, which is the monoid of all strings of the form ST$^{n1}$ST$^{n2}$ST$^{n3}$... for positive integers n$_i$. This monoid occurs naturally in the study of fractal curves, and describes the self-similarity symmetries of the Cantor function, Minkowski's question mark function, and the Koch snowflake, each being a special case of the general de Rham curve. The monoid also has higher-dimensional linear representations; for example, the N = 3 representation can be understood to describe the self-symmetry of the blancmange curve.

## Maps of the torus

The group GL(2, Z) is the linear maps preserving the standard lattice Z$^2$, and SL(2, Z) is the orientation-preserving maps preserving this lattice; they thus descend to self-homeomorphisms of the torus (SL mapping to orientation-preserving maps), and in fact map isomorphically to the (extended) mapping class group of the torus, meaning that every self-homeomorphism of the torus is isotopic to a map of this form. The algebraic properties of a matrix as an element of GL(2, Z) correspond to the dynamics of the induced map of the torus.

## Hecke groups

The modular group can be generalized to the Hecke groups, named for Erich Hecke, and defined as follows.
The Hecke group H$_q$ with q ≥ 3, is the discrete group generated by
    ${\begin{aligned}z&\mapsto -{\frac {1}{z}}\\z&\mapsto z+\lambda _{q},\end{aligned}}$
where λ$_q$ = 2 cos ⁠π/q⁠. For small values of q ≥ 3, one has:
    ${\begin{aligned}\lambda _{3}&=1,\\\lambda _{4}&={\sqrt {2}},\\\lambda _{5}&={\frac {1+{\sqrt {5}}}{2}},\\\lambda _{6}&={\sqrt {3}},\\\lambda _{8}&={\sqrt {2+{\sqrt {2}}}}.\end{aligned}}$
The modular group Γ is isomorphic to H$_3$ and they share properties and applications – for example, just as one has the free product of cyclic groups
    $\Gamma \cong C_{2}*C_{3},$
more generally one has
    $H_{q}\cong C_{2}*C_{q},$
which corresponds to the triangle group (2, q, ∞). There is similarly a notion of principal congruence subgroups associated to principal ideals in Z[λ].

## History

The modular group and its subgroups were first studied in detail by Richard Dedekind and by Felix Klein as part of his Erlangen programme in the 1870s. However, the closely related elliptic functions were studied by Joseph Louis Lagrange in 1785, and further results on elliptic functions were published by Carl Gustav Jakob Jacobi and Niels Henrik Abel in 1827.