Notes on Complex Analysis
Export PDFGitHub

§12.3 Prime Number Theorem

12.3 Prime Number Theorem

Prime numbers have been a central object of study in number theory since antiquity. From the times of Euclid, it was known that there were infinitely many primes. The prime counting function 𝜋(𝑛) is defined to be the number of primes not exceeding 𝑛. The Prime Number Theorem states formally that:

Theorem 12.3.1.6 (Prime Number Theorem).

The prime counting function 𝜋(𝑥) is asymptotically equal to 𝑥log𝑥, i.e., lim𝑥→∞𝜋(𝑥)log𝑥𝑥=1.

This result was first conjectured by Gauss and Legendre in the late 18th century based on empirical evidence, while early results given by P. L. Chebyshev and J. J. Sylvester proved that the ratio log(𝑛)𝜋(𝑛)𝑛 is bounded between two positive constants for large 𝑛. The full asymtotic relation was finally proven independently by Hadamard and de la Vallée Poussin in 1896 using complex analysis and properties of the Riemann 𝜁-function.

The logarithmic integral function, defined by

Li(𝑥)=∫2𝑥d𝑡log𝑡

is of considerable interest as it much better approximates the prime counting function 𝜋(𝑥) than 𝑥log𝑥 does. It can be trivially shown that Li(𝑥)∼𝑥log𝑥 by the realization that

Li(𝑥)=𝑡log𝑡|2𝑥+∫2𝑥d𝑡log2𝑡=𝑥log𝑥+∫2𝑥d𝑡log2𝑡+𝒪︀(1)=𝑥log𝑥+𝑥log2𝑥+2𝑥log3𝑥+6𝑥log4𝑥+⋯+𝒪︀(1)=𝑥log𝑥+ℴ︀(𝑥log2𝑥).

We have previously seen how the Riemann 𝜁-function could be used to determine properties of the distribution of primes. The proof of the Prime Number Theorem depends on a more subtle connection between 𝜁 and 𝜋. The most efficient way to construct such a connection has been the subject of much experimentation. The proof we proceed to provide may seem arbitrary, we provide this connection via auxiliary functions. But a look into history reveals the many failed experiments and attempts that ultimately led to the simplicity of the proof presented below.

Define the first and second Chebyshev functions 𝜗(𝑥),𝜓(𝑥) by

𝜗(𝑥)=∑𝑝≤𝑥𝑝primelog𝑝,𝜓(𝑥)=∑𝑛≤𝑥Λ(𝑛)=∑(𝑝,𝑘):𝑝𝑘≤𝑥𝑝primelog𝑝.

We hence derive that

𝜓(𝑥)=∑𝑘=1∞∑𝑝𝑘≤𝑥𝑝primelog𝑝=∑𝑘=1∞∑𝑝≤𝑥𝑘𝑝primelog𝑝=∑𝑘=1∞𝜗(𝑥1𝑘)≥𝜗(𝑥).

Grouping by primes, we see that this is in fact equivalent to

𝜓(𝑥)=∑𝑝≤𝑥𝑝prime∑𝑘:𝑝𝑘≤𝑥𝑘∈ℕlog𝑝=∑𝑝≤𝑥𝑝prime∑∀𝑘≤log𝑝𝑥log𝑝=∑𝑝≤𝑥𝑝prime∑𝑘=1⌊log𝑥log𝑝⌋log𝑝=∑𝑝≤𝑥𝑝prime⌊log𝑥log𝑝⌋log𝑝≤∑𝑝≤𝑥𝑝primelog𝑥.(12.3.1)

Hence we have for any 𝑥>1,

0≤𝜗(𝑥)≤𝜓(𝑥)≤𝜋(𝑥)log𝑥.(12.3.2)

Theorem 12.3.1.

We have the following limit equivalences:

lim sup𝑥→∞𝜋(𝑥)log𝑥𝑥=lim sup𝑥→∞𝜓(𝑥)𝑥=lim sup𝑥→∞𝜗(𝑥)𝑥(12.3.3)

and

lim inf𝑥→∞𝜋(𝑥)log𝑥𝑥=lim inf𝑥→∞𝜓(𝑥)𝑥=lim inf𝑥→∞𝜗(𝑥)𝑥.(12.3.4)
Proof.

Let 0<𝛼<1 be arbitrary and suppose 𝑥>1. By definition, we have

𝜗(𝑥)=∑𝑝≤𝑥𝑝primelog𝑝=∑𝑝≤𝑥𝛼𝑝primelog𝑝+∑𝑥𝛼<𝑝≤𝑥𝑝primelog𝑝≥∑𝑥𝛼<𝑝≤𝑥𝑝primelog𝑝=log(𝑥𝛼)∑𝑥𝛼<𝑝≤𝑥𝑝primelog𝑝log(𝑥𝛼)>log(𝑥𝛼)∑𝑥𝛼<𝑝≤𝑥𝑝prime1=𝛼log𝑥(𝜋(𝑥)−𝜋(𝑥𝛼))≥𝛼log𝑥(𝜋(𝑥)−𝑥𝛼).

Hence we have that

𝛼𝜋(𝑥)log𝑥𝑥−𝛼𝑥𝛼−1log𝑥<𝜗(𝑥)𝑥≤𝜓(𝑥)𝑥≤𝜋(𝑥)log𝑥𝑥(12.3.5)

