MathLabs

Arithmetic and number theory

Modular forms

Highly symmetric complex functions on the upper half-plane, central to the proof of Fermat's Last Theorem.

IntuitionA kaleidoscope on the upper half-plane

Take the upper half-plane H={τ∈C:Im⁡(τ)>0}\mathbb{H} = \{\tau \in \mathbb{C} : \operatorname{Im}(\tau) > 0\}: every complex number with positive imaginary part. The group SL2(Z)\mathrm{SL}_2(\mathbb{Z}) of integer 2×22\times2 matrices with determinant 11 acts on it by τ↦(aτ+b)/(cτ+d)\tau \mapsto (a\tau+b)/(c\tau+d), tiling H\mathbb{H} into infinitely many copies of one basic tile — much like an Escher print or a kaleidoscope, except the tiles shrink hyperbolically as they approach the real axis. A modular form is a function that respects this tiling in a controlled way: not literally repeating itself on every tile, but picking up a precise, predictable factor each time.

Color plot of a complex function on a region of the plane
Domain coloring of a sample complex function; modular forms show similarly rich complex-analytic structure, but built to repeat under the hidden symmetry of SL2(Z)\mathrm{SL}_2(\mathbb{Z}).

SchoolA familiar cousin: periodic functions

In high school trigonometry, sin⁡\sin and cos⁡\cos are invariant under a single symmetry: x↦x+2πx \mapsto x+2\pi. Modular forms live under a much richer symmetry group generated by two transformations: T:τ↦τ+1T:\tau\mapsto\tau+1 (translation, the direct analogue of x↦x+2πx\mapsto x+2\pi) and S:τ↦−1/τS:\tau\mapsto -1/\tau (inversion, which has no classical trigonometric analogue). Every element of SL2(Z)\mathrm{SL}_2(\mathbb{Z}) is built from SS and TT, so a function invariant (up to the weight factor below) under both is automatically invariant under the whole infinite group — the same trick that makes a single period 2π2\pi enough to know sin⁡\sin everywhere.

UndergraduatePrecise definition

Definition: Modular form of weight kk

A holomorphic function f:H→Cf:\mathbb{H}\to\mathbb{C} is a **modular form of weight kk** for SL2(Z)\mathrm{SL}_2(\mathbb{Z}) (an even integer k≥4k \ge 4) if it satisfies the transformation law below for every (abcd)∈SL2(Z)\begin{pmatrix} a & b \\ c & d \end{pmatrix} \in \mathrm{SL}_2(\mathbb{Z}), and is bounded as Im⁡(τ)→∞\operatorname{Im}(\tau)\to\infty (equivalently, has a Fourier expansion in the nome q=e2πiτq=e^{2\pi i\tau} with no negative powers of qq). If additionally the constant term a0a_0 vanishes, ff is a cusp form.

f ⁣(aτ+bcτ+d)=(cτ+d)kf(τ)f\!\left(\dfrac{a\tau+b}{c\tau+d}\right) = (c\tau+d)^k f(\tau)

Here (abcd)∈SL2(Z), ad−bc=1\begin{pmatrix} a & b \\ c & d \end{pmatrix} \in \mathrm{SL}_2(\mathbb{Z}),\ ad-bc=1, and the factor (cτ+d)k(c\tau+d)^k — the automorphy factor — is the entire reason modular forms are richer than plain SL2(Z)\mathrm{SL}_2(\mathbb{Z})-invariant functions. Taking c=0,d=1c=0,d=1 (so the matrix is TbT^b) recovers f(τ+b)=f(τ)f(\tau+b)=f(\tau): 11-periodicity, which is why ff admits the Fourier expansion below.

f(τ)=∑n=0∞anqn,q=e2πiτf(\tau) = \sum_{n=0}^{\infty} a_n q^n, \qquad q = e^{2\pi i \tau}
Four landmark modular objects for SL2(Z)\mathrm{SL}_2(\mathbb{Z})
DạngTrọng số kkChỉnh hình trên H\mathbb{H}?Tại đỉnh ∞\inftyHệ số Fourier đầu
E4E_444CóChỉnh hình, a0=1a_0=1a1=240a_1=240
E6E_666CóChỉnh hình, a0=1a_0=1a1=−504a_1=-504
Δ\Delta1212CóDạng đỉnh, a0=0a_0=0a1=1a_1=1
jj00Có (hàm phân hình)Cực đơn, j∼q−1j\sim q^{-1}a0=744a_0=744

