In
mathematics, the modular group is the
projective special linear group of
matrices with
integer
An integer is the number zero (), a positive natural number (, , , etc.) or a negative integer with a minus sign ( −1, −2, −3, etc.). The negative numbers are the additive inverses of the corresponding positive numbers. In the language ...
coefficients and
determinant
In mathematics, the determinant is a scalar value that is a function of the entries of a square matrix. It characterizes some properties of the matrix and the linear map represented by the matrix. In particular, the determinant is nonzero if ...
1. The matrices and are identified. The modular group acts on the upper-half of the
complex plane
In mathematics, the complex plane is the plane formed by the complex numbers, with a Cartesian coordinate system such that the -axis, called the real axis, is formed by the real numbers, and the -axis, called the imaginary axis, is formed by th ...
by
fractional linear transformations, and the name "modular group" comes from the relation to
moduli space
In mathematics, in particular algebraic geometry, a moduli space is a geometric space (usually a scheme or an algebraic stack) whose points represent algebro-geometric objects of some fixed kind, or isomorphism classes of such objects. Such ...
s and not from
modular arithmetic
In mathematics, modular arithmetic is a system of arithmetic for integers, where numbers "wrap around" when reaching a certain value, called the modulus. The modern approach to modular arithmetic was developed by Carl Friedrich Gauss in his bo ...
.
Definition
The modular group is the
group of
linear fractional transformations of the
upper half of the complex plane, which have the form
:
where , , , are integers, and . The group operation is
function composition
In mathematics, function composition is an operation that takes two functions and , and produces a function such that . In this operation, the function is applied to the result of applying the function to . That is, the functions and ...
.
This group of transformations is isomorphic to the
projective special linear group , which is the quotient of the 2-dimensional
special linear group over the integers by its
center . In other words, consists of all matrices
:
where , , , are integers, , and pairs of matrices and are considered to be identical. The group operation is the usual
multiplication of matrices.
Some authors ''define'' the modular group to be , and still others define the modular group to be the larger group .
Some mathematical relations require the consideration of the group of matrices with determinant plus or minus one. ( is a subgroup of this group.) Similarly, is the quotient group . A matrix with unit determinant is a
symplectic matrix In mathematics, a symplectic matrix is a 2n\times 2n matrix M with real entries that satisfies the condition
where M^\text denotes the transpose of M and \Omega is a fixed 2n\times 2n nonsingular, skew-symmetric matrix. This definition can be ...
, and thus , the
symplectic group of matrices.
Finding elements
To find an explicit matrix
in , begin with two coprime integers
, and solve the determinant equation
(Notice the determinant equation forces
to be coprime since otherwise there would be a factor
such that
,
, hence
would have no integer solutions.) For example, if
then the determinant equation reads
then taking
and
gives
, hence
is a matrix. Then, using the projection, these matrices define elements in .
Number-theoretic properties
The unit determinant of
:
implies that the fractions
,
,
,
are all irreducible, that is having no common factors (provided the denominators are non-zero, of course). More generally, if is an irreducible fraction, then
:
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 and of irreducible fractions, there exist elements
:
such that
:
Elements of the modular group provide a symmetry on the two-dimensional
lattice. Let and be two complex numbers whose ratio is not real. Then the set of points
:
is a lattice of parallelograms on the plane. A different pair of vectors and will generate exactly the same lattice if and only if
:
for some matrix in . 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 corresponding to the fraction (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
irrational
Irrationality is cognition, thinking, talking, or acting without inclusion of rationality. It is more specifically described as an action or opinion given through inadequate use of reason, or through emotional distress or cognitive deficiency. ...
s to the irrationals, the
transcendental number
In mathematics, a transcendental number is a number that is not algebraic—that is, not the root of a non-zero polynomial of finite degree with rational coefficients. The best known transcendental numbers are and .
Though only a few classe ...
s 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 and are two successive convergents of a
continued fraction, then the matrix
:
belongs to . In particular, if for positive integers , , , with and then and will be neighbours in the
Farey sequence of order . Important special cases of continued fraction convergents include the
Fibonacci number
In mathematics, the Fibonacci numbers, commonly denoted , form a integer sequence, sequence, the Fibonacci sequence, in which each number is the sum of the two preceding ones. The sequence commonly starts from 0 and 1, although some authors start ...
s and solutions to
Pell's equation
Pell's equation, also called the Pell–Fermat equation, is any Diophantine equation of the form x^2 - ny^2 = 1, where ''n'' is a given positive nonsquare integer, and integer solutions are sought for ''x'' and ''y''. In Cartesian coordinate ...
. In both cases, the numbers can be arranged to form a
semigroup
In mathematics, a semigroup is an algebraic structure consisting of a Set (mathematics), set together with an associative internal binary operation on it.
The binary operation of a semigroup is most often denoted multiplication, multiplicatively ...
subset of the modular group.
Group-theoretic properties
Presentation
The modular group can be shown to be
generated by the two transformations
:
so that every element in the modular group can be represented (in a non-unique way) by the composition of powers of and . Geometrically, represents inversion in the unit circle followed by reflection with respect to the imaginary axis, while represents a unit translation to the right.
The generators and obey the relations and . It can be shown that these are a complete set of relations, so the modular group has the
presentation:
:
This presentation describes the modular group as the rotational
triangle group (infinity as there is no relation on ), and it thus maps onto all triangle groups by adding the relation , which occurs for instance in the
congruence subgroup .
Using the generators and instead of and , this shows that the modular group is isomorphic to the
free product of the
cyclic group
In group theory, a branch of abstract algebra in pure mathematics, a cyclic group or monogenous group is a group, denoted C''n'', that is generated by a single element. That is, it is a set of invertible elements with a single associative bi ...
s and :
:
File:Sideway.gif, The action of on
File:Turnovergif.gif, The action of on
Braid group

The
braid group is the universal central extension of the modular group, with these sitting as lattices inside the (topological) universal covering group . Further, the modular group has a trivial center, and thus the modular group is isomorphic to the
quotient group
A quotient group or factor group is a mathematical group obtained by aggregating similar elements of a larger group using an equivalence relation that preserves some of the group structure (the rest of the structure is "factored" out). For exam ...
of modulo its
center; equivalently, to the group of
inner automorphism
In abstract algebra an inner automorphism is an automorphism of a group, ring, or algebra given by the conjugation action of a fixed element, called the ''conjugating element''. They can be realized via simple operations from within the group i ...
s of .
The braid group 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 triangle groups, which correspond geometrically to descending to a cylinder, quotienting the coordinate
modulo
In computing, the modulo operation returns the remainder or signed remainder of a division, after one number is divided by another (called the '' modulus'' of the operation).
Given two positive numbers and , modulo (often abbreviated as ) is t ...
, as . is the group of
icosahedral symmetry
In mathematics, and especially in geometry, an object has icosahedral symmetry if it has the same symmetries as a regular icosahedron. Examples of other polyhedra with icosahedral symmetry include the regular dodecahedron (the dual of t ...
, and the
triangle group (and associated tiling) is the cover for all
Hurwitz surfaces.
Presenting as a matrix group
The group
can be generated by the two matrices
:
since
:
The projection
turns these matrices into generators of
, with relations similar to the group presentation.
Relationship to hyperbolic geometry
The modular group is important because it forms a
subgroup
In group theory, a branch of mathematics, given a group ''G'' under a binary operation ∗, a subset ''H'' of ''G'' is called a subgroup of ''G'' if ''H'' also forms a group under the operation ∗. More precisely, ''H'' is a subgrou ...
of the group of
isometries of the
hyperbolic plane. If we consider the
upper half-plane
In mathematics, the upper half-plane, \,\mathcal\,, is the set of points in the Cartesian plane with > 0.
Complex plane
Mathematicians sometimes identify the Cartesian plane with the complex plane, and then the upper half-plane corresponds to ...
model of hyperbolic plane geometry, then the group of all
orientation-preserving isometries of consists of all
Möbius transformations of the form
:
where , , , are
real number
In mathematics, a real number is a number that can be used to measurement, measure a ''continuous'' one-dimensional quantity such as a distance, time, duration or temperature. Here, ''continuous'' means that values can have arbitrarily small var ...
s. In terms of
projective coordinates, the group
acts
The Acts of the Apostles ( grc-koi, Πράξεις Ἀποστόλων, ''Práxeis Apostólōn''; la, Actūs Apostolōrum) is the fifth book of the New Testament; it tells of the founding of the Christian Church and the spread of its message ...
on the upper half-plane by projectivity:
:
This action is
faithful. Since is a subgroup of , the modular group is a subgroup of the group of orientation-preserving isometries of .
Tessellation of the hyperbolic plane

The modular group acts on as a
discrete subgroup
In mathematics, a topological group ''G'' is called a discrete group if there is no limit point in it (i.e., for each element in ''G'', there is a neighborhood which only contains that element). Equivalently, the group ''G'' is discrete if and ...
of , that is, for each in we can find a neighbourhood of which does not contain any other element of the
orbit
In celestial mechanics, an orbit is the curved trajectory of an object such as the trajectory of a planet around a star, or of a natural satellite around a planet, or of an artificial satellite around an object or position in space such a ...
of . This also means that we can construct
fundamental domain
Given a topological space and a group acting on it, the images of a single point under the group action form an orbit of the action. A fundamental domain or fundamental region is a subset of the space which contains exactly one point from each o ...
s, which (roughly) contain exactly one representative from the orbit of every in . (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
:
bounded by the vertical lines and , and the circle . This region is a hyperbolic triangle. It has vertices at and , where the angle between its sides is , 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
in the upper half-plane gives an elliptic curve, namely the quotient of
by the lattice generated by 1 and
.
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
In mathematics, in particular algebraic geometry, a moduli space is a geometric space (usually a scheme or an algebraic stack) whose points represent algebro-geometric objects of some fixed kind, or isomorphism classes of such objects. Such ...
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
Euclidean plane tilings by convex regular polygons have been widely used since antiquity. The first systematic mathematical treatment was that of Kepler in his ''Harmonices Mundi'' (Latin: ''The Harmony of the World'', 1619).
Notation of Eucli ...
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 .
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
-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 and taking the right half of the region (where ) yields the usual tessellation. This tessellation first appears in print in ,
where it is credited to
Richard Dedekind
Julius Wilhelm Richard Dedekind (6 October 1831 – 12 February 1916) was a German mathematician who made important contributions to number theory, abstract algebra (particularly ring theory), and
the axiomatic foundations of arithmetic. His ...
, in reference to .

The map of groups (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
subgroup
In group theory, a branch of mathematics, given a group ''G'' under a binary operation ∗, a subset ''H'' of ''G'' is called a subgroup of ''G'' if ''H'' also forms a group under the operation ∗. More precisely, ''H'' is a subgrou ...
s of the modular group , called ''
congruence subgroups'', are given by imposing
congruence relation
In abstract algebra, a congruence relation (or simply congruence) is an equivalence relation on an algebraic structure (such as a group, ring, or vector space) that is compatible with the structure in the sense that algebraic operations done ...
s on the associated matrices.
There is a natural
homomorphism
In algebra, a homomorphism is a structure-preserving map between two algebraic structures of the same type (such as two groups, two rings, or two vector spaces). The word ''homomorphism'' comes from the Ancient Greek language: () meaning "sa ...
given by reducing the entries
modulo
In computing, the modulo operation returns the remainder or signed remainder of a division, after one number is divided by another (called the '' modulus'' of the operation).
Given two positive numbers and , modulo (often abbreviated as ) is t ...
. This induces a homomorphism on the modular group . The
kernel
Kernel may refer to:
Computing
* Kernel (operating system), the central component of most operating systems
* Kernel (image processing), a matrix used for image convolution
* Compute kernel, in GPGPU programming
* Kernel method, in machine lea ...
of this homomorphism is called the
principal congruence subgroup of level , denoted . We have the following
short exact sequence:
:
.
Being the kernel of a homomorphism is a
normal subgroup
In abstract algebra, a normal subgroup (also known as an invariant subgroup or self-conjugate subgroup) is a subgroup that is invariant under conjugation by members of the group of which it is a part. In other words, a subgroup N of the group G ...
of the modular group . The group is given as the set of all modular transformations
:
for which and .
It is easy to show that the
trace of a matrix representing an element of 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, , is also called the modular group . Since is isomorphic to , is a subgroup of
index
Index (or its plural form indices) may refer to:
Arts, entertainment, and media Fictional entities
* Index (''A Certain Magical Index''), a character in the light novel series ''A Certain Magical Index''
* The Index, an item on a Halo megastru ...
6. The group consists of all modular transformations for which and are odd and and are even.
Another important family of congruence subgroups are the
modular group defined as the set of all modular transformations for which , or equivalently, as the subgroup whose matrices become
upper triangular upon reduction modulo . Note that is a subgroup of . The
modular curve
In number theory and algebraic geometry, a modular curve ''Y''(Γ) is a Riemann surface, or the corresponding algebraic curve, constructed as a quotient of the complex upper half-plane H by the action of a congruence subgroup Γ of the modular ...
s associated with these groups are an aspect of
monstrous moonshine
In mathematics, monstrous moonshine, or moonshine theory, is the unexpected connection between the monster group ''M'' and modular functions, in particular, the ''j'' function. The term was coined by John Conway and Simon P. Norton in 1979 ...
– for a
prime number
A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only way ...
, the modular curve of the normalizer is
genus
Genus ( plural genera ) is a taxonomic rank used in the biological classification of living and fossil organisms as well as viruses. In the hierarchy of biological classification, genus comes above species and below family. In binomial n ...
zero if and only if divides the
order
Order, ORDER or Orders may refer to:
* Categorization, the process in which ideas and objects are recognized, differentiated, and understood
* Heterarchy, a system of organization wherein the elements have the potential to be ranked a number of d ...
of the
monster group, or equivalently, if is a
supersingular prime.
Dyadic monoid
One important subset of the modular group is the dyadic monoid, which is the
monoid
In abstract algebra, a branch of mathematics, a monoid is a set equipped with an associative binary operation and an identity element. For example, the nonnegative integers with addition form a monoid, the identity element being 0.
Monoids ...
of all strings of the form for positive integers . 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
The Koch snowflake (also known as the Koch curve, Koch star, or Koch island) is a fractal curve and one of the earliest fractals to have been described. It is based on the Koch curve, which appeared in a 1904 paper titled "On a Continuous Cur ...
, each being a special case of the general
de Rham curve
In mathematics, a de Rham curve is a certain type of fractal curve named in honor of Georges de Rham.
The Cantor function, Cesàro curve, Minkowski's question mark function, the Lévy C curve, the blancmange curve, and Koch curve are all s ...
. The monoid also has higher-dimensional linear representations; for example, the representation can be understood to describe the self-symmetry of the
blancmange curve.
Maps of the torus
The group is the linear maps preserving the standard lattice , and is the orientation-preserving maps preserving this lattice; they thus descend to
self-homeomorphism In mathematics, particularly topology, the homeomorphism group of a topological space is the group consisting of all homeomorphisms from the space to itself with function composition as the group operation. Homeomorphism groups are very important ...
s of the
torus
In geometry, a torus (plural tori, colloquially donut or doughnut) is a surface of revolution generated by revolving a circle in three-dimensional space about an axis that is coplanar with the circle.
If the axis of revolution does not ...
(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 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 with , is the discrete group generated by
:
where . For small values of , one has:
:
The modular group is isomorphic to and they share properties and applications – for example, just as one has the
free product of
cyclic group
In group theory, a branch of abstract algebra in pure mathematics, a cyclic group or monogenous group is a group, denoted C''n'', that is generated by a single element. That is, it is a set of invertible elements with a single associative bi ...
s
:
more generally one has
:
which corresponds to the
triangle group . There is similarly a notion of principal congruence subgroups associated to principal ideals in .
History
The modular group and its subgroups were first studied in detail by
Richard Dedekind
Julius Wilhelm Richard Dedekind (6 October 1831 – 12 February 1916) was a German mathematician who made important contributions to number theory, abstract algebra (particularly ring theory), and
the axiomatic foundations of arithmetic. His ...
and by
Felix Klein
Christian Felix Klein (; 25 April 1849 – 22 June 1925) was a German mathematician and mathematics educator, known for his work with group theory, complex analysis, non-Euclidean geometry, and on the associations between geometry and grou ...
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.
See also
*
Bianchi group
*
Classical modular curve
*
Fuchsian group
*
-invariant
*
Kleinian group
*
Mapping class group
*
Minkowski's question-mark function
In mathematics, the Minkowski question-mark function, denoted , is a function with unusual fractal properties, defined by Hermann Minkowski in 1904. It maps quadratic irrational numbers to rational numbers on the unit interval, via an expressio ...
*
Möbius transformation
*
Modular curve
In number theory and algebraic geometry, a modular curve ''Y''(Γ) is a Riemann surface, or the corresponding algebraic curve, constructed as a quotient of the complex upper half-plane H by the action of a congruence subgroup Γ of the modular ...
*
Modular form
In mathematics, a modular form is a (complex) analytic function on the upper half-plane satisfying a certain kind of functional equation with respect to th