An interactive history · 1735 → today
We start with a puzzle a child could state, adding up some fractions, and follow it step by step to the most famous unsolved problem in mathematics. Along the way you will see why it is really a question about the prime numbers.
Oresme, c. 1350 · Euler, 1730s
Let's start with something simple. Take the numbers 1, 2, 3, 4, and so on, raise each one to some power $s$, turn it upside down, and add them all up:
$$\zeta(s) = \frac{1}{1^s} + \frac{1}{2^s} + \frac{1}{3^s} + \frac{1}{4^s} + \cdots$$
That's the whole thing. That's the zeta function. It looks innocent enough, but it is going to take us a very long way.
Try $s=1$ first: $1+\frac12+\frac13+\frac14+\cdots$. The terms keep getting smaller, so you might guess that the total settles down. It doesn't! It keeps on growing, past any number you care to name. But it grows very, very slowly: after $N$ terms you have only about $\ln N$, the natural logarithm of $N$ (the power you must raise $e\approx 2.718$ to in order to get $N$). After a million terms the total is still below 15. Now push $s$ a little above 1 and something changes: the total stops growing and settles on a definite number. Move the slider and watch it happen, right at $s=1$.
Euler, 1734
Here is a puzzle that stumped some very good mathematicians. Put $s=2$ in our sum and you get the upside-down squares: $$\zeta(2) = \frac{1}{1^2} + \frac{1}{2^2} + \frac{1}{3^2} + \cdots = 1 + \frac14 + \frac19 + \cdots$$ Chapter 1 tells you it settles down (set its slider to $s=2$ and watch it level off near 1.645). But settle down to what? Jacob Bernoulli tried and couldn't get it. Leibniz couldn't get it either. It came to be called the Basel problem, after the Bernoullis' home town. Then a 27-year-old named Euler got it, and the answer is crazy: $\zeta(2) = \pi^2/6 \approx 1.644934$. Now what on earth is $\pi$ doing here? $\pi$ is about circles, and there are no circles anywhere in $1+\frac14+\frac19+\cdots$. That is the first hint that something deep is going on.
A word about names: Euler didn't call it $\zeta$. Riemann gave the function that letter in 1859. But this was the first time anybody got an exact value out of it.
Euler's trick was wonderfully daring. Look at $\frac{\sin \pi x}{\pi x}$. It equals 1 at $x=0$, and it is zero at $x=\pm1, \pm2, \pm3,\dots$ Euler said: let's pretend it is a polynomial, just an infinitely long one, and write it as a product over its roots, the way you would for any polynomial: $$\frac{\sin \pi x}{\pi x} = \Big(1-\frac{x^2}{1}\Big)\Big(1-\frac{x^2}{4}\Big)\Big(1-\frac{x^2}{9}\Big)\cdots$$ Now look at the $x^2$ terms on each side. On the left, the sine series $\sin y = y - \frac{y^3}{6} + \cdots$ with $y=\pi x$ gives $$\frac{\sin \pi x}{\pi x} = 1 - \frac{\pi^2}{6}\,x^2 + \cdots$$ On the right, you get an $x^2$ term by picking $-\frac{x^2}{k^2}$ from one factor and $1$ from all the others. Add those up and you get $-\big(1+\frac14+\frac19+\cdots\big)x^2$. Both sides are the same function, so the $x^2$ terms must match: $\frac{\pi^2}{6} = 1+\frac14+\frac19+\cdots = \zeta(2).$ That's it!
Euler, later
And it keeps going. The same trick gives every even value: $\zeta(4)=\frac{\pi^4}{90}$, $\zeta(6)=\frac{\pi^6}{945}$, and in general $\zeta(2k)$ is a fraction times $\pi^{2k}$. What about the odd ones, like $\zeta(3)$? Nobody knows a formula. It took until 1978 for Apéry to prove that $\zeta(3)$ is not even a fraction.
Euler, 1737
Now here is something really remarkable. Euler found that this sum over all the whole numbers is equal to a product with one factor for each prime: $$\sum_{n=1}^{\infty} \frac{1}{n^s} \;=\; \prod_{p\ \text{prime}} \frac{1}{1-p^{-s}} \;=\; \frac{1}{1-2^{-s}}\cdot\frac{1}{1-3^{-s}}\cdot\frac{1}{1-5^{-s}}\cdots$$ At first sight that looks impossible. On the left you have every number; on the right, only the primes. How can they be equal? Let's work it out with $s=2$, one step at a time.
Step 1: open up one factor. With $s=2$, the factor for a prime $p$ is $\frac{1}{1-1/p^2}$. That has the form $\frac{1}{1-r}$ with $r=\frac{1}{p^2}$, and you may remember from school that $\frac{1}{1-r} = 1 + r + r^2 + r^3 + \cdots$. So $$\frac{1}{1-\frac{1}{p^2}} \;=\; 1 + \frac{1}{p^2} + \frac{1}{(p^2)^2} + \frac{1}{(p^3)^2} + \cdots$$ In words: the factor for $p$ is the sum of 1 over the square of every power of $p$. For $p=2$: $$\frac{1}{1-\frac14} \;=\; 1 + \frac{1}{2^2} + \frac{1}{4^2} + \frac{1}{8^2} + \cdots \;=\; \frac43.$$ For $p=3$: $\;\frac{1}{1-\frac19} = 1 + \frac{1}{3^2} + \frac{1}{9^2} + \cdots = \frac98.$
Step 2: multiply two of them. Now multiply the factors for 2 and 3: $$\Big(1+\frac{1}{2^2}+\frac{1}{4^2}+\cdots\Big)\Big(1+\frac{1}{3^2}+\frac{1}{9^2}+\cdots\Big).$$ When you multiply this out, each term picks one thing from the first bracket and one from the second: one power of 2 and one power of 3. For instance, $\frac{1}{4^2}\cdot\frac{1}{3^2}=\frac{1}{12^2}.$ So out comes $\frac{1}{n^2}$ for every $n$ made only of 2s and 3s: 1, 2, 3, 4, 6, 8, 9, 12, … And here is the key: each one comes out exactly once, because there is only one way to build a number out of primes. Twelve is $2\cdot2\cdot3$, and that is the only way to make it. Of course 5, 7 and 10 are still missing, and the product so far is $\frac43\cdot\frac98 = 1.5$, a bit short of $\zeta(2)\approx 1.645.$ The table below lays out every term.
Step 3: bring in every prime. Put in the factor for 5 and you pick up 5, 10, 15, 20, … Put in 7 and you get 7, 14, 21, … Keep going. Every whole number is built from primes, so once all the primes are in, every $\frac{1}{n^2}$ shows up, exactly once. That is the whole sum, $\zeta(2)$. Watch it happen in the figure below as you add the primes one by one.
Why $s=2$? Just to keep the numbers friendly, and because we already know the answer, $\pi^2/6$. The argument works the same way for other values of $s$: the factor for $p$ opens up into $1 + \frac{1}{p^s} + \frac{1}{(p^2)^s} + \cdots$, and multiplying the factors builds $\frac{1}{n^s}$ for every $n$, once each. The real secret ingredient is that every whole number breaks into primes in just one way. So the product equals $\zeta(s)$ for every $s$ greater than 1, where all the sums settle down.
The payoff · there are infinitely many primes
Here is a lovely consequence. Set $s=1$. The sum becomes the harmonic series $1+\frac12+\frac13+\cdots$, which we saw in chapter 1 grows without limit. Now suppose there were only a finite number of primes. Then the product $\frac21\cdot\frac32\cdot\frac54\cdots$ would be a finite list of ordinary numbers multiplied together, and that can't come out infinite. So the primes never run out! The product is the bridge between the whole numbers and the primes, and the rest of the story walks across it.
Where the story goes next. So $\zeta$ knows about the primes. That raises a deeper question: why are the primes spaced the way they are? They are common at first (2, 3, 5, 7), then they thin out, and there is no simple pattern to them. In 1859 Riemann discovered that the answer is hidden in the places where $\zeta$ equals zero. But for $s$ greater than 1 there aren't any: every term in the sum is positive, so how could they add up to zero? To find the zeros, Riemann had to do something bold. He let $s$ be a complex number. That is the next chapter.
Riemann, 1859
First, complex numbers. Don't be scared off by the name. A complex number is just a point in a plane. We write it as $s=\sigma+it$: $\sigma$ tells you how far to the right the point is, and we call it the real part, $\mathrm{Re}(s)$. $t$ tells you how far up it is, and we call it the imaginary part, $\mathrm{Im}(s)$. The ordinary numbers you already know are just the horizontal line through the middle, where $t=0$. Everything we did in chapters 1–3 happened on that one line.
You can add and multiply these points, and $n^s$ still makes sense when $s$ is complex. So our sum $\zeta(s)=1+\frac{1}{2^s}+\frac{1}{3^s}+\cdots$ makes sense too, and it settles down whenever $\mathrm{Re}(s)>1$. What comes out, $\zeta(s)$, is also a complex number, a point in a plane of its own. In the pictures below we describe it two ways: its size $|\zeta(s)|$, which is how far it is from 0, and its direction, the angle it points in. A zero is an input where the output lands exactly on 0. A pole is the opposite: a place where the output shoots off to infinity. $\zeta$ has one, at $s=1$, because that is where the sum turns into the harmonic series.
Getting past the wall at $\mathrm{Re}(s)=1$. The sum stops working at $\mathrm{Re}(s)=1$. But there is a neat trick to get past it. Flip every other sign: $$\eta(s) = 1 - \frac{1}{2^s} + \frac{1}{3^s} - \frac{1}{4^s} + \cdots$$ The pluses and minuses cancel each other enough that this sum settles down for every $\mathrm{Re}(s)>0$. And it is closely related to $\zeta$: take twice the even terms out of $\zeta$ and you find $\eta(s)=(1-2^{1-s})\,\zeta(s)$. Turn that around, $\zeta(s)=\frac{\eta(s)}{1-2^{1-s}}$, and now $\zeta$ has a value for every $\mathrm{Re}(s)>0$, except at the pole $s=1$. That covers the strip $0<\mathrm{Re}(s)<1$, called the critical strip, and that is where the interesting zeros live. (It is also how this page computes $\zeta$.)
The mirror. For the left half of the plane, Riemann found a formula called the functional equation. It ties the value of $\zeta$ at $s$ to its value at the mirror point $1-s$, so anything on the left is settled by something on the right, which we already know. And here is the beautiful part: the mirror is centered on the vertical line $\mathrm{Re}(s)=\tfrac12$. Zeros inside the strip come in mirror-image pairs, one on each side of that line, or else they sit right on it. That is our first hint that the line $\tfrac12$ is special.
You might worry that we are just making things up, and that somebody else could extend $\zeta$ some other way. We're not, and they can't. $\zeta$ is smooth in a very strong sense, called analytic, and an analytic function is so rigid that knowing it on any little patch fixes it everywhere. There is only one way to extend it, and these tricks find it. On the real line it gives some surprising values, like $\zeta(-1)=-\tfrac{1}{12},$ and it puts a zero at every negative even number, $-2, -4, -6, \dots$ These are called the trivial zeros, because we understand them completely.
Careful, though: $\zeta(-1)=-\tfrac{1}{12}$ does not mean that $1+2+3+\cdots$ adds up to $-\tfrac{1}{12}$. That sum runs off to infinity, period. $-\tfrac{1}{12}$ is the value of the extended function, which out there isn't the sum any more.
Here it is, for the brave: $$\zeta(s) = 2^s \pi^{s-1} \sin\!\Big(\frac{\pi s}{2}\Big)\, \Gamma(1-s)\, \zeta(1-s).$$ $\Gamma$ is the factorial extended to all numbers: $\Gamma(n)=(n-1)!$ for whole numbers $n$. When $\mathrm{Re}(s)<0$, the mirror point $1-s$ has real part bigger than 1, where the plain sum works, so this formula gives $\zeta$ on the whole left half. The factor $\sin(\pi s/2)$ is zero at $s=-2,-4,-6,\dots$, and that is exactly where the trivial zeros come from.
Where the zeros can be
Now we can corner the zeros. For $\mathrm{Re}(s)>1$ the Euler product from chapter 3 converges so strongly (we say absolutely) that it can never be zero, so there are no zeros there. Look through the mirror and you see that to the left of $\mathrm{Re}(s)=0$ the only zeros are the trivial ones. Every other zero, the non-trivial zeros, is trapped in the critical strip $0\le\mathrm{Re}(s)\le1$, and in 1896 even the two edges were ruled out (chapter 6). So where exactly in the strip are they? That is the question of the next chapter.
The Riemann Hypothesis
The non-trivial zeros are the ones inside the critical strip. Riemann worked out a few of them by hand, and he noticed that they all had real part exactly $\tfrac12$. He wrote that it was "very probable" that all of them do, and then he set the question aside, "for the time being", he said. That was 1859. Nobody has been able to prove it since. Today it is one of the Clay Millennium Problems, with a prize of a million dollars.
Here is what we know. More than $10^{13}$ zeros have been checked, and every single one is on the line. At least 41% of all the zeros have been proved to be on it. Not one has ever been found off it. But "every one we checked" is not a proof. There are infinitely many zeros, and mathematicians have been fooled before by patterns that held for an enormously long time and then broke.
How to read the figure. The points on the critical line are $s=\tfrac12+it$, where $t$ is the imaginary part: how far up the line you are. It is the Im(s) direction from chapter 4. Drag the $t$ slider and you walk up the line. The input panel shows where you are.
At each step, $\zeta(\tfrac12+it)$ is a complex number, a point in a separate output plane. As you walk, that point moves and traces out a loopy path. Every time the path goes right through the origin, $\zeta=0$, and you have found a zero. The first one comes at $t\approx 14.13$.
Following loops is hard on the eyes, so the right panel shows the same walk as one wiggly curve, $Z(t)$. It is $\zeta(\tfrac12+it)$ turned so that it always comes out as a real number of the same size. So every zero is a place where $Z(t)$ crosses the axis. The black line along the 3D surface in chapter 4 follows this same size, $|Z(t)|$, and its arches touch the floor at the same zeros.
Now try the $\sigma$ slider. It moves you off the line, to $s=\sigma+it$. At $\sigma=\tfrac12$ the path goes right through the origin. Nudge it to 0.4 or 0.6 and it misses. That is what happens for every zero anybody has ever found: the path hits the origin only when $\sigma$ is exactly $\tfrac12$. The Riemann Hypothesis says it is true for all of them.
Riemann · von Mangoldt · Hadamard & de la Vallée Poussin
Step 1: count the primes. Let's draw a staircase that steps up by one at every prime: 2, 3, 5, 7, 11, … Its height at $x$ is $\pi(x)$, the number of primes up to $x$. (This $\pi$ has nothing to do with 3.14159. It is just an unlucky choice of letter.) The steps land in irregular places, and yet a smooth curve, $\mathrm{li}(x)$, follows the overall climb. Here is the idea behind it: near a big number $t$, about one number in $\ln t$ is prime, so $\mathrm{li}(x)$ adds up $1/\ln t$ for every $t$ up to $x$. The fit is rough at first, but in proportion it keeps getting better as $x$ grows. That is the Prime Number Theorem, proved in 1896. So here is our question: what describes the wiggles, the way the real staircase dances around the smooth curve?
Step 2: a better staircase. It turns out the answer is cleanest for a slightly different staircase, called $\psi(x)$. Instead of stepping up by 1, each prime $p$ steps up by $\ln p$, so bigger primes make taller steps. Powers of primes, like $4=2^2$, $8=2^3$ and $9=3^2$, get a step too, of the same size $\ln p$. With these weights the smooth curve becomes the simplest curve there is: the straight line $y=x$. Why these funny weights? Because they are the ones $\zeta$ hands us naturally. The box at the end of the chapter shows how.
Step 3: the formula, in words. Riemann discovered, and von Mangoldt proved in 1895, that this staircase can be written exactly as
prime staircase = straight line − one wave for each zero of $\zeta$ − small corrections.
Those zeros are the very same ones we met on the critical line in chapters 4 and 5. In symbols, with $\rho$ standing for a zero: $$\psi(x) \;=\; x \;-\; \sum_{\rho}\frac{x^{\rho}}{\rho} \;-\; \ln 2\pi \;-\; \tfrac12\ln\!\big(1-x^{-2}\big).$$ The last two terms are the small corrections: a constant, and a piece that fades away fast.
Think about what this says. On the left is a jagged staircase that jumps at every prime. On the right is a straight line plus a lot of smooth waves. Smooth things add up to something jagged! It is like a musical chord: each zero is a note, and when you play enough of them together, out come the primes.
Step 4: watch it work. Start with just the straight line, then add the waves from the zeros one pair at a time. Press play.
Step 5: where each wave comes from. Every zero anyone has found sits at $\tfrac12+it$ on the critical line, where $t$ is the number you dialed in with the slider in chapter 5: 14.13 for the first zero, 21.02 for the second, and so on. Each one makes a wave, and the wave has two features. The $t$ sets how fast it wiggles, so higher zeros make faster waves. The $\tfrac12$ sets how fast it grows: like $\sqrt{x}$. Each zero has a twin at $\tfrac12-it$, and the pair together make one real wave.
Step 6: why the line $\mathrm{Re}(s)=\tfrac12$ matters. Each wave's growth comes from its zero's real part. If every zero is on the line, every wave grows like $\sqrt{x}$, and the primes are spread out as evenly as they could be, in a precise sense. Now suppose just one zero were off the line, say at $0.6+it$. Its wave would grow like $x^{0.6}$, louder than all the others, and the primes would bunch up and thin out more than they do. So the Riemann Hypothesis isn't really about some abstract function. It is about the primes: are they as orderly as they can possibly be?
The primes are inside $\zeta$. Chapter 3 showed $\zeta(s)=\prod_p \frac{1}{1-p^{-s}}$. Take the logarithm of both sides and differentiate, and the product over primes turns into a sum over prime powers: $$-\frac{\zeta'(s)}{\zeta(s)} \;=\; \sum_{n=1}^{\infty}\frac{\Lambda(n)}{n^s}, \qquad \Lambda(n)=\begin{cases}\ln p & \text{if } n=p^k \text{ for a prime } p,\\ 0 & \text{otherwise.}\end{cases}$$ The weights $\Lambda(n)$ are exactly the step sizes of the staircase: $\psi(x)=\sum_{n\le x}\Lambda(n)$. That is why $\psi$, not $\pi$, is the count that $\zeta$ produces naturally.
Each landmark of $\zeta$ gives one term. The function $-\zeta'/\zeta$ blows up exactly at the pole and the zeros of $\zeta$, the landmarks of the landscape in chapter 4. Riemann's idea, proved in this form by von Mangoldt in 1895, is that each of those points contributes one term to $\psi(x)$, and nothing else does:
| Feature of $\zeta$ | Where you saw it | Term in $\psi(x)$ |
|---|---|---|
| The pole at $s=1$ | The spike in chapter 4 | $+\,x$: the straight line |
| Each non-trivial zero $\rho$ (every one found so far is at $\tfrac12+it$) | The arches touching the floor (chapter 4); the path through the origin (chapter 5) | $-\,x^{\rho}/\rho$: one wave per zero |
| The trivial zeros $-2,-4,\dots$ | The dips on the negative real axis (chapter 4) | $-\tfrac12\ln\!\big(1-x^{-2}\big)$: fades fast |
| The value of $\zeta'/\zeta$ at $s=0$ | $-\ln 2\pi\approx-1.84$: a constant |
Each zero is a wave. For $\rho=\tfrac12+it$, $\;x^{\rho}=\sqrt{x}\;e^{\,it\ln x}$, which oscillates with $t$ and grows like $\sqrt{x}$. Adding the term for its mirror image $\bar\rho=\tfrac12-it$ gives the real wave $-\frac{x^{\rho}}{\rho}-\frac{x^{\bar\rho}}{\bar\rho}$ drawn in the step 5 figure.
Conjecture · Riemann Hypothesis
Every non-trivial zero of $\zeta(s)$ has real part $\tfrac12$. Another way to say the same thing: the prime count $\pi(x)$ never strays from $\mathrm{li}(x)$ by more than a fixed multiple of $\sqrt{x}\,\ln x$. Roughly, the primes miss their expected count by no more than about the square root.
Why it matters: hundreds of results in number theory have been proved by starting "suppose the Riemann Hypothesis is true…", for example limits on how far apart consecutive primes can be. A proof would make them all true at once. A single zero off the line would knock many of them down. Most mathematicians believe it is true. Nobody knows how to prove it.
Theorem · Prime Number Theorem (1896)
A weaker fact, that no zeros sit on the edge $\mathrm{Re}(s)=1$, is already enough to prove that the number of primes up to $x$ is about $x/\ln x$, or more precisely $\mathrm{li}(x)$: the ratio between the true count and either estimate tends to 1 as $x$ grows.
Support
There are no ads here. If this helped you see why the Riemann Hypothesis matters, a small donation helps pay for new chapters.
Donate →