The Riemann zeta function: from primes to the critical line
Add up the reciprocals of the squares: . Euler found that this converges to — a strange place for to show up, in a sum that has nothing visibly to do with circles. Do the same thing with cubes, or fourth powers, or in general with for any real , and you get a well-defined number. Push down to and the sum becomes the harmonic series, which diverges. That single boundary case — the harmonic series’ divergence — is also, via a completely different route, Euclid’s-proof-in-disguise that there are infinitely many primes. The two facts are not a coincidence, and untangling exactly how they’re connected is what pulls you into the Riemann zeta function.
From a curious sum to the primes
For a complex number with , define
Convergence here is easy to pin down. Write with . Then , so the series converges absolutely exactly when does — which, by the integral test against , happens precisely for . So is a well-defined, holomorphic function on the right half-plane . Nothing exotic yet.
The reason to care about primes at all comes from a factorization identity Euler wrote down: the Euler product,
This is worth deriving in full, because the derivation is genuinely elegant and it’s the entire reason is a number-theoretic object rather than just a curiosity in analysis. Fix a prime . Since for , the geometric series
converges absolutely. Now take the finite product over all primes for some cutoff , and multiply these geometric series together:
Expanding this product of sums (legitimate term-by-term because every series involved converges absolutely) produces one term for every way of choosing an exponent for each prime , almost all zero. Each such choice corresponds to the integer , and by the fundamental theorem of arithmetic that correspondence is a bijection: every positive integer whose prime factors are all arises from exactly one choice of exponents. So the expanded product is exactly
As , the right-hand side includes more and more integers, and its difference from the full sum is bounded by (again using absolute convergence for ). Taking the limit gives the Euler product exactly as stated.
Why does this matter? Unique factorization is doing all the work — the identity is a generating-function encoding of “every integer factors into primes in exactly one way.” Take logarithms and expand each as a power series in :
So the growth of as is governed, to leading order, by — a sum running only over primes. Since as (it has a pole there — the harmonic series diverging), this forces too, which recovers Euler’s classical proof that diverges, i.e. that there are infinitely many primes, via completely elementary complex-free reasoning about a sum over primes. That’s the shallow end of the pool. The deep end — where the zeros of pin down the fine-grained error term in how primes are distributed — is where the rest of this post is headed.
Why extend past ?
Two things push you to ask what “should” mean outside its natural domain. First, curiosity about divergent-looking sums like , which formally is if you plug into the defining series — except that series diverges, so the defining formula is simply not valid there and gives no answer on its own. Second, and far more importantly for the theory: it turns out the deep arithmetic information about primes — the size of the error term in the prime counting function, not just the crude fact that there are infinitely many — lives in the location of the zeros of , and those zeros mostly aren’t in the region at all (the Euler product shows there, since an infinite product of nonzero factors that converges to a nonzero value can’t vanish). To find the zeros that matter, you need defined on a much larger region of the complex plane.
This is where analytic continuation comes in. The idea is: find a function that is holomorphic on a larger domain and agrees with wherever the original series converges (). A basic fact of complex analysis — the identity theorem — says that if such an extension exists on a connected domain, it is unique: two holomorphic functions that agree on a set with a limit point (in particular, on an open set) must agree everywhere they’re both defined. So the question is purely existence, and “the Riemann zeta function” for outside means, unambiguously, this unique continuation — not the original series, which simply diverges out there and is not being “resummed” to anything.
Continuing : the idea, sketched honestly
Deriving the continuation properly uses machinery — the Jacobi theta function and Poisson summation — that’s genuinely beyond what a single post can derive from scratch. What follows is a sketch of the shape of the argument, not a full derivation.
Start from Euler’s integral for the Gamma function, . Substituting and rearranging turns this into a statement about a single term :
Summing over and swapping sum and integral (valid for ) turns the left side into , and the right side into an integral of — half of the Jacobi theta function .
This is the key move: satisfies a modular-type transformation law, , which is a direct consequence of applying Poisson summation to the Gaussian function. Splitting the integral at and using this transformation to rewrite the piece in terms of produces (after collecting the extra terms that the "" in contributes) a formula of the shape
The right-hand side is now visibly symmetric under , and the integral converges for every complex (because decays like as , beating any power of ). That gives, in one stroke, both the analytic continuation of to a meromorphic function on all of (with a single simple pole, at , coming from the term) and the functional equation below — because the completed function visibly satisfies .
The functional equation
Stripping the normalization out of and using Gamma’s duplication and reflection identities (a purely mechanical, if slightly tedious, algebraic step I’ll take on faith here) gives the classical form:
This single identity is doing a lot of work: it relates the value of at to its value at the “mirror point” , and it’s the tool for essentially everything past this point in the post — the trivial zeros, the value at negative integers, and the structural reason the critical line (the fixed axis of ) is special.
The trivial zeros, derived properly
Unlike the continuation and the functional equation itself, this part is fully derivable from what we already have — no sketching required. Plug for a positive integer into the functional equation:
Check each factor. and are just positive real numbers. for every integer , since sine vanishes at integer multiples of . is finite — Gamma’s poles sit only at , and is a positive integer for , nowhere near those poles, so this factor cannot blow up and rescue the vanishing sine. And is just the original convergent series evaluated at a point with , hence finite. A finite quantity times zero is zero:
These are the trivial zeros. It’s worth checking why is not among them, since naively too. The difference is that at , the functional equation reads — and is exactly the pole of the original series, i.e. . So the right side is a genuine indeterminate form, not a clean zero, and resolving it requires a limiting argument (it works out to the finite, nonzero value ). That’s why the trivial zeros start at , not .
About that
The functional equation also hands us directly, and it’s worth computing since it’s simultaneously the internet’s favorite fact about and its favorite source of a badly garbled claim. Plug :
That last step used — the Basel sum from the very first line of this post — so this comes full circle nicely.
Here’s the part to be careful about. is a true statement about the value of the analytically continued function at the point . It is emphatically not a statement that the series converges to — that series has terms growing without bound and diverges to in every ordinary sense of “sum.” The formula is only valid as a convergent series for ; at it is not the same object as , it’s the value of a different (continued) function that happens to agree with that series’ defining expression only where the expression actually converges. The popular framing that “physicists sum the naturals and get ” conflates these two things, and it’s worth resisting — is a fact about a specific holomorphic function evaluated off its original domain, full stop, not a resummation of a divergent series in any sense where “sum” keeps its ordinary meaning. (There are legitimate divergent-series regularization frameworks — Abel summation, zeta regularization itself — where shows up as a regularized value assigned to by convention, and that’s a real and useful thing in, e.g., string theory and Casimir-effect calculations; but “regularized value under a specific convention” is a different claim than “the sum equals ,” and the distinction is exactly the caveat being made here.)
The same functional-equation machine gives every for as a rational number (they’re related to the Bernoulli numbers: ) — Euler had already found these values, using divergent-series techniques rather than a rigorous continuation, well before Riemann’s construction made them precise.
The critical strip and the Riemann Hypothesis
The trivial zeros are, as the name suggests, the easy ones — they follow immediately from the sine factor. The Euler product rules out any zero with , and a further (nontrivial, not shown here) argument rules out zeros exactly on the line as well. That leaves the critical strip as the only place any other zeros can live, and does have infinitely many zeros there — the nontrivial zeros.
The Riemann Hypothesis (Riemann’s 1859 paper, where he introduced most of this machinery and stated the conjecture) says that every nontrivial zero has real part exactly — that they all lie on the critical line , the line fixed by the symmetry of the functional equation. This is, plainly, unproven. It is one of the Clay Mathematics Institute’s Millennium Prize Problems, extensive computer verification has found no counterexample among a very large number of zeros checked directly on the line, and a great deal of theory has been built assuming it — but none of that constitutes a proof, and stating otherwise would be wrong.
Why the zeros actually matter
It’s fair to ask why the exact real part of some zeros of an analytically-continued function should be a famous open problem rather than a curiosity. The answer is the explicit formula, which connects the zeros directly to the distribution of primes. Sketching its shape (not deriving it): there’s a formula, due to von Mangoldt building on Riemann’s approach, expressing a prime-counting function (a weighted count of prime powers up to ) as
where the sum runs over the nontrivial zeros . The main term is the “expected” growth (this is essentially the content of the Prime Number Theorem, proved in the 1890s independently by Hadamard and de la Vallée Poussin, showing ); everything else is correction. Each zero contributes an oscillating term of size roughly . If every zero has exactly — the Riemann Hypothesis — every one of those correction terms is of size about , giving the tightest possible control on the gap between the actual prime-counting function and its smooth approximation : an error bound of size roughly . If some zero had real part closer to , primes would be allowed to clump and thin out far more irregularly than we currently believe they do, with an error term as large as roughly for that zero’s real part . So the Riemann Hypothesis is exactly the statement that the primes are distributed as smoothly and predictably as the analytic machinery is theoretically capable of showing — that’s the actual stake, not just “an unsolved equation.”
A numerical look at the critical line
None of this requires taking anyone’s word for the oscillation — you can see it. The chart below plots for real from to , and it should visibly dip toward zero near several real values of (the first few nontrivial zeros sit near ).
A quick note on how the number is actually computed, since it isn’t a closed form: the direct Dirichlet series doesn’t converge on the critical line at all (), so this uses the classical trick of relating to the Dirichlet eta function, , whose alternating series converges (conditionally) for . The chart truncates that alternating series at terms and divides out the factor. This is a genuine numerical approximation, not an exact evaluation — checked against the known zero locations above it tracks them well out to , but truncating an alternating series at a fixed number of terms loses accuracy as grows (the terms oscillate faster), so treat the far right of a much wider plot with more skepticism than the region shown here.
Watching the Euler product converge
Back to something fully rigorous and exact rather than approximate: the Euler product derivation earlier claimed that multiplying over more and more primes converges to the same value as summing over more and more integers. At both sides converge to , and it’s a nice concrete check to watch both partial computations climb toward the same number, term by term:
The product converges to noticeably faster than the sum does, term for term — using just the first 15 primes gets within about of the target, while the first 15 integers alone are still off by about . That’s a small, concrete illustration of the general fact underlying the whole Euler product argument: primes carry disproportionately more arithmetic information per term than integers do, which is exactly why a product over primes alone can reconstruct a sum over all integers.
Closing
Everything here starts from a series that only converges on half the complex plane, extends uniquely (if you’re willing to take the extension’s existence on faith, or work through the theta-function argument yourself) to a function defined almost everywhere, and turns out to have zeros whose locations directly control how irregular the distribution of primes is allowed to be. Whether all of those zeros line up on a single vertical line is still, as of this writing, completely open.