Let ff be a nonzero modular form of weight kk for SL2(Z)\mathrm{SL}_2(\mathbb{Z}). Then, summing over the fundamental domain of H/SL2(Z)\mathbb{H}/\mathrm{SL}_2(\mathbb{Z}) with ord⁡P(f)\operatorname{ord}_P(f) the order of vanishing of ff at PP:

Why is it true?

This is the modular-form analogue of "a degree-nn polynomial has exactly nn roots counted with multiplicity": ff can be viewed as a section of a line bundle of degree k/12k/12 on the compact orbifold X(1)=H∗/SL2(Z)≅P1(C)X(1)=\mathbb{H}^*/\mathrm{SL}_2(\mathbb{Z})\cong\mathbb{P}^1(\mathbb{C}), and the total number of its zeros (weighted) must equal that degree. The weights 12,13\tfrac12,\tfrac13 appear only at the two points ii and ρ=eiπ/3\rho=e^{i\pi/3} because those are exactly the points where SL2(Z)\mathrm{SL}_2(\mathbb{Z}) has extra (order-22 and order-33) stabilizers, so the quotient map wraps around them 22 and 33 times.

Proof

Fix the standard fundamental domain F={τ∈H:∣Re⁡(τ)∣≤12, ∣τ∣≥1}\mathcal{F}=\{\tau\in\mathbb{H} : |\operatorname{Re}(\tau)|\le \tfrac12,\ |\tau|\ge 1\}, with vertices at ρ=eiπ/3\rho=e^{i\pi/3}, ρ+1\rho+1, and ii on its lower boundary, extending up to a cusp at ∞\infty. Truncate it at height Im⁡(τ)=T\operatorname{Im}(\tau)=T for large TT, and indent the boundary with small circular arcs around any zeros of ff that happen to lie on ∂F\partial\mathcal{F} itself. Call the resulting contour CC. Since ff has finitely many zeros in this bounded region, the argument principle gives 12πi∮Cf′(τ)f(τ) dτ\frac{1}{2\pi i}\oint_C \frac{f'(\tau)}{f(\tau)}\,d\tau equal to the number of zeros of ff strictly inside CC.

Now evaluate each piece of ∂F\partial\mathcal{F}. The two vertical sides Re⁡(τ)=−12\operatorname{Re}(\tau)=-\tfrac12 and Re⁡(τ)=12\operatorname{Re}(\tau)=\tfrac12 are identified by T:τ↦τ+1T:\tau\mapsto\tau+1, and since f(τ+1)=f(τ)f(\tau+1)=f(\tau), the integrand f′/ff'/f is also 11-periodic; traversed in opposite directions (one side going up, the identified side coming down), these two integrals cancel exactly. This is where the translation symmetry earns its keep: it removes two full sides of the contour for free.

The top edge at height TT closes up as T→∞T\to\infty: writing f=∑n≥manqnf=\sum_{n\ge m}a_nq^n with m=ord⁡∞(f)m=\operatorname{ord}_\infty(f) and am≠0a_m\ne0, we get f′/f→2πi mf'/f \to 2\pi i\,m as q→0q\to0, so this edge contributes −ord⁡∞(f)-\operatorname{ord}_\infty(f) to the total (the minus sign from the contour's orientation, traversed leftward at the top).

What remains is the lower boundary: the arc from ρ\rho to ii and the arc from ii to ρ+1\rho+1 along ∣τ∣=1|\tau|=1, plus the two short vertical segments from ρ\rho up to the top-left corner region and from ρ+1\rho+1 down. The inversion S:τ↦−1/τS:\tau\mapsto-1/\tau maps the arc through ii to itself (since S(i)=iS(i)=i) and swaps the two halves of the circular arc; because SS fixes ii and rotates a neighborhood of ii by angle π\pi (the stabilizer of ii in PSL2(Z)\mathrm{PSL}_2(\mathbb{Z}) has order 22), the small indentation around ii contributes only −12ord⁡i(f)-\tfrac12\operatorname{ord}_i(f) instead of a full −ord⁡i(f)-\operatorname{ord}_i(f): only "half" of a full residue is actually swept out before SS-symmetry identifies the rest. Likewise ρ\rho and ρ+1=ST−1(ρ)\rho+1=S T^{-1}(\rho) are identified with stabilizer of order 33 in PSL2(Z)\mathrm{PSL}_2(\mathbb{Z}) (generated by STST, of order 33), so their combined indentation contributes −13ord⁡ρ(f)-\tfrac13\operatorname{ord}_\rho(f). Any other zero PP on the remaining, generic part of the arc has trivial stabilizer and contributes the full −ord⁡P(f)-\operatorname{ord}_P(f).

