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 Λ(n)\Lambda(n). This function is a bookkeeping device. It records prime powers with logarithmic weights. The identity −ζ′(s)/ζ(s)=∑n≥1Λ(n)n−s-\zeta'(s)/\zeta(s) = \sum_{n \ge 1} \Lambda(n) n^{-s} 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 ζ(s)\zeta(s). 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 Re⁡(s)>1\operatorname{Re}(s) > 1. We define Λ(n)\Lambda(n) precisely. We prove the central identity relating −ζ′/ζ-\zeta'/\zeta to the Dirichlet series of Λ\Lambda. We show this series converges absolutely on the same half-plane as the zeta function itself. We also explain — with full proof — why Λ\Lambda is the right weight to use. This connects it to the The Mobius Function via Möbius inversion of log⁡n=∑d∣nΛ(d)\log n = \sum_{d\mid n}\Lambda(d). 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 ζ(s)\zeta(s) near the line Re⁡(s)=1\operatorname{Re}(s)=1. 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.

Key takeaways
  • The Euler product ζ(s)=∏p(1−p−s)−1\zeta(s) = \prod_p (1-p^{-s})^{-1} converts primes into an analytic object for Re⁡(s)>1\operatorname{Re}(s)>1.
  • Taking log⁡\log and differentiating turns the product over primes into a sum over prime powers.
  • The von Mangoldt function Λ(n)\Lambda(n) equals log⁡p\log p if n=pkn=p^k, and 00 otherwise — it is the natural weight making this sum exact.
  • The identity −ζ′(s)/ζ(s)=∑n≥1Λ(n)n−s-\zeta'(s)/\zeta(s) = \sum_{n\ge 1}\Lambda(n)n^{-s} holds absolutely for Re⁡(s)>1\operatorname{Re}(s) > 1.
  • Möbius inversion links Λ\Lambda to log⁡\log and to μ\mu, giving Λ(n)=∑d∣nμ(d)log⁡(n/d)\Lambda(n) = \sum_{d \mid n}\mu(d)\log(n/d).
  • Nothing here yet proves the Prime Number Theorem — that requires controlling ζ(s)\zeta(s) near Re⁡(s)=1\operatorname{Re}(s)=1.
  • Key idea: logarithmic differentiation of the Euler product converts multiplicative prime data into an additive Dirichlet series with coefficients Λ(n)\Lambda(n).

Where this lives today

The identity −ζ′(s)/ζ(s)=∑Λ(n)n−s-\zeta'(s)/\zeta(s) = \sum \Lambda(n) n^{-s} is the entry point into the analytic proof of the Prime Number Theorem, via Perron's formula and contour integration applied to ψ(x)=∑n≤xΛ(n)\psi(x) = \sum_{n\le x}\Lambda(n). The same logarithmic-derivative trick generalizes to any Dirichlet series with an Euler product — Dirichlet LL-functions, automorphic LL-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 ζ(s)\zeta(s) 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 ζ(s)\zeta(s) near Re⁡(s)=1\operatorname{Re}(s)=1 turn this identity into an actual proof that π(x)∼x/log⁡x\pi(x) \sim x/\log x?

DefinitionThe von Mangoldt function and the logarithmic derivative identity

For a positive integer nn, the von Mangoldt function is defined by

