21.11.04 · number-theory / dirichlet-series-arithmetic-functions

Perron's Formula and Mellin Inversion

shipped3 tiersLean: none

Anchor (Master): Perron 1908 *J. reine angew. Math.* 134, 95 (the original formula); Riemann 1859 *Monatsber. Berliner Akad.* (the contour-integral programme); Davenport 2000 *Multiplicative Number Theory* §11-12; Montgomery-Vaughan 2007 *Multiplicative Number Theory I* §5; Titchmarsh 1986 *The Theory of the Riemann Zeta-Function* (2nd ed., rev. Heath-Brown, Oxford) §3; Tenenbaum 2015 *Introduction to Analytic and Probabilistic Number Theory* (3rd ed., AMS) §II.2

Intuition Beginner

Suppose you have packaged a sequence of numbers into a single function by forming the sum . This packaging is called a Dirichlet series, and the Riemann zeta function is the case where every equals one. The packaged function is smooth and analytic, and the tools of calculus apply to it. The original numbers are hidden inside.

Perron's formula is the recipe for getting the original numbers back out, and in particular for recovering the running total up to some cutoff . The recipe is a contour integral: you integrate multiplied by a simple steering factor along a vertical line in the complex plane, and the answer is exactly the partial sum you wanted. The steering factor acts like a switch. For each integer , it turns the term fully on when is below the cutoff and fully off when is above it.

Why does this matter? Questions about the original numbers — how the primes pile up, how divisors are distributed — are hard to attack directly. Once the running total is written as a contour integral, you can slide the contour around, pick up contributions from the poles of , and read off the answer. This is the engine behind the proof that the primes thin out like .

Visual Beginner

A vertical line in the complex plane at horizontal position (to the right of where the series stops converging). Along this line the integration runs from bottom to top. The integrand carries the factor , which behaves like an on-off switch keyed to the cutoff .

  imaginary
    axis
     ^
     |        contour runs upward
     |        along the vertical line Re(s) = c
     |              |
     |              |   integrand: A(s) * x^s / s
-----+--------------|----------------> real axis
     |              |
     |             Re(s) = c
     |
   switch value of (1/2 pi i) * integral of y^s/s :
        y = n/x < 1  (n below cutoff x)  ->  1   (term kept)
        y = n/x > 1  (n above cutoff x)  ->  0   (term dropped)
        y = 1        (n exactly at x)    ->  1/2 (half weight)

The table inside the diagram is the heart of the matter: the contour integral of outputs , , or depending on whether is below, at, or above . Setting turns this into the switch that keeps exactly the terms with .

Worked example Beginner

Take the simplest Dirichlet series, where , so is the Riemann zeta function. The running total up to a cutoff is just the count of integers from to . Let us check the switch directly with small numbers instead of integrating.

Step 1. The switching rule says: for a number bigger than the switch outputs , for smaller than it outputs , and at it outputs . Put the cutoff at .

Step 2. Test each integer by computing and reading the switch. For : , switch outputs . For : , outputs . For : , outputs . For : , outputs . For and beyond: , outputs .

Step 3. Add the kept terms: . The count of integers up to is indeed (namely ).

What this tells us: the steering factor , integrated along the vertical line, is exactly a device that keeps the terms with and discards the rest. The contour integral does the bookkeeping of a partial sum automatically.

Check your understanding Beginner

Formal definition Intermediate+

Let be a Dirichlet series with coefficients , absolutely convergent for (the abscissa of absolute convergence). Write throughout, and fix a real number . The notation denotes the partial sum in which the term (when is an integer) is counted with weight . [Montgomery-Vaughan §5.1]

Definition (Mellin transform). For a function that is locally integrable and suitably decaying, the Mellin transform is

defined on the vertical strip where the integral converges absolutely. The Mellin transform is the multiplicative analogue of the Fourier transform: the substitution converts it into the bilateral Laplace transform of , and hence into a Fourier transform after a further rotation. Its inversion theorem reads

at points of continuity of , for any inside the strip of convergence.

Definition (discontinuous integral). For , , define the principal-value vertical integral

The discontinuous-integral lemma states

The discontinuity across is the feature that makes the integral a switch.

