Riemann 1859

Monatsberichte der Berliner Akademie · November 1859

On the Number of Prime Numbers less than a Given Quantity.

(Ueber die Anzahl der Primzahlen unter einer gegebenen Grösse.)

Bernhard Riemann

Translated by David R. Wilkins·Preliminary Version: December 1998

About this edition. Riemann’s memoir is one continuous text. The section headings (§1–§15), the equation numbers (1)–(48), the page markers (p. 1–9) and the shaded notes are editorial additions, so that every part can be linked to. Everything else follows Wilkins’s translation, including Riemann’s notation.

Riemann’s notation
  • Π(s)\Pi(s) is Gauss’s factorial function: Π(s)=Γ(s+1)\Pi(s)=\Gamma(s+1), so Π(s−1)=Γ(s)\Pi(s-1)=\Gamma(s).
  • tt, nn, ss, ααtt,\ nn,\ ss,\ \alpha\alpha mean t2, n2, s2, α2t^2,\ n^2,\ s^2,\ \alpha^2.
  • log⁡\log is the natural logarithm and Li(x)\mathit{Li}(x) is the logarithmic integral.
  • ∑α\sum^{\alpha} denotes a sum over the roots α\alpha of ξ(α)=0\xi(\alpha)=0.
  • Riemann’s ξ(t)\xi(t) is a function of tt, where s=12+tis=\tfrac12+ti. Real roots tt correspond to zeros of ζ(s)\zeta(s) on the line Re⁡s=12\operatorname{Re}s=\tfrac12.
  • “Jacobi, Fund. S. 184” refers to page 184 of Jacobi’s Fundamenta Nova Theoriae Functionum Ellipticarum (1829).

§1 Introduction

p. 1

I believe that I can best convey my thanks for the honour which the Academy has to some degree conferred on me, through my admission as one of its correspondents, if I speedily make use of the permission thereby received to communicate an investigation into the accumulation of the prime numbers; a topic which perhaps seems not wholly unworthy of such a communication, given the interest which Gauss and Dirichlet have themselves shown in it over a lengthy period.

§2 Euler’s product and the function ζ(s)

For this investigation my point of departure is provided by the observation of Euler that the product

∏11−1ps=∑1ns,\prod \frac{1}{1-\dfrac{1}{p^s}} = \sum \frac{1}{n^s},
(1)

if one substitutes for pp all prime numbers, and for nn all whole numbers. The function of the complex variable ss which is represented by these two expressions, wherever they converge, I denote by ζ(s)\zeta(s). Both expressions converge only when the real part of ss is greater than 1; at the same time an expression for the function can easily be found which always remains valid. On making use of the equation

∫0∞e−nxxs−1 dx=Π(s−1)ns\int\limits_0^\infty e^{-nx}x^{s-1}\,dx = \frac{\Pi(s-1)}{n^s}
(2)
p. 2

one first sees that

Π(s−1)ζ(s)=∫0∞xs−1 dxex−1.\Pi(s-1)\zeta(s) = \int\limits_0^\infty \frac{x^{s-1}\,dx}{e^x-1}.
(3)

§3 Analytic continuation by a contour integral

If one now considers the integral

∫(−x)s−1 dxex−1\int \frac{(-x)^{s-1}\,dx}{e^x-1}
(4)

from +∞+\infty to +∞+\infty taken in a positive sense around a domain which includes the value 0 but no other point of discontinuity of the integrand in its interior, then this is easily seen to be equal to

(e−πsi−eπsi)∫0∞xs−1 dxex−1,\left(e^{-\pi si}-e^{\pi si}\right)\int\limits_0^\infty \frac{x^{s-1}\,dx}{e^x-1},
(5)

provided that, in the many-valued function (−x)s−1=e(s−1)log⁡(−x)(-x)^{s-1}=e^{(s-1)\log(-x)}, the logarithm of −x-x is determined so as to be real when xx is negative. Hence

2sin⁡πs Π(s−1)ζ(s)=i∫∞∞(−x)s−1 dxex−1,2\sin\pi s\,\Pi(s-1)\zeta(s) = i\int\limits_\infty^\infty \frac{(-x)^{s-1}\,dx}{e^x-1},
(6)

where the integral has the meaning just specified.

