# Modular group

In mathematics, the modular group is the projective special linear group PSL(2, Z) of 2 × 2 matrices with integer coefficients and unit determinant. The matrices A and A are identified. The modular group acts on the upper-half of the complex plane by fractional linear transformations, and the name "modular group" comes from the relation to moduli spaces and not from modular arithmetic.

## Definition

The modular group Γ is the group of linear fractional transformations of the upper half of the complex plane, which have the form

${\displaystyle z\mapsto {\frac {az+b}{cz+d}},}$

where a, b, c, d are integers, and adbc = 1. The group operation is function composition.

This group of transformations is isomorphic to the projective special linear group PSL(2, Z), which is the quotient of the 2-dimensional special linear group SL(2, Z) over the integers by its center {I, −I}. In other words, PSL(2, Z) consists of all matrices

${\displaystyle {\begin{pmatrix}a&b\\c&d\end{pmatrix}}}$

where a, b, c, d are integers, adbc = 1, and pairs of matrices A and A are considered to be identical. The group operation is the usual multiplication of matrices.

Some authors define the modular group to be PSL(2, Z), and still others define the modular group to be the larger group SL(2, Z).

Some mathematical relations require the consideration of the group GL(2, Z) of matrices with determinant plus or minus one. (SL(2, Z) is a subgroup of this group.) Similarly, PGL(2, Z) is the quotient group GL(2, Z)/{I, −I}. A 2 × 2 matrix with unit determinant is a symplectic matrix, and thus SL(2, Z) = Sp(2, Z), the symplectic group of 2 × 2 matrices.

### Finding elements

In order to find explicit elements in SL(2, Z), there's a trick by taking two coprime integers ${\displaystyle a,b}$ , putting them into the matrix

${\displaystyle {\begin{pmatrix}a&x\\b&y\end{pmatrix}}}$

and solving the determinant equation

${\displaystyle ay-bx=1}$

Notice the determinant equation forces ${\displaystyle a,b}$  to be coprime since otherwise there would be a factor ${\displaystyle c}$  such that ${\displaystyle ca'=a}$ , ${\displaystyle cb'=b}$ , hence

${\displaystyle c(a'y-b'x)=1}$

would have no integer solutions. For example, if ${\displaystyle a=7,{\text{ }}b=6}$  then the determinant equation reads

${\displaystyle 7y-6x=1}$

then taking ${\displaystyle y=-5}$  and ${\displaystyle x=-6}$  gives ${\displaystyle -35-(-36)=1}$ , hence

${\displaystyle {\begin{pmatrix}7&-6\\6&-5\end{pmatrix}}}$

is a matrix. Then, using the projection, these matrices define elements in PSL(2, Z).

## Number-theoretic properties

The unit determinant of

${\displaystyle {\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

${\displaystyle {\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

${\displaystyle {\begin{pmatrix}a&b\\c&d\end{pmatrix}}\in \operatorname {SL} (2,\mathbf {Z} )}$

such that

${\displaystyle 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

${\displaystyle \Lambda (\omega _{1},\omega _{2})=\{m\omega _{1}+n\omega _{2}:m,n\in \mathbf {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

${\displaystyle {\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 pn−1/qn−1 and pn/qn are two successive convergents of a continued fraction, then the matrix

${\displaystyle {\begin{pmatrix}p_{n-1}&p_{n}\\q_{n-1}&q_{n}\end{pmatrix}}}$

belongs to GL(2, Z). In particular, if bcad = 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

{\displaystyle {\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 S2 = 1 and (ST)3 = 1. It can be shown [1] that these are a complete set of relations, so the modular group has the presentation:

${\displaystyle \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 Tn = 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 C2 and C3:

${\displaystyle \Gamma \cong C_{2}*C_{3}}$

### Braid group

The braid group B3 is the universal central extension of the modular group.

The braid group B3 is the universal central extension of the modular group, with these sitting as lattices inside the (topological) universal covering group SL2(R) → PSL2(R). Further, the modular group has a trivial center, and thus the modular group is isomorphic to the quotient group of B3 modulo its center; equivalently, to the group of inner automorphisms of B3.

The braid group B3 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 Tn = (zz+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 ${\displaystyle {\text{SL}}_{2}(\mathbb {Z} )}$  can be generated by the two matrices[2]

${\displaystyle S={\begin{pmatrix}0&-1\\1&0\end{pmatrix}},{\text{ }}T={\begin{pmatrix}1&1\\0&1\end{pmatrix}}}$

since

${\displaystyle S^{2}=-I_{2},{\text{ }}(ST)^{3}={\begin{pmatrix}0&-1\\1&1\end{pmatrix}}^{3}=-I_{2}}$

The projection ${\displaystyle {\text{SL}}_{2}(\mathbb {Z} )\to {\text{PSL}}_{2}(\mathbb {Z} )}$  turns these matrices into generators of ${\displaystyle {\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

${\displaystyle 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:

${\displaystyle [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.[3]

### Tessellation of the hyperbolic plane

A typical fundamental domain for the action of Γ on the upper half-plane.

The modular group Γ acts on H as a discrete subgroup of PSL(2, R), that is, for each z in 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

${\displaystyle R=\left\{z\in \mathbf {H} \colon \left|z\right|>1,\,\left|\,{\mbox{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 + i3/2 and 1/2 + i3/2, where the angle between its sides is π/3, and a third vertex at infinity, where the angle between its sides is 0.

By transforming this region 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),[4] where it is credited to Richard Dedekind, in reference to (Dedekind 1877).[4][5]

Visualization of the map (2, 3, ∞) → (2, 3, 7) by morphing the associated tilings.[6]

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.

## 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:

${\displaystyle 1\to \Gamma (N)\to \Gamma \to {\mbox{PSL}}(2,\mathbf {Z} /N\mathbf {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

${\displaystyle z\mapsto {\frac {az+b}{cz+d}}}$

for which ad ≡ ±1 (mod N) and bc ≡ 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 S3, Λ 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.

One important subset of the modular group is the dyadic monoid, which is the monoid of all strings of the form STkSTmSTn... for positive integers k, m, n,.... 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 Z2, 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.[7]

The Hecke group Hq with q ≥ 3, is the discrete group generated by

{\displaystyle {\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:

{\displaystyle {\begin{aligned}\lambda _{3}&=1,\\\lambda _{4}&={\sqrt {2}},\\\lambda _{5}&={\frac {1+{\sqrt {5}}}{2}},\\\lambda _{6}&={\sqrt {3}}.\end{aligned}}}

The modular group Γ is isomorphic to H3 and they share properties and applications – for example, just as one has the free product of cyclic groups

${\displaystyle \Gamma \cong C_{2}*C_{3},}$

more generally one has

${\displaystyle 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.