Zeta and the Distribution of Primes
How many primes are there below a given size? Can a single analytic object encode that count exactly? This question is ancient in spirit, dating to Euclid's proof of infinitude. It becomes tractable once we realize something important. The Riemann zeta function's Euler product is a generating-function bridge. It connects multiplicative structure (primes) with additive structure (sums, integrals, derivatives). The key move is due to Riemann. It was made rigorous through the work of Chebyshev, Mertens, and eventually Hadamard and de la Vallée Poussin. The move is to take the logarithm of the Euler product and differentiate it. This single algebraic manipulation converts a product over primes into a sum. It produces a Dirichlet series whose coefficients are exactly the von Mangoldt function . This function is a bookkeeping device. It records prime powers with logarithmic weights. The identity is the hinge on which analytic number theory turns. It says that the logarithmic derivative of zeta, an object built purely from complex analysis, contains complete information. That information concerns where prime powers sit among the integers. Once this identity is established, questions change. Questions about the distribution of primes become questions about the analytic behavior of . This includes its zeros, its poles, and its growth. These are translated back through this correspondence. This article develops that translation rigorously. We prove the Euler product for . We define precisely. We prove the central identity relating to the Dirichlet series of . We show this series converges absolutely on the same half-plane as the zeta function itself. We also explain — with full proof — why is the right weight to use. This connects it to the The Mobius Function via Möbius inversion of . The payoff is conceptual as much as computational. This identity is the analytic seed from which the The Prime Number Theorem: Statement and Heuristics eventually grows. This happens once one studies the zero-free region of near the line . Here we stop just short of that theorem. We build every tool needed to state it precisely. Meanwhile, we prove completely everything closer to hand.
- The Euler product converts primes into an analytic object for .
- Taking and differentiating turns the product over primes into a sum over prime powers.
- The von Mangoldt function equals if , and otherwise — it is the natural weight making this sum exact.
- The identity holds absolutely for .
- Möbius inversion links to and to , giving .
- Nothing here yet proves the Prime Number Theorem — that requires controlling near .
- Key idea: logarithmic differentiation of the Euler product converts multiplicative prime data into an additive Dirichlet series with coefficients .
Where this lives today
The identity is the entry point into the analytic proof of the Prime Number Theorem, via Perron's formula and contour integration applied to . The same logarithmic-derivative trick generalizes to any Dirichlet series with an Euler product — Dirichlet -functions, automorphic -functions, and Dedekind zeta functions of number fields — making it a template used throughout modern analytic number theory and the Langlands program. In cryptography, understanding prime distribution (ultimately resting on this machinery) underlies estimates for how densely primes appear for key generation in RSA-type systems. In statistical mechanics, the Euler product's structure inspired analogies (e.g. the "primon gas") connecting to partition functions of number-theoretic systems built from prime "energy levels," an idea explored in mathematical physics.
Ask the tutor: How does the zero-free region of near turn this identity into an actual proof that ?
For a positive integer , the von Mangoldt function is defined by
For with , the Riemann zeta function is
which converges absolutely and equals the Euler product
The central object of this article is the logarithmic derivative
which we will show equals the Dirichlet series
Intuition
Think of as a machine assembled from independent gears, one gear per prime , each contributing a factor . Multiplying independent things is awkward to differentiate directly — the product rule produces a mess with many terms. Taking a logarithm first is the standard trick that turns a product into a sum: . Differentiating a sum term by term is easy, and each term expands as a geometric-type series , whose derivative naturally produces a out front. That stray factor of appearing from differentiating with respect to is exactly the weight that von Mangoldt built into his function. So the identity is not a coincidence — it is the inevitable byproduct of differentiating a logarithm of a product of geometric series indexed by primes. Picture the positive integers laid out on a line, with each integer carrying an invisible "charge" : zero charge unless is a prime power, in which case the charge is the log of the prime being powered. The Dirichlet series is a weighted census of these charges, decaying by . The claim is that this weighted census is precisely recoverable from by the simple operation . This is the first bridge in the chain: primes Euler product log-derivative (eventually, via zero-free regions) the Prime Number Theorem.
Let with . Then:
(a) Euler product. The zeta function admits the absolutely convergent product representation
the product being over all primes , and in particular for .
(b) Logarithmic derivative identity. The series
converges absolutely for , and equals :
For , the series converges absolutely, uniformly on any half-plane .
This is a standard fact assumed from The Riemann Zeta Function, but we recall the short argument for completeness, using the technique of comparison with an integral. We have . For ,
using that is decreasing in for so each term () is bounded by . The bound is uniform in , giving uniform absolute convergence on for every .
∎Proof of the Theorem.
Step 1 (Euler product, part (a)). Fix and work with satisfying . For each prime , since , the geometric series
converges absolutely. Let be a finite set of primes and consider the finite product
Expanding this finite product of absolutely convergent series (justified because each factor is an absolutely convergent series, and a finite product of absolutely convergent series may be multiplied out term by term and rearranged freely), we get
where is the multiplicative semigroup of positive integers all of whose prime factors lie in (this uses the Fundamental Theorem of Arithmetic: each corresponds to a unique tuple of exponents ). Now let be the set of primes . Every integer has all its prime factors (trivially, since a prime factor of cannot exceed ), so . Hence
because every term with cancels, and all surviving terms in both series correspond to (this uses that all terms of both series are subsets of , and the difference telescopes to include only indices missing from one side, all of which exceed ). By the Lemma, the tail as , uniformly for . Therefore
i.e. the infinite product converges to , uniformly for . Absolute convergence of the product (in the sense that converges) follows again from the Lemma since . An absolutely convergent infinite product of nonzero terms converges to a nonzero value, and each factor ; hence for . This proves part (a).
Step 2 (Logarithm of the Euler product). Since and , we may take the principal branch logarithm of each factor:
the standard Taylor series for at , valid since . Summing over primes (justified below) gives, formally,
To justify taking of the infinite product and interchanging sum and log continuously, we use that of a convergent product of nonzero terms (with the product absolutely convergent, as shown in Step 1) equals the sum of the logs of the factors, provided we track branches consistently; since each factor is within a fixed disk around (as makes each factor close to for large ), the principal branch is consistent and the identity
holds as an absolutely convergent double sum, because
using and . Absolute convergence of the double sum permits rearrangement into a single sum over :
This uses unique factorization: each pair corresponds to a unique prime power , so no double-counting occurs and every prime power arises exactly once.
Step 3 (Differentiate term by term). The series converges absolutely and, restricted to any half-plane , converges uniformly (same estimate as above, uniform in , and this is inherited by the derivative series below since for any and large , which preserves convergence after an arbitrarily small loss of exponent — concretely, for we can absorb into a slightly smaller exponent margin). A standard theorem on term-by-term differentiation of a locally uniformly convergent series of holomorphic functions (each term is entire in ) states: if converges to locally uniformly on an open set, then is holomorphic there and , the derivative series also converging locally uniformly. Applying this with , so , we obtain, for ,
(Here we also used , valid since for by Step 1, so is a genuine holomorphic branch there with the usual derivative rule.)
Step 4 (Identify the coefficients as ). For we compute
and for not a prime power, . Hence for every , and trivially matches contributing nothing. Substituting into Step 3:
Absolute convergence of this final series for follows since it is (up to sign) the derivative series established convergent in Step 3. This proves part (b) and completes the theorem.
∎Write by unique factorization, so . On the other hand, the divisors of with are exactly the prime-power divisors for , , each contributing . Summing,
proving the first identity for every (for both sides are , the empty sum). For the second identity, apply the Möbius inversion formula: if for all , then . This formula is proved (assumed known from The Mobius Function) using . Taking and , which satisfy by the first identity, inversion gives
Worked examples
Example 1: Verifying the identity numerically via partial sums at . We test using known values and truncation, illustrating the identity with concrete asymmetric data (not a toy symmetric case). We know . For (valid for , by direct term-by-term differentiation of the defining Dirichlet series for , an even more elementary instance of the differentiation theorem used above), we estimate by summing enough terms:
Numerically, term by term:
Summing these nine terms: . Continuing the tail contributes a further amount (this series converges slowly, like , but the known closed form is in terms of the Glaisher–Kinkelin constant ; numerically ). So , giving
Now compute the right side directly from for prime powers :
| type | |||
|---|---|---|---|
| 2 | |||
| 3 | |||
| 4 | |||
| 5 | |||
| 7 | |||
| 8 | |||
| 9 | |||
| 11 | |||
| 13 | |||
| 16 |
Summing these ten terms: . Adding the next few prime powers (each contributing between and ) pushes the partial sum steadily toward , consistent with the identity; the remaining discrepancy () is the tail beyond , which is exactly what a slowly-converging series of this type should leave. This matches, within the precision expected from truncating at , the value computed independently from and — confirming the identity is not merely formal but numerically verifiable.
Example 2: Extracting -type information — computing directly and interpreting it as . Define Chebyshev's function , which will foreshadow the Prime Number Theorem (since is equivalent to it). Compute exactly by listing all prime powers :
(Prime powers are excluded — they are not prime powers, having at least two distinct prime factors.) Their -values:
Sum:
Numerically: , , plus . Total:
Compare to : , already visibly close to , an early numerical hint (far from a proof) of the eventual asymptotic that the Prime Number Theorem establishes. This computation also double-checks Corollary: style identities are unnecessary here, but as a consistency check, note
since and are not prime powers so contribute . Indeed , confirming exactly as the Corollary predicts.
Drop the hypothesis and attempt to apply the identity at, say, (or anywhere on the boundary line ). The Dirichlet series diverges at : since and for every prime , we have (using only the prime terms, a sub-series of nonnegative terms)
and this last sum is well known to diverge (it grows like , a consequence of Mertens' theorems, itself proved using estimates on ). So the series defining as a Dirichlet series simply has no meaning at — there is no absolutely convergent series to speak of. Separately, the left-hand side also fails to extend naively to : itself has a simple pole at (from the comparison as , a fact usually proved alongside the Euler product), so there and the ratio has a pole coming from the pole of , requiring separate analytic continuation arguments (residue calculus) rather than the naive series representation. This shows the hypothesis cannot be weakened to within the scope of this theorem: both sides of the identity, as literally written (product/series representations), require the strict inequality to even be defined, let alone equal. Extending the identity to (away from zeros/poles of ) is possible but requires analytic continuation and knowledge of the zeros of — exactly the extra machinery that powers the Prime Number Theorem, and is intentionally beyond the scope of the identity proved here.
Scope, edge cases & common traps
| Situation | What holds | What fails / needs more work |
|---|---|---|
| Euler product, log-derivative identity, both series absolutely convergent | — | |
| has a pole at ; series for diverges | Naive series identity meaningless; need continuation | |
| extends analytically (assumed known), may have zeros | Log-derivative identity must be re-derived via continuation, tracking zeros of as poles of | |
| Confusing with | , equality iff prime | Not all integers carry weight — composite non-prime-powers get |
| Believing follows immediately | It does not | Requires the zero-free region of near , a separate deep theorem |
The mathematician behind it
Origins · 1 minBernhard Riemann and how this was discovered
Riemann's 1859 memoir "Über die Anzahl der Primzahlen unter einer gegebenen Größe" introduced the analytic continuation of to the whole complex plane, connected its zeros to the distribution of primes via an explicit formula, and stated what became the Riemann Hypothesis. Although the memoir is only a few pages, it reoriented number theory around complex analysis, making the identity between and the starting engine of a program completed decades later.
Why do we take the logarithm of the Euler product instead of working with directly?
Logarithms convert products into sums, and sums are far easier to differentiate term by term than products, where the product rule creates an unwieldy cascade of cross terms as the number of factors grows. Since the Euler product has infinitely many factors (one per prime), differentiating it directly is not tractable. Taking first converts the problem into differentiating a sum of simple functions , each of whose derivatives is elementary. This is precisely what surfaces the von Mangoldt function: each derivative contributes a factor exactly at prime powers, which is otherwise invisible in the additive Dirichlet series for itself.
Is the same as ?
No, and this is a common confusion. equals only when is a power of a single prime ; it is exactly for every other , including all products of two or more distinct primes, like . In contrast is nonzero for every . The precise relationship is the divisor sum , proved via unique factorization: summing over all prime-power divisors of recovers exactly the total log of 's prime factorization, with multiplicities.
Does this identity already prove the Prime Number Theorem?
No. The identity is a purely algebraic/analytic fact valid for , and it converts questions about primes into questions about 's log-derivative, but it says nothing yet about the asymptotic size of . To get (equivalent to the Prime Number Theorem), one must analytically continue past , show has no zeros on the line , and then apply a contour-integral (Perron-type) argument. This identity is the essential first step, not the whole proof.
Why does for matter here?
The logarithmic derivative is only defined (finite, holomorphic) where , since division by zero is undefined and requires to avoid to have a consistent holomorphic branch. The Euler product itself, being an absolutely convergent product of nonzero factors , automatically guarantees for — this is why establishing the Euler product first is a prerequisite, not an afterthought, for the log-derivative identity to even make sense.
What is the role of Möbius inversion in this story?
Möbius inversion, using the The Mobius Function , lets us reverse divisor-sum identities. Since expresses as a divisor sum of , inversion recovers directly in terms of familiar functions ( and ), without reference to prime factorization explicitly. This gives an alternative, self-contained definition of purely via arithmetic functions, useful in contexts where one wants to manipulate algebraically rather than case-split on "is a prime power."
Why is , rather than the indicator function of primes, the natural weight in this Dirichlet series approach?
The indicator function of primes, , does not arise naturally from differentiating ; instead, the differentiation process organically produces at every prime power , not just at primes themselves, because 's Taylor expansion has a term for every power . Attempting to work only with primes (ignoring prime powers) would break the exact algebraic identity with ; the correction terms from prime powers are essential and turn out to be a lower-order correction handled later (e.g. via versus comparisons) in the route toward the Prime Number Theorem.
Can this identity be generalized beyond ?
Yes. Any Dirichlet series with an Euler product over primes — such as Dirichlet -functions for a Dirichlet character — admits an analogous logarithmic derivative identity, , by the identical proof technique (log the product, differentiate term by term). This generalization underlies the proof of Dirichlet's theorem on primes in arithmetic progressions and is a template reused throughout analytic number theory for automorphic -functions.