This equation now gives the value of the function ζ(s)\zeta(s) for all complex numbers ss and shows that this function is one-valued and finite for all finite values of ss with the exception of 1, and also that it is zero if ss is equal to a negative even integer.

§4 The functional equation

If the real part of ss is negative, then, instead of being taken in a positive sense around the specified domain, this integral can also be taken in a negative sense around that domain containing all the remaining complex quantities, since the integral taken though values of infinitely large modulus is then infinitely small. However, in the interior of this domain, the integrand has discontinuities only where xx becomes equal to a whole multiple of ±2πi\pm 2\pi i, and the integral is thus equal to the sum of the integrals taken in a negative sense around these values. But the integral around the value n2πin2\pi i is =(−n2πi)s−1(−2πi)=(-n2\pi i)^{s-1}(-2\pi i), one obtains from this

2sin⁡πs Π(s−1)ζ(s)=(2π)s∑ns−1((−i)s−1+is−1),2\sin\pi s\,\Pi(s-1)\zeta(s) = (2\pi)^s\sum n^{s-1}\left((-i)^{s-1}+i^{s-1}\right),
(7)

thus a relation between ζ(s)\zeta(s) and ζ(1−s)\zeta(1-s), which, through the use of known properties of the function Π\Pi, may be expressed as follows:

Π(s2−1)π−s2ζ(s)\Pi\left(\frac{s}{2}-1\right)\pi^{-\frac{s}{2}}\zeta(s)
(8)
p. 3

remains unchanged when ss is replaced by 1−s1-s.

§5 An integral representation via the theta function

This property of the function induced me to introduce, in place of Π(s−1)\Pi(s-1), the integral Π(s2−1)\Pi\left(\frac{s}{2}-1\right) into the general term of the series ∑1ns\sum\frac{1}{n^s}, whereby one obtains a very convenient expression for the function ζ(s)\zeta(s). In fact

1nsΠ(s2−1)π−s2=∫0∞e−nnπxxs2−1 dx,\frac{1}{n^s}\Pi\left(\frac{s}{2}-1\right)\pi^{-\frac{s}{2}} = \int\limits_0^\infty e^{-nn\pi x}x^{\frac{s}{2}-1}\,dx,
(9)

thus, if one sets

∑1∞e−nnπx=ψ(x)\sum_1^\infty e^{-nn\pi x} = \psi(x)
(10)

then

Π(s2−1)π−s2ζ(s)=∫0∞ψ(x)xs2−1 dx,\Pi\left(\frac{s}{2}-1\right)\pi^{-\frac{s}{2}}\zeta(s) = \int\limits_0^\infty \psi(x)x^{\frac{s}{2}-1}\,dx,
(11)

or since

2ψ(x)+1=x−12(2ψ(1x)+1),(Jacobi, Fund. S. 184)2\psi(x)+1 = x^{-\frac12}\left(2\psi\left(\frac1x\right)+1\right), \quad \text{(Jacobi, Fund. S. 184)}
(12)
Π(s2−1)π−s2ζ(s)=∫1∞ψ(x)xs2−1 dx+∫1∞ψ(1x)xs−32 dx+12∫01(xs−32−xs2−1)dx=1s(s−1)+∫1∞ψ(x)(xs2−1+x−1+s2)dx.\begin{aligned} \Pi\left(\frac{s}{2}-1\right)\pi^{-\frac{s}{2}}\zeta(s) &= \int\limits_1^\infty \psi(x)x^{\frac{s}{2}-1}\,dx + \int\limits_1^\infty \psi\left(\frac1x\right)x^{\frac{s-3}{2}}\,dx \\ &\qquad + \tfrac12\int\limits_0^1\left(x^{\frac{s-3}{2}}-x^{\frac{s}{2}-1}\right)dx \\ &= \frac{1}{s(s-1)} + \int\limits_1^\infty \psi(x)\left(x^{\frac{s}{2}-1}+x^{-\frac{1+s}{2}}\right)dx. \end{aligned}
(13)

§6 The function ξ(t)

I now set s=12+tis=\tfrac12+ti and

Π(s2)(s−1)π−s2ζ(s)=ξ(t),\Pi\left(\frac{s}{2}\right)(s-1)\pi^{-\frac{s}{2}}\zeta(s) = \xi(t),
(14)

