# Riemann Zeta Function

> See the first five zeros of the Riemann zeta function on the critical line, then move the slider a to shift the series and watch the zeros leave the line.

In 1859 Bernhard Riemann guessed where the zeros of a function now named after him lie. His guess, the Riemann hypothesis, implies bounds on how the prime numbers are spread among the whole numbers, and it has been checked for the first $1.2 \times 10^{13}$ zeros.

Here $s$ is a complex number, a point of the plane with the coordinates $\operatorname{Re} s$ and $\operatorname{Im} s$. The Hurwitz zeta function is $\zeta(s, a) = \sum_{n=0}^{\infty} (n + a)^{-s}$, the sum over $n = 0, 1, 2, \ldots$; with $a = 1$ it is the Riemann zeta function $\zeta(s)$. The Riemann hypothesis says that every zero of $\zeta(s)$ that is not a negative even integer lies on the critical line $\operatorname{Re} s = \frac{1}{2}$, drawn dashed. The plot colors the plane of $s$ from $\operatorname{Re} s = -1.5$ to $2.5$ and from $\operatorname{Im} s = -1$ to $33$: hue shows the argument of $\zeta(s, a)$, its direction as a point, and lightness its modulus, its distance from $0$. A zero is a dark point where all the colors meet; the pole at $s = 1$ is a bright point.

At $a = 1$ the five zeros below $\operatorname{Im} s = 33$, at $14.135$, $21.022$, $25.011$, $30.425$ and $32.935$, sit on the dashed line. Move $a$ and notice that they leave it: at $a = 0.6$ they scatter from $\operatorname{Re} s \approx -0.03$ to $0.75$. The Hurwitz zeta function has no Riemann hypothesis. Two values of $a$ give back $\zeta(s)$: $\zeta(s, 1) = \zeta(s)$, and $\zeta(s, \frac{1}{2}) = (2^s - 1)\,\zeta(s)$, which adds the zeros of $2^s - 1$ on $\operatorname{Re} s = 0$, at $\operatorname{Im} s = 2\pi k / \ln 2$; set $a = 0.5$ and notice them near $9.07$, $18.13$ and $27.19$. Also $\zeta(s, 2) = \zeta(s) - 1$.

The series converges only for $\operatorname{Re} s > 1$, so the formula is its Euler–Maclaurin form, valid on the whole plane: the first 16 terms, the integral of the rest, and four corrections with Bernoulli numbers. In double precision its error is below one part in $10^7$ below $\operatorname{Im} s = 16$, and by about 3 parts in $10^5$ at the top. The graphics card computes in single precision: left of $\operatorname{Re} s = -1.8$ the 16 terms are large and cancel, and the colors become noise. That is why the window stops at $\operatorname{Re} s = -1.5$.

- [Open the interactive version](https://graph-paper.io/showcase/en/riemann-zeta)
- [Learn more on Wikipedia](https://en.wikipedia.org/wiki/Hurwitz_zeta_function)
