The Riemann Zeta Function
How many primes are there below a billion? How are they spaced? This question, asked precisely, leads directly to a single complex-valued function. That function encodes the entire multiplicative structure of the integers. The Riemann zeta function begins as an unremarkable-looking infinite series. But Euler's discovery that it factors as a product over primes changes this. It turns the series into a bridge between additive analysis and multiplicative arithmetic. That bridge is the reason analytic tools — convergence, continuity, complex differentiation — can say anything at all about a purely combinatorial object like the set of primes. The idea matters because it inaugurates the entire field of analytic number theory. A series built from all positive integers can be rewritten as a product over primes. Primes are much sparser and much more mysterious than all integers. Once this rewriting is known, every analytic fact about the series becomes a candidate source of arithmetic information. Convergence radii become statements about growth rates of arithmetic functions. Poles become statements about densities. Zeros, as later chapters of this story reveal, become statements about the error term in the Prime Number Theorem itself. The big picture is this: is defined by an ordinary Dirichlet series for . There, it converges absolutely and defines a holomorphic function. Its Euler product, valid in the same half-plane, is algebraically equivalent to unique factorization of integers into primes. The function extends meromorphically to the whole complex plane with exactly one singularity. This singularity is a simple pole at . Its residue is the seed of the connection to prime counting. This single fact — a pole at with residue — is already enough to prove that there are infinitely many primes. It is the starting point for everything deeper. This article gives a complete, self-contained construction of on . It gives a full proof of the Euler product using unique factorization and absolute convergence. It also gives a rigorous account of the analytic continuation to , with the pole at isolated explicitly. Together, these build the exact platform needed for Zeta and the Distribution of Primes and The Prime Number Theorem: Statement and Heuristics.
- converges absolutely and defines a holomorphic function for .
- Unique factorization gives Euler's product on that same half-plane.
- The Euler product shows for , and its divergence as already reproves the infinitude of primes.
- A partial-summation (Abel summation) argument continues meromorphically to .
- The unique singularity in is a simple pole at with residue .
- Key idea: absolute convergence of a Dirichlet series over all integers, combined with unique factorization, converts a sum into a product over primes — turning analysis into arithmetic.
Where this lives today
The Riemann zeta function is the prototype for a vast family of -functions used throughout modern number theory: Dirichlet -functions (proving primes in arithmetic progressions), Dedekind zeta functions of number fields, and automorphic -functions attached to modular forms and Galois representations, all built on the same Euler-product philosophy established here. In analytic number theory proper, the location of zeros of controls the error term in the Prime Number Theorem, connecting this article directly to Zeta and the Distribution of Primes and The Prime Number Theorem: Statement and Heuristics. In physics, regularization — assigning finite "values" to divergent sums via the continuation, such as the notorious formal identity involving — is used in the Casimir effect and in string theory to regularize divergent vacuum energies. In probability and random matrix theory, the conjectural statistics of the zeros of on the critical line match the eigenvalue statistics of random Hermitian matrices (the Montgomery–Odlyzko phenomenon), linking analytic number theory to quantum chaos. In cryptography, understanding the distribution of primes — ultimately governed by — underlies algorithms for primality testing and the security assumptions of RSA-style cryptosystems, since generating large primes efficiently depends on quantitative prime density estimates descended from this theory. Finally, in computer science and computational number theory, efficient algorithms (the Riemann–Siegel formula, Odlyzko–Schönhage algorithm) are built precisely to compute and locate its zeros to enormous precision, testing the Riemann Hypothesis numerically for hundreds of billions of zeros.
Ask the tutor: How does the location of zeros of inside the strip control the error term in the Prime Number Theorem?
For a complex number with , the Riemann zeta function is defined by the Dirichlet series
where means with the real (positive) natural logarithm of the positive integer . The series converges absolutely for and, as shown below, converges locally uniformly there, so is holomorphic on the open half-plane .
Intuition
Think first of the real variable case: for real , is just a -series, familiar from calculus, converging because the terms decay faster than . What is new and remarkable is what happens when you let range over complex numbers with : the same absolute convergence argument works verbatim, because depends only on the real part of . So the domain of definition is naturally a half-plane, not an interval — the first hint that complex analysis, not just real analysis, is the right setting. The deeper structural fact is Euler's product formula. Every positive integer factors uniquely into primes, and this arithmetic fact has an analytic shadow: expanding the geometric series for each prime and multiplying these together over all primes, distributing the product, produces every term exactly once, by unique factorization. The sum over integers and the product over primes are two descriptions of the same convergent quantity. This is why is the natural gateway between "additive" analytic tools (series, integrals, contour arguments) and "multiplicative" arithmetic data (primes, factorization). Finally, picture the half-plane as the "safe zone" where the naive definitions make sense, with a wall at where the series stops converging. The analytic continuation shows the wall is not really a boundary of existence for the function — can be extended past it — but it is the location of a genuine singularity, a simple pole exactly at . Everything about primes that will eventually reveal is entangled with the behavior of the function near that single point and, more deeply, with its zeros elsewhere.
Let for . Then: 1. (Holomorphy.) The series converges absolutely, and uniformly on every half-plane with ; consequently is holomorphic on . 2. (Euler product.) For ,
where the product is over all primes and converges absolutely; in particular for . 3. (Meromorphic continuation.) extends to a meromorphic function on , holomorphic there except for a single simple pole at with residue . Explicitly, for ,
where is the fractional part, and the integral on the right converges and is holomorphic for , so this formula defines the continuation.
For real , the series converges absolutely and uniformly on .
For with ,
Since , the real series converges (comparison with the convergent -series, or the integral test: , a bound independent of , so the partial sums are bounded and increasing, hence convergent). By the Weierstrass -test with , the series converges absolutely and uniformly for .
∎We prove the theorem in three parts, each building on the previous.
Part 1: Holomorphy. By the Lemma, for every the series converges uniformly on . Each term is an entire function of . A locally uniform limit of holomorphic functions on an open set is holomorphic on that set (this is a standard consequence of Morera's theorem / Weierstrass's theorem on uniform limits of holomorphic functions: uniform limits preserve the vanishing of contour integrals around triangles, so Morera's theorem applies to the limit). Since and holomorphy is a local property, is holomorphic on the full half-plane .
Part 2: Euler product. Fix with . For each prime , since , the geometric series
converges absolutely. Let be the first primes and set
Because each factor converges absolutely, we may multiply out the finite product of absolutely convergent series term by term (rearrangement is justified since a finite product of absolutely convergent series is itself an absolutely convergent series, by Mertens' theorem on products of absolutely convergent series, or directly: absolute convergence of each factor lets us expand and regroup by any bijection without changing the sum). This gives
where is the set of positive integers all of whose prime factors lie among — because expanding the product picks out, for each choice of nonnegative exponents , the term with , and by unique factorization (the Fundamental Theorem of Arithmetic) this correspondence is a bijection onto . Every integer has all its prime factors , hence among (since are all primes up to ). Thus , and consequently
because converges (Lemma) and hence its tail beyond vanishes. Therefore
i.e. the infinite product converges to . Absolute convergence of the product: an infinite product with converges absolutely (meaning ) since
for (using so ), and . Absolute convergence of implies the infinite product converges to a nonzero value if and only if no factor is zero; here each factor , so for .
Part 3: Meromorphic continuation to . We use Abel summation (partial summation), a standard technique from Dirichlet Series and Euler Products. For and integer , write for the greatest integer . Using the Riemann–Stieltjes representation
integrate by parts (justified since is a step function and is continuously differentiable):
(This identity is checked directly: differentiating the right side or, more elementarily, verifying it by comparing jumps at each integer; it is the standard Abel-summation formula for and is proved in the prerequisite treatment of Dirichlet series.) Now write :
Let . Since , because . The integral converges absolutely for : since ,
Taking in the displayed identity (valid termwise since all pieces converge) gives, for ,
Now consider the right-hand side of as a function of , defined for all . We claim is holomorphic on except for a simple pole at with residue .
- The term is meromorphic on all of with a single simple pole at , residue .
- The term is holomorphic on . To see this, fix and restrict to ; the integrand is, for each fixed , an entire function of , and it is dominated by the integrable-in-, -independent bound (integrable near infinity since , and there is no singularity at ). By Morera's theorem combined with Fubini/Morera-type differentiation under the integral sign (a standard fact: an integral of a family of holomorphic functions, locally uniformly bounded by an integrable dominating function, is holomorphic and its derivative may be computed by differentiating under the integral sign), is holomorphic on for every , hence on .
Therefore is meromorphic on , holomorphic except for the single simple pole at inherited from (the factor is holomorphic there, including at , since is holomorphic on the whole half-plane), and the residue of at equals the residue of at , namely (subtracting a holomorphic function does not change a residue). By , for . Since two holomorphic functions agreeing on the open set , which has an accumulation point in the connected domain , must agree on the whole connected domain (the identity theorem for holomorphic functions), is the meromorphic continuation of to , and we rename as on this larger domain. This continuation is unique: any two meromorphic continuations of to a connected open set agree on a set with a limit point, hence agree everywhere, by the identity theorem. This proves Part 3 and completes the proof of the theorem.
∎There are infinitely many primes.
Suppose, for contradiction, that there were only finitely many primes . By the Euler product (Part 2 of the Theorem), for real ,
The right-hand side is a finite product of continuous functions of , each factor tending to the finite value as ; hence the right side stays bounded as . But by Part 3, , so as (through real , where all terms in the original series are positive, so is manifestly real and increasing to as , consistent with the pole having positive residue). This contradicts boundedness of the finite product. Hence there are infinitely many primes.
∎Worked examples
Example 1: Bounding near using the Euler product tail. Take , so . We estimate how well the partial Euler product over the first three primes approximates , and bound the error rigorously. From the proof of Part 2, with the set of integers whose prime factors are among and the -th prime, we have the tail bound
With (primes , so ) and :
Using and , the bound is
So the three-prime Euler product already approximates to within about in absolute value — and this error bound is completely explicit and rigorous, not asymptotic. This illustrates concretely how the Euler product converges to term by term as more primes are included, exactly as proved in the theorem, and shows the mechanism (comparison with the tail of for real ) that makes the convergence proof work quantitatively.
Example 2: Locating and computing the residue at using the integral formula. We use formula ,
to compute the constant term in the Laurent expansion of at beyond just confirming the pole — specifically, to find , which the theory of the Riemann zeta function calls the Euler–Mascheroni constant (we verify only the existence and value of the limit here, using the tools already established, not further unproved facts). Write . Then
Since is holomorphic (in particular continuous) at by Part 3 of the theorem, we may take the limit termwise:
We now evaluate directly by splitting into unit intervals , on which :
Compute the -th integral: . Summing the first several terms numerically to see the partial value (the series telescopes with , matching the classical identity ):
- :
- :
- :
- :
Partial sum after four terms: , with remaining positive terms continuing to accumulate toward the known value Hence
consistent with (and here re-derived from) the integral representation proved above, showing the pole at is simple, has residue , and the finite part of the Laurent expansion begins with the Euler–Mascheroni constant.
The theorem's proof of the Euler product crucially used absolute convergence of at each fixed with , to justify freely rearranging and regrouping the product of geometric series. To see why this hypothesis cannot be dropped, consider the related but merely conditionally convergent Dirichlet series
the Dirichlet eta function, which converges (conditionally, by the alternating series test) for , in particular at real with where itself diverges and there is no absolute convergence at all. If one tried to mimic the Euler product proof for at, say, (where , a finite, well-defined alternating sum), the same term-by-term regrouping into a product over primes is not valid: has no multiplicative structure of this kind because its coefficients are not built from a multiplicative arithmetic function in the way that lets factorization distribute correctly, and more fundamentally, at the terms do not form an absolutely convergent series, so rearranging the sum defining (for instance grouping all terms with a fixed smallest prime factor) can change its value — conditionally convergent series are not rearrangement-invariant, by the Riemann rearrangement theorem. Concretely, reordering the alternating harmonic-type series into a different order can be made to converge to a different sum or to diverge entirely, so no Euler-product-style regrouping argument can even be attempted rigorously. This is exactly the point in the proof of Part 2 where absolute convergence was invoked to guarantee that reordering the double sum into primes-and-exponents does not change the total — remove that hypothesis, and the entire derivation breaks down at the first step.
Scope, edge cases & common traps
| Situation | What is true | What is not true / common error |
|---|---|---|
| Series and Euler product both converge absolutely; here | Assuming the series converges at (it diverges: harmonic series) | |
| , | is finite (continuation applies) and, famously, for real (used in PNT, not proved here) | Assuming the Euler product itself converges on this line — it does not, since diverges |
| is defined by continuation, generally nonzero except at the (unproven-here) "nontrivial zeros" | Plugging values into the original series here — it diverges, and the series formula simply does not apply | |
| Simple pole, residue | Treating as a finite number under any definition | |
| Requires the functional equation (beyond this article's scope) to continue further | Applying formula blindly outside , where the integral representation used here was only proved to converge |
The mathematician behind it
Origins · 1 minBernhard Riemann and how this was discovered
Georg Friedrich Bernhard Riemann was a German mathematician whose 1859 paper "Über die Anzahl der Primzahlen unter einer gegebenen Größe" ("On the Number of Primes Less Than a Given Magnitude") — his only paper in number theory — introduced the complex-variable study of the zeta function, proved its functional equation and meromorphic continuation, and stated the Riemann Hypothesis about the location of its nontrivial zeros. Riemann's broader work founded Riemannian geometry and reshaped complex analysis, but this single eight-page memoir created analytic number theory as a field, by showing that Euler's real-variable series becomes vastly more powerful once treated as a function of a complex variable.
Why does the series for only make sense for in the first place?
The terms of the series are , and . If , the terms decay too slowly (or not at all) for the series to converge; at it is exactly the divergent harmonic series, and for the terms do not even tend to zero fast enough. So absolute convergence, which is what the comparison test with the real -series controls, genuinely requires . This is why the function must be defined by the series only on that half-plane, and extended elsewhere by other means, such as the integral representation proved in this article.
Does the Euler product remain valid after analytic continuation, say for ?
No. The Euler product formula was proved using absolute convergence of , which requires exactly as for the original series. Once is extended to via the integral formula, there is no claim, and in fact no truth, that the infinite product over primes still converges to there. Indeed, if the Euler product converged and were nonzero throughout , could never vanish there — but does have nontrivial zeros in this strip (a deep fact from later chapters), so the product formula's absolute-convergence region genuinely stops at .
How does the pole at relate to the infinitude of primes?
The Euler product gives, for real , (bounded error), so as forces as well. If there were only finitely many primes, this sum would stay bounded as , contradicting the divergence caused by the pole. This is precisely the corollary proved in this article: the pole's residue being positive (in fact equal to ) is analytically equivalent to there being infinitely many primes, generalizing Euler's original 1737 argument to the complex-analytic setting.
What is the difference between "convergence" of the series and "existence" of at a point like ?
The series diverges completely at (it becomes , which diverges to term by term). However, is a perfectly well-defined finite number, namely , once one uses the meromorphic continuation (via the functional equation, beyond this article's scope) rather than the original series. The symbol "" always refers to the continued function's value, never to a literal evaluation of the divergent series; conflating the two is the source of the popular but misleading claim that "."
Why is it called an "Euler product" if Riemann's name is attached to the function?
Euler discovered and proved the product formula over a century earlier, in 1737, for real , and used it to give a new proof that there are infinitely many primes. Riemann's 1859 contribution was to treat as a complex variable, proving the function extends meromorphically, satisfies a functional equation relating and , and has zeros whose location controls the distribution of primes. The function is named after Riemann because his complex-analytic viewpoint — not the series or product themselves — is what created the modern theory; the Euler product remains correctly credited to Euler within that theory.
Does this article prove the Riemann Hypothesis or say anything about the zeros of zeta?
No. This article establishes only the foundational analytic facts: convergence of the defining series, the Euler product on (which already shows has no zeros there), and the meromorphic continuation to with its single simple pole at . Questions about zeros inside the strip — including the location of the "trivial zeros," the "critical line" , and the Riemann Hypothesis itself — require the functional equation and much deeper analysis, and are addressed in Zeta and the Distribution of Primes and beyond.
What role does absolute convergence play beyond just "making the proof easier"?
Absolute convergence is not a mere technical convenience; it is what allows rearrangement of infinite sums and products without changing their value, which is exactly the operation used to convert the sum over integers into a product over primes. Without it (as the counterexample with the Dirichlet eta function shows), the Riemann rearrangement theorem guarantees that reordering terms can change the sum entirely, so any attempt to regroup a series "by prime factorization" would be logically unjustified. Absolute convergence is precisely the hypothesis that makes the additive-to-multiplicative translation rigorous.