Modular Forms
Ten modules that follow all nine chapters of a first course on modular forms, from the action of on the upper half-plane to Galois representations. Reduce points into the fundamental domain, build modular curves out of tiles, compute q-expansions and Hecke operators, watch periods form a lattice and count points mod p, then check yourself with concept questions and practice problems.
Follows the chapter order of F. Diamond and J. Shurman, A First Course in Modular Forms, Graduate Texts in Mathematics 228 (Springer, 2005), covering Chapters 1–9. Chapter and exercise numbers refer to that book; the questions and examples here are written for this page.
SL₂(ℤ) and its fundamental domain
Everything in this subject starts with one group acting on one space. moves the points of the upper half-plane by fractional linear maps, and a modular form is a function that transforms in a fixed way under every one of those moves. Before studying such functions you need a map of the orbits, and that map is the fundamental domain.
The idea
The matrices and act the same way, so the group that really acts is . It is generated by
The proof is an algorithm, and it is what the explorer runs. If , translate by a power of . If , apply : then is strictly larger. Repeat. It stops because, for a fixed , only finitely many pairs have , so the imaginary part can only grow finitely often.
Explore
Worked example
Reduce into , and find a matrix with . (It is the first preset above, so you can check each step.)
is already in the strip. Should you apply ? What do you get, and how much does the imaginary part grow?
, so yes. . The imaginary part goes from to , a factor of .
Continue from .
Translate by : . Its absolute value squared is , so apply : . Then translate by to reach , which is in (on the arc).
Multiply the steps together to get , and check it with the imaginary-part formula.
The last step goes on the left:
Here , so and , which is .
Is the only matrix with ?
No. If too, then fixes , so it is or . Up to sign the answers are and . The extra solution exists because is an elliptic point.
Check your understanding
The algorithm is at and applies . By what factor does the imaginary part grow?
- That would make it shrink. divides the imaginary part by , and .
- The formula has , squared. For , .
Why is every modular form of odd weight for identically zero?
- Because the q-expansion can only contain even powers of .Nothing forces that: periodicity allows every integer power.
- Because has order 4.Applying the law four times along is consistent for every . The obstruction comes from a different element.
- Because acts trivially but contributes the factor .
Let . What can you say about ?
- .
- Nothing: is a point like any other. is fixed by . Put and into the transformation law.
- . and are not equivalent (both lie in , not matched by the boundary identifications), so there is no reason for this.
Practice
The algorithm terminatesFiniteness of small denominators
Fix . Show that only finitely many coprime pairs satisfy . Deduce that takes a largest value as runs over , and that if achieves it then a translate lies in .
Hint
Expand .
Solution
If then , so , and for each such , leaves at most two values of . So takes only finitely many values below 1, and takes only finitely many values above : a maximum exists. Translate the maximising point into the strip; this keeps the imaginary part. If the result had , then would have a larger imaginary part, a contradiction. So .
Forced zeros at ρUsing the stabiliser of order 3
Let and let with even and . Show that . Which Eisenstein series must vanish at ?
Hint
Find a matrix with that fixes .
Solution
sends to , and , so . The law gives . For even with , , so . In particular , and .
More practice: Diamond–Shurman, Exercises 1.1.1 and 1.1.2.
Lattices, tori and the j-invariant
A lattice in gives a complex torus, and up to scaling every lattice is for some in the upper half-plane. Two values of give the same torus exactly when they are related by . So the fundamental domain is also a catalogue of complex tori, and the j-invariant is a coordinate on that catalogue.
The idea
The reason is a change of basis. If , then and are another basis of (the matrix has determinant 1), so
Explore
Worked example
Compute for the square lattice and the hexagonal lattice , , without summing any series. Then find where is real.
Show that and use it to compute .
, so multiplication by permutes . Then , so and .
What is ?
With , (and because ), so .
Do the same for . Which invariant vanishes?
, so . Then , and , so and .
For which is real? Try dragging along the edges of above first.
The q-expansion of has real coefficients, and has -parameter , so . If is equivalent to , then is real. That happens on the imaginary axis (), on the edges () and on the arc (). Since is injective on the interior of , these are the only real values: exactly the lattices with a reflection symmetry.
Check your understanding
Do and give isomorphic complex tori?
- Yes: with .
- No: the map is neither a translation nor .Any element of works, not only the generators. Check the determinant.
- Only if lies in .The classification holds for every ; is just a convenient set of representatives.
Which of these is unchanged when is replaced by ?
- is a multiple of , and .
- scales by .
- The area of a fundamental parallelogramIt is multiplied by 4. The torus is isomorphic, but a lattice is more than its torus.
and are the same torus. Why is , as a function of , not -invariant?
- Because is a rescaled lattice, and sees the scale: .
- Because is not holomorphic in .It is holomorphic: it is a multiple of . The issue is how it transforms.
- Because the sum defining converges only on .It converges absolutely for every lattice.
Practice
The generators act on latticesTranslation and inversion
Show directly that and . Conclude that and , and why this proves for all .
Solution
contains , so it equals . And . Since depends only on the lattice up to scaling, is invariant under and , and these generate .
Every real number at least 1728An intermediate value argument
Show that is real for , and that every real number equals for some .
Hint
On the imaginary axis is a positive real number. What does the q-expansion do as ?
Solution
with real , so is real and continuous in . At it is , and as , and . By the intermediate value theorem every value in is taken on . (The explorer's preset gives .)
More practice: Diamond–Shurman, Exercises 1.4.3, 1.4.4 and 1.4.5.
Congruence subgroups, cusps and elliptic points
The forms attached to elliptic curves are modular only for smaller groups, cut out of by congruences mod . The quotient of by such a group is a modular curve. To make it a compact Riemann surface you have to understand two kinds of special point: elliptic points, where the group has extra stabilisers, and cusps, the rational points added at the boundary.
The idea
congruences taken mod in . A congruence subgroup is any subgroup containing some ; it has finite index. For example .
- cusps correspond to the orbits of , and the size of each orbit is the width, so the widths add up to ;
- elliptic points of period 2 correspond to cosets fixed by , and those of period 3 to cosets fixed by . Their numbers are written , , and the number of cusps .
The explorer builds the domain this way: it starts from , keeps attaching neighbouring tiles , , and adds a tile only if its coset is new.
Explore
Worked example
Work out the index, cusps and elliptic points of . Then set the explorer to and compare.
Two matrices lie in the same coset exactly when their bottom rows agree in , up to a unit. How many cosets are there for ?
, so the index is 3, with representatives , , . This agrees with .
Find the cusps and their widths.
A cusp in lowest terms is equivalent to if is even and to if is odd, so there are two. , so has width 1. The stabiliser of in is , which lies in only for even : width 2. Check: .
Find an elliptic point of period 2.
An element of order 4 in has trace 0. Try . Its fixed point solves , so .
Why are there no elliptic points of period 3?
They would need an element of trace . In , is even, so : and are odd and is even. So , , , and in the next module these give genus .
Check your understanding
What is the width of the cusp for ?
- 1, like the cusp .Width is not the same at every cusp. Conjugate the stabiliser of and see which powers land in .
- That is the sum of all the widths, over all cusps.
How many cusps does have, for prime?
- That is the index. Cusps are orbits of on the cosets, and one orbit can contain many cosets.
- 2
- 1 and are not equivalent: preserves whether the denominator of a cusp is divisible by .
How many elliptic points does have?
- One of period 2, as for .It would need an element of trace 0 with . Then . Is a square mod 4?
- None.
- One of each period.Period 3 needs trace , but , are odd when , so the trace is even.
Practice
The index of Γ₀(p)Cosets and the projective line
Show that , where is the bottom row of , is a well-defined bijection. Deduce .
Hint
Compute the bottom row of for . For surjectivity, lift a pair to coprime integers.
Solution
If , the bottom row of is , and is a unit mod . So the map is well defined. If , have proportional bottom rows mod , then has bottom-left entry , so it lies in : the map is injective. Every lifts to a coprime pair, which is the bottom row of some matrix in . So the index is .
The cusps of Γ₀(6)An invariant and some widths
Show that , for a cusp in lowest terms, is unchanged by . Use it to show that are inequivalent for , and find their widths. Why are there no other cusps?
Hint
For the widths, conjugate by , which sends to .
Solution
A matrix sends to a fraction (still in lowest terms) with denominator , and is a unit mod , so with is kept. The four cusps have . The computation shows the width at is the least with : 6 at (), 3 at , 2 at , and 1 at . The widths add to , the index, so there is no room for another cusp.
More practice: Diamond–Shurman, Exercises 1.2.3, 2.3.7 and 3.8.3.
Genus and dimension formulas
Riemann–Hurwitz turns the counts from the last module into the genus of , and Riemann–Roch turns the genus into the dimension of every space of modular forms. These formulas tell you, before computing anything, that weight 12 is the first weight with a cusp form for , and that 11 is the first level with a weight-2 cusp form for .
The idea
Where it comes from: . Over the non-elliptic sheets pair up, contributing ; over they come in threes, contributing ; over each cusp of width contributes , in total .
while in weight 2, and . The idea of the proof: is a meromorphic differential on , and its order at an elliptic point of period is fractional, which is where the floors come from. The gap is for : one Eisenstein series for each cusp.
Odd weights need more care: if there is nothing, and otherwise cusps split into regular and irregular ones. The calculator covers even .
Explore
Worked example
Compute the genus of and the dimensions of , and . For a prime , is the number of solutions of and the number of solutions of .
Find , , and .
. Since , is not a square mod 11: . Since , has no roots mod 11: . And .
Compute the genus.
is a torus. Module 7 shows which one.
Now the weight-2 dimensions.
and : one cusp form and one Eisenstein series.
And ?
. Check it in the calculator with , .
Check your understanding
For which of these levels is ?
- The worked example gives genus 1.
- , , : genus 1.
- , , : genus 1.
are congruence subgroups. Which statement always holds?
- That ignores ramification and the in . For it would give , not 1.
- A smaller group gives a larger curve, which covers the other one.
For even, . Why 1?
- Because has one cusp, and the complement of the cusp forms has one Eisenstein series per cusp.
- Because for all . and .
- Because is the only cusp form.There are more: has weight 16, and is 2-dimensional. The difference counts the non-cusp part.
Practice
Level one, every weightFrom the general formula
Use the formula for with , to prove the level-one rule: if , and otherwise ( even).
Hint
Write with and evaluate the floors.
Solution
The formula reads . With the floors are and , and . So the dimension is . For the correction is . So the answer is , except when .
The genus of X₀(37)A curve of genus 2
Compute and .
Solution
. Since and , ; . So , and . Module 7 returns to this example.
More practice: Diamond–Shurman, Exercises 3.1.4, 3.5.3 and 3.9.5.
Eisenstein series and q-expansions
The first modular forms anyone writes down are Eisenstein series: sum over all pairs of integers. Their q-expansions have divisor sums as coefficients. Because the spaces are so small, matching two q-expansions proves identities between divisor sums that are hard to see directly.
The idea
and the Bernoulli numbers come from . So , , , and .
The explorer computes these series exactly, with integer arithmetic, and checks each identity coefficient by coefficient. The log–log plot shows a second fact: Eisenstein coefficients grow like , while cusp form coefficients grow much more slowly, like up to small factors (Deligne's bound).
Explore
Worked example
Prove that for every ,
Why must ?
Both lie in , which has dimension . So , and comparing constant terms (both 1) gives .
Check the coefficient of on both sides.
, and . They agree.
Write down the coefficient of on each side and solve for .
On the left: . On the right: . Divide by 480 to get the identity.
Test it at .
, and . The explorer's "E₄² = E₈?" check does this for every .
Check your understanding
Why can not be a modular form for ?
- , but has constant term 1.
- Its coefficients are negative. has negative coefficients and is a modular form.
- It is not holomorphic on .The q-series converges for , so it is holomorphic. The problem is the transformation law.
Write as . You know that . What is ?
- Then would include , far bigger than .
- It cannot be determined from growth alone.Compare the growth of the two pieces: against roughly .
Why is given exactly by a divisor sum, with no "error term"?
- Because is a modular form for .. is modular only for the smaller group .
- Because has genus 0, so and consists of Eisenstein series.
- Because every modular form of weight 2 is an Eisenstein series. is 1-dimensional, so weight 2 has cusp forms in general.
Practice
τ(2) from E₄ and E₆Two coefficients by hand
Using and , compute the first two coefficients of .
Solution
Coefficient of : , giving . Coefficient of : for , ; for , . The difference is , so .
Four squares at a primeJacobi's formula
Show that for an odd prime , and check it by listing the representations of .
Solution
The divisors of are and , neither divisible by 4, so . For : , with 4 places for the zero and choices of signs, giving .
More practice: Diamond–Shurman, Exercises 1.1.7 and 1.2.8.
Hecke operators and eigenforms
Hecke operators are linear maps on each space of modular forms. On q-expansions they act by a simple rule, they commute with one another, and their common eigenvectors have multiplicative coefficients. This is why whenever and are coprime.
The idea
where if . The points and correspond to the sublattices of index in , so is an average over sublattices. For only the first part survives: .
Explore
Worked example
Given only , , and the fact that spans , compute and .
Why is an eigenform of , and what is the eigenvalue?
maps to itself and that space is 1-dimensional, so . The coefficient of gives .
Compare coefficients of in .
, and this equals . So .
Now compare coefficients of .
(since ), and this equals . So . Multiplicativity appears without being assumed.
Confirm in the explorer: choose Δ and . What does the table show?
Every row has ratio exactly : for each listed, including and used above.
Check your understanding
is a cusp form with and . What is ?
- That is the factor in front of , not the eigenvalue.
- The second term contributes , and .
is an eigenform for every . Is ?
- Yes: a product of eigenforms is an eigenform. is linear, not multiplicative. Choose E₄³ in the explorer and look at the ratios.
- No: , a sum of two eigenforms with different eigenvalues.
- Yes, with eigenvalue .For that is 729, but the ratio at is 249.
is the newform in and . Is a newform of level 22?
- Yes, because it has level 22.Being modular for is not enough; newforms must be orthogonal to everything coming from lower levels.
- No, it is an oldform: it comes from level 11. (Also , so it cannot be normalised.)
- It is not even in .If then conjugating by gives an element of , so is modular for .
Practice
τ(8)The prime-power recursion
Use to compute from and .
Solution
. Check it with the explorer's table: the row needs .
Eisenstein series are eigenformsA divisor-sum identity
Show that for every prime .
Hint
You need with . Write with and use multiplicativity of .
Solution
Constant term: . For , put , so . The identity becomes , which is true term by term (for the second bracket is empty). Every coefficient of is a multiple of , so .
More practice: Diamond–Shurman, Exercises 5.3.3, 5.8.3 and 5.9.3.
Periods, Jacobians and an elliptic curve
A weight-2 cusp form is the same thing as a holomorphic differential on the modular curve. Integrating it along closed loops gives a lattice of periods, and modulo that lattice is an elliptic curve. At level 11 you can watch it happen: the periods of a single cusp form land on a lattice whose j-invariant is that of .
The idea
does not depend on , and is a homomorphism that vanishes on parabolic elements and on elements of finite order. Its image is the set of periods of .
At level 11 the genus is 1, so is itself, and is spanned by .
Explore
Worked example
Justify the claims about the period map for , the ones the explorer lets you test.
Show that does not depend on .
Differentiate: , using the weight-2 law. So the difference has derivative 0 on the connected set .
Show that is a homomorphism.
, evaluating the first bracket at the point .
Why is for ?
is parabolic and fixes the cusp . Because is a cusp form, extends continuously to the cusps, so letting gives . The first button in the explorer confirms it numerically.
Choose and then in the explorer. What do the two periods generate, and what is ?
The periods are and (up to sign). They are independent, the lattice they generate already contains every other period you add, and , which matches of .
Check your understanding
Which certainly has , without computing?
- Its trace is 8, so it is hyperbolic, neither parabolic nor of finite order. The explorer shows its period is a basis vector of the lattice.
- Every , since is -invariant. is only invariant up to periods; that is the whole point of .
What is the dimension of ?
- 1That would need genus 1. Compute with , , .
- 2
- 23The dimension is the genus, not the level.
The periods you have found generate a lattice of index 4. How is related to ?
- They are isomorphic, since the lattices are commensurable.Isomorphic needs . Commensurable lattices usually have different ; the explorer shows this when you pick only and .
- induces a surjective homomorphism with kernel of order 4: an isogeny of degree 4.
- There is no holomorphic map between them.The identity of descends, because .
Practice
What the period map forgetsTorsion and commutators
Show that if has finite order, and that for all .
Solution
is a homomorphism to the torsion-free abelian group . If then ( acts trivially), so . And .
J₀(37) up to isogenyCounting newforms
is 2-dimensional (module 4) and is spanned by two newforms with rational coefficients, with and . What does this say about ?
Solution
Each newform gives a 1-dimensional quotient , an elliptic curve, and is isogenous to . The two curves are not isogenous to each other: isogenous curves have the same , and here differs.
More practice: Diamond–Shurman, Exercises 6.1.3 and 6.6.3.
Elliptic curves as cubics: the group law
Chapter 7 moves from complex analysis to algebra. An elliptic curve becomes a cubic equation, its group law becomes the geometry of lines, and modular curves turn out to be algebraic curves with equations over . The animation shows the group law; you can drag both points and change the curve.
The idea
Over nothing new happens: for , the map is a group isomorphism onto , so the chord rule is just addition in . The point of the algebraic version is that it makes sense over and over , which the next two modules need.
Watch
- The curve and two points , on it.
- Draw the line through and .
- A cubic meets a line three times: the third point is , and .
- Reflect in the x-axis. That is .
- The same rule with the tangent at gives . If the line is vertical, the third point is .
Worked example
On (the default curve above), take and . Compute and .
Find the line through and and all its intersections with .
The line is . Substituting, , so and . The third point is .
What is ? Check it against the formula.
. With : and .
Compute with the tangent at .
. Then and .
Verify that lies on .
. The coordinates stay rational: is a group, and the chord rule is how you compute in it.
Check your understanding
Why is defined as the reflection of the third point , rather than itself?
- To keep the y-coordinate positive. can have either sign of . The reason is structural.
- The operation has no identity element; with as identity and , the reflection is what makes a group.
- Because the line through and meets twice more.A line meets a cubic in three points counted with multiplicity: , and exactly one more.
Which points on satisfy ?
- Exactly the points with .
- Points where the tangent is horizontal.A horizontal tangent meets again at a finite point. You need the tangent to pass through .
- None: only has order dividing 2.Over , has three nonzero points.
Set in the explorer. Why is not an elliptic curve?
- Because it has no rational points. and are on it.
- : the curve is singular at , where both partial derivatives vanish and there is no tangent line.
- Because it is symmetric about the x-axis.Every curve is.
Practice
The 2-torsionThree roots, one group
Let with distinct . Show that is a subgroup isomorphic to .
Solution
Each equals its own negative, so it has order 2. The three points lie on the line , so they add to , giving . The set is closed under addition, every element has order at most 2, and it has 4 elements: it is .
A point of order 6Repeated doubling
On , show that has order 6.
Solution
Tangent at : , so , : . Tangent at has slope 0, so , hence . Also : , , , so , and . The order is 6.
More practice: Diamond–Shurman, Exercises 7.1.4 and 7.1.5.
Counting points mod p
Reduce an elliptic curve over modulo a prime and count its points. The defect looks random, but for each curve below it equals the -th coefficient of one weight-2 newform, for every prime. The Eichler–Shimura relation explains why, and the Modularity Theorem says it happens for every elliptic curve over .
The idea
The explorer counts points by brute force and computes as an eta product, independently, and compares.
Explore
Worked example
has conductor 32, and its newform is . Check and by hand, then explain the zeros.
Count .
for is mod 5. The value 0 gives one ; the squares 1 and 4 give two each. So affine points, with , and , the coefficient of .
Count .
for every , so each gives only : 3 affine points, 4 in all, and . The coefficient of is also 0.
Show that for every prime .
is odd, and is not a square mod . For each pair with , exactly one of , is a square, so the pair contributes 2 points. The three roots contribute 1 each. Total affine points, so .
What does the formula for say about for ?
is times a series in , so only exponents appear: for . Point counting and the modular form agree for a structural reason (the curve has complex multiplication by ); in the explorer they agree at every .
Check your understanding
An elliptic curve has good reduction at . What is the largest possible value of ?
- That counts every point of the plane. Each gives at most two values of .
- 122
- That is a trivial bound (two per , plus ). Hasse is much sharper.
The curve 11a has . What does this say about its reduction at 11?
- Good reduction.11 divides the discriminant: it is the conductor.
- Additive reduction (a cusp).Then the count would be and .
- Split multiplicative reduction: a node with tangent directions defined over .
and have the same for every prime. Does that contradict the fact that a newform determines its elliptic curve?
- Yes: one of the two curves cannot be modular.Every elliptic curve over is modular.
- No: a newform determines its curve only up to isogeny, and these two curves are isogenous.
- No: the equal are a coincidence of small primes.They agree at every prime, which is no coincidence.
Practice
Count by hand at p = 7The curve y² = x³ + 1
Count for , and compare with the coefficient of in .
Solution
Cubes mod 7 are : gives (2 points); give , a square (), so 2 points each; give , 1 point each. Total , so and . The product is , whose coefficient is .
A rational point of order 5A congruence for every good prime
The point on has order 5. Use the fact that reduction mod a good prime is injective on the torsion of order prime to to show that for . Check .
Solution
The subgroup generated by maps injectively into , so 5 divides . Check: and ; and ; and . Module 10 reinterprets this as a statement about a Galois representation.
More practice: Diamond–Shurman, Exercises 8.3.6 and 8.3.7.
Galois representations and Frobenius
The absolute Galois group of acts on the torsion points of an elliptic curve, giving 2-by-2 matrix representations, and the strongest form of Modularity says these come from modular forms. The smallest case, 2-torsion, is already concrete: Frobenius at is the way permutes the roots of a cubic, and that permutation knows mod 2.
The idea
The case . For with a cubic, where the are the roots of , and is the group of permutations of the three nonzero points. For odd and good, the number of roots of mod tells you the cycle type of :
- 3 roots: the identity, trace in ;
- 1 root: a transposition, trace ;
- 0 roots: a 3-cycle, trace .
So is odd exactly when has no root mod . The simulation tests this, and Chebotarev, prime by prime.
Explore
Worked example
For , find in for , predict the parity of , and check it.
How many roots does have mod 5?
Since , cubing is a bijection of , so there is exactly one cube root of 2 (namely 3, as ). One root: is a transposition, trace 0, so should be even. Counting gives .
Now .
The cubes mod 7 are , so 2 is not a cube: no roots, is a 3-cycle with trace 1, and should be odd. Counting: gives , not a square; gives , not a square; (three values of ) gives , a square, 2 points each. So and .
Now .
, and since there are three cube roots of unity, so three roots (). is the identity, and is even.
What proportions should the simulation show for this curve?
The splitting field has Galois group : identity , transpositions , 3-cycles . Choose and raise the bound to watch the bars approach these heights.
Check your understanding
For , what is ?
- That is the trace.
- The image need not lie in . The Weil pairing identifies with the action on -th roots of unity.
has a rational point of order . What follows for ?
- It is trivial.Only the line through the rational point is fixed pointwise; the rest of can move.
- It is reducible, of the form , so .
- Nothing: rational points say nothing about Galois actions.A rational point is exactly a point fixed by every element of .
For , in what proportion of primes does split into three linear factors mod ?
- That is the answer for Galois group . Here is always a root, so the group is smaller.
- The other roots come from , whose splitting field is , of degree 2.
Practice
Ramanujan's congruence at small primesCheck before you believe
Check for and , using and .
Solution
and . and .
Parity of a_p from 2-torsionWhy the simulation always agrees
Let with a cubic, and an odd prime of good reduction. Show directly that is even if and only if has a root in , and conclude that is odd exactly when has no root mod .
Hint
Pair each point with its negative.
Solution
pairs off the points with . The points left over are and the points with . So , where is the number of roots. is even iff is odd iff . Since and is even, is odd iff , matching the trace of a 3-cycle in .
More practice: Diamond–Shurman, Exercises 9.1.1, 9.4.3 and 9.4.4.