Zeta Function Plot in Google Sheet

Spirals of the Zeta Function

When you plug complex numbers into the Riemann zeta function, something beautiful and slightly chaotic happens. The zeta function


looks innocent enough — a simple sum of reciprocal powers — until you let the exponent ( s = a + bi ) wander off the real line into the complex plane. Each term ( 1/n^s ) becomes a tiny vector that spins and shrinks according to its angle and magnitude. Adding them up is like walking along a twisting, spiraling path in the complex plane, step by step.

In the spreadsheet above, each panel shows that path for a different choice of ( s ). The numbers in the table are the real and imaginary parts of the first few terms and their running sums. The blue curves beneath them trace how those partial sums move across the complex plane.

GSheet URL

Left plot (a = 2, b = 3): The spiral slowly tightens and comes to rest. Because the real part ( a ) is greater than 1, the series converges smoothly. The motion settles into a stable point — the true value of (\zeta(2 + 3i)).

Middle plot (a = 0.1, b = 10): The spiral explodes outward. Here the real part is less than 1, and the series cannot converge. Each new term flings the point further into the complex plane, tracing vast expanding loops.

Right plot (a = 1, b = 5): This is the edge of chaos. The real part equals 1, the critical boundary between convergence and divergence. The path never settles; it twists, folds, and wanders endlessly, like a moth circling an invisible flame. This “critical line” is where the famous Riemann Hypothesis lives — the conjecture that all nontrivial zeros of (\zeta(s)) lie exactly here.

Each curve is a visual diary of how the zeta function comes to life. What looks like abstract algebra turns into motion: convergence as a tightening spiral, divergence as an explosion, and the critical line as a strange oscillatory dance.

You can think of these spirals as the zeta function thinking out loud — showing its reasoning term by term before it decides (or fails to decide) where to settle. Somewhere in this hypnotic geometry lies the hidden rhythm of the prime numbers themselves.



When the Zeta Function Behaves, Balances, and Breaks

The zeta function doesn’t behave the same everywhere. Changing the real part ( a ) of ( s = a + bi ) is like changing the rules of gravity for our spiraling points. The plots below show three contrasting worlds:

Left panel: ( s = 2 + i )
Here the series converges calmly. Each new term ( 1/n^s ) is smaller and points in a slightly different direction, so the path tightens into a smooth, graceful curve. You can see the partial sums approaching a fixed point, like a pendulum losing energy. This is the comfortable region of the zeta function — the side of convergence where ( a > 1 ).

Middle panel: ( s = 1 + 0i )
This is the harmonic series. There’s no oscillation, no spiral — just a straight line creeping off to infinity. Each step adds another small real number, and the total grows without bound. This is why (\zeta(1)) diverges: the harmonic series never settles down, no matter how long you sum it.

Right panel: ( s = -2 + 0i )
Here we’ve stepped into the realm of analytic continuation. Formally, if you just keep summing the raw series ( 1 + 4 + 9 + 16 + \dots ), it explodes absurdly fast. The plot shows a flat line because the values skyrocket so rapidly that the imaginary part vanishes and the real part shoots off to infinity. And yet, in the extended, analytic sense, mathematicians assign it a finite value:
[
\zeta(-2) = 0.
]
That’s one of the great paradoxes of the zeta function — what diverges in the ordinary sense can still make sense through complex analysis.


A Universe in Three Panels

These three plots summarize the zeta universe:

・To the right of 1, the series converges peacefully.
・At 1, it teeters on the edge — no longer converging, not yet exploding.
・To the left, the naive sum diverges violently, but analytic continuation resurrects it as something meaningful.

Together, these pictures show why the zeta function fascinates mathematicians and artists alike. It’s not just a formula, but a landscape — tranquil valleys of convergence, cliffs of divergence, and hidden bridges of analytic continuation connecting them all.



Left panel: s=0.5+9is = 0.5 + 9is=0.5+9i
The path whirls inward in a tight spiral. The real part a=0.5a = 0.5a=0.5 means the terms shrink too slowly for the sum to converge outright, but the oscillating phases cause a delicate dance toward the origin. This is the critical line, Re(s)=1/2\text{Re}(s) = 1/2Re(s)=1/2, where the nontrivial zeros of the zeta function are conjectured to lie. The spiral here doesn’t explode or settle — it hovers on the boundary between order and chaos.

Middle panel: s=0.5+14.13is = 0.5 + 14.13is=0.5+14.13i
This particular imaginary part is close to the height of one of the known zeros of the zeta function. The spiral almost collapses to a point before looping outward again — a geometric whisper of the zero’s presence. This is the zeta function’s own signature oscillation: convergence and divergence pulling at each other in perfect balance.

Right panel: s=0+10is = 0 + 10is=0+10i
With a=0a = 0a=0, the real part has dropped to zero, and the spiral expands outward violently. The terms no longer decay in magnitude — the series diverges absolutely — yet the analytic continuation of the zeta function remains finite. The figure is a visual metaphor for that paradox: the apparent chaos that hides a deeper order.


The Geometry of Infinity

Across all three sets of plots — from the peaceful convergence at a>1a > 1a>1, through the harmonic threshold at a=1a = 1a=1, to the wild oscillations of 0<a<10 < a < 10<a<1 — we can see how the zeta function’s personality changes.

・When a>1a > 1a>1: the spirals close in — stability.
・At a=1a = 1a=1: the line stretches to infinity — instability.
・When 0<a<10 < a < 10<a<1: the spirals breathe — oscillatory tension between chaos and structure.
・When a<0a < 0a<0: the naive series breaks entirely, yet the analytic continuation restores meaning — mathematical resurrection.

The zeta function is not just a number-producing machine; it’s a shape-shifting storyteller. Its plots trace the geometry of infinity — a dance between convergence and divergence that encodes the secret rhythm of the primes.