0% found this document useful (0 votes)
8 views23 pages

Visualizing Modular Forms

This document discusses the visualization of modular forms, which are complex functions that bridge various mathematical fields. It explores methods to graphically represent these forms, particularly in a four-dimensional space, using tools like Sage to create Escher-like representations. The paper also covers theoretical aspects of modular forms, including their properties, transformations, and the concept of a fundamental domain for efficient representation.

Uploaded by

pritamxmaths2025
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views23 pages

Visualizing Modular Forms

This document discusses the visualization of modular forms, which are complex functions that bridge various mathematical fields. It explores methods to graphically represent these forms, particularly in a four-dimensional space, using tools like Sage to create Escher-like representations. The paper also covers theoretical aspects of modular forms, including their properties, transformations, and the concept of a fundamental domain for efficient representation.

Uploaded by

pritamxmaths2025
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Visualising

modular forms
Joel Costa Loqman Salamatian Alex Ferreira Costa

1 June 2016

General introduction and visual representation


Contents
1 Introduction 3

2 A bit of theory 5
2.1 Complex analysis recaps . . . . . . . . . . . . . . . . . . . . . 5
2.2 Transformation into the open unit disk of C . . . . . . . . . . 6
2.3 Representing modular forms on the open unit disk . . . . . . . 7
2.4 Möbius transformations . . . . . . . . . . . . . . . . . . . . . 8
2.5 Fundamental domain . . . . . . . . . . . . . . . . . . . . . . . 10
2.6 Representing the fundamental domain . . . . . . . . . . . . . 10
2.7 Fundamental domain applied on modular forms . . . . . . . . 12
2.8 A bit more of algorithm . . . . . . . . . . . . . . . . . . . . . 14

3 Representing modular forms as an Escher work 15

A Annexe 19
A.1 [Link] . . . . . . . . . . . . . . . . . . . . . . . . 19
A.2 [Link] . . . . . . . . . . . . . . . . . . . . 19
A.3 [Link] . . . . . . . . . . . . . . . . . . . . . . . 19
A.4 [Link] . . . . . . . . . . . . . . . . . . . . . . 20
A.5 [Link] . . . . . . . . . . . . . . . . . . . 20
A.6 [Link] . . . . . . . . . . . . . . . . . . . 21
A.7 [Link] . . . . . . . . . . . . . . . . . . . . . . . . . 21

1
Abstract

The modular forms have interested mathematicians for previous


centuries. By their plural structure, they create a bridge between sev-
eral fields of mathematics. One can describe modular forms using
analysis tools, number theory constructions or Galois theory repre-
sentations. However, their visualisation remains a challenging task.
The difficulty lies in the fact that one can’t imagine intuitively a 4-
dimensional space. In this paper, we are trying to find a way to de-
scribe graphically how certain modular forms behave on the space. In
order to do so, we will use Sage.
The objective in the end is to have an Escher-like representation of
modular forms which could unite esthetical thinking with mathemati-
cal rigorous aspects.

Figure 1: Modular discriminant (based on Dedekind Eta function)

2
1 Introduction
Modular forms are applications from a part of C (the upper half plane of C)
to C. C being a 2-dimensional vector space, we end up having to represent
4-dimensional spaces. The question of the representation of 4-dimensional
space has always been central for mathematicians. There exist two standard
ways to represent those : the first one using colors, the second one using
topological features associated to space (Here we used the modulus). We
decided to concentrate on the first option as we considered it to be more
intuitive and it allows us to represent the fundamental domain on a clearer
way.
Example 1.1. We will show the difference between those two different meth-
ods by plotting some usual functions:
• Identity function;
• Exponential function;
• Modular forms;

Figure 2: Identity function

3
Figure 3: Exponential function

Figure 4: A modular form : Eisenstein series of weight 4


Remark 1.2. We see that the Eisenstein series, for example, is way clearer
when we use the color convention.
Even within each of these methods, there exist different conventions. For
instance there exist several methods for the color plotting. We will use the
complex color wheel method which assigns a color to each point of the com-
plex plane. The idea can be summarized as follows: the argument (angle) of
the complex number defines the hue value while the modulus defines the light
value of the color in the HLS (hue, lightness, saturation) color model; for a
given (H,L) pair we choose the maximal saturation value. So as represented
on the previous example, one could see the 6th roots of unity as: magenta,
blue, cyan, green, yellow, and red.
Now let’s define exactly what modular forms are.