Adding every piece: the vertical sides cancel, the top gives −ord⁡∞(f)-\operatorname{ord}_\infty(f), the corners give −12ord⁡i(f)−13ord⁡ρ(f)-\tfrac12\operatorname{ord}_i(f)-\tfrac13\operatorname{ord}_\rho(f), and any remaining boundary zero PP gives −ord⁡P(f)-\operatorname{ord}_P(f). But 12πi∮Cf′/f dτ\frac{1}{2\pi i}\oint_C f'/f\,d\tau must also equal k12\tfrac{k}{12}: this constant comes from tracking how the weight-kk automorphy factor (cτ+d)k(c\tau+d)^k forces the total turning of arg⁡f\arg f around the two identified corner arcs (related by SS, which sends dτ↦τ−2dτd\tau\mapsto \tau^{-2}d\tau picking up a winding governed by kk) to contribute exactly k/12k/12 net — the same constant that appears because the hyperbolic area of F\mathcal{F} is π/3\pi/3 and X(1)X(1) has exactly one cusp and elliptic points of order 2,32,3, which is the Riemann–Hurwitz bookkeeping underlying the 1212 in the formula. Equating the two computations of the same contour integral and moving every zero-order term to one side gives exactly ord⁡∞(f)+12ord⁡i(f)+13ord⁡ρ(f)+∑Pord⁡P(f)=k12\operatorname{ord}_\infty(f)+\tfrac12\operatorname{ord}_i(f)+\tfrac13\operatorname{ord}_\rho(f)+\sum_{P}\operatorname{ord}_P(f) = \tfrac{k}{12}.

ord⁡∞(f)+12ord⁡i(f)+13ord⁡ρ(f)+∑P≠i,ρ,∞ord⁡P(f)=k12\operatorname{ord}_\infty(f) + \tfrac{1}{2}\operatorname{ord}_i(f) + \tfrac{1}{3}\operatorname{ord}_\rho(f) + \sum_{P \ne i,\rho,\infty} \operatorname{ord}_P(f) = \dfrac{k}{12}

Define Δ\Delta from the weight-44 and weight-66 Eisenstein series E4,E6E_4,E_6 (each normalized with constant term 11) as below. Then Δ\Delta is a nonzero cusp form of weight 1212, it never vanishes anywhere on H\mathbb{H}, its only zero is a simple zero at the cusp ∞\infty, and dim⁡M4(SL2(Z))=1\dim M_4(\mathrm{SL}_2(\mathbb{Z}))=1.

Why is it true?

This single computation both certifies that the space of weight-1212 cusp forms is 11-dimensional (spanned by Δ\Delta) and that Δ\Delta's non-vanishing on H\mathbb{H} is exactly what makes the jj-invariant j=E43/Δj=E_4^3/\Delta holomorphic on all of H\mathbb{H} — the fact that classifies elliptic curves over C\mathbb{C} up to isomorphism, the bridge to arithmetic geometry.

Proof

First, holomorphy and weight: E4,E6E_4,E_6 are modular forms of weight 4,64,6 respectively (standard Eisenstein-series facts, taken as known input here), so E43E_4^3 and E62E_6^2 are both weight 1212. Both have Fourier expansion starting with constant term 11 (by normalization), so E43−E62E_4^3-E_6^2 has vanishing constant term: it is a cusp form of weight 1212, and Δ=(E43−E62)/1728\Delta=(E_4^3-E_6^2)/1728 is too, in particular ord⁡∞(Δ)≥1\operatorname{ord}_\infty(\Delta)\ge1.

Now apply the valence formula (proved above) with k=12k=12: the total weighted zero order of Δ\Delta must equal 12/12=112/12=1. Every term on the left — ord⁡∞(Δ)\operatorname{ord}_\infty(\Delta), 12ord⁡i(Δ)\tfrac12\operatorname{ord}_i(\Delta), 13ord⁡ρ(Δ)\tfrac13\operatorname{ord}_\rho(\Delta), and any ord⁡P(Δ)\operatorname{ord}_P(\Delta) for other points — is a non-negative real number, and we already know ord⁡∞(Δ)≥1\operatorname{ord}_\infty(\Delta)\ge1. The only way a sum of non-negative terms, one of which is already ≥1\ge1, can total exactly 11, is if that term equals exactly 11 and every other term is exactly 00. Hence ord⁡∞(Δ)=1\operatorname{ord}_\infty(\Delta)=1 exactly, and ord⁡P(Δ)=0\operatorname{ord}_P(\Delta)=0 for every P∈HP\in\mathbb{H}: Δ\Delta never vanishes on H\mathbb{H}, with a simple zero only at the cusp.

