The hidden landscape
Where does the zeta function equal zero?
A complex input has two coordinates: s = σ + it, where i² = −1. This map colours the size of the output, |ζ(s)|. Dark valleys lead to zeros.
The complex input plane
Drag to pan · scroll over the map to zoom · tap to inspect. Keyboard: arrows pan, + / − zoom. The axes use different scales.
What is ζ(s), and why isn’t this an ordinary graph?
For real inputs greater than 1, the zeta function begins as ζ(s) = 1 + 1/2s + 1/3s + 1/4s + …. At s = 2, for example, its value is about 1.645.
Mathematicians extend this function to complex inputs, except for a pole at s = 1, where its size grows without bound. The series above only converges when σ > 1; this map uses the extended function elsewhere.
A complex input and a complex output would need four real coordinates. We show the two input coordinates as a map and use colour for the magnitude (distance of the output from zero). We do not show the output’s angle. Circle markers pinpoint known zeros that may be smaller than a pixel.
The map is calculated numerically, with exploration bounded to −12 ≤ σ ≤ 6 and −100 ≤ t ≤ 100. More about zeta zeros (NIST).
A staircase and a smooth guess
How many primes are there up to x?
The exact count, π(x), jumps by one at each prime. The logarithmic integral, li(x), follows its overall trend. Riemann’s R(x) refines that smooth estimate.
Counting primes
Build the staircase
The zeros supply the missing oscillations
Start with a smooth estimate, then add waves from successive pairs of non-trivial zeros. Watch the bends gather around the prime jumps. More zeros reveal finer detail.
Reconstruction with 0 zero pairs
Does it ever become exact?
With all the zero pairs, in order of increasing height, and the fixed corrections included, the explicit formula recovers the prime count between the primes. At a prime p it gives the midpoint of the jump: π(p) − ½. Taking the value immediately to the right gives the usual π(p).
This display uses the first 100 pairs. Their positions are known; the full prime-counting formula does not depend on proving the Riemann hypothesis.
A little more maths: what is being added?
R(x) is a smooth estimate obtained by removing the extra counts from prime squares, cubes and higher powers. To keep the reconstruction faithful, we calculate through a weighted counter J: a prime counts 1, a prime square adds ½, a prime cube adds ⅓, and so on. Removing these extra counts gives π.
The exact starting point, with midpoint values at jumps, is:
We then combine J₀(x) − ½J₀(√x) − ⅓J₀(∛x) − ⅕J₀(x1/5) + ⅙J₀(x1/6) − ⅐J₀(x1/7). These are all the nonzero terms needed up to x = 200. Terms whose argument is below 2 tend to zero in the full formula; retaining the same terms across the graph keeps each finite reconstruction continuous.
The teal curve includes the constant and integral terms, as well as the prime-power adjustments to every wave. Its smooth starting part is close to, but not identical to, the dashed R(x) curve. Equivalently, we plot R(x) + fixed corrections + the first N zero-pair waves. The lower graph shows one complete pair contribution, rather than a simple cosine fitted to the primes.
Sources: Riemann’s 1859 paper (English translation); Odlyzko’s zero heights; NIST: zeta zeros.