by virtue of (12.3.2)(12.3.2)(12.3.2). Letting 𝑥→∞ and taking the limit supremum yields

𝛼lim sup𝑥→∞(𝜋(𝑥)log𝑥𝑥−𝑥𝛼−1log𝑥)=𝛼lim sup𝑥→∞𝜋(𝑥)log𝑥𝑥≤lim sup𝑥→∞𝜗(𝑥)𝑥≤lim sup𝑥→∞𝜓(𝑥)𝑥≤lim sup𝑥→∞𝜋(𝑥)log𝑥𝑥.
Letting 𝛼→1− yields (12.3.3)(12.3.3)(12.3.3). The proof of (12.3.4)(12.3.4)(12.3.4) follows similarly by taking limit infimums in (12.3.5)(12.3.5)(12.3.5) and 𝛼→1−. ⁠□

Theorem 12.3.2.

The Laplace transform of 𝜓∘exp defined as

𝑓(𝑠)=∫0∞𝜓(e𝑡)e−𝑠𝑡d𝑡(12.3.6)

converges for ℜ𝔢𝑠>1 and defines a holomorphic function on this domain. Moreover, the function 𝑔 defined by

𝑔(𝑡)=lim𝜎→1+[𝑓(𝑠)−1𝑠−1],𝑠=𝜎+i𝑡
converges uniformly with respect to 𝑡 on compact subsets of ℝ and is continuous thereon.
Proof.

Let 𝑢=e𝑡, d𝑢=e𝑡d𝑡. Then we obtain

𝑓(𝑠)=∫1∞𝜓(𝑢)𝑢−𝑠−1d𝑢=∑𝑛=1∞∫𝑛𝑛+1𝜓(𝑢)𝑢−𝑠−1d𝑢=∑𝑛=1∞𝜓(𝑛)∫𝑛𝑛+1𝑢−𝑠−1d𝑢=∑𝑛=1∞∑𝑚=1𝑛Λ(𝑚)𝑢−𝑠−𝑠|𝑛𝑛+1=1𝑠∑𝑛=1∞∑𝑚=1𝑛Λ(𝑚)[𝑛−𝑠−(𝑛+1)−𝑠]=1𝑠∑𝑚=1∞Λ(𝑚)∑𝑛=𝑚∞[𝑛−𝑠−(𝑛+1)−𝑠]=1𝑠∑𝑚=1∞Λ(𝑚)𝑚−𝑠=1𝑠∑𝑛=1∞Λ(𝑛)𝑛𝑠.

by absolute convergence and the fact that the inner summation “telescopes.” By Proposition 12.2.9Proposition 12.2.9Proposition 12.2.9, we have that for ℜ𝔢𝑠>1,

𝑓(𝑠)=−1𝑠𝜁′(𝑠)𝜁(𝑠)⟹𝑓(𝑠)−1𝑠−1=−1𝑠(𝜁′(𝑠)𝜁(𝑠)+1𝑠−1)−1𝑠.(12.3.7)

The expression 𝜁′(𝑠)𝜁(𝑠)+1𝑠−1 is meromorphic in ℂ. Because 𝜁(𝑠) has a simple pole at 𝑠=1 with residue 1, it follows that

𝜁(𝑠)=1𝑠−1+𝑙(𝑠)

for some entire function 𝑙:ℂ→ℂ. By Proposition 12.2.6Proposition 12.2.6Proposition 12.2.6 and Theorem 12.2.11Theorem 12.2.11Theorem 12.2.11, the quantity 𝜁(𝑠)(𝑠−1)=1+(𝑠−1)𝑙(𝑠) does not vanish for ℜ𝔢𝑠≥1 (at 𝑠=1, the simple pole 𝜁 cancels with the simple zero of 𝑠−1). Hence,

𝜁′(𝑠)𝜁(𝑠)+1𝑠−1=𝜁′(𝑠)(𝑠−1)+𝜁(𝑠)𝜁(𝑠)(𝑠−1)=dd𝑠(𝜁(𝑠)(𝑠−1))1+(𝑠−1)𝑙(𝑠)=𝑙′(𝑠)(𝑠−1)+𝑙(𝑠)1+(𝑠−1)𝑙(𝑠)

and the displayed expression define holomorphic functions on ℜ𝔢𝑠≥1 (observe that the numerator is entire).

For a compact subset 𝐼⊂ℝ, the complex rectangle 𝐾={𝑥+i𝑦:1≤𝑥≤2,𝑦∈𝐼} is compact in ℂ. Thus, by uniform continuity (given by Theorem 1.2.26Theorem 1.2.26Theorem 1.2.26), ∀𝜀>0, ∃𝛿>0 such that ∀𝑠1=𝜎1+i𝑡1∈𝐾,∀𝑠2=𝜎2+i𝑡2∈𝐾:|𝑠1−𝑠2|<𝛿,

|𝑓(𝑠1)−1𝑠1−1−𝑓(𝑠2)+1𝑠2−1|<𝜀.

In particular, for 𝜎1=1 such that 𝑡2=𝑡1 (=𝑡), we have

𝑠=𝜎+i𝑡∈𝐾:|𝜎−1|<𝛿⟹|𝑓(1+i𝑡)−1i𝑡−𝑓(𝑠)+1𝑠−1|<𝜀,

where 𝛿 is chosen independently of 𝑡. Therefore, 𝑔(𝑡) converges uniformly on compact subsets of ℝ and is continuous thereon. ⁠□