For the dimension claim: let gg be any weight-1212 cusp form. The quotient g/Δg/\Delta is SL2(Z)\mathrm{SL}_2(\mathbb{Z})-invariant (weight 12−12=012-12=0), and holomorphic on H\mathbb{H} since Δ\Delta never vanishes there. At the cusp, both gg and Δ\Delta vanish to order at least 11 in qq, and since Δ\Delta's order there is exactly 11, the quotient extends holomorphically (no pole) to q=0q=0 as well. A weight-00 modular function holomorphic everywhere on H\mathbb{H} and at the cusp descends to a holomorphic function on the compact Riemann surface X(1)≅P1(C)X(1)\cong\mathbb{P}^1(\mathbb{C}), which by Liouville's theorem (extended to the compactification) must be constant. So g=c⋅Δg=c\cdot\Delta for a constant cc: the space of weight-1212 cusp forms is exactly 11-dimensional. The identical argument at weight 44 (total budget 4/12=1/34/12=1/3, which can only be realized as ord⁡ρ=1\operatorname{ord}_\rho=1 with every other order 00, since any integer contribution — such as a nonzero ord⁡∞\operatorname{ord}_\infty — would already exceed 1/31/3) shows every nonzero weight-44 form has its unique zero at ρ\rho with order exactly 11 and no others, and the same quotient-by-E4E_4 trick forces dim⁡M4(SL2(Z))=1\dim M_4(\mathrm{SL}_2(\mathbb{Z}))=1.

Finally, the qq-product Δ(τ)=q∏n≥1(1−qn)24\Delta(\tau)=q\prod_{n\ge1}(1-q^n)^{24} is the classical identity discovered by Jacobi; we cite it here rather than re-derive it, but note it is fully consistent with what we just proved: the right-hand side visibly vanishes to order exactly 11 at q=0q=0 and is manifestly nonzero for 0<∣q∣<10<|q|<1 (a convergent product of nonzero factors), matching the zero-order profile forced by the valence formula above.

Δ(τ)=q∏n=1∞(1−qn)24\Delta(\tau) = q\prod_{n=1}^{\infty}(1-q^n)^{24}

UndergraduateReal-World Applications and Worked Examples

Modular forms sound abstract, but their extreme rigidity — a handful of Fourier coefficients pin down the whole function — makes them a precision tool wherever a physical or combinatorial quantity happens to transform the same way under the same hidden symmetry. Two concrete places this happens: conformal field theory (the physics behind string theory and 2D critical phenomena), and the theory of lattices used in coding theory and sphere packing.

Example: Cardy formula: counting states in 2D conformal field theory

A 2D conformal field theory with central charge cc has a partition function Z(τ)Z(\tau) that, for consistency on a torus, must transform as a modular-invariant combination under S:τ↦−1/τS:\tau\mapsto-1/\tau exactly like a weight-00 automorphic object. Physically, Z(τ)=Tr⁡ qΔ−c/24Z(\tau)=\operatorname{Tr}\,q^{\Delta-c/24} where the trace runs over the density of states ρ(Δ)\rho(\Delta) at energy Δ\Delta and q=e2πiτq=e^{2\pi i\tau}. Using only the SS-transformation and the leading behavior of ZZ as τ→0\tau\to0 along the imaginary axis, estimate the growth rate of ρ(Δ)\rho(\Delta) for large Δ\Delta.

Solution

Write Z(τ)=∑Δρ(Δ) qΔ−c/24Z(\tau)=\sum_\Delta \rho(\Delta)\,q^{\Delta-c/24}. Modular invariance under SS forces Z(−1/τ)=Z(τ)Z(-1/\tau)=Z(\tau) (weight 00), and as τ→i0+\tau\to i0^+ (high "temperature"), −1/τ→i∞-1/\tau\to i\infty, where ZZ is dominated by its lowest state, the vacuum with Δ=0\Delta=0: Z(−1/τ)≈e2πi(−1/τ)(−c/24)=eπic/(12τ)Z(-1/\tau)\approx e^{2\pi i(-1/\tau)(-c/24)} = e^{\pi i c/(12\tau)}.

Setting τ=iϵ\tau=i\epsilon for small ϵ>0\epsilon>0 (so q=e−2πϵ→1−q=e^{-2\pi\epsilon}\to1^-, the "high-temperature" regime probing large Δ\Delta), this gives Z(iϵ)≈eπc/(12ϵ)Z(i\epsilon)\approx e^{\pi c/(12\epsilon)}, growing without bound as ϵ→0\epsilon\to0.

