Explore a Color Map of the ζ Function: Where Are the Zeros?
Give a Function a Color Map
In the article on the critical line, we followed a vertical path and looked at the trajectory of the ζ function.
This time, we’ll take a different approach: instead of following a single line, we’ll color an entire region of the complex plane all at once. Each point gets its own color based on the value of the ζ function there.
The result is a colorful map. Near the zeros, you’ll see distinctive patterns. Information hidden in mathematical formulas becomes something we can see directly.
Where Do the Colors Come From?
At every point in the complex plane, the ζ function gives us a complex number. We can picture that number as an arrow starting at the origin. The arrow has two properties: direction and length.
Hue represents direction. Like a compass, each direction corresponds to a different color. The color wheel in the upper-right corner shows which color matches each direction: red represents straight to the right, and the other colors change in order around the wheel.
Brightness represents length. The shorter the arrow, the darker the color; the longer the arrow, the brighter it is. In other words, the closer the ζ function’s value is to 0, the darker the image; the larger the value, the brighter it is. Brightness here is adjusted for visual display, not a direct conversion of the number’s size into brightness.
So the color of a point quietly tells you which way the ζ function points there and roughly how large its value is.
You can also switch between different color modes: Mode 1: phase color with brightness shows both the direction and magnitude of a complex number; Mode 2: pure hue keeps the hue but no longer uses brightness to represent magnitude, so the colors look more vivid; Mode 3: contours no longer shows direction, instead using alternating light and dark lines to show changes in the function’s magnitude.
For now, remember this simple rule: color tells us direction, and brightness tells us magnitude. Next, we’ll use it to find the zeros.
Zeros: Where All the Colors Converge
Now consider this: what happens if the value of the ζ function is exactly 0?
Zero has neither direction nor length. The colors that represent different directions lose their meaning here, and because the value is 0, this point also becomes very dark.
Switch to “First zero” and take a look. As you go around the zero, the colors change in the order red, yellow, green, blue, and purple, making one complete rotation. There’s a dark point at the center, and the small white circle marks the zero’s location.
Why does this swirl appear? Near a simple zero, the function’s value changes as you move around it, and its direction makes one full turn. This isn’t a decorative effect added at random; it’s the actual mathematical structure of the function near the zero.
Swirling patterns like this appear near zeros. Around a simple zero, the color makes one complete rotation; if the zero has higher multiplicity, the number of rotations increases accordingly.
The Zeros Line Up
Return to “Critical strip overview.” The small white circles in the image mark known nontrivial zeros. You’ll see them lined up neatly, all on the vertical line σ = 1/2.
There’s an important detail to keep in mind: the white circles mark known zero coordinates entered into the program in advance. The program doesn’t analyze the color map and find these zeros on its own. Instead, it marks their known locations on the map so we can observe their distribution.
The top-left corner of the page counts how many of these zero markers are in the current window. Since their real parts have all been set to σ = 1/2 in advance, this count reflects the locations in the stored zero data. It is not an independent test of the Riemann hypothesis by the program.
So why do these zeros line up? That is the central question of the Riemann hypothesis.
In 1859, the mathematician Riemann proposed a conjecture: the real part of every nontrivial zero of the ζ function is exactly 1/2. In other words, they should all lie on the vertical line σ = 1/2.
The two dashed lines are σ = 0 and σ = 1. The region between them is called the critical strip. Mathematicians already know that all nontrivial zeros lie in this strip. The Riemann hypothesis goes further: the zeros aren’t just somewhere in the strip; they all lie right in its middle, with none shifted to the left or right.
This map gives us an intuitive view of the arrangement described by the hypothesis.
Why Is the Map Stretched Horizontally?
You may have noticed that the colors on the map look like horizontal bands. That’s because the critical strip is very narrow: it’s only 1 unit wide, while the height we want to explore can reach tens or even hundreds of units.
If we drew the map using the true proportions of the complex-plane coordinates, the critical strip would look very thin and details near the zeros would be hard to see. So we stretch it horizontally, by a factor of 6 by default. This makes it easier to see how the colors change around the zeros.
You can adjust the stretch factor with a parameter. Set it to 1 to return to the coordinate proportions without extra stretching. Compare “Zeros on the negative real axis” and “First zero”: at this scale, the color swirl around a simple zero looks closer to a circle.
Remember, stretching changes only the map’s display proportions. It doesn’t change the ζ function itself or the locations of its zeros.
What Other Special Points Are on the Map?
Besides the nontrivial zeros in the critical strip, there are two other kinds of special points worth noticing on the map.
Trivial zeros: On the negative real axis, at σ = -2, -4, -6, …, the ζ function is also equal to 0. These are called “trivial zeros” and are marked with yellow squares. Their locations can be stated exactly, unlike the nontrivial zeros, which have a more complex distribution. That’s why mathematicians call them “trivial.” The Riemann hypothesis is about the nontrivial zeros in the critical strip, not these. The map marks only a few trivial zeros in the current viewing range, such as -2, -4, -6, and -8.
Pole: At σ = 1, t = 0, the ζ function has a pole, marked with an ✕. You can think of a pole as a point where the function’s value becomes infinitely large. Remember the endless series in “Euler’s Discovery”? 1 + 1/2 + 1/3 + 1/4 + …… As the real part approaches 1, this series grows larger and larger; at s = 1, the ζ function has a pole.
Look at the colors around the pole too: as you go around it once, the colors rotate in the opposite direction from the colors around a simple zero. That’s because zeros and poles affect the phase of a function in opposite ways. Near a simple zero, the colors rotate in one direction; near a simple pole, they rotate in the opposite direction.
A Picture Is Evidence, Not a Proof
This map can show only a finite region of the complex plane. The default view reaches a height of about t = 330. Even when you can pan and zoom, the image is still a pixel display of numerical calculations over a limited range.
The Riemann hypothesis concerns every nontrivial zero, no matter how high it lies: its real part must equal 1/2. The white circles you see are on the line, but remember that they are known zero markers entered into the program in advance. They show the distribution of known zeros, but they can’t prove that all zeros lie on the line. Even if we checked a very large number of zeros, a finite number of calculations alone couldn’t rule out the possibility of an exception higher up.
There’s also a noteworthy recent development. In November 2026, mathematician Levent Alpöge announced that he had worked with the AI model Claude to find a proof of the Riemann hypothesis and write it as Lean formalized code. The Lean and Mathlib communities, along with several independent checking tools, then examined the code, and the machine checks were passed in stages.
This is a very important development. But a machine’s ability to check the logical steps in a formalized proof doesn’t mean the mathematical community has fully understood the mathematical argument behind it. As of December 1, 2026, the argument is still being studied and reviewed. There is not yet a complete paper that has undergone peer review and is widely available for mathematicians to read, and the Clay Mathematics Institute has not listed the Riemann hypothesis as a solved problem.
So this map still has its own value: it gives us an intuitive sense of the zero distribution described by the Riemann hypothesis and shows why mathematicians are so interested in the critical line. A picture can help us discover patterns and form conjectures, but it can’t replace a mathematical proof covering every case.
Give It a Try: Explore the Map for Yourself
Now it’s your turn to explore. Click “Next” below the image to switch between preset views. You can also change the parameters and click “Try it” to see what difference the settings make.
Colors: 1 shows direction and brightness, so you can observe both the direction and magnitude of the function value; 2 shows direction alone in more vivid colors; 3 shows gray contour lines for observing changes in the function’s magnitude.
Horizontal stretch: You can set it to a value from 1 to 10. The larger the number, the wider the map is stretched. Set it to 1 to see the coordinate proportions without extra stretching.
Markers: Turn this on to mark known nontrivial zeros, trivial zeros, and the pole. Try setting it to 0, then look at the dark center of the zero and the swirl of colors around it. See if you can find zeros from the colors alone, without relying on the white circles.
Guide lines: Turn this on to draw the three reference lines σ = 0, 1/2, and 1. They help you identify the boundaries of the critical strip and the critical line in its middle.
You can also drag the map with your mouse and zoom with the scroll wheel to explore regions higher up. The image will look blurry while you drag; when you stop, it will be recalculated and quickly become clear again.
Try different colors and stretch factors. You’ll see that the same function can look very different, while still showing the same mathematical object.
Keep Exploring the World of Mathematics
The zeros lined up on this map are the source of the waves that help reconstruct the distribution of primes in “The Prime Staircase Woven by Zeros.” In “The Critical Line,” each moment when the curve crosses the origin corresponds to one of the zeros shown here.
If you enjoy patterns generated by mathematical rules, try some of our other mathematical works too, such as the Julia set, the Mandelbrot set, and the Newton fractal.
You can also explore more fascinating mathematical images or read the Wikipedia article about the Riemann zeta function.
Further Reading
- Ulam Prime Spiral From a geometric perspective: why do prime numbers form diagonal lines?
- Prime Number Theorem From a statistical perspective: how does the number of primes grow?
- Euler Product From an algebraic perspective: why can prime numbers construct the sum of reciprocal powers of all integers?
- A Color Map of the ζ Function From a function-plot perspective: what colors and structures does the ζ function reveal in the complex plane?
- Riemann Hypothesis From a zero-distribution perspective: why do all nontrivial zeros of the ζ function lie on the critical line?
- Weaving Zeros From a complex-analysis perspective: how do the zeros of the ζ function shape the distribution of prime numbers?
- Mertens Function From a probability-and-statistics perspective: why does the cumulative sum of the Möbius function resemble a random walk?
- Robin's Criterion From a divisor-sum perspective: how can a single inequality decide the Riemann Hypothesis?
- Zeros and Atomic Nucleus Energy Levels From a random-matrix perspective: why do the world of primes and the quantum world look so strikingly similar?