4
2 A bit of theory
Definition 2.1. A modular form is a holomorphic application f from the
upper half plane of C 1 to C with the following properties:
 
az + b k a b
f( ) = (cz + d) f (z) ∀ ∈ SL2
cz + d c d

where k is a fixed constant usually called weight.

2.1 Complex analysis recaps

Definition 2.2. Let f be a complex application defined on Ω → C where Ω


is a subset of C, f is called holomorphic if
f (z) − f (z0 )
lim exists ∀z0 ∈ Ω
z→z0 z − z0

Proposition 2.3. All modular forms are periodic.

f be amodular form, one can easily see by taking the matrix T


Proof. Let 
1 1
defined by that
0 1
f (z + 1) = f (z) ∀z ∈ H
which proves the periodicity of f .
Proposition 2.4. A holomorphic function is also analytic. As it is periodic,
it admits a Fourier power series extension.
However, one can easily see that the existence of a Fourier power series for
f doesn’t necessarly imply that f is periodic.

Proof. A proof of this proposition can be found on Rudin’s "Real and Com-
plex Analysis" in the chapter about elementary properties of Fourier trans-
form.
1
For the sake of simplicity, we shall call H the upper half plane of C (which equivalently
can be described as the following set H := {z ∈ C|Im(z) > 0}).

5
Example 2.5. Eisenstein series, which are the series we will visualize on this
project, are modular forms of the following definition:
Let τ be a complex number in H; we also define Λ = Z + Zτ . We then have:
X
Ek (Λ) = λ−k
06=λ∈Λ

Their expansion as Fourier series is of the following form:


X 1
Ek (Λ) = Ek (τ ) =
(m + nτ )k
(0,0)6=(m,n)∈Z2

From here, we see that every modular form can be described not only as a
complex power series (coming from the fact they are holomorphic) but also
as Fourier transform. This will help us to represent them as we will use their
definition as Fourier Series.

2.2 Transformation into the open unit disk of C

Definition 2.6. The open unit disk around a point z0 is the set of points
such that their distance 2 to z0 is less than 1:

D1 (z0 ) = {z : |z − z0 | < 1}.

Proposition 2.7. The open unit disk is homeomorphic to H.


z
Proof. The function f (z) = 1−|z| 2 is an example of a real analytic and bi-

jective function from the open unit disk to the plane; its inverse function is
also analytic. This shows that the open unit disk is homeomorphic to the
whole plane C but as H is homeomorphic to C and the homeomorphism is
an equivalence relation, we have H is homeomorphic to the open unit disk.
2
Here we work with the classical Euclidean distance.

6
1+z
Another way of proving this, is to realize that g(z) = i 1−z (called the inverse
Cayley transformation) is a conformal bijective mapping from the unit circle
to H.
Remark 2.8. Actually the open unit disk and H are not only equivalent
topologically, they are also similar as Riemann Surface.
From here, we see that we can take any modular forms on the upper plane
and project it to the unit disk. This provides an evidence to prove that this
Escher-like representation is possible to draw.

2.3 Representing modular forms on the open unit disk

We just saw that the open unit disk was homeomorphic to H. By apply-
ing the inverse Cayley transformation on a modular form, we can have a
representation of it in the open unit disk. Therefore one can transform the
Eisenstein series we previously plotted in H into the following one :

Figure 5: Eisenstein series of weight 4 and 8 in the open unit circle

Remark 2.9. This visualization allows us to easily see the periodic constitu-
tion of modular forms. However, by plotting directly from H to the open unit
disk, we added a lot of unnecessary calculations, as we could restrict ourselves
to calculate only one period. This impacts the quality of the picture and the
time that was needed in order to plot it.

7
2.4 Möbius transformations

Definition 2.10. The Möbius transformations are applications such that


f (z) = az+b
cz+d
are the projective transformations of the complex project line.
They form a group called Möbius group, which is the projective linear PGL(2, C).

Proposition 2.11. Möbius


 transformations
  are generated by the two follow-
1 1 0 −1
ing matrices : T = S=
0 1 1 0

Proof. Suppose in a first case that c = 0. Then the Möbius transformation


is a linear transformation, which implies that it can be indeed represented
as a translation. Now suppose that c 6= 0 and a = 0. Then the Möbius
transformation is an inversion. Finally suppose c 6= 0 and a 6= 0. Then the
Möbius transformation f can be written as:

f (z) = az+b
cz+d
⇔ f (z) = ac (1 + a(cz+d)
bc−ad
)

which as a matter of fact is the composition of a linear transformation and


inverse function.

This point is essential. We will see that in fact every Möbius transformation
can be decomposed into translations and/or inversions. This allows us to have
a systematic representation of them and to only get interested on how many
translations and inversions are needed for a certain Möbius transformation.
We will keep proving useful properties of Möbius transformations that we
will use in our algorithms.

Proposition 2.12. Möbius transformations are uniquely determined by three


distincts points.
Before proving this point, we will prove a fairly easy lemma.

8
Proposition 2.13. Every Möbius transformation that isn’t identity admits
at most 2 fixed points.

Proof. Let’s suppose that f admits 3 points z1 , z2 , z3 such that f (zi ) = zi


where i = 1, 2, 3. The previous equality can be rewritten as:

az + b = cz 2 + dz

But this admits more than 2 solutions if and only if c = b = 0 and a = d,


which is equivalent to the identity mapping.

This lemma, which was in fact fairly direct, is interesting theoretically, as it


allows us to understand more deeply how the Möbius transformation behave.
Now we can prove Proposition 1.6.

Proof. Let’s assume that we have two Möbius transformations S and T that
map 0, 1 and ∞ to three given points α1 , α2 , α3 . Since we know that Möbius
transformations are invertible, we can form the map S ◦ T −1 , which is also
a Möbius transformation. This map preserves 0, 1 and ∞. This implies by
the previous lemma that the Möbius transformation is the identity, which
implies T = S. From here, we see that every Möbius transformation is
uniquely determined by 3 points.

Proposition 2.14. Möbius transformation are stable for circle and line.

Proof. As we know, circles are uniquely determined up to 3 points, with the


special case where the 3 points being collinear implies that the circle is a line.
Let f be a Möbius transformation and α1 , α2 , α3 be 3 distinct points. We
saw by Prop 2.11 that Möbius transformations are uniquely determined by
3 distinct points, which induces that f (αi ) = βi , i ∈ 1, 2, 3 defines a unique
Möbius transformation. Every member of the set F which denotes the family
consisting of all straight lines and straight circles of the C is the locus of the
equation3 .
α ∗ z ∗ z̄ + β ∗ z + β̄ ∗ z̄ + γ = 0
3
This can be proved using elementary analytic geometry.

9
where α and γ are real constants and β is a complex constant, provided
that β β̄ > αγ. If α 6= 0, this defines a circle; α = 0 defines a straight line.
Replacing z by z1 transforms the previous equation into

α + β ∗ z̄ + β̄ ∗ z + γ ∗ z ∗ z̄ = 0
which is an equation of the same form.
This concludes the proof.

Now we shall define another key concept of this paper, the fundamental do-
main.

2.5 Fundamental domain

Definition 2.15. The fundamental domain is a closed subset D ⊂ X such


that X is the union of translates of D under the group action G:
S
X = g∈G gD
and such that Int(gD ∩ g 0 D) = ∅ for any two distinct translates.

Example 2.16. Fundamental domain of a modular form:


1
F = {z ∈ C : |Re(z)| ≤ , |z| ≥ 1}
2
The reason why we define such an object is because it allows us to only
represent one period of our modular forms. Instead of losing time calculating
the function on the whole space, we will only calculate it on its fundamental
domain and then expand it to the whole upper plane of C.

2.6 Representing the fundamental domain

Sparing operation and time are the core challenges when it comes to repre-
sentation. Here in this project we tried our best to use the periodic nature of

10
modular forms as a tool to represent them. In order to draw the fundamental
domain associated to the Eisenstein series, we used the invariant nature of
Möbius transformations4 .

Figure 6: Expansion of the fundamental domain step by step

Remark 2.17. The idea of the algorithm to construct the fundamental domain
is to apply the recursivity and the fact that the Möbius transformations are
generated by T and S. So we have

An+1 = {An × T, An × S, An × T −1 , An × S −1 }

with A0 being equal to the original fundamental domain.


4
By invariant, we mean that line and circles are conserved by transformations.

11
The same algorithm can give us the fundamental domain of the open unit
circle.

Figure 7: Expansion of the fundamental domain on the open unit circle step
by step

2.7 Fundamental domain applied on modular forms