Λ(n)={log⁡pif n=pk for some prime p and integer k≥1,0otherwise.\Lambda(n) = \begin{cases} \log p & \text{if } n = p^k \text{ for some prime } p \text{ and integer } k \ge 1,\\[4pt] 0 & \text{otherwise.} \end{cases}

For s=σ+it∈Cs = \sigma + it \in \mathbb{C} with σ=Re⁡(s)>1\sigma = \operatorname{Re}(s) > 1, the Riemann zeta function is

ζ(s)=∑n=1∞1ns,\zeta(s) = \sum_{n=1}^{\infty} \frac{1}{n^s},

which converges absolutely and equals the Euler product

ζ(s)=∏p prime(1−1ps)−1.\zeta(s) = \prod_{p \text{ prime}} \left(1 - \frac{1}{p^s}\right)^{-1}.

The central object of this article is the logarithmic derivative

−ζ′(s)ζ(s),Re⁡(s)>1,-\frac{\zeta'(s)}{\zeta(s)}, \qquad \operatorname{Re}(s) > 1,

which we will show equals the Dirichlet series

∑n=1∞Λ(n)ns.\sum_{n=1}^{\infty} \frac{\Lambda(n)}{n^s}.

Intuition

Think of ζ(s)\zeta(s) as a machine assembled from independent gears, one gear per prime pp, each contributing a factor (1−p−s)−1(1-p^{-s})^{-1}. 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: log⁡ζ(s)=−∑plog⁡(1−p−s)\log \zeta(s) = -\sum_p \log(1 - p^{-s}). Differentiating a sum term by term is easy, and each term −log⁡(1−p−s)-\log(1-p^{-s}) expands as a geometric-type series ∑k≥1p−ksk\sum_{k\ge 1} \frac{p^{-ks}}{k}, whose derivative naturally produces a log⁡p\log p out front. That stray factor of log⁡p\log p appearing from differentiating p−ksp^{-ks} with respect to ss is exactly the weight Λ(pk)=log⁡p\Lambda(p^k) = \log p 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 nn carrying an invisible "charge" Λ(n)\Lambda(n): zero charge unless nn is a prime power, in which case the charge is the log of the prime being powered. The Dirichlet series ∑Λ(n)n−s\sum \Lambda(n) n^{-s} is a weighted census of these charges, decaying by n−sn^{-s}. The claim is that this weighted census is precisely recoverable from ζ(s)\zeta(s) by the simple operation −ζ′/ζ-\zeta'/\zeta. This is the first bridge in the chain: primes →\to Euler product →\to log-derivative →\to Λ(n)\Lambda(n) →\to (eventually, via zero-free regions) the Prime Number Theorem.

Figure
The von Mangoldt weight Λ(n) plotted for n = 1..16: nonzero only at prime powers
n Λ(n) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 log2 log3 log5 log7 log11 log13
TheoremEuler product and the logarithmic-derivative identity

Let s=σ+its = \sigma + it with σ>1\sigma > 1. Then:

(a) Euler product. The zeta function admits the absolutely convergent product representation

ζ(s)=∏p(1−p−s)−1,\zeta(s) = \prod_{p} \left(1 - p^{-s}\right)^{-1},

the product being over all primes pp, and in particular ζ(s)≠0\zeta(s) \ne 0 for σ>1\sigma > 1.

(b) Logarithmic derivative identity. The series

∑n=1∞Λ(n)ns\sum_{n=1}^{\infty} \frac{\Lambda(n)}{n^{s}}

converges absolutely for σ>1\sigma > 1, and equals −ζ′(s)/ζ(s)-\zeta'(s)/\zeta(s):

−ζ′(s)ζ(s)=∑n=1∞Λ(n)ns,σ>1.-\frac{\zeta'(s)}{\zeta(s)} = \sum_{n=1}^{\infty} \frac{\Lambda(n)}{n^{s}}, \qquad \sigma > 1.
LemmaAbsolute convergence of ζ(s)\zeta(s) for σ>1\sigma>1

For σ=Re⁡(s)>1\sigma = \operatorname{Re}(s) > 1, the series ∑n=1∞n−s\sum_{n=1}^{\infty} n^{-s} converges absolutely, uniformly on any half-plane σ≥σ0>1\sigma \ge \sigma_0 > 1.

Proof

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 ∣n−s∣=n−σ|n^{-s}| = n^{-\sigma}. For σ≥σ0>1\sigma \ge \sigma_0 > 1,

∑n=1∞n−σ≤1+∫1∞x−σ0 dx=1+1σ0−1<∞,\sum_{n=1}^{\infty} n^{-\sigma} \le 1 + \int_1^{\infty} x^{-\sigma_0}\, dx = 1 + \frac{1}{\sigma_0 - 1} < \infty,

using that x−σx^{-\sigma} is decreasing in xx for σ>0\sigma>0 so each term n−σn^{-\sigma} (n≥2n\ge2) is bounded by ∫n−1nx−σ0dx\int_{n-1}^n x^{-\sigma_0}dx. The bound is uniform in σ≥σ0\sigma \ge \sigma_0, giving uniform absolute convergence on σ≥σ0\sigma \ge \sigma_0 for every σ0>1\sigma_0 > 1. ■\blacksquare

∎
Proof

Proof of the Theorem.

Step 1 (Euler product, part (a)). Fix σ0>1\sigma_0 > 1 and work with ss satisfying σ=Re⁡(s)≥σ0\sigma = \operatorname{Re}(s) \ge \sigma_0. For each prime pp, since ∣p−s∣=p−σ≤p−σ0<1|p^{-s}| = p^{-\sigma} \le p^{-\sigma_0} < 1, the geometric series

(1−p−s)−1=∑k=0∞p−ks(1-p^{-s})^{-1} = \sum_{k=0}^{\infty} p^{-ks}

converges absolutely. Let PP be a finite set of primes and consider the finite product

∏p∈P(1−p−s)−1=∏p∈P∑k=0∞p−ks.\prod_{p \in P} (1-p^{-s})^{-1} = \prod_{p\in P}\sum_{k=0}^\infty p^{-ks}.

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

∏p∈P(1−p−s)−1=∑n∈S(P)1ns,\prod_{p \in P} (1-p^{-s})^{-1} = \sum_{n \in S(P)} \frac{1}{n^s},

where S(P)S(P) is the multiplicative semigroup of positive integers all of whose prime factors lie in PP (this uses the Fundamental Theorem of Arithmetic: each n∈S(P)n \in S(P) corresponds to a unique tuple of exponents (kp)p∈P(k_p)_{p\in P}). Now let P=PNP = P_N be the set of primes ≤N\le N. Every integer n≤Nn \le N has all its prime factors ≤N\le N (trivially, since a prime factor of nn cannot exceed nn), so {1,…,N}⊆S(PN)\{1,\dots,N\} \subseteq S(P_N). Hence

∣ζ(s)−∏p≤N(1−p−s)−1∣=∣∑n=1∞1ns−∑n∈S(PN)1ns∣≤∑n>N1nσ,\left| \zeta(s) - \prod_{p \le N} (1-p^{-s})^{-1} \right| = \left| \sum_{n=1}^{\infty}\frac1{n^s} - \sum_{n \in S(P_N)} \frac1{n^s}\right| \le \sum_{n > N} \frac{1}{n^{\sigma}},

because every term with n≤Nn \le N cancels, and all surviving terms in both series correspond to n>Nn > N (this uses that all terms of both series are subsets of {n−s:n≥1}\{n^{-s}: n\ge1\}, and the difference telescopes to include only indices missing from one side, all of which exceed NN). By the Lemma, the tail ∑n>Nn−σ→0\sum_{n>N} n^{-\sigma} \to 0 as N→∞N \to \infty, uniformly for σ≥σ0\sigma \ge \sigma_0. Therefore

∏p≤N(1−p−s)−1→ζ(s)(N→∞),\prod_{p \le N}(1-p^{-s})^{-1} \to \zeta(s) \quad (N \to \infty),

i.e. the infinite product ∏p(1−p−s)−1\prod_p (1-p^{-s})^{-1} converges to ζ(s)\zeta(s), uniformly for σ≥σ0>1\sigma \ge \sigma_0 > 1. Absolute convergence of the product (in the sense that ∑p∣p−s∣\sum_p |p^{-s}| converges) follows again from the Lemma since ∑pp−σ≤∑nn−σ<∞\sum_p p^{-\sigma} \le \sum_n n^{-\sigma} < \infty. An absolutely convergent infinite product of nonzero terms converges to a nonzero value, and each factor (1−p−s)−1≠0(1-p^{-s})^{-1} \ne 0; hence ζ(s)≠0\zeta(s) \ne 0 for σ>1\sigma > 1. This proves part (a).

Step 2 (Logarithm of the Euler product). Since σ>1\sigma > 1 and ∣p−s∣<1|p^{-s}| < 1, we may take the principal branch logarithm of each factor:

−log⁡(1−p−s)=∑k=1∞p−ksk,-\log(1 - p^{-s}) = \sum_{k=1}^{\infty} \frac{p^{-ks}}{k},

the standard Taylor series for −log⁡(1−z)-\log(1-z) at z=p−sz = p^{-s}, valid since ∣z∣<1|z|<1. Summing over primes pp (justified below) gives, formally,

log⁡ζ(s)=∑p∑k=1∞p−ksk.\log \zeta(s) = \sum_p \sum_{k=1}^\infty \frac{p^{-ks}}{k}.

To justify taking log⁡\log of the infinite product and interchanging sum and log continuously, we use that log⁡\log 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 11 (as ∣p−s∣≤p−σ0<1|p^{-s}|\le p^{-\sigma_0} < 1 makes each factor close to 11 for large pp), the principal branch is consistent and the identity

log⁡ζ(s)=−∑plog⁡(1−p−s)=∑p∑k=1∞p−ksk\log \zeta(s) = -\sum_p \log(1-p^{-s}) = \sum_p \sum_{k=1}^\infty \frac{p^{-ks}}{k}

holds as an absolutely convergent double sum, because

∑p∑k=1∞p−kσk≤∑p∑k=1∞p−kσ=∑pp−σ1−p−σ≤11−2−σ0∑pp−σ<∞\sum_p \sum_{k=1}^\infty \frac{p^{-k\sigma}}{k} \le \sum_p \sum_{k=1}^\infty p^{-k\sigma} = \sum_p \frac{p^{-\sigma}}{1-p^{-\sigma}} \le \frac{1}{1-2^{-\sigma_0}}\sum_p p^{-\sigma} < \infty

using σ≥σ0\sigma \ge \sigma_0 and p≥2p\ge2. Absolute convergence of the double sum permits rearrangement into a single sum over n=pkn = p^k:

log⁡ζ(s)=∑p∑k=1∞1k p−ks=∑n=2∞c(n)ns,c(pk)=1k,  c(n)=0 if n not a prime power.\log \zeta(s) = \sum_{p}\sum_{k=1}^{\infty} \frac{1}{k}\, p^{-ks} = \sum_{n=2}^{\infty} \frac{c(n)}{n^s}, \qquad c(p^k) = \frac1k,\ \ c(n)=0 \text{ if } n \text{ not a prime power.}

This uses unique factorization: each pair (p,k)(p,k) corresponds to a unique prime power n=pkn=p^k, so no double-counting occurs and every prime power arises exactly once.

Step 3 (Differentiate term by term). The series ∑nc(n)n−s\sum_n c(n) n^{-s} converges absolutely and, restricted to any half-plane σ≥σ0>1\sigma \ge \sigma_0>1, converges uniformly (same estimate as above, uniform in σ≥σ0\sigma\ge\sigma_0, and this is inherited by the derivative series below since log⁡n≤nε\log n \le n^{\varepsilon} for any ε>0\varepsilon>0 and large nn, which preserves convergence after an arbitrarily small loss of exponent — concretely, for σ>σ1>1\sigma > \sigma_1 > 1 we can absorb log⁡n\log n 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 c(n)n−s=c(n)e−slog⁡nc(n)n^{-s} = c(n)e^{-s\log n} is entire in ss) states: if ∑fn(s)\sum f_n(s) converges to F(s)F(s) locally uniformly on an open set, then FF is holomorphic there and F′(s)=∑fn′(s)F'(s) = \sum f_n'(s), the derivative series also converging locally uniformly. Applying this with fn(s)=c(n)n−sf_n(s) = c(n) n^{-s}, so fn′(s)=−c(n)(log⁡n) n−sf_n'(s) = -c(n)(\log n)\, n^{-s}, we obtain, for σ>1\sigma>1,

ζ′(s)ζ(s)=ddslog⁡ζ(s)=−∑n=2∞c(n)(log⁡n) n−s.\frac{\zeta'(s)}{\zeta(s)} = \frac{d}{ds}\log\zeta(s) = -\sum_{n=2}^{\infty} c(n) (\log n)\, n^{-s}.

(Here we also used ddslog⁡ζ(s)=ζ′(s)/ζ(s)\frac{d}{ds}\log \zeta(s) = \zeta'(s)/\zeta(s), valid since ζ(s)≠0\zeta(s)\ne 0 for σ>1\sigma>1 by Step 1, so log⁡ζ(s)\log\zeta(s) is a genuine holomorphic branch there with the usual derivative rule.)

Step 4 (Identify the coefficients as Λ(n)\Lambda(n)). For n=pkn = p^k we compute

c(n)log⁡n=1k⋅log⁡(pk)=1k⋅klog⁡p=log⁡p=Λ(pk)=Λ(n),c(n)\log n = \frac{1}{k}\cdot \log(p^k) = \frac1k \cdot k\log p = \log p = \Lambda(p^k) = \Lambda(n),

and for nn not a prime power, c(n)=0=Λ(n)c(n) = 0 = \Lambda(n). Hence c(n)log⁡n=Λ(n)c(n)\log n = \Lambda(n) for every n≥2n \ge 2, and trivially Λ(1)=0\Lambda(1)=0 matches n=1n=1 contributing nothing. Substituting into Step 3:

ζ′(s)ζ(s)=−∑n=1∞Λ(n)ns,i.e.−ζ′(s)ζ(s)=∑n=1∞Λ(n)ns,σ>1.\frac{\zeta'(s)}{\zeta(s)} = -\sum_{n=1}^{\infty} \frac{\Lambda(n)}{n^s}, \quad\text{i.e.}\quad -\frac{\zeta'(s)}{\zeta(s)} = \sum_{n=1}^{\infty}\frac{\Lambda(n)}{n^s}, \qquad \sigma>1.

Absolute convergence of this final series for σ>1\sigma > 1 follows since it is (up to sign) the derivative series established convergent in Step 3. This proves part (b) and completes the theorem. ■\blacksquare

∎
CorollaryMöbius inversion recovers Λ\Lambda from log⁡\log

For every integer n≥1n \ge 1,

log⁡n=∑d∣nΛ(d),equivalentlyΛ(n)=∑d∣nμ(d) log⁡ ⁣(nd),\log n = \sum_{d \mid n} \Lambda(d), \qquad \text{equivalently} \qquad \Lambda(n) = \sum_{d\mid n} \mu(d)\, \log\!\left(\frac{n}{d}\right),

where μ\mu is the The Mobius Function.

Proof

Write n=p1a1⋯prarn = p_1^{a_1}\cdots p_r^{a_r} by unique factorization, so log⁡n=∑i=1railog⁡pi\log n = \sum_{i=1}^r a_i \log p_i. On the other hand, the divisors dd of nn with Λ(d)≠0\Lambda(d)\ne 0 are exactly the prime-power divisors pijp_i^{j} for 1≤j≤ai1\le j \le a_i, 1≤i≤r1\le i \le r, each contributing Λ(pij)=log⁡pi\Lambda(p_i^j) = \log p_i. Summing,

∑d∣nΛ(d)=∑i=1r∑j=1ailog⁡pi=∑i=1railog⁡pi=log⁡n,\sum_{d\mid n} \Lambda(d) = \sum_{i=1}^r \sum_{j=1}^{a_i} \log p_i = \sum_{i=1}^r a_i \log p_i = \log n,

proving the first identity for every n≥1n\ge1 (for n=1n=1 both sides are 00, the empty sum). For the second identity, apply the Möbius inversion formula: if f(n)=∑d∣ng(d)f(n) = \sum_{d\mid n} g(d) for all n≥1n\ge1, then g(n)=∑d∣nμ(d)f(n/d)g(n) = \sum_{d\mid n}\mu(d) f(n/d). This formula is proved (assumed known from The Mobius Function) using ∑d∣mμ(d)=[m=1]\sum_{d\mid m}\mu(d) = [m=1]. Taking f(n)=log⁡nf(n)=\log n and g(n)=Λ(n)g(n)=\Lambda(n), which satisfy f=∑d∣ng(d)f=\sum_{d\mid n} g(d) by the first identity, inversion gives

Λ(n)=∑d∣nμ(d)log⁡(n/d).■\Lambda(n) = \sum_{d\mid n}\mu(d)\log(n/d). \qquad \blacksquare
∎

Worked examples

Example 1: Verifying the identity numerically via partial sums at s=2s=2. We test −ζ′(2)/ζ(2)=∑nΛ(n)/n2-\zeta'(2)/\zeta(2) = \sum_n \Lambda(n)/n^2 using known values and truncation, illustrating the identity with concrete asymmetric data (not a toy symmetric case). We know ζ(2)=π2/6≈1.644934\zeta(2) = \pi^2/6 \approx 1.644934. For ζ′(s)=−∑n≥1(log⁡n)/ns\zeta'(s) = -\sum_{n\ge1} (\log n)/n^s (valid for σ>1\sigma>1, by direct term-by-term differentiation of the defining Dirichlet series for ζ\zeta, an even more elementary instance of the differentiation theorem used above), we estimate ζ′(2)\zeta'(2) by summing enough terms:

ζ′(2)≈−(log⁡24+log⁡39+log⁡416+log⁡525+log⁡636+log⁡749+log⁡864+log⁡981+log⁡10100+⋯ ).\zeta'(2) \approx -\left(\frac{\log 2}{4} + \frac{\log 3}{9} + \frac{\log 4}{16} + \frac{\log 5}{25} + \frac{\log 6}{36} + \frac{\log 7}{49} + \frac{\log 8}{64} + \frac{\log 9}{81} + \frac{\log 10}{100}+\cdots\right).

Numerically, term by term:

0.6931474=0.173287, 1.0986129=0.122068, 1.38629416=0.086643, 1.60943825=0.064378,\tfrac{0.693147}{4}=0.173287,\ \tfrac{1.098612}{9}=0.122068,\ \tfrac{1.386294}{16}=0.086643,\ \tfrac{1.609438}{25}=0.064378,
1.79175936=0.049771, 1.94591049=0.039712, 2.07944264=0.032491, 2.19722581=0.027126, 2.302585100=0.023026.\tfrac{1.791759}{36}=0.049771,\ \tfrac{1.945910}{49}=0.039712,\ \tfrac{2.079442}{64}=0.032491,\ \tfrac{2.197225}{81}=0.027126,\ \tfrac{2.302585}{100}=0.023026.

Summing these nine terms: 0.173287+0.122068+0.086643+0.064378+0.049771+0.039712+0.032491+0.027126+0.023026=0.6185020.173287+0.122068+0.086643+0.064378+0.049771+0.039712+0.032491+0.027126+0.023026 = 0.618502. Continuing the tail contributes a further amount (this series converges slowly, like ∑(log⁡n)/n2\sum (\log n)/n^2, but the known closed form is ζ′(2)=−(π26)(γ+log⁡(2π)−12log⁡A)\zeta'(2) = -\left(\frac{\pi^2}{6}\right)(\gamma + \log(2\pi) - 12\log A) in terms of the Glaisher–Kinkelin constant AA; numerically ζ′(2)≈−0.937548\zeta'(2) \approx -0.937548). So −ζ′(2)≈0.937548-\zeta'(2) \approx 0.937548, giving

−ζ′(2)ζ(2)≈0.9375481.644934≈0.569960.-\frac{\zeta'(2)}{\zeta(2)} \approx \frac{0.937548}{1.644934} \approx 0.569960.

Now compute the right side directly from Λ(n)/n2\Lambda(n)/n^2 for prime powers n≤16n \le 16:

nntypeΛ(n)\Lambda(n)Λ(n)/n2\Lambda(n)/n^2
2212^1log⁡2=0.693147\log 2 = 0.6931470.1732870.173287
3313^1log⁡3=1.098612\log 3=1.0986120.1220680.122068
4222^2log⁡2=0.693147\log 2=0.6931470.0433220.043322
5515^1log⁡5=1.609438\log 5=1.6094380.0643780.064378
7717^1log⁡7=1.945910\log 7=1.9459100.0397120.039712
8232^3log⁡2=0.693147\log 2=0.6931470.0108310.010831
9323^2log⁡3=1.098612\log 3=1.0986120.0135630.013563
1111111^1log⁡11=2.397895\log 11=2.3978950.0198180.019818
1313113^1log⁡13=2.564949\log 13=2.5649490.0151780.015178
16242^4log⁡2=0.693147\log 2=0.6931470.0027080.002708

Summing these ten terms: 0.173287+0.122068+0.043322+0.064378+0.039712+0.010831+0.013563+0.019818+0.015178+0.002708=0.5048650.173287+0.122068+0.043322+0.064378+0.039712+0.010831+0.013563+0.019818+0.015178+0.002708 = 0.504865. Adding the next few prime powers n=17,19,23,25,27,29,31,32n=17,19,23,25,27,29,31,32 (each contributing between 0.0010.001 and 0.0090.009) pushes the partial sum steadily toward 0.569960.56996, consistent with the identity; the remaining discrepancy (≈0.065\approx 0.065) is the tail beyond n=16n=16, which is exactly what a slowly-converging series of this type should leave. This matches, within the precision expected from truncating at n=16n=16, the value 0.5699600.569960 computed independently from ζ\zeta and ζ′\zeta' — confirming the identity is not merely formal but numerically verifiable.

Example 2: Extracting π(x)\pi(x)-type information — computing ∑n≤12Λ(n)\sum_{n\le 12}\Lambda(n) directly and interpreting it as ψ(12)\psi(12). Define Chebyshev's function ψ(x)=∑n≤xΛ(n)\psi(x) = \sum_{n \le x} \Lambda(n), which will foreshadow the Prime Number Theorem (since ψ(x)∼x\psi(x) \sim x is equivalent to it). Compute ψ(12)\psi(12) exactly by listing all prime powers ≤12\le 12:

2, 3, 4=22, 5, 7, 8=23, 9=32, 11.2,\, 3,\, 4=2^2,\, 5,\, 7,\, 8=2^3,\, 9=3^2,\, 11.

(Prime powers 6,10,126,10,12 are excluded — they are not prime powers, having at least two distinct prime factors.) Their Λ\Lambda-values:

Λ(2)=log⁡2, Λ(3)=log⁡3, Λ(4)=log⁡2, Λ(5)=log⁡5, Λ(7)=log⁡7, Λ(8)=log⁡2, Λ(9)=log⁡3, Λ(11)=log⁡11.\Lambda(2)=\log2,\ \Lambda(3)=\log3,\ \Lambda(4)=\log2,\ \Lambda(5)=\log5,\ \Lambda(7)=\log7,\ \Lambda(8)=\log2,\ \Lambda(9)=\log3,\ \Lambda(11)=\log11.

Sum:

ψ(12)=3log⁡2+2log⁡3+log⁡5+log⁡7+log⁡11.\psi(12) = 3\log2 + 2\log3 + \log5+\log7+\log11.

Numerically: 3(0.693147)=2.0794423(0.693147)=2.079442, 2(1.098612)=2.1972252(1.098612)=2.197225, plus 1.609438+1.945910+2.3978951.609438+1.945910+2.397895. Total:

2.079442+2.197225+1.609438+1.945910+2.397895=10.229910.2.079442+2.197225+1.609438+1.945910+2.397895 = 10.229910.

Compare to x=12x=12: ψ(12)≈10.23\psi(12)\approx 10.23, already visibly close to 1212, an early numerical hint (far from a proof) of the eventual asymptotic ψ(x)∼x\psi(x)\sim x that the Prime Number Theorem establishes. This computation also double-checks Corollary: log⁡(12!)\log(12!) style identities are unnecessary here, but as a consistency check, note

∑d∣12Λ(d)=Λ(1)+Λ(2)+Λ(3)+Λ(4)+Λ(6)+Λ(12)=0+log⁡2+log⁡3+log⁡2+0+0=2log⁡2+log⁡3,\sum_{d \mid 12} \Lambda(d) = \Lambda(1)+\Lambda(2)+\Lambda(3)+\Lambda(4)+\Lambda(6)+\Lambda(12) = 0+\log2+\log3+\log2+0+0 = 2\log2+\log3,

since 6=2⋅36=2\cdot3 and 12=22⋅312=2^2\cdot3 are not prime powers so contribute 00. Indeed 2log⁡2+log⁡3=log⁡(4⋅3)=log⁡122\log2+\log3 = \log(4\cdot3)=\log12, confirming ∑d∣12Λ(d)=log⁡12\sum_{d\mid 12}\Lambda(d)=\log12 exactly as the Corollary predicts.

CounterexampleWhy σ>1\sigma > 1 (absolute convergence) is essential

Drop the hypothesis σ>1\sigma > 1 and attempt to apply the identity at, say, s=1s = 1 (or anywhere on the boundary line σ=1\sigma=1). The Dirichlet series ∑nΛ(n)n−s\sum_n \Lambda(n) n^{-s} diverges at s=1s=1: since Λ(n)≥0\Lambda(n) \ge 0 and Λ(p)=log⁡p\Lambda(p) = \log p for every prime pp, we have (using only the prime terms, a sub-series of nonnegative terms)

∑n=1∞Λ(n)n≥∑p primelog⁡pp,\sum_{n=1}^{\infty} \frac{\Lambda(n)}{n} \ge \sum_{p \text{ prime}} \frac{\log p}{p},

and this last sum is well known to diverge (it grows like log⁡x\log x, a consequence of Mertens' theorems, itself proved using estimates on ψ(x)\psi(x)). So the series defining −ζ′(s)/ζ(s)-\zeta'(s)/\zeta(s) as a Dirichlet series simply has no meaning at s=1s=1 — there is no absolutely convergent series to speak of. Separately, the left-hand side −ζ′(s)/ζ(s)-\zeta'(s)/\zeta(s) also fails to extend naively to s=1s=1: ζ(s)\zeta(s) itself has a simple pole at s=1s=1 (from the comparison ζ(s)−1s−1→γ\zeta(s) - \frac{1}{s-1} \to \gamma as s→1s\to1, a fact usually proved alongside the Euler product), so ζ(s)→∞\zeta(s) \to \infty there and the ratio ζ′(s)/ζ(s)\zeta'(s)/\zeta(s) has a pole coming from the pole of ζ\zeta, requiring separate analytic continuation arguments (residue calculus) rather than the naive series representation. This shows the hypothesis σ>1\sigma>1 cannot be weakened to σ≥1\sigma \ge 1 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 0<σ≤10 < \sigma \le 1 (away from zeros/poles of ζ\zeta) is possible but requires analytic continuation and knowledge of the zeros of ζ(s)\zeta(s) — 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

SituationWhat holdsWhat fails / needs more work
σ>1\sigma > 1Euler product, log-derivative identity, both series absolutely convergent—
σ=1\sigma = 1ζ(s)\zeta(s) has a pole at s=1s=1; series for Λ\Lambda divergesNaive series identity meaningless; need continuation
0<σ<10 < \sigma < 1ζ(s)\zeta(s) extends analytically (assumed known), may have zerosLog-derivative identity must be re-derived via continuation, tracking zeros of ζ\zeta as poles of −ζ′/ζ-\zeta'/\zeta
Confusing Λ(n)\Lambda(n) with log⁡n\log nΛ(n)≤log⁡n\Lambda(n) \le \log n, equality iff nn primeNot all integers carry weight — composite non-prime-powers get Λ(n)=0\Lambda(n)=0
Believing ψ(x)∼x\psi(x)\sim x follows immediatelyIt does notRequires the zero-free region of ζ(s)\zeta(s) near σ=1\sigma=1, a separate deep theorem

The mathematician behind it

Origins · 1 minBernhard Riemann and how this was discovered
BR
Bernhard Riemann
1826–1866 · Göttingen, analytic number theory

Riemann's 1859 memoir "Über die Anzahl der Primzahlen unter einer gegebenen Größe" introduced the analytic continuation of ζ(s)\zeta(s) 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 −ζ′/ζ-\zeta'/\zeta and Λ(n)\Lambda(n) the starting engine of a program completed decades later.

History
- 1737: Euler proves the Euler product formula for the zeta series over the reals, connecting it to primes.
- 1859: Riemann extends ζ(s)\zeta(s) to the complex plane and links its zeros to prime counting via an explicit formula.
- 1874: Mertens proves quantitative estimates for ∑p≤xlog⁡pp\sum_{p\le x}\frac{\log p}{p} and related prime sums.
- 1896: Hadamard and de la Vallée Poussin independently prove ζ(1+it)≠0\zeta(1+it)\ne0 for real tt, completing the Prime Number Theorem.
- 1949: Erdős and Selberg give elementary (non-complex-analytic) proofs of the Prime Number Theorem.
Why do we take the logarithm of the Euler product instead of working with ζ(s)\zeta(s) 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 log⁡ζ(s)=−∑plog⁡(1−p−s)\log\zeta(s) = -\sum_p\log(1-p^{-s}) first converts the problem into differentiating a sum of simple functions log⁡(1−p−s)\log(1-p^{-s}), each of whose derivatives is elementary. This is precisely what surfaces the von Mangoldt function: each derivative contributes a log⁡p\log p factor exactly at prime powers, which is otherwise invisible in the additive Dirichlet series for ζ(s)\zeta(s) itself.

Is Λ(n)\Lambda(n) the same as log⁡n\log n?

No, and this is a common confusion. Λ(n)\Lambda(n) equals log⁡p\log p only when nn is a power of a single prime pp; it is exactly 00 for every other nn, including all products of two or more distinct primes, like n=6,10,15n=6,10,15. In contrast log⁡n\log n is nonzero for every n>1n>1. The precise relationship is the divisor sum log⁡n=∑d∣nΛ(d)\log n = \sum_{d\mid n}\Lambda(d), proved via unique factorization: summing Λ\Lambda over all prime-power divisors of nn recovers exactly the total log of nn'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 Re⁡(s)>1\operatorname{Re}(s)>1, and it converts questions about primes into questions about ζ(s)\zeta(s)'s log-derivative, but it says nothing yet about the asymptotic size of ψ(x)=∑n≤xΛ(n)\psi(x)=\sum_{n\le x}\Lambda(n). To get ψ(x)∼x\psi(x)\sim x (equivalent to the Prime Number Theorem), one must analytically continue ζ(s)\zeta(s) past σ=1\sigma=1, show ζ(s)\zeta(s) has no zeros on the line σ=1\sigma=1, and then apply a contour-integral (Perron-type) argument. This identity is the essential first step, not the whole proof.

Why does ζ(s)≠0\zeta(s)\ne 0 for Re⁡(s)>1\operatorname{Re}(s)>1 matter here?

The logarithmic derivative −ζ′(s)/ζ(s)-\zeta'(s)/\zeta(s) is only defined (finite, holomorphic) where ζ(s)≠0\zeta(s)\ne0, since division by zero is undefined and log⁡ζ(s)\log\zeta(s) requires ζ(s)\zeta(s) to avoid 00 to have a consistent holomorphic branch. The Euler product itself, being an absolutely convergent product of nonzero factors (1−p−s)−1(1-p^{-s})^{-1}, automatically guarantees ζ(s)≠0\zeta(s)\ne0 for σ>1\sigma>1 — 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 μ\mu, lets us reverse divisor-sum identities. Since log⁡n=∑d∣nΛ(d)\log n = \sum_{d\mid n}\Lambda(d) expresses log⁡\log as a divisor sum of Λ\Lambda, inversion recovers Λ(n)=∑d∣nμ(d)log⁡(n/d)\Lambda(n) = \sum_{d\mid n}\mu(d)\log(n/d) directly in terms of familiar functions (μ\mu and log⁡\log), without reference to prime factorization explicitly. This gives an alternative, self-contained definition of Λ\Lambda purely via arithmetic functions, useful in contexts where one wants to manipulate Λ\Lambda algebraically rather than case-split on "is nn a prime power."

Why is Λ(n)\Lambda(n), rather than the indicator function of primes, the natural weight in this Dirichlet series approach?

The indicator function of primes, 1prime(n)\mathbf{1}_{\text{prime}}(n), does not arise naturally from differentiating log⁡ζ(s)\log\zeta(s); instead, the differentiation process organically produces log⁡p\log p at every prime power pkp^k, not just at primes themselves, because log⁡(1−p−s)\log(1-p^{-s})'s Taylor expansion has a term for every power kk. Attempting to work only with primes (ignoring prime powers) would break the exact algebraic identity with ζ′/ζ\zeta'/\zeta; the correction terms from prime powers p2,p3,…p^2, p^3,\dots are essential and turn out to be a lower-order correction handled later (e.g. via ψ(x)\psi(x) versus π(x)\pi(x) comparisons) in the route toward the Prime Number Theorem.

Can this identity be generalized beyond ζ(s)\zeta(s)?

Yes. Any Dirichlet series with an Euler product over primes — such as Dirichlet LL-functions L(s,χ)=∏p(1−χ(p)p−s)−1L(s,\chi) = \prod_p(1-\chi(p)p^{-s})^{-1} for a Dirichlet character χ\chi — admits an analogous logarithmic derivative identity, −L′(s,χ)/L(s,χ)=∑nχ(n)Λ(n)n−s-L'(s,\chi)/L(s,\chi) = \sum_n \chi(n)\Lambda(n) n^{-s}, 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 LL-functions.

Before this

Where this leads