so that

ξ(t)=12−(tt+14)∫1∞ψ(x)x−34cos⁡(12tlog⁡x)dx\xi(t) = \tfrac12 - \left(tt+\tfrac14\right)\int\limits_1^\infty \psi(x)x^{-\frac34}\cos\left(\tfrac12 t\log x\right)dx
(15)

or, in addition,

ξ(t)=4∫1∞d(x32ψ′(x))dx x−14cos⁡(12tlog⁡x)dx.\xi(t) = 4\int\limits_1^\infty \frac{d\left(x^{\frac32}\psi'(x)\right)}{dx}\,x^{-\frac14}\cos\left(\tfrac12 t\log x\right)dx.
(16)

§7 The roots of ξ(t)

p. 4

This function is finite for all finite values of tt, and allows itself to be developed in powers of tttt as a very rapidly converging series. Since, for a value of ss whose real part is greater than 1, log⁡ζ(s)=−∑log⁡(1−p−s)\log\zeta(s) = -\sum\log\left(1-p^{-s}\right) remains finite, and since the same holds for the logarithms of the other factors of ξ(t)\xi(t), it follows that the function ξ(t)\xi(t) can only vanish if the imaginary part of tt lies between 12i\tfrac12 i and −12i-\tfrac12 i. The number of roots of ξ(t)=0\xi(t)=0, whose real parts lie between 0 and TT is approximately

=T2πlog⁡T2π−T2π;=\frac{T}{2\pi}\log\frac{T}{2\pi}-\frac{T}{2\pi};
(17)

because the integral ∫dlog⁡ξ(t)\int d\log\xi(t), taken in a positive sense around the region consisting of the values of tt whose imaginary parts lie between 12i\tfrac12 i and −12i-\tfrac12 i and whose real parts lie between 0 and TT, is (up to a fraction of the order of magnitude of the quantity 1T\tfrac{1}{T}) equal to (Tlog⁡T2π−T)i\left(T\log\frac{T}{2\pi}-T\right)i; this integral however is equal to the number of roots of ξ(t)=0\xi(t)=0 lying within in this region, multiplied by 2πi2\pi i. One now finds indeed approximately this number of real roots within these limits, and it is very probable that all roots are real. Certainly one would wish for a stricter proof here; I have meanwhile temporarily put aside the search for this after some fleeting futile attempts, as it appears unnecessary for the next objective of my investigation.

§8 The product expansion of ξ(t)

If one denotes by α\alpha all the roots of the equation ξ(α)=0\xi(\alpha)=0, one can express log⁡ξ(t)\log\xi(t) as

∑log⁡(1−ttαα)+log⁡ξ(0);\sum\log\left(1-\frac{tt}{\alpha\alpha}\right)+\log\xi(0);
(18)

for, since the density of the roots of the quantity tt grows with tt only as log⁡t2π\log\frac{t}{2\pi}, it follows that this expression converges and becomes for an infinite tt only infinite as tlog⁡tt\log t; thus it differs from log⁡ξ(t)\log\xi(t) by a function of tttt, that for a finite tt remains continuous and finite and, when divided by tttt, becomes infinitely small for infinite tt. This difference is consequently a constant, whose value can be determined through setting t=0t=0.

§9 Prime-counting functions F(x) and f(x)

With the assistance of these methods, the number of prime numbers that are smaller than xx can now be determined.

Let F(x)F(x) be equal to this number when xx is not exactly equal to a prime number; but let it be greater by 12\tfrac12 when xx is a prime number, so that, for any xx at which there is a jump in the value in F(x)F(x),

F(x)=F(x+0)+F(x−0)2.F(x) = \frac{F(x+0)+F(x-0)}{2}.
(19)

If in the identity

log⁡ζ(s)=−∑log⁡(1−p−s)=∑p−s+12∑p−2s+13∑p−3s+⋯\log\zeta(s) = -\sum\log\left(1-p^{-s}\right) = \sum p^{-s} + \tfrac12\sum p^{-2s} + \tfrac13\sum p^{-3s} + \cdots
(20)
p. 5

one now replaces

p−s by s∫p∞x−s−1 ds,p−2s by s∫p2∞x−s−1 ds,  …,p^{-s} \text{ by } s\int\limits_p^\infty x^{-s-1}\,ds, \qquad p^{-2s} \text{ by } s\int\limits_{p^2}^\infty x^{-s-1}\,ds, \;\ldots,
(21)

one obtains

log⁡ζ(s)s=∫1∞f(x)x−s−1 dx,\frac{\log\zeta(s)}{s} = \int\limits_1^\infty f(x)x^{-s-1}\,dx,
(22)

if one denotes

F(x)+12F(x12)+13F(x13)+⋯F(x) + \tfrac12 F\left(x^{\frac12}\right) + \tfrac13 F\left(x^{\frac13}\right) + \cdots
(23)

by f(x)f(x).

§10 Fourier inversion

This equation is valid for each complex value a+bia+bi of ss for which a>1a>1. If, though, the equation

g(s)=∫0∞h(x)x−s dlog⁡xg(s) = \int\limits_0^\infty h(x)x^{-s}\,d\log x
(24)

holds within this range, then, by making use of Fourier’s theorem, one can express the function hh in terms of the function gg. The equation decomposes, if h(x)h(x) is real and

g(a+bi)=g1(b)+ig2(b),g(a+bi) = g_1(b) + ig_2(b),
(25)

into the two following:

g1(b)=∫0∞h(x)x−acos⁡(blog⁡x) dlog⁡x,g_1(b) = \int\limits_0^\infty h(x)x^{-a}\cos(b\log x)\,d\log x,
(26)
ig2(b)=−i∫0∞h(x)x−asin⁡(blog⁡x) dlog⁡x.ig_2(b) = -i\int\limits_0^\infty h(x)x^{-a}\sin(b\log x)\,d\log x.
(27)

If one multiplies both equations with

(cos⁡(blog⁡y)+isin⁡(blog⁡y))db\left(\cos(b\log y) + i\sin(b\log y)\right)db
(28)

and integrates them from −∞-\infty to +∞+\infty, then one obtains πh(y)y−α\pi h(y)y^{-\alpha} on the right hand side in both, on account of Fourier’s theorems; thus, if one adds both equations and multiplies them by iyαiy^{\alpha}, one obtains

2πih(y)=∫a−∞ia+∞ig(s)ys ds,2\pi ih(y) = \int\limits_{a-\infty i}^{a+\infty i} g(s)y^s\,ds,
(29)
p. 6

where the integration is carried out so that the real part of ss remains constant.

§11 f(x) as a contour integral

For a value of yy at which there is a jump in the value of h(y)h(y), the integral takes on the mean of the values of the function hh on either side of the jump. From the manner in which the function ff was defined, we see that it has the same property, and hence in full generality

f(y)=12πi∫a−∞ia+∞ilog⁡ζ(s)s ys ds.f(y) = \frac{1}{2\pi i}\int\limits_{a-\infty i}^{a+\infty i}\frac{\log\zeta(s)}{s}\,y^s\,ds.
(30)

One can substitute for log⁡ζ\log\zeta the expression

s2log⁡π−log⁡(s−1)−log⁡Π(s2)+∑αlog⁡(1+(s−12)2αα)+log⁡ξ(0)\begin{aligned} &\frac{s}{2}\log\pi - \log(s-1) - \log\Pi\left(\frac{s}{2}\right) \\ &\qquad + \sum\nolimits^{\alpha}\log\left(1+\frac{\left(s-\frac12\right)^2}{\alpha\alpha}\right) + \log\xi(0) \end{aligned}
(31)

found earlier; however the integrals of the individual terms of this expression do not converge, when extended to infinity, for which reason it is appropriate to convert the previous equation by means of integration by parts into

f(x)=−12πi1log⁡x∫a−∞ia+∞id log⁡ζ(s)sds xs dsf(x) = -\frac{1}{2\pi i}\frac{1}{\log x}\int\limits_{a-\infty i}^{a+\infty i}\frac{d\,\dfrac{\log\zeta(s)}{s}}{ds}\,x^s\,ds
(32)

§12 Evaluating the terms

Since

−log⁡Π(s2)=lim⁡(∑n=1n=mlog⁡(1+s2n)−s2log⁡m),-\log\Pi\left(\frac{s}{2}\right) = \lim\left(\sum_{n=1}^{n=m}\log\left(1+\frac{s}{2n}\right) - \frac{s}{2}\log m\right),
(33)

for m=∞m=\infty and therefore

−d 1slog⁡Π(s2)ds=∑1∞d 1slog⁡(1+s2n)ds,-\frac{d\,\dfrac1s\log\Pi\left(\dfrac{s}{2}\right)}{ds} = \sum_1^\infty \frac{d\,\dfrac1s\log\left(1+\dfrac{s}{2n}\right)}{ds},
(34)

it then follows that all the terms of the expression for f(x)f(x), with the exception of

12πi1log⁡x∫a−∞ia+∞i1sslog⁡ξ(0) xs ds=log⁡ξ(0),\frac{1}{2\pi i}\frac{1}{\log x}\int\limits_{a-\infty i}^{a+\infty i}\frac{1}{ss}\log\xi(0)\,x^s\,ds = \log\xi(0),
(35)

take the form

±12πi1log⁡x∫a−∞ia+∞id(1slog⁡(1−sβ))ds xs ds.\pm\frac{1}{2\pi i}\frac{1}{\log x}\int\limits_{a-\infty i}^{a+\infty i}\frac{d\left(\dfrac1s\log\left(1-\dfrac{s}{\beta}\right)\right)}{ds}\,x^s\,ds.
(36)
p. 7

But now

d(1slog⁡(1−sβ))dβ=1(β−s)β,\frac{d\left(\dfrac1s\log\left(1-\dfrac{s}{\beta}\right)\right)}{d\beta} = \frac{1}{(\beta-s)\beta},
(37)

and, if the real part of ss is larger than the real part of β\beta,

−12πi∫a−∞ia+∞ixs ds(β−s)β=xββ=∫∞xxβ−1 dx,-\frac{1}{2\pi i}\int\limits_{a-\infty i}^{a+\infty i}\frac{x^s\,ds}{(\beta-s)\beta} = \frac{x^\beta}{\beta} = \int\limits_\infty^x x^{\beta-1}\,dx,
(38)

or

=∫0xxβ−1 dx,= \int\limits_0^x x^{\beta-1}\,dx,
(39)

depending on whether the real part of β\beta is negative or positive. One has as a result

12πi1log⁡x∫a−∞ia+∞id(1slog⁡(1−sβ))ds xs ds=−12πi∫a−∞ia+∞i1slog⁡(1−sβ)xs ds=∫∞xxβ−1log⁡x dx+ const.\begin{aligned} &\frac{1}{2\pi i}\frac{1}{\log x}\int\limits_{a-\infty i}^{a+\infty i}\frac{d\left(\dfrac1s\log\left(1-\dfrac{s}{\beta}\right)\right)}{ds}\,x^s\,ds \\[4pt] &\qquad= -\frac{1}{2\pi i}\int\limits_{a-\infty i}^{a+\infty i}\frac1s\log\left(1-\frac{s}{\beta}\right)x^s\,ds \\[4pt] &\qquad= \int\limits_\infty^x\frac{x^{\beta-1}}{\log x}\,dx + \text{ const.} \end{aligned}
(40)

in the first, and

=∫0xxβ−1log⁡x dx+ const.= \int\limits_0^x\frac{x^{\beta-1}}{\log x}\,dx + \text{ const.}
(41)

in the second case.

In the first case the constant of integration is determined if one lets the real part of β\beta become infinitely negative; in the second case the integral from 0 to xx takes on values separated by 2πi2\pi i, depending on whether the integration is taken through complex values with positive or negative argument, and becomes infinitely small, for the former path, when the coefficient of ii in the value of β\beta becomes infinitely positive, but for the latter, when this coefficient becomes infinitely negative. From this it is seen how on the left hand side log⁡(1−sβ)\log\left(1-\frac{s}{\beta}\right) is to be determined in order that the constants of integration disappear.

§13 The explicit formula for f(x)

p. 8

Through the insertion of these values in the expression for f(x)f(x) one obtains

f(x)=Li(x)−∑α(Li(x12+αi)+Li(x12−αi))+∫x∞1x2−1 dxxlog⁡x+log⁡ξ(0),\begin{aligned} f(x) = \Li(x) &- \sum\nolimits^{\alpha}\left(\Li\left(x^{\frac12+\alpha i}\right)+\Li\left(x^{\frac12-\alpha i}\right)\right) \\ &+ \int\limits_x^\infty\frac{1}{x^2-1}\,\frac{dx}{x\log x} + \log\xi(0), \end{aligned}
(42)

if in ∑α\sum^{\alpha} one substitutes for α\alpha all positive roots (or roots having a positive real part) of the equation ξ(α)=0\xi(\alpha)=0, ordered by their magnitude. It may easily be shown, by means of a more thorough discussion of the function ξ\xi, that with this ordering of terms the value of the series

∑(Li(x12+αi)+Li(x12−αi))log⁡x\sum\left(\Li\left(x^{\frac12+\alpha i}\right)+\Li\left(x^{\frac12-\alpha i}\right)\right)\log x
(43)

agrees with the limiting value to which

12πi∫a−bia+bid 1s∑log⁡(1+(s−12)2αα)ds xs ds\frac{1}{2\pi i}\int\limits_{a-bi}^{a+bi}\frac{d\,\dfrac1s\sum\log\left(1+\dfrac{\left(s-\frac12\right)^2}{\alpha\alpha}\right)}{ds}\,x^s\,ds
(44)

converges as the quantity bb increases without bound; however when re-ordered it can take on any arbitrary real value.

§14 Recovering F(x) by inversion

From f(x)f(x) one obtains F(x)F(x) by inversion of the relation

f(x)=∑1nF(x1n),f(x) = \sum\frac1n F\left(x^{\frac1n}\right),
(45)

to obtain the equation

F(x)=∑(−1)μ1mf(x1m),F(x) = \sum(-1)^{\mu}\frac1m f\left(x^{\frac1m}\right),
(46)

in which one substitutes for mm the series consisting of those natural numbers that are not divisible by any square other than 1, and in which μ\mu denotes the number of prime factors of mm.

§15 The density of primes and comparison with counts

If one restricts ∑α\sum^{\alpha} to a finite number of terms, then the derivative of the expression for f(x)f(x) or, up to a part diminishing very rapidly with growing xx,

1log⁡x−2∑αcos⁡(αlog⁡x) x−12log⁡x\frac{1}{\log x} - 2\sum\nolimits^{\alpha}\frac{\cos(\alpha\log x)\,x^{-\frac12}}{\log x}
(47)

gives an approximating expression for the density of the prime number + half the density of the squares of the prime numbers + a third of the density of the cubes of the prime numbers etc. at the magnitude xx.

p. 9

The known approximating expression F(x)=Li(x)F(x)=\Li(x) is therefore valid up to quantities of the order x12x^{\frac12} and gives somewhat too large a value; because the non-periodic terms in the expression for F(x)F(x) are, apart from quantities that do not grow infinite with xx:

Li(x)−12Li(x12)−13Li(x13)−15Li(x15)+16Li(x16)−17Li(x17)+⋯\begin{aligned} &\Li(x) - \tfrac12\Li\left(x^{\frac12}\right) - \tfrac13\Li\left(x^{\frac13}\right) - \tfrac15\Li\left(x^{\frac15}\right) \\ &\qquad + \tfrac16\Li\left(x^{\frac16}\right) - \tfrac17\Li\left(x^{\frac17}\right) + \cdots \end{aligned}
(48)

Indeed, in the comparison of Li(x)\Li(x) with the number of prime numbers less than xx, undertaken by Gauss and Goldschmidt and carried through up to x=x= three million, this number has shown itself out to be, in the first hundred thousand, always less than Li(x)\Li(x); in fact the difference grows, with many fluctuations, gradually with xx. But also the increase and decrease in the density of the primes from place to place that is dependent on the periodic terms has already excited attention, without however any law governing this behaviour having been observed. In any future count it would be interesting to keep track of the influence of the individual periodic terms in the expression for the density of the prime numbers. A more regular behaviour than that of F(x)F(x) would be exhibited by the function f(x)f(x), which already in the first hundred is seen very distinctly to agree on average with Li(x)+log⁡ξ(0)\Li(x)+\log\xi(0).