In the section, we will first implement the fundamental domain on a plot of


the Eisenstein series and then only plot this Eisenstein series on the funda-
mental domain and see how it evolves step by step.

12
Figure 8: Eisenstein series of weight 2 and its fundamental domain expanding

Figure 9: Expansion of the Eisenstein series of weight 2 on its fundamental


domain

13
2.8 A bit more of algorithm

Here we will propose an algorithm that translates every point of the upper
half plane of C to the fundamental domain F only using Möbius transforma-
tion. The idea behind it is fairly simple. Let z be a random point in H. We
first check if the norm |z| ≥ 1. If it is not the case, we apply T until it is the
case then we apply S such that the |Re(z)| ≤ 21 . Before doing this, we will
prove that this process indeed allows us to arrive at F .

Proof. Let z(x, y) be a point on H where x defines Re(z) and y = Im(z). We


suppose without loss of generality that |z|2 = x2 + y 2  1 and |Re(z)| ≤ 21 , as
one can easily obtain the second condition by applying S on the point (which
means translating the point compared to the real numbers axis). Applying
T changes the norm, one can indeed see that |T z| = |z|z|2 | , but as |z| < 1,
|T z| > |z|. As the fixed points are defined such that |z| = 1, which happens
to be in F , this concludes the proof.

Remark 2.18. This is obviously not the uniquely possible algorithm. This
one is the most intuitive, although one may improve it. The decomposition
of the Möbius transformation to land on the fundamental domain is also not
unique as we can apply S and S −1 as many times as we want (it is equivalent
by definition of Id). There exists an infinite amount of these decompositions.
We are done with the theory for now.

14
3 Representing modular forms as an Escher work
In this section, we explain how we transformed our periodic modular forms
into pictures similar to Escher litography. Our interest for Escher comes
primarly from the fact that the huge majority of his work is constructed on
periodicity and symmetries. From here, making an analogy to our work be-
comes fairly straightforward. A second reason of this interest is the aesthetic
research behind Escher’s work. We believe that beauty is deeply connected
to intuition, which implies that the creation of an intuition of 4-dimensional
spaces and modular forms should be followed with a perpetual research of
beauty. The latter reason explains the whole purpose of this project.

Figure 10: Escher - Circle Limit V

As we can observe, there is a lot of symmetry and repetition in this image.


Moreover, those symmetries resemble a lot the ones of modular forms; that
is no coincidence.
The image above is a tessellation on the open unit disk, seen as hyperbolic

15
space with the Poincaré disk model. The shapes of the tiles are identical to
the ones of the copies of the fundamental domain in the open unit disk by
the Möbius transformations.
To create such an image is a challenge. But it’s possible to create a more
simple example with the help of Sage. The idea is that we start with the
fundamental domain, which we paint one color, for instance black. Then
the copies of this domain by one transformation (S, T, and T −1 ) are painted
black. The next copies of those copies will be painted white again, and so
forth.
To do this we will define an easy function that we will then plot on the open
unit disk. To this goal we define the following concept.

Definition 3.1. Let be z ∈ H. We call the order of z, and we denote ord(z),


the smallest number of transformations (among S,T ,T −1 ) needed to trans-
form z into a complex number in the fundamental domain.
Equivalently, ord(z) is the minimal number of Möbius transformations needed
to transform the fundamental domain into the copy of itself that includes z.
With this definition it’s easy to create a function that paints us a two-color
Escher-like picture:

