The Prime Number Theorem via Contour Integration
Anchor (Master): Davenport 2000 *Multiplicative Number Theory* 3e §17-18 (the full PNT contour proof with error term); Montgomery-Vaughan 2007 *Multiplicative Number Theory I* (Cambridge UP) §6.2-6.3 (zero-free region, $\psi(x)=x+O(x\exp(-c\sqrt{\log x}))$); Newman 1980 *Amer. Math. Monthly* 87 (the short Tauberian proof); Korevaar 1982 *Math. Intelligencer* 4 (Newman's method); de la Vallée Poussin 1896; Hadamard 1896
Intuition Beginner
The prime number theorem is the statement that primes thin out at a predictable rate: up to a large number , the count of primes is about divided by the natural logarithm of . The cleaner way to say it weights each prime power by the logarithm of its base prime and adds the weights up to , giving the running total of the previous unit. The theorem then reads is about . The whole task of this unit is to prove that one short sentence.
The proof is a piece of detective work in the complex plane. The previous unit handed us a magic function, the logarithmic derivative of the zeta function, whose hidden numbers are exactly the prime-power weights. Perron's formula from the other prerequisite turned the running total into an integral of that magic function along a vertical line. So the entire question becomes: what is the value of one specific integral? We answer it by sliding the line of integration to the left and watching what we sweep past.
The one thing we sweep past is a single spike, a pole, sitting at the point on the real axis. That spike contributes exactly . Everything else — the wandering of the line after the slide — turns out to be small, provided the zeta function never equals zero right on the vertical line through . That no-zeros-on-the-line fact is the heart of the matter, and there is a beautiful one-line trigonometric reason for it.
Visual Beginner
Picture the complex plane with a tall vertical line drawn just to the right of the point . The integral that computes runs up this line. Now imagine grabbing the line and dragging it leftward, past the point . As it crosses it catches a single spike — the pole — and that catch is worth exactly . The dragged line, now sitting to the left of , contributes only a small leftover.
imaginary
axis
^
| original line shifted line
| Re(s) = 1 + small Re(s) = 1 - c/log T
| : |
| : <-- drag left --> |
----+--------X----------------------|----> real axis
| pole at |
| s = 1 (residue = x) |
| : |
| shaded band: no zeros of zeta here| (approx.) | (true count) | ||
|---|---|---|---|
The middle column tracks the raw prime count ; the right column is the true count . Their ratio creeps toward one, the numerical shadow of the theorem.
Worked example Beginner
Let us see, with arithmetic instead of integration, why one single point on the line being zero-free is what the whole proof needs. The explicit formula from the previous unit says the running total splits as a main piece plus a wave for each zero of zeta: $$ \psi(x) = x - (\text{a wave from each zero } \rho) - (\text{small constants}). $$
Step 1. Measure the size of one wave. A zero sitting at the complex point produces a wave whose height is raised to the real part of , divided by the size of . So the real part of is the exponent that controls everything.
Step 2. Suppose a zero sat exactly on the line, with real part equal to . Then its wave has height raised to the power , that is, height proportional to itself — the same size as the main term. The running total would wobble by a fixed fraction of forever, and would never settle to .
Step 3. Now suppose every zero has real part strictly below , say at most for some gap . Then each wave has height at most raised to , which is divided by . Since grows without bound, each wave is tiny compared to the main term .
What this tells us: pushing the zeros even a hair off the line shrinks every wave below the main term, so is forced to track . The proof is the job of producing that hair-width gap.
Check your understanding Beginner
Formal definition Intermediate+
Throughout, with real, is the natural logarithm, is the Riemann zeta function of 06.01.16 with its Euler product for , and is the Chebyshev function of 21.12.01, with the von Mangoldt function. We follow Davenport [Davenport §17].
Definition (the two equivalent forms of the PNT). The prime number theorem is either of the asymptotic statements $$ \psi(x) \sim x \qquad (x \to \infty), \qquad\qquad \pi(x) \sim \frac{x}{\log x} \qquad (x \to \infty), $$ where counts primes. The two are equivalent (proved below by partial summation), and a third equivalent form replaces by the logarithmic integral , which is asymptotically larger and gives a better error term.
Definition (zero-free region). A zero-free region for is an open set on which . The classical (de la Vallée Poussin) region is
$$
\mathcal{R}_c = \Big{ s = \sigma + it : \sigma > 1 - \frac{c}{\log(|t| + 2)} \Big}
$$
for an absolute constant ; its left boundary hugs the line , narrowing as . The boundary case — the non-vanishing for all real — is established in 06.01.16 and is the qualitative core; the quantitative width is what converts into a power-saving error term.
Definition (the basic trigonometric inequality). The non-vanishing on the line rests on the elementary inequality $$ 3 + 4\cos\theta + \cos 2\theta = 2(1 + \cos\theta)^2 \ge 0 \qquad (\theta \in \mathbb{R}). $$ Applied with across the Euler product, it forces away from zero near .
The symbols , , , , the critical zeros , , and the region are recorded in _meta/NOTATION.md. A critical zero of is a zero with ; the elementary zeros are the points from the functional equation of 06.01.16.
Counterexamples to common slips
- "The pole at being caught is the whole proof." Catching the residue is only the main term. The proof is not finished until the four contour segments — the shifted vertical line and the two horizontal connectors and the truncation error — are each bounded below . Without the zero-free region those bounds are unavailable.
- " alone gives the error term." Mere non-vanishing on the line gives the qualitative (the Newman-Wiener-Ikehara route). The power-saving error needs the quantitative width , because the contour can be shifted left only as far as the region permits.
- " and say the same thing with the same accuracy." They are equivalent as leading-order asymptotics, but is the true secondary approximation: , and the contour proof naturally produces , not , in the error term.
Key theorem with proof Intermediate+
The signature result is the non-vanishing of on the line , sharpened to the classical zero-free region. This is the analytic fact that, fed into the Perron contour, yields the prime number theorem. The argument is the device of 06.01.16, here carried into a quantitative width. [Davenport §18]
Theorem (de la Vallée Poussin zero-free region). There is an absolute constant such that whenever . In particular for all real .
Proof. For , the logarithm of the Euler product gives $$ \log|\zeta(\sigma + it)| = \operatorname{Re}\log\zeta(\sigma + it) = \sum_p \sum_{m=1}^{\infty} \frac{\cos(t m \log p)}{m, p^{m\sigma}}. $$ Form the combination . Term by term its summand is $$ \frac{1}{m, p^{m\sigma}}\big(3 + 4\cos(t m \log p) + \cos(2 t m \log p)\big) = \frac{2(1 + \cos(t m \log p))^2}{m, p^{m\sigma}} \ge 0, $$ using the identity . Summing over gives the key inequality $$ 3\log\zeta(\sigma) + 4\log|\zeta(\sigma + it)| + \log|\zeta(\sigma + 2it)| \ge 0, \quad\text{i.e.}\quad \zeta(\sigma)^3, |\zeta(\sigma + it)|^4, |\zeta(\sigma + 2it)| \ge 1. \tag{} $$
Suppose, for contradiction, that with close to and fixed, . As : the pole of at gives ; the assumed zero gives (the function vanishes at , so it is as ); and is bounded near , so . Insert these into with : $$ 1 \le \zeta(\sigma)^3 |\zeta(\sigma + i\gamma)|^4 |\zeta(\sigma + 2i\gamma)| \le \frac{C^3}{(\sigma - 1)^3},(C')^4(\sigma - \beta)^4, C''\log(|\gamma| + 2). $$ Write with ; then . The right side behaves like a constant times . Minimising over (the minimum is near ) forces $$ 1 \lesssim \log(|\gamma| + 2),(1 - \beta), \qquad\text{hence}\qquad 1 - \beta \gtrsim \frac{1}{\log(|\gamma| + 2)}. $$ Thus any zero satisfies for an absolute : no zero lies in . Taking arbitrary and also rules out , giving .
Bridge. This zero-free region builds toward the contour proof of the prime number theorem: feeding into the truncated Perron formula of 21.11.04 and shifting the line left to the boundary of is exactly the step where the residue at supplies the main term , and the asymptotic appears again in 21.12.01 as the leading term of the explicit formula. The foundational reason the inequality matters is that the pole of at is so strong it cannot tolerate a nearby zero — this is exactly the mechanism by which an analytic feature of one function controls the distribution of primes, and putting these together with the contour shift generalises Chebyshev's of the prerequisite chain into the sharp . The central insight is that the width of the region is dual to the size of the error: the bridge is the optimisation of the contour position against the truncation height .
Exercises Intermediate+
Advanced results Master
Theorem 1 (PNT with the de la Vallée Poussin error). Combining the truncated Perron formula of 21.11.04 for with the zero-free region and the bound on its boundary, the contour shift past yields [Davenport §18]
$$
\psi(x) = x + O!\big(x\exp(-c'\sqrt{\log x})\big), \qquad \pi(x) = \operatorname{Li}(x) + O!\big(x\exp(-c'\sqrt{\log x})\big),
$$
the second following by partial summation against . The error is super-polynomially small in but weaker than any power of , a direct image of the logarithmic narrowing of .
Theorem 2 (Newman's Tauberian proof). Granting only on the line [Newman 1980], the function satisfies that extends holomorphically across , and Newman's analytic lemma — a single contour integral over a finite circular arc with a convergence-forcing kernel — converts this into the convergence of . Monotonicity of then forces , hence the PNT. This proof uses no zero-free region and no explicit formula; it produces no error term, trading quantitative strength for brevity [Korevaar 1982].
Theorem 3 (equivalence of the PNT forms). The statements , , , and are mutually equivalent; links the first two, and Abel summation against links to . The error terms are not equivalent: the Perron contour produces , and only — not — carries the genuine de la Vallée Poussin error without losing a factor .
Theorem 4 (the Wiener-Ikehara theorem). The Tauberian content of Theorem 2 is the Wiener-Ikehara theorem: if has non-negative coefficients, converges for , and extends continuously to , then [Korevaar 1982]. Applied to with it gives . Wiener-Ikehara is the abstract statement that boundary non-vanishing alone — without any region of width — already pins the leading asymptotic.
Theorem 5 (error term and the Riemann hypothesis). The exponent is an artefact of the logarithmic region. A zero-free region of the Vinogradov-Korobov shape improves the error to [Montgomery-Vaughan §6.3]; the Riemann hypothesis collapses it to , the best possible, equivalent to .
Synthesis. The prime number theorem is the foundational reason analytic number theory exists as a discipline: it is the first deep arithmetic fact extracted from a single contour integral, and the central insight is that one pole of at supplies the main term while the zeros supply only correction waves. This is exactly the bridge from the elementary of the Chebyshev chain to the analytic : where the elementary theory squeezed between constant multiples of , the contour reads the residue at and pins the constant to , and putting these together with the inequality — which forbids a zero on — converts the qualitative squeeze into the quantitative error . The central insight recurs in the duality between region and error: the width of the zero-free region is dual to the size of the remainder, and this is exactly the same duality the Riemann hypothesis sharpens to . The Newman-Tauberian proof generalises the same boundary non-vanishing into the Wiener-Ikehara theorem, showing that the leading asymptotic needs only the line , while the contour proof needs the region; the bridge between them is that both read the pole at as the source of , and the modern theory of -functions is the systematic repetition of this single contour computation for every Dirichlet series whose primes one wishes to count.
Full proof set Master
Proposition 1 (the key inequality ). For and real , .
Proof. For , , the real part of the absolutely convergent . Then $$ 3\log\zeta(\sigma) + 4\log|\zeta(\sigma + it)| + \log|\zeta(\sigma + 2it)| = \sum_{p}\sum_{m \ge 1}\frac{3 + 4\cos(\theta) + \cos(2\theta)}{m p^{m\sigma}}, \quad \theta = t m\log p. $$ Each numerator is , so the whole sum is . Exponentiating gives .
Proposition 2 (non-vanishing on the line). for every real .
Proof. Suppose , . As : , so ; the zero gives , so ; and since . The product is , contradicting Proposition 1's lower bound . Hence no zero on the line away from , and the pole at is not a zero.
Proposition 3 (quantitative width). There is with for .
Proof. Let be a zero with fixed, . Using , (the zero contributes to the real part of the logarithmic derivative), and , the logarithmic-derivative form of , $$ 3\operatorname{Re}\frac{\zeta'}{\zeta}(\sigma) + 4\operatorname{Re}\frac{\zeta'}{\zeta}(\sigma + i\gamma) + \operatorname{Re}\frac{\zeta'}{\zeta}(\sigma + 2i\gamma) \le 0 $$ (the sign-flipped for , whose coefficients are ) gives $$ \frac{4}{\sigma - \beta} \le \frac{3}{\sigma - 1} + A'\log(|\gamma| + 2). $$ Put , for a small constant . Then , and solving for shows a positive multiple of , whence for absolute .
Proposition 4 (equivalence ). The two asymptotics are equivalent.
Proof. As in Exercise 3: , so . Abel summation gives and . With the crude Chebyshev bounds the integrals are relative to the main terms, so .
Proposition 5 (Newman's analytic lemma). Let be bounded and locally integrable, and let for . If extends holomorphically to an open set containing , then converges and equals .
Proof. For and a contour = the boundary of (the chosen so is holomorphic there), set , entire. By Cauchy, $$ g(0) - g_T(0) = \frac{1}{2\pi i}\int_\Gamma (g(z) - g_T(z)),e^{zT}\Big(\frac1z + \frac{z}{R^2}\Big),dz. $$ On the right semicircle , the integrand is after using and the kernel bound ; this contributes . On the left part, is entire so its integral is bounded by by the same kernel, while the -piece as for fixed by holomorphy and dominated decay. Letting then , .
Connections Master
The truncated Perron formula and the discontinuous-integral switch are imported wholesale from
21.11.04; this unit is the application that the Perron machinery was built for, feeding into the contour and shifting the line past , so the abstract inversion theorem of that unit becomes the concrete asymptotic here.The von Mangoldt identity , the residue at , and the explicit formula are exactly those of
21.12.01; this unit supplies the analytic input — the zero-free region — that bounds the zero-sum in that explicit formula and turns it into a theorem with an error term.The analytic continuation, functional equation, simple pole at , and the non-vanishing via are the facts about established in
06.01.16; the contour proof reads the pole there as the main term and the line non-vanishing as the guarantee that the shifted contour stays in a zero-free strip.The two-track strategy — a contour proof with error term and a Tauberian proof without — connects to the general Tauberian theory whose Riemann zeta instance is
21.03.01; the Wiener-Ikehara theorem is the abstract version of the boundary-non-vanishing argument and recurs for every -function in21.03.02.
Historical & philosophical context Master
The prime number theorem was conjectured in the form by Legendre and, more precisely as , by Gauss in the 1790s from extensive tables. Riemann's 1859 memoir laid the analytic programme — the continuation of , the product over the zeros, the contour representation of the prime count — but did not prove the theorem; the missing analytic estimates, above all the non-vanishing of on the line , were supplied independently in 1896 by Jacques Hadamard [Hadamard 1896] and Charles-Jean de la Vallée Poussin [de la Vallée Poussin 1896]. Hadamard's route went through his theory of entire functions of finite order applied to ; de la Vallée Poussin's went through the explicit region and produced the first error term, the that still bears his name. The device that makes the non-vanishing elementary is due to Franz Mertens (1898), simplifying both original arguments.
For most of a century the proof was held to require complex analysis essentially; Atle Selberg and Paul Erdős found an elementary (real-variable) proof in 1949, which sharpened the sense of what the zeros contribute without displacing the analytic method as the source of error terms. The modern short proof is Donald Newman's 1980 contour argument [Newman 1980], which replaces the zero-free region and the explicit formula by a single application of an analytic lemma to , exposited and extended by Jacob Korevaar [Korevaar 1982] into the Wiener-Ikehara circle. Davenport's Multiplicative Number Theory and Montgomery-Vaughan's text are the canonical modern treatments of the contour proof with error.
Bibliography Master
@article{hadamard1896,
author = {Hadamard, Jacques},
title = {Sur la distribution des z\'{e}ros de la fonction $\zeta(s)$ et ses cons\'{e}quences arithm\'{e}tiques},
journal = {Bulletin de la Soci\'{e}t\'{e} Math\'{e}matique de France},
volume = {24},
pages = {199--220},
year = {1896}
}
@article{valleepoussin1896,
author = {de la Vall\'{e}e Poussin, Charles-Jean},
title = {Recherches analytiques sur la th\'{e}orie des nombres premiers},
journal = {Annales de la Soci\'{e}t\'{e} scientifique de Bruxelles},
volume = {20},
pages = {183--256, 281--397},
year = {1896}
}
@article{newman1980,
author = {Newman, Donald J.},
title = {Simple analytic proof of the prime number theorem},
journal = {American Mathematical Monthly},
volume = {87},
number = {9},
pages = {693--696},
year = {1980}
}
@article{korevaar1982,
author = {Korevaar, Jacob},
title = {On Newman's quick way to the prime number theorem},
journal = {The Mathematical Intelligencer},
volume = {4},
number = {3},
pages = {108--115},
year = {1982}
}
@book{davenport2000,
author = {Davenport, Harold},
title = {Multiplicative Number Theory},
edition = {3},
series = {Graduate Texts in Mathematics},
volume = {74},
publisher = {Springer-Verlag},
year = {2000},
note = {Revised by H. L. Montgomery; \S17--18: the contour proof of the PNT with error}
}
@book{montgomeryvaughan2007,
author = {Montgomery, Hugh L. and Vaughan, Robert C.},
title = {Multiplicative Number Theory I: Classical Theory},
series = {Cambridge Studies in Advanced Mathematics},
volume = {97},
publisher = {Cambridge University Press},
year = {2007},
note = {\S6.2--6.3: zero-free region and the de la Vall\'{e}e Poussin error}
}