Definition (Perron's formula). With and as above, and not necessarily an integer,

This is the (full) Perron formula: substituting and integrating term by term applies to each coefficient, selecting precisely those .

Counterexamples to common slips

  • The contour line must lie strictly to the right of . Choosing destroys the term-by-term interchange because the Dirichlet series no longer converges absolutely on the line of integration. The standard practice is , which keeps controlled while staying in the convergence region.
  • The principal value is essential. The integrand is not absolutely integrable on the vertical line — decays only like , and diverges. Convergence of holds only as a symmetric limit ; dropping the symmetry breaks it.
  • The boundary weight is , not or . When is an integer, the term contributes . Writing (full weight) instead of introduces an error of that matters in sharp asymptotic work.

Key theorem with proof Intermediate+

The signature result is the truncated Perron formula — the effective version that replaces the infinite contour by a finite segment of length and bounds the resulting error. This is the form used in every contour proof of the prime number theorem, because an infinite contour cannot be estimated, while a finite one can. [Davenport §11]

Theorem (truncated Perron formula). Let be absolutely convergent for . Let , , and . Then

where the error term satisfies

Proof. The proof rests on the truncated discontinuous-integral lemma: for , , , ,

where is for and for .

Establish this lemma first. Suppose . Consider the rectangle with vertical side closed to the left by a far vertical line with . The integrand has a single simple pole inside, at , with residue . By the residue theorem 21.03.01 the closed contour integral equals . The contributions of the two horizontal sides are bounded by integrating across ; since on these sides and converges for , each horizontal side contributes at most . The left side vanishes as because . Hence the vertical segment differs from by at most , and the cruder uniform bound holds by estimating the segment directly. Taking the smaller of the two bounds gives the stated .

For the same argument closes the rectangle to the right, where the integrand has no pole, so the residue is and the same horizontal-side estimates apply with in place of . This proves the truncated lemma.

Now apply it term by term. Because converges absolutely on the line , the series and the finite-length integral may be interchanged:

Replace each inner integral by plus its error, controlled by the truncated lemma with . The main terms sum to , which agrees with up to the half-weight boundary term absorbed into the convention. The accumulated error is bounded by , exactly .

Bridge. The truncated formula builds toward the contour proof of the prime number theorem, where this is exactly the step that converts into a contour integral of , and the asymptotic appears again in 21.03.01 as the residue of the pole at . The foundational reason the method works is that the discontinuous integral is a switch, and the central insight is that sliding the contour past a pole reads off a main term while the shifted line gives a small remainder — putting these together, the location of the zeros of controls the size of the error, which generalises to every -function whose logarithmic derivative one wishes to sum. The bridge is the Mellin transform: Perron's formula is Mellin inversion applied to the summatory function, and this is dual to the Dirichlet-series packaging that produced in the first place.

Exercises Intermediate+

Advanced results Master

Effective truncation with smoothing. The sharp error in the truncated formula can be reduced by integrating against a smooth weight rather than the hard cutoff. Replacing by for a Mellin pair with smooth and compactly supported produces a smoothed summatory function whose contour integral converges absolutely, so no principal value is needed and the error decays faster than any power of . The price is that one recovers rather than the sharp partial sum; the difference is controlled by the support width of . This smoothed Perron formula is the modern workhorse in sieve theory and in the study of moments of -functions [Tenenbaum §II.2].

The explicit formula as a Perron computation. Feeding into the full Perron formula and moving the contour leftward past the pole at and past every nontrivial zero of produces the Riemann-von Mangoldt explicit formula

valid for non-integer . Each term is a residue: is the residue at the pole of , the sum over collects residues at the zeros, and the final terms come from the pole at and the negative-even zeros [Titchmarsh §3]. The convergence of is conditional and must be read symmetrically in , the same principal-value structure inherited from the discontinuous integral.

Abscissa shifting and the zero-free region. The size of is governed by how far left the contour can be pushed without crossing a zero. If for , the contour can be moved to , on which . Balancing the truncation error against the shifted-line contribution and optimising yields the classical prime number theorem error . The entire mechanism is Perron's formula plus the residue theorem 21.03.01; the analytic input is the zero-free region.

Mellin-Barnes and the analytic continuation of integrals. The discontinuous integral is the simplest Mellin-Barnes integral. The general Mellin-Barnes representation writes a product of Gamma factors and evaluates it by residue summation, producing hypergeometric functions. Perron's formula is the degenerate case where the only Gamma factor is the pole at . This places Perron's formula inside the broader theory of Mellin-Barnes integrals that compute Feynman amplitudes and special-function identities.

Synthesis. The truncated Perron formula is the foundational reason analytic number theory can pass from a Dirichlet series back to its coefficients, and the central insight is that the discontinuous integral is a switch whose only singularity is the simple pole at . This is exactly the structure that generalises: each pole one crosses while sliding the contour contributes a residue, so the main term for is the residue at 's pole, the oscillating corrections are residues at the zeros, and putting these together yields the explicit formula. The bridge is Mellin inversion — Perron's formula is the inverse Mellin transform of — and the method is dual to the Dirichlet-series packaging that built . The same mechanism appears again in 21.03.01 through the zero-free region that bounds the error, and it generalises to every -function whose summatory coefficients one wishes to extract, making Perron's formula the universal engine that converts analytic facts about into arithmetic facts about .

Full proof set Master

Proposition (full discontinuous-integral lemma). For and ,

the integral understood as a symmetric principal value.

Proof. For write with . On a left-closing rectangle with corners and , the integrand has its unique pole at inside, with residue . By the residue theorem 06.01.03 the closed contour integral equals . On the horizontal sides , and , so each contributes as . On the left side , as , killing that contribution. Hence the vertical integral equals the residue, namely .

For , , so decays as ; close the rectangle to the right with corners , . No pole lies inside (the pole is to the left of ), so the closed integral is , and the same horizontal-side estimates with give the vertical integral the value .

For the integrand is . On the line , . Splitting the real and imaginary parts, the imaginary part is odd in and cancels, while the real part is as .

Proposition (term-by-term interchange is valid). If converges absolutely on , then for each fixed ,

Proof. On the compact segment , , the partial sums converge uniformly to because independently of . The factor is bounded on the segment (it is continuous on a compact set avoiding when ). Uniform convergence of the integrand on a finite-length contour permits interchange of the sum and the integral by the uniform-limit theorem for integrals.

Connections Master

  • Residue theorem 06.01.03. Perron's formula is evaluated by exactly the contour-closing argument the residue theorem provides: every value of the discontinuous integral is a residue at , and the prime number theorem main term is the residue at the pole of . The residue theorem is the computational engine that turns a vertical contour integral into a sum over poles.

  • Riemann zeta function 06.01.16. The zeta function is the model Dirichlet series to which Perron's formula is applied, and its Euler product, pole at , and zeros are exactly the analytic data that the contour shift converts into the asymptotics of . Perron's formula is the bridge that carries the analytic structure of over to the counting of integers and primes.

  • Riemann zeta function, number-theoretic anchor 21.03.01. The contour proof of the prime number theorem feeds into the truncated Perron formula; the zero-free region of established there is precisely the input that bounds the Perron error term and yields . The explicit formula is a Perron computation read as a sum of residues at the zeros.

Historical & philosophical context Master

Oskar Perron published the formula bearing his name in 1908 in Crelle's Journal [Perron 1908], in a paper on the general theory of Dirichlet series. The contour-integral idea was older: Riemann's 1859 memoir had already represented prime-counting functions by contour integrals of , and the formula is in this sense a precise and general statement of a method Riemann had used in a special case. Perron's contribution was to state the inversion as a theorem about an arbitrary Dirichlet series and to isolate the discontinuous integral as its analytic core. The systematic theory of the Mellin transform on which the inversion rests was developed by Hjalmar Mellin in the same period, culminating in his 1910 Mathematische Annalen synthesis [Mellin 1910], which placed the Gamma function, hypergeometric functions, and the inversion integral in a single framework.

The formula became the standard engine of multiplicative number theory through its treatment in Landau's 1909 Handbuch and, in the modern canon, in Davenport's Multiplicative Number Theory and Montgomery-Vaughan's text, where the truncated form with explicit error term is the version used to prove the prime number theorem with error. The discontinuous integral itself dates to Cahen's 1894 thesis on Dirichlet series; Cahen's evaluation contained a gap that Perron and later Landau repaired. The truncated form, with its error, is the practical instrument: an exact infinite contour integral admits no asymptotic estimate, while a finite segment of length can be balanced against the analytic continuation of the series past its abscissa of convergence.

Bibliography Master

@article{Perron1908,
  author = {Perron, Oskar},
  title = {Zur Theorie der Dirichletschen Reihen},
  journal = {Journal f\"ur die reine und angewandte Mathematik},
  volume = {134},
  year = {1908},
  pages = {95--143},
  note = {Original statement of Perron's formula for Dirichlet series}
}

@article{Mellin1910,
  author = {Mellin, Hjalmar},
  title = {Abriss einer einheitlichen Theorie der Gamma- und der hypergeometrischen Funktionen},
  journal = {Mathematische Annalen},
  volume = {68},
  year = {1910},
  pages = {305--337},
  note = {Systematic theory of the Mellin transform and its inversion}
}

@book{Davenport2000,
  author = {Davenport, Harold},
  title = {Multiplicative Number Theory},
  edition = {3},
  publisher = {Springer},
  series = {Graduate Texts in Mathematics},
  volume = {74},
  year = {2000},
  note = {Revised by H. L. Montgomery. \S11-12: Perron's formula and the contour proof of PNT}
}

@book{MontgomeryVaughan2007,
  author = {Montgomery, Hugh L. and Vaughan, Robert C.},
  title = {Multiplicative Number Theory I: Classical Theory},
  publisher = {Cambridge University Press},
  series = {Cambridge Studies in Advanced Mathematics},
  volume = {97},
  year = {2007},
  note = {\S5.1: Perron's formula, Mellin inversion, the discontinuous integral}
}

@book{Titchmarsh1986,
  author = {Titchmarsh, E. C.},
  title = {The Theory of the Riemann Zeta-Function},
  edition = {2},
  publisher = {Oxford University Press},
  year = {1986},
  note = {Revised by D. R. Heath-Brown. \S3: explicit formula, truncated Perron}
}

@book{Tenenbaum2015,
  author = {Tenenbaum, G\'erald},
  title = {Introduction to Analytic and Probabilistic Number Theory},
  edition = {3},
  publisher = {American Mathematical Society},
  series = {Graduate Studies in Mathematics},
  volume = {163},
  year = {2015},
  note = {\S II.2: Mellin transform, Perron's formula, effective truncation}
}