(
0, if 2 | ord(z)
f : H −→ C ∪ {∞} : z 7−→
∞ else

Here is what the result looks like :

16
By modifying the outcoming values 0 and ∞ to other values, we can modify
the colours too. For instance, if we change ∞ to 1, we get a black and red
picture like this:

Another possibility is that if we have a modular form m, we can define the


function as follows:
(
0, if 2 | ord(z)
f : H −→ C : z 7−→
m(z) else

That way we get a picture where some tiles show a part of the modular form,
while the others are all black, like this:

17
But wait, there’s more! We can have f to send z to more than only two
complex numbers, creating a picture with more than two colours, other than
the one with the modular form.
Let be n ∈ N. Let {zk ∈ C | k = 1, ..., n} be a family of distinct complex
numbers. Then we define f as follows:

f : H −→ C : z 7−→ zk , if ord(z) ≡ k − 1 mod n

That way we obtain an Escher-like picture with n colours. Here is a picture


with 6 colours for instance:

Remark 3.2. The functions above are all defined on H and not on the open
unit circle, as we treated the modular forms in H during the whole report.
To get the correct picture, one has to simply transform z from H into the
open unit disk by using the Cayley transformation.

18
A Annexe

A.1 [Link]

• Eisenstein(k,N=200): k is half the weight of the Eisenstein series


and N is the number of terms of the Fourier series. By default, the
function takes an exactitude of N = 200 coefficients. The function can
be associated to a variable f by the command f(z)=Eisenstein(k,N)
for a certain (k, N ) ∈ N2 .

A.2 [Link]

• modularDiscriminant(N=200): This function returns the modular dis-


criminant, which is a modular form based on the Dedekind Eta function.
N is the numbers of factors. By default, the function takes an exacti-
tude N = 200 factors. The function can be associated to a variable f
by the command f(z)=modularDiscriminant(N) for a certain N ∈ N.

A.3 [Link]

• paintFunction(f,Xext=2,Yext=1.5,DPI=300,function_name="function"):
This function paints the complex plot of a function on the upper
half plane, preferably a modular form, and saves it as a .png file. f
is the function, Xext and Y ext are the extremities of the axes and
f unction_name is the name of the function and will also be used as
the name of the saved .png file.
• paintFunctionDisk(f,DPI=300,function_name="function"): This
function paints the complex plot of a function on the open unit disk,
preferably a modular form and saves it as a .png file. f is the function,
Xext and Y ext are the extremities of the axes and f unction_name is
the name of the function and will also be used as the name of the saved
.png file.

19
A.4 [Link]

• transform(M): This function returns the transformation of the border


of the fundamental domain in the upper half plane by the matrix M ,
which is presumably a product of Möbius transformations.
• transformDisk(M): This function returns the transformation of the
border of the fundamental domain in the open unit disk by the matrix
M , which is presumably a product of Möbius transformations.
• drawFDBorder(): This function returns a plot of the border of the
fundamental domain in the upper half plane.
• drawFDBorderDisk(): This function returns a plot of the border of the
fundamental domain in the open unit disk.
• animateFDtransformations(N): This function returns a list of the
plots of all the transformations of the border of the fundamental domain
in the upper half plane based on up to N Möbius transformations.
• animateFDtransformationsDisk(N): This function returns a list of
the plots of all the transformations of the border of the fundamental
domain in the open unit disk based on up to N Möbius transformations.

A.5 [Link]

• getOrder(z): This function returns the order of a complex number


z of the upper half plane. The order of a complex number z is the
minimal number of Möbius transformations needed to transform z into
a complex number in the fundamental domain of the upper half plane.
• getOrderDisk(z): This function returns the order of a complex num-
ber z of the open unit disk. The order of a complex number z is the
minimal number of Möbius transformations needed to transform z into
a complex number in the fundamental domain of the open unit disk.

20
A.6 [Link]

All of the following functions create an animation that visualises any mod-
ular form f on the fundamental domain first and then gradually its Möbius
transformations.
• animateModularForm(f,N,Xext = 4, Yext = 3.5, DPI = 200): This
function creates the animation on the upper half plane without borders.
f is the function, N the number of frames and Xext and Y ext the ex-
tremities of the axes.
• animateModularFormDisk(f,N, DPI = 200): This function creates
the animation on the open unit disk without borders. f is the function
and N the number of frames.
• animateModularFormWithBorder(f,N,Xext = 4, Yext = 3.5, DPI =
200): This function creates the animation on the upper half plane with
borders. f is the function, N the number of frames and Xext and Y ext
the extremities of the axes.
• animateModularFormDiskWithBorder(f,N, DPI = 200): This func-
tion creates the animation on the open unit disk with borders. f is the
function and N the number of frames.

A.7 [Link]

• EscherDisk(dpi=300): This method defines the function needed to


create a black and white Escher-like picture.
• paintEscher(N,lightness=1,dpi=200): This function paints an Escher-
like picture with N differents colors and saves it.

21
References
Wikipedia, [Link]
Dedeking Eta Functions.
Sage Math Documentation, [Link] Documentation
Sage.
Wikipedia, [Link] Eisen-
stein Series.
Michel Serre, Cours d’Arithmetique, Formes modulaires.
Walter Rudin, Real and Complex Analysis, McGraw-Hill International
Editions, 1993.

22

You might also like