On the other hand, Z(iϵ)=∑Δρ(Δ)e−2πϵ(Δ−c/24)Z(i\epsilon)=\sum_\Delta\rho(\Delta)e^{-2\pi\epsilon(\Delta-c/24)} is dominated, for small ϵ\epsilon, by a competition between the exponentially growing ρ(Δ)\rho(\Delta) and the exponentially suppressing e−2πϵΔe^{-2\pi\epsilon\Delta}. Matching the two expressions via a saddle-point (Tauberian) argument — the standard technique for turning a small-ϵ\epsilon asymptotic of a generating function into a large-Δ\Delta asymptotic of its coefficients — gives exactly Cardy's 1986 formula: the growth rate is dictated purely by cc.

Example: Sphere packing: the E8E_8 lattice theta series

The E8E_8 lattice (an 88-dimensional lattice used to build the densest known sphere packing in 88 dimensions, and studied in coding theory for its exceptional error-correcting properties) has theta series ΘE8(τ)=∑v∈E8q∥v∥2/2\Theta_{E_8}(\tau)=\sum_{v\in E_8}q^{\|v\|^2/2}, a weight-44 modular form for SL2(Z)\mathrm{SL}_2(\mathbb{Z}). Using only dim⁡M4(SL2(Z))=1\dim M_4(\mathrm{SL}_2(\mathbb{Z}))=1 (proved above), find how many vectors of the shortest nonzero length ("roots") E8E_8 has — its kissing number.

Solution

Because E8E_8 is an even unimodular lattice, ΘE8\Theta_{E_8} is holomorphic on H\mathbb{H}, bounded at ∞\infty (so genuinely a modular form, not just meromorphic), and has weight rank⁡(E8)/2=8/2=4\operatorname{rank}(E_8)/2=8/2=4 — this is a general fact about theta series of even unimodular lattices, taken here as given. Its Fourier expansion starts ΘE8(τ)=1+N2q+⋯\Theta_{E_8}(\tau)=1+N_2q+\cdots, where N2N_2 counts vectors of norm ∥v∥2=2\|v\|^2=2 (the shortest nonzero vectors, since E8E_8 has no vectors of norm strictly between 00 and 22).

Since dim⁡M4(SL2(Z))=1\dim M_4(\mathrm{SL}_2(\mathbb{Z}))=1 and E4E_4 also has constant term 11, both ΘE8\Theta_{E_8} and E4E_4 lie in the same 11-dimensional space and share the same leading coefficient 11, so they must be equal: ΘE8(τ)=E4(τ)\Theta_{E_8}(\tau)=E_4(\tau) exactly — with no computation of lattice geometry required.

Reading off the known Fourier expansion E4(τ)=1+240∑n≥1σ3(n)qnE_4(\tau)=1+240\sum_{n\ge1}\sigma_3(n)q^n (where σ3(1)=1\sigma_3(1)=1), the coefficient of q1q^1 is 240240. So E8E_8 has exactly 240240 shortest vectors — matching the well-known fact that the E8E_8 root system has 240240 roots and that the E8E_8 lattice packing has kissing number 240240, obtained here purely from the rigidity of modular forms rather than a direct geometric count.

Which equation must a modular form ff of weight kk satisfy for every (abcd)∈SL2(Z)\begin{pmatrix}a&b\\c&d\end{pmatrix}\in\mathrm{SL}_2(\mathbb{Z})?

By the valence formula, a nonzero modular form of weight k=12k=12 for SL2(Z)\mathrm{SL}_2(\mathbb{Z}) has total weighted zero order equal to:

Because dim⁡M4(SL2(Z))=1\dim M_4(\mathrm{SL}_2(\mathbb{Z}))=1, the E8E_8 lattice's theta series must equal E4E_4; reading off the coefficient of q1q^1 gives the E8E_8 kissing number as:

Wiles's 1995 proof of Fermat's Last Theorem relied on establishing that certain elliptic curves are:

References

  1. Jean-Pierre Serre (1973). A Course in Arithmetic
  2. Fred Diamond, Jerry Shurman (2005). A First Course in Modular Forms
  3. Andrew Wiles (1995). Modular Elliptic Curves and Fermat's Last Theorem · DOI:10.2307/2118559
  4. James Newton, Jack A. Thorne (2021). Symmetric power functoriality for holomorphic modular forms · DOI:10.1007/s10240-021-00127-3 · arXiv:1912.11261