Mathwords logoMathwords

Modular Function — Definition, Formula & Example

A modular function is a complex function on the upper half-plane whose only singularities are poles. Its value does not change when you replace τ\tau by τ+1\tau + 1 or by −1/τ-1/\tau, and as τ\tau moves up toward i∞i\infty it may blow up only like a pole, never worse.

A modular function (of level 1) is a meromorphic function ff on H={τ∈C:Im⁡τ>0}\mathbb{H} = \{\tau \in \mathbb{C} : \operatorname{Im}\tau > 0\} such that f(γτ)=f(τ)f(\gamma\tau) = f(\tau) for every γ∈SL(2,Z)\gamma \in \mathrm{SL}(2,\mathbb{Z}), and such that ff is meromorphic at the cusp i∞i\infty. Because f(τ+1)=f(τ)f(\tau+1) = f(\tau), ff has a Fourier expansion in q=e2πiτq = e^{2\pi i\tau}. The cusp condition means this expansion has the form f=∑n≥−Nanqnf = \sum_{n \ge -N} a_n q^n, with only finitely many negative powers of qq. Every such function is a rational function of Klein's jj-function. Some older texts use the term more loosely, so check the author's definition.

Key Formula

f ⁣(aτ+bcτ+d)=f(τ),a,b,c,d∈Z,  ad−bc=1f\!\left(\frac{a\tau + b}{c\tau + d}\right) = f(\tau), \qquad a, b, c, d \in \mathbb{Z},\ \ ad - bc = 1
Where:
  • τ\tau = Complex variable in the upper half-plane, so Im⁡τ>0\operatorname{Im}\tau > 0
  • a,b,c,da, b, c, d = Integer entries of a matrix in SL(2,Z)\mathrm{SL}(2,\mathbb{Z}). The matrices for τ↦τ+1\tau \mapsto \tau+1 and τ↦−1/τ\tau \mapsto -1/\tau generate the whole group.
  • ff = Meromorphic function on the upper half-plane that is also meromorphic at the cusp i∞i\infty

Worked Example

Problem: Let q=e2πiτq = e^{2\pi i\tau}. Two modular forms have the expansions E4=1+240q+2160q2+⋯E_4 = 1 + 240q + 2160q^2 + \cdots (weight 4) and Δ=q−24q2+252q3−⋯\Delta = q - 24q^2 + 252q^3 - \cdots (weight 12). The quotient j=E43/Δj = E_4^3/\Delta divides one weight-12 form by another, so the weight factors cancel and jj is a modular function. Find the first three terms of the qq-expansion of jj.
Step 1: Cube E4E_4, keeping terms up to q2q^2. The q2q^2 coefficient comes from 3⋅21603 \cdot 2160 (one factor contributes q2q^2) plus 3⋅24023 \cdot 240^2 (two factors each contribute qq).
E43=1+720q+(3⋅2160+3⋅2402)q2+⋯=1+720q+179280q2+⋯E_4^3 = 1 + 720q + (3\cdot 2160 + 3\cdot 240^2)q^2 + \cdots = 1 + 720q + 179280q^2 + \cdots
Step 2: Factor Δ=q(1−24q+252q2−⋯ )\Delta = q(1 - 24q + 252q^2 - \cdots). Invert the bracket using 11+u=1−u+u2−⋯\frac{1}{1+u} = 1 - u + u^2 - \cdots with u=−24q+252q2u = -24q + 252q^2.
11−24q+252q2−⋯=1+24q+(242−252)q2+⋯=1+24q+324q2+⋯\frac{1}{1 - 24q + 252q^2 - \cdots} = 1 + 24q + (24^2 - 252)q^2 + \cdots = 1 + 24q + 324q^2 + \cdots
Step 3: Multiply the two series, then divide by qq. The constant term is 720+24720 + 24. The qq term is 179280+720⋅24+324179280 + 720\cdot 24 + 324.
j=1q (1+720q+179280q2)(1+24q+324q2)+⋯=1q+744+196884q+⋯j = \frac{1}{q}\,(1 + 720q + 179280q^2)(1 + 24q + 324q^2) + \cdots = \frac{1}{q} + 744 + 196884q + \cdots
Answer: j(τ)=q−1+744+196884q+⋯j(\tau) = q^{-1} + 744 + 196884q + \cdots. The single negative power q−1q^{-1} shows a simple pole at the cusp. Having only finitely many negative powers is exactly the cusp condition a modular function must satisfy.

Why It Matters

In a graduate number theory or complex analysis course, the jj-function classifies elliptic curves over C\mathbb{C}. Two curves are isomorphic exactly when their jj-invariants are equal, and jj-invariants also appear in isogeny-based cryptography. The coefficient 196884=196883+1196884 = 196883 + 1 connects jj to the Monster group, a link known as monstrous moonshine.

Common Mistakes

Mistake: Calling a modular form such as E4E_4 a modular function.
Correction: A modular form of weight kk satisfies f(γτ)=(cτ+d)kf(τ)f(\gamma\tau) = (c\tau+d)^k f(\tau), so for k≠0k \neq 0 its value changes under the group. To get a true modular function, divide two modular forms of the same weight, as E43/ΔE_4^3/\Delta does in the example.

Related Terms