Epistemic Status: I consider myself fairly well-versed in mathematics, with a decent-to-good understanding of Complex Analysis, etc. but I am not a practicing mathematician.
If you're like me, then you're a bit saturated with explainer videos and posts purporting to explain this infamous, memetic math assertion:
If you're really like me, you're annoyed that the popular ones don't really explain the most direct derivation, and often resort to shuffling sequences around to show how it kind of works if you squint.[1] Not only is that not how it is typically first explained to a curious math student, these explanations also often leave out important details about why it's interesting and why we should care.
Though, as it turns out, I learned a decent bit myself making sure I got as much right in this post as I could.
Before we say anything further: that equals sign is of course a bit of a lie. What actually "equals", if it equals anything, is ∞, as one would expect. The equals sign here is really more of a "can be thought of as equivalent to, in some specific sense". And yet, it is somehow more than a mere mathematical parlor trick—if you insist on a physical-world "application"[2] there surprisingly is one in (spoilers) Section 3.
For this post, I'm expecting the reader to have a good grasp of Calc 1/2 and the ability to recognize things from Calc 3 if pointed out. A lot of what is written here is going to be oversimplification, or ignoring details. That simply comes with the territory, unfortunately, but I hope this post is less misleading than most.
Also, it wouldn't hurt to have a pop-sci level of understanding of Quantum Field Theory.
I think of there being three approaches to explaining this strange formula:
The "Classic" approach, in Section 1, which was developed quite early and can be explained in one sentence to a student versed in Complex Analysis[3], but is a little mysterious, and doesn't explain why the formula is important (and involves complex numbers).
The "Smooth Sum" approach (which I prefer to call "Smooth Cutoff"), which does make things much clearer. Its cleanest exposition dates back to 2010, but some of the basic ideas stretch backward to Ramanujan in 1913.[4][5]
The "Manipulate sums until it just works" approach, which is closely related to 2, but tends to come off as trickery that explains little. I don't really cover this one.
Warning: this post contains math! While the goal here is to help readers build a better intuitive feel for the mathematics involved, it is not strictly necessary that you understand every step along the way. Simply getting the gist of what's going on is enough to help you better comprehend at the end how a fake equation like 1+2+3... = -1/12 can reflect how reality works.
Index:
The Canonical Approach: Analytic Continuation and the Riemann Zeta Function
"Smooth Sums" of Sequences and Why -1/12 is Special
Quantum Field Theory, Regularization, and the Vacuum Energy
1 - The Canonical Approach: Analytic Continuation and the Riemann Zeta Function
What are Analytic Continuations?
There is no writing this without slaying the dragon that many other explainers (to me, bizarrely) refuse to touch: Analytic Continuation.
In a way, Analytic Continuation is an answer to one of the most natural of starting math questions: given a set of points, can we connect them with a nice curve?
The factorial function is defined only at the positive integers. Figure generated by Claude with matplotlib.
Note: Many plots here will be "I asked Claude to make this to illustrate a point", or else copied from Wikipedia or some other open-source image source. The interactive widgets were built by Claude and reviewed by Gemini Neon, which also wrote several of their captions.
The classic example is , the factorial function. Sure, it's technically undefined anywhere outside the nonnegative integers {0, 1, 2, ...}, but it sure looks like there's some kind of curve you can draw connecting all the points.
But how would you define such a thing rigorously? You can take out a marker and draw all kinds of curves that technically hit all the points: curves that squiggle up and down, curves that are jaggedy, curves that asymptote to infinity every half-digit. What do we want?
Well, roughly speaking, we want it to be a curve, something smooth that feels like it could be a natural function, like or . To a mathematician, wanting something to be smooth suggests a function that is analytic;[6] that is, one that is differentiable, has a second derivative, a third derivative, ad infinitum.[7] Essentially every natural function you could write down has this property (within its domain), and it's part of why they look, well, so smooth.
So an analytic continuation (in the broadest sense) is: find a nice analytic curve that extends (continues) a function that has a restricted domain to other places, ideally the rest of the real number line (every possible real number from to ) or, even better, the entire complex number plane (all possible complex numbers ). There are techniques for generating such things, or, if you're clever enough, you can just make up an analytic function that fits the points and does what you want.
And in the case of the factorial function, we have made up the Gamma function:
(OK, technically , rather than . The reasons for this are historical: Legendre[8], who defined the modern gamma function, chose to do it this way. It makes some formulas nicer and other formulas messier. It has stuck.)
I'm not going to go through the exercise of proving that the Gamma function equals the factorial at all positive integers[9], or the fun fact that .[10]
But this function is indeed analytic, since it can be differentiated as often as you want by the Leibniz Rule.
This is what the Gamma function looks like over all the real numbers.
Okay, so the positive reals look sensible enough but what the heck is going on with the negative numbers? Is this really what should look like?
Well, no, it isn't, because it's not, only a sort of proxy, and that's a point to hold onto for later.
And this is what it looks like over the complex plane, with the height showing the magnitude :
Those peaks being super-sharp is not an error or rendering problem—they are really just that sharp
So right now, if you're clever, a question might occur to you. I just sort of spat out a definition of that happens to be analytic and curve-fit the factorial function. Is this the only possible choice? Is it unique?
That would be really nice! Because it would mean that in some concrete sense the Gamma function is the way to extend the factorial function. Any other choice would be a compromise.
Well, unfortunately, no. There are infinitely many ways to do it, and the Gamma function is just a convenient choice that everyone likes.
But despair not: there is a case we're about to get to where it is unique. You see, if instead of starting with some points on the real number line, you start with a region[11] of the complex plane and a function that is analytic on the region, then there is indeed only one analytic continuation to the rest of the complex plane.[12]
And then the equals sign is less wobbly.
Consider our original intent: we wanted to find a way to connect points or extend a curve in the smoothest way possible. If there's more than one way to do it, then you're arguably just making up your favorite curve, and if z is outside the domain, then you might just be assigning some arbitrary value to .
But in the example I just outlined (starting with a region of the complex plane), there is only one way to extend it, which means that the value of is no longer arbitrary. It's the only possible analytic continuation.
The Riemann Zeta Function Enters the Picture
From here on out, for complex numbers of the form , I'm going to say "real part" for a and "imaginary part" for b and just assume you know what I'm talking about.
Also, think back to Calc 2: A series converges if it sums to a clear fixed value and diverges if it doesn't. The latter doesn't have to be to go to infinity! A sum can also oscillate back and forth—nonetheless, it's very common practice to use "diverges" as shorthand for "goes to infinity or negative infinity", which is a practice I will adopt.
Now it is time to introduce a very important, very well-known function which matches exactly the description I just gave—a unique analytic continuation of a region of the complex plane—the Riemann Zeta Function.
Let us define a precursor function first:
This function is well-defined (the series converges to a concrete value) whenever the real part of the exponent is greater than 1.[13]
The Riemann Zeta Function (written )[14] is the analytic continuation of this function to the rest of the complex plane.
A Tangent: the Riemann Hypothesis
Like a (very short-term) fossil in amber, this section was written and edited before Levent Alpöge announced an apparent proof of the Generalized Riemann Hypothesis, formalized in Lean. For interest (and because it saves work), this section is mostly untouched, except to add a brief discussion of what makes the Generalized Riemann Hypothesis "General".
Amazingly, this section actually has nothing directly to do with the overall topic of the post! But I imagine there is a lot of interest in the Riemann Hypothesis, and we're within spitting distance of it. Honestly, you owe it to yourself to know something about it.
If you truly don't care, or already know this material, just skip this section.
It is irresponsible to bring up the Riemann Zeta Function without explaining at least briefly what it is and why it's important, so let me go ahead and raise everyone's AI-news–following eyebrows by commenting that the infamous Riemann Hypothesis simply states:
Let be the Riemann Zeta Function. All values where (except the trivial set ) have real part .
Where I have simplified the mathematical language for understanding.
Discussion of the Riemann Hypothesis is a field extremely oversaturated in explainers[15], so here is the breezy 100,000-foot explanation of why it's important:
Let be the prime number counting function, the number of primes less than or equal to x for any real number x. So, for example, for x=8, , because are prime.
Let's take a moment to appreciate that if we could exactly calculate , this is tantamount to being able to identify every prime number—the prime numbers would just be where increases by 1. So anything we figure out about this function is the same as learning about the primes, with all that entails, like results about cryptography.
Also it's confusingly named π and has nothing to do with the number 3.14...for p, because prime numbers, you see. We've inherited a lot of these conventions from old-timey mathematicians.
That is, gets asymptotically close to as x goes to infinity.
Top: the prime-counting function π(x) against the approximation Li(x),[18] up to x = 1000. Bottom: the ratio of the approximation to π(x), out to x = one million. Li(x) is within 0.2% by x = 10⁶ (Figure generated by Claude with matplotlib; primes by sieve, Li(x) via the exponential integral.).
It is natural to ask whether Li(x) always hovers above π(x) without seeming to approach it, like it appears on the graph. The answer is no: it was proven in 1914 by Littlewood that the two functions cross each other infinitely many times.[19] So yes, it's an artifact of the graph, but no, showing more numbers or using a log-scale won't help: the first time Li(x) (actually li(x)) is known to drop below π(x) is approximately .[20] There is no simple graph I could make that shows this well.[21]
On its own, that's neat, but awful at actually letting us say anything meaningful about the prime numbers.[22] With more work you can do better. For instance in 1899 it was shown that:
for some positive constant a. And in 2002 it was shown (hat tip to Wikipedia), deep breath:
where .
But wouldn't it be great if we could do better? Like a lot better?
Well, if the Riemann Hypothesis were true, then:
and, dispensing with the big-O notation entirely (still assuming the RH):
So the Riemann Hypothesis places much stricter bounds on the distribution of prime numbers, with a whole laundry list of theorems about primes and other functions dependent on it being true, and it has resisted proof attempts since 1859. Computer searches have ruled out counterexamples (a zero[24] of with real part ) with imaginary part less than about , finding over ten trillion zeros with real part one-half.[25]
The Generalized Riemann Hypothesis
Because mathematicians were not satisfied with just the Riemann Hypothesis, it was eventually noticed that the curious property that seems to hold for the Riemann Zeta Function (all non-trivial zeroes have real part 1/2) also seems to hold for a whole family of related functions, the primitive Dirichlet L-functions. And like the Standard Riemann Hypothesis, the generalized version has significant consequences for number theory, for instance in guaranteeing runtimes for a number of prime-related algorithms.
There is no getting away from the math here. If you want to know the full extent of what Levent/Claude proved I have to engage in the deep arts. Feel free to skip if you don't want to know the details.
If you'll recall, we defined the Riemann Zeta Function as the analytic continuation of:
beyond its original definition on complex numbers with real part greater than 1. In comparison, a Dirichlet L-function replaces the numerator of 1 with a Dirichlet Character, which is a function defined as such:
keeping in mind that n and q are integers.
For a L-function to be primitive, its character function must not be induced (a formal term for "generated") by another character with smaller modulus. That is, there is no character with modulus such that:
where is the greatest common divisor function (so if it equals 1, n and q share no factor). (d also necessarily divides q, as a consequence of this definition). If there was such a character, that wouldmake the original character function nearly identical to , just with extra zeroes whenever n and q share a common factor, and therefore not "primitive".
With these characteristics defining the L-function, then:
The Riemann Zeta Function is a special case with trivial character 1.
The function always converges if the real part of s is greater than 1.[26]
If we now take the analytic continuation to the rest of complex plane, we get the full Dirichlet L-function.
It can be shown that any such function is either zero at all the negative even numbers or the negative odd numbers. These are the trivial zeroes. The Generalized Riemann Hypothesis is then:
For all primitive Dirichlet L-functions, all non-trivial zeroes have real part 1/2.
Thanks to Levent's Lean proof, it seems that this (and the Riemann Hypothesis itself) are true.
Back to the Main Topic: The Riemann Zeta Function and 1+2+3...
Back to the series we came here for.
Leaving aside why this has anything to do with the prime numbers, as discussed already the Riemann Zeta Function is defined starting with the infinite sum:
which only converges if s[27] has real part >1.[28]
To get the actual Zeta Function we Analytically Continue this function to the rest of the complex plane, and as discussed at the end of the Analytic Continuation subsection, since we started with a region of the complex plane, this function is unique. There is no ambiguity about what analytic continuation we are talking about.
Actually calculating values of the Zeta Function gets a little tricky. For values with real part >1 some exact values are known, e.g. [29], and the rest can be numerically approximated by computers. For values with real part below zero, we rely on this rather horrifying relation, which was shown by Riemann himself:
where is our good friend the Gamma Function from last section. This relates negative values of s to corresponding positive values. For instance if s=-1, then 1-s=2 and we can use to calculate . This leaves a notable gap between real part 0 and 1 where this doesn't quite work, but which can be closed by a different trick that I'm going to leave out here.[30]
Some fun facts about the Riemann Zeta Function:
It remains undefined at s=1, even after analytic continuation. Note that this is only the real number 1; 1 + i is perfectly fine.
It is zero if , which are the only zeros on the real number line. The complex zeros are the subject of the Riemann Hypothesis. The zeros on the real number line are fully understood.
is, let's see...
Hey wait a second—
Okay, assuming you didn't see it already, if you pretend that the Riemann Zeta function is literally, then if , this sum is just , or
And as we just established, .
so:
in the same sense that "equals" .
By the same logic, you can also say:
and infinitely many other such statements. You can go ahead and imagine air quotes around all these equals signs.
And the takeaway is...
I imagine at this point this is a little underwhelming. Of course, we knew the "equals sign" wasn't a real equals sign, but what does this say, really? Sure this happens to involve the Riemann Zeta Function, which is a cool function that's important to math, but the cool prime number part seems to have nothing to do with this.
And, yeah, that was the objection a lot of people—mathematicians included—had to this "fun fact". It seemed like a bit of a parlor trick. As we shall see, it is somehow more than that.
If at this point you are drowning and want to get to the "applications" already, feel free to skip to Section 3. You may want to go back to Section 2 afterward to see the connections, though.
2 - "Smooth Sums" of Sequences and Why -1/12 is Special
Speaking very loosely, when looking for alternative ways to attempt to "evaluate" divergent summations, such as with Ramanujan Summation, the answer that usually comes out is a match for the series above. That is:
Moreover, it is possible to come up with various more or less suspicious schemes for messing with sequences that will also have a tendency to land in roughly the same place. This seems like a strange but probably meaningless coincidence, except, well, it isn't. And we don't even have to resort to the complex numbers to explain it.[31]
In 2010 (and probably earlier), Terence Tao asked the question: what if we evaluated sums a different way? That is, the "traditional" (and obvious) way to try to evaluate an infinite sum is with partial sums:
But what if we instead took a weighted sum? That is, rather than cutting the infinite series off and focusing only on a limited part of the beginning, we took the whole series, but tried to downweight the later parts and bring them in only gradually?
Let me do a toy example with the simple series
Now, instead of summing terms one at a time, we chop off the later numbers to "make" the series converge, then try to fix it by putting values back in. As a simple example, let's make each subsequent term only half as important as the previous term:
where we're "down-weighting" each subsequent term . We sort of chopped the series horizontally rather than vertically. And in this case we know this chopped series sums to 2. That's a real equals sign! Now to get back to the original series, let's bring the missing parts back piece by piece. We'll need a smaller piece to add back, so let's down-weight by this time, rather than by .[32]
We can keep doing this manually, but it's easier to generalize a procedure. We can look at the series of "chopped" series:
which should[33] approach the same value. And here we see that each subsum is:
which indeed approaches infinity. As indeed, it really should.
This is... certainly one way to sum a series, but why are we doing this again?
Bear with me a bit longer. I was mostly using that as an example to ease us into the actual procedure that is used:
Define the weighting function (the smooth cutoff function, to use the right name for it) as . We require that , that the function be smooth on , and that the function evaluate to exactly 0 outside a certain finite region.[34] These are the criteria that define a suitable cutoff function, and they are sufficient to guarantee the series converges (because, well, it becomes 0 at some point).[35]
Then we define the series of smooth sums:
where is the original series we were interested in, although Tao's result focuses on series of the form [36] .
Confusingly, while Tao sticks to Zeta Function convention by talking about the series at points in his post, he uses the opposite convention in his formula, with the implicit definition of . To keep the formulas the same as in his post I'll stick to the latter.
Note that this is just flipping the sign of s. So for , we would have s=-1 here, but it corresponds to ; that is:
Terence Tao showed the surprising fact that:
where is the value predicted by analytic continuation and . Or in other words, the series of smooth sums is equal to:
or, in other words, the value B is baked into what you get no matter what you choose for as long as it "looks like" what we defined as a cutoff function. It's a property of the original series, and it also means that various "schemes" for shuffling terms around to get rid of the infinities will have a strong tendency to spit out B at the end.
Thus, in a way, really is secretly implied by , without needing to invoke complex numbers or analytic continuation.
OK so uh, that's great. This is a nice fun abstract math fact. Can we go home now—
3 - Quantum Field Theory, Regularization, and the Vacuum Energy
Okay wait what? How did we get here?
Alright, so this is the part of the post where I must do absolutely the most hand-waving, partly because not hand-waving involves a dive into QFT, and also because, frankly, I don't know QFT that well.
As you may or may not have heard, when formulating Quantum Field Theories, trying to calculate values for simple concepts (like the mass of the electron) very quickly veers into the rocks of divergent integrals and summations. Two common ways this can occur are:
Performing calculations that involve very high energies or, equivalently[37], very small distances.
Performing calculations that require you to consider an infinite number of increasingly convoluted particle interactions as part of the probability distribution. For instance, an electron, emitting a virtual photon, that splits into a virtual electron and positron, each of which emits a virtual photon...
It is not, as commonly supposed, that classical physics is free of such problems. For instance, performing electromagnetic calculations involving point-like electrons necessarily involves an infinite electric field at the "surface" of the electron and tacitly involves assuming the electron isn't "really" a point or that we don't care about such small distances. It's just that in classical physics, this pretty much never mattered—but in quantum physics it absolutely does.
Reflecting on that point about classical physics (that we were basically "ignoring" things that were too small) motivates "fixing" these problems in very roughly the following way[38]:
Regularization
Suppose we are trying to calculate A, which has the property that a direct QFT calculation yields:
Except that unfortunately trying to evaluate this series diverges to as (for example, if the function x(n) is something like just ).
Well, wait, it turns out that as the energy scale goes to and the length scale goes to 0. This is exactly the same thing as the "infinitely small electron" problem. Analogous to what we implicitly did in classical physics, we can just say we sort of don't believe in the higher energy parts, and replace our previous equation with something like:
where is some function that starts off at 1 and drops off to 0 eventually, and N is chosen to "cut off" the terms somewhere around where we stop believing our physics is accurate. If the terms of x(n) drop off sufficiently rapidly, this won't even be that bad an estimate.
This should look familiar at this point. This is very similar to what was described in the last section.
This procedure (and others like it) is used in real quantum mechanics to make real (extremely accurate) quantitative predictions, and is worth our attention as mathematicians and physicists because real quantum mechanics has to try to deal with divergent series and make them work, somehow.
And to illustrate this, we should talk about the Casimir Effect.
Casimir Effect
Like so many topics here, I am giving only a surface-level treatment.
A bare-minimum description of the Casimir Effect is that it is a physical force that arises in confined spaces due solely to quantum fluctuations in a vacuum. Just saying those words is a bit mysterious, but the classical example from Casimir himself should give some of the requisite flavor:
Before getting to the two (conducting!) plates shown above, some surprising predictions of Quantum Field Theory on an empty vacuum:
Even empty space is filled with random oscillating fluctuations of the various quantum fields, essentially because the Heisenberg Uncertainty Principle forbids a field from being simultaneously zero energy and zero rate of change.
The average energy of the vacuum, the vacuum energy, is non-zero.
These fluctuations are quantized—that is, they only happen in multiples of a discrete value.
An attempt to estimate the vacuum energy mentioned in point 2 immediately runs into a familiar problem: infinite fluctuations at infinite points form a sum thatdiverges to infinity. Fortunately for most calculations, only differences in the vacuum energy usually matter; for most physical systems you might be studying, the vacuum energy everywhere should push all things equally and cancel out.[39]
(Though not for the universe as a whole. The negative pressure of the energy actually exceeds the gravitational pull, and an infinite vacuum energy would blow up the universe immediately. This is foreshadowing.)
Now let's return to the two conducting plates Casimir suggested. Speaking roughly, if the plates are really close together, then the quantized nature of the vacuum fluctuations (prediction 3 earlier) starts to matter.
Specifically, for the electromagnetic field[40], quantization starts to limit the range of possible electromagnetic wavelengths, because the waves have to "fit" between the plates, because the field strength at the surface of the conducting plates needs to be 0.[41] This reduction in the number of possible oscillations between the plates lowers the vacuum energy, because it reduces the number of possible random fluctuations, sort of like switching from a D20 to a D6.
But this means that there is a positive pressure from the vacuum energy outside the plates (still using a D20) pushing the plates inward, which seems like an experimental check on whether this kooky vacuum energy really exists.[42] Naturally, this has been measured, and the measurements seem to agree with the calculated theoretical values.[43]
That theoretical calculation is what we are here to talk about. Casimir originally calculated that the energy per unit area between the plates from this effect should be the following value:
Where is the distance between the plates, is the reduced Planck's constant[44], and is the the speed of light.
And we need to take the limit as . That summation on the right side? It is a divergent sum of the same form as we were using to define the Riemann Zeta Function.[45]
The typical treatment then proceeds by going OK, let's replace this with , the zeta function analytic continuation, and proceed to calculate the result, deriving an energy per unit area, and from it a pressure pushing the two plates together of:
something which has been roughly experimentally confirmed, as mentioned previously. The two plates just sitting next to each other really do get pressured together.
But wait, isn't that absolutely bonkers? We're just waving a seemingly magic wand over the original formula, asserting that:
And[46] this hack predicts real experimental results???
Well, it is kind of bonkers, but it makes more sense than it seems. In his original derivation in 1948, Casimir didn't take this approach; he performed regularization, assuming that the higher frequencies were less important. He defined a cutoff function , specifying that it would start from 1 then drop off to zero rapidly.[47] He himself considered the choice of arbitrary and a bit of mathematical convenience.
Along the way, he canceled out an equivalent expression for "infinitely distant" plates, effectively subtracting off the infinite components of the vacuum energy. By doing this he got the same formula as the Riemann Zeta Function.
At the time and for some time afterward, this looked a little mysterious, even if it worked, but with our result from Section 2, it is much less so. In fact, Section 2 implies it would have worked with any smooth cutoff choice—the important thing is that there is a cutoff at all. We may not understand exactly what it is or how it should be shaped, but the higher frequencies/smaller distances are somehow less important.
To be clear, from section 2 we know:
if is of the form and is a smooth cutoff function. So then:
When Casimir subtracted off his infinitely distant plates term, he effectively subtracted off the middle part, which is the only part that goes to infinity.[48]
This naturally just leaves:
and as this is just .
Note the key point here: the results of Section 2 (the discussion on smooth cutoffs) took a somewhat shaky physics calculation and put it on firmer epistemological ground—rather than needing to accept as an arbitrary choice that happens to work, the assumption is clearer: the higher frequency/energy components are less important (for some reason we don't know yet), and get cut off in the real world somehow. We bypass the question of exactly how with this one neat mathematical trick that lets us dodge the lack of understanding that our formulas otherwise carry with them. The wrinkle is, of course, we're still merely assuming they do get cut off in the real world.
Now, in the case of the Casimir effect we've actually managed to eventually develop the relevant understanding: physicists are now quite sure that the cutoff is derived from the plasma frequency of the metal, and that frequencies higher than the cutoff can simply pass through the metal, ignoring the plates. That means above-cutoff electromagnetic radiation does contribute to vacuum energy between the two Casimir plates, which means our formula was correct when it "arbitrarily" chose to exclude those higher frequencies from its count of missing vacuum energy between the plates. A theoretically perfect metal would not have this cutoff, but all real plates do. And perhaps that's the real lesson here.
Widget made by Claude and redesigned by Gemini Neon, calculating the Casimir pressure between plates taking the metal's imperfect conductivity into account. The "ideal" pressure is that calculated from Casimir's theory. The "corrected" pressure introduces a first-order correction from the plasma theory of metals,[49] which is trustworthy when a ≳ 2.5 λp. This allows us to compare Casimir's result with a close to real pressure (within 10-25% at typical experimental separations).
The key observation: A real metal confines only the waves with wavelength above its plasma wavelength (blue waves on the chart), while letting other waves (grey on the chart) through. As you take the plasma wavelength 0 (the metal becomes a better and better conductor), more and more waves are confined and the pressure approaches Casimir's estimate. BUT: the cancellation term, which is canceled out when constructing the theory, blows up to infinity.[50] For an ideal metal, this term is infinity, and subtracting it is technically invalid—but that didn't stop Casimir from getting a real answer anyway by cutting off the higher frequencies.
For a real example, gold has λp ≈ 138 nm. Atmospheric pressure is about 105 Pa, so even at 100 nm plate separation the Casimir pressure is about 0.01% of atmospheric pressure.
So it's great that we have this relatively well-understood case study in why cutoffs work. But the thing is, we also use cutoffs elsewhere in physics, where it remains much less obvious what the physical meaning of those cutoffs are.
Black Hole Thermodynamics
The Casimir Effect is the most famous[51] use of what is called Zeta Function Regularization, and nowadays the relevant formula is typically derived this way rather than the way Casimir originally did it. But it is not the original reason the technique was introduced.
You do not need to follow the math closely in this section! The important part is the written explanation of how the Zeta Function Regularization we just learned about ended up being accepted as a useful tool in theoretical physics.
In the 1970s, physicists[52] began examining the notion of using zeta function regularization to study the "determinants of quantum operators", which are important in certain calculations but have the unfortunate property of often requiring you to take the determinant of an operator on an infinite-dimensional Hilbert Space.[53] This necessarily requires an infinitely long calculation. However, many key quantum operators (momentum, position, spin, etc.) are self-adjoint, meaning that (among other things) each one has a full set of eigenvalues that fully characterize it. The spectral zeta function of the operator A is then defined as the infinite sum:
where the zeta symbol is reused, possibly, to confuse the non-expert reader as much as possible.
The functional determinant[54], then, is defined as:[55]
Now, the sum above is not identical to the sum in the Zeta Function (which necessarily goes 1, 2, 3... unlike here), but it's close enough that the same analytic continuation procedure etc. is used.
In particular, Dowker and Critchley pointed out in 1976 that this could potentially be used to evaluate otherwise divergent path integrals on a Riemannian Manifold[56] without the downsides of other approaches (like violating tenets of General Relativity).
In 1977, Stephen Hawking showed that:
In flat space-time, we know the eigenvalues exactly, so we can calculate the determinant explicitly (it still diverges).
In a fixed, curved space-time, we have to be more clever, and Hawking resorts to a "heat kernel" approximation that cuts off terms corresponding to short periods of time.
can't be calculated explicitly, but can, and ends up controlling a key term.
Unlike other approaches to regularization,[57] this satisfies General Covariance, a core tenet of General Relativity, so we can be more confident in the approach in this context.
In particular, the one-loop quantum correction to the path integral partition function Z can be written:
...and at this point we are definitely delving far too greedily and too deep, and beyond where I can confidently narrate the math, so I will sum up by saying:
Hawking was able to use this to perform his analysis of space-time around a black hole.[58]
Among other things, this provides a number of the one-loop correction terms for the black hole partition function, which in turn provides corrections to the Bekenstein–Hawking Entropy of a Black Hole beyond the classical term.
All of this served to popularize the notion of using Zeta Function Regularization in practical physics work, including the normal variation used in the Casimir effect. Before this, it was considered borderline mathematical voodoo, but Hawking's success with it in Black Hole calculations caused the physics community to pay attention.
It took decades of development in Effective Field Theory to fully reason out the connection between this approach and the usual approach of "cutting off" higher energy modes. Tao's method in Section 2 works here too, for much the same reason, and makes the relationship explicit.
It turns out once again, we are completing our calculations by removing the highest energy terms. But unlike with the Casimir Effect, it is no longer clear what exactly we are removing. Yes, technically, Hawking was removing the shortest timescale effects that don't have time to "propagate"—but if these were truly trivially unimportant, the sum wouldn't diverge! Taking them out is saying something: maybe that we don't think they really happen, or something changes about how they work, space-time doesn't permit it, something.
What would be even worse would be a case where we don't even know where to set the cutoff.
Vacuum Energy, and the Cosmological Constant
Our last topic is one we touched upon earlier when discussing the Casimir Effect: the Vacuum Energy—that is, the energy associated with the quantum fields of empty space.
As noted earlier, actually attempting to calculate the value of this energy from the Standard Model leads to a divergent sum. In many calculations this value does not matter, since it cancels out or is irrelevant, but on a universal scale it absolutely matters, because it is expected to contribute to the expansion or contraction of the universe. In particular, it is by far the leading candidate for the origin of the Cosmological Constant, which seems to be driving the accelerating expansion of the universe, essentially by applying a constant pressure outward.
No problem, you might say, we'll just use the techniques of regularization and cut off the higher energy terms! We just learned how and why to do that!
Well, the thing is, in dealing with vacuum energy outside the Casimir Effect (where we could cancel the infinities out against each other), the remaining terms do matter, and depend on exactly how we cut it off. In many places in Quantum Field Theory (and in Hawking's approach above), choosing a rough cutoff parameter that clearly includes the energy and momentum scale of the problem being studied (but excludes anything "too large") works quite well. For instance, when studying the electron—mass-energy 0.511 MeV[59], or Joules—a choice of cutoff a thousand times its mass-energy shifts the mass calculation by about 2.5%. A choice at the Planck Energy (about the electron energy) shifts it by 18%. Here, the answer is nearly insensitive to any reasonable cutoff, and physicists are comfortable using renormalization[60] to adjust the parameter to the experimental mass.
For the Vacuum energy, it's less obvious what the best choice is, and the result is extremely sensitive to the choice of cutoff (, meaning that the energy is proportional to ). Various choices based on intuitive physical parameters (such as the Planck Energy) give results that are incredibly, absurdly out-of-line with observations of the Cosmological Constant, by factors of as much as .[61] This is known, relatively famously, as the Cosmological Constant Problem.
For practical calculations where it does matter, we can pick a cutoff value to get the number about right, analogous to renormalization, but, to quote Wikipedia, "many theorists consider this equivalent to ignoring the problem", a view I share.
So here, in one of the more important unsolved problems in physics, is a divergent sum we can't figure out how to handle. Zeta Function Regularization has helped before, but will it help here? Well, I doubt it will be as simple as that, or as simple as knowing that 1+2+3+4+5...=-1/12[62], but understanding just what's going on here may be part of the answer.
As a final thought, it's not a coincidence that so many physicists are convinced that these cutoff points (the Planck length, energy, etc.) must be the starting point of actual new physics, whether it be String Theory, Loop Quantum Gravity, or what have you. The Casimir effect with its concrete arguments about metal plates is the good scenario—there are many, many cases where it's not at all clear what we're cutting off and why.[63] A lot of these prospective new theories share the advantage of giving an answer to some of these questions.
We just don't know yet if they're right.
With acknowledgements to Julian Bradshaw for invaluable editing work and commentary, Claude for proofreading, widgets, and fact-checking, and Gemini Neon for reviewing the widgets and writing several of their captions.
For instance, the Numberphile video , which attracted a lot of controversy when it was first uploaded. The thing is, "shuffling sequences around" is a lot more meaningful than it might seem at first glance, but in very non-obvious ways, which we discuss in Section 2. Note that Numberphile much later returned to also explain the argument in Section 2 and the argument in Section 1, and these videos are fine.
By the way, the first person to derive the formula might have been Euler, but whether he actually did or not is surprisingly disputed. As a non-Euler scholar, I'm going to stay out of this one.
(deep sigh), so OK technically, this is a function that is holomorphic. Technically, to be analytic, a function must equal a convergent power series at all points in the domain—basically, its Taylor series. For complex functions, where z and f(z) are allowed to be complex-valued, holomorphic and analytic are identical, which makes a lot of sense. For real functions, it is possible to have infinitely differentiable functions that are not analytic—technically these are called smooth, rather than holomorphic, which technically only applies to complex-value functions.
This is part of a global theme where math is consistent and behaves how you'd expect on the complex plane, and way messier and filled with edge cases if you focus on only the reals.
Anyway, as we will very soon be focusing primarily on the complex plane, I will keep just using the word "analytic", because it matches "analytic continuation".
Apparently we have very few portraits of the guy. Also, note that I said he defined the modern version. The first version of the Gamma Function was defined by, of course, Euler.
Strictly speaking, if you can find one at all at a given point. There is no guarantee that any given point or region will have a valid continuation. The one we talk about later is invalid at z=1.
Proving this is well beyond the scope of this post.
For instance, Numberphile, 3blue1brown, Physics Explained. My editor expressed interest in reading one on lesswrong, so I might do one someday, but unlike this article, I don't think it's easy to avoid the gory mathematical details. And hey, understanding Analytic Continuation is half the battle!
Why this random looking integral? Here, I'm just defining it for the sake of the following discussion. The point is that it's a surprisingly good estimate of the prime counting function
This theorem basically says . The result for Li(x) follows as a "trivial" consequence. Note that is thus itself an estimate of , but not as good of one.
Among other things, at that point the ratio between the two values is so close to 1 that even on a log-log chart the two lines will look pixel-identical.
I was asked to explain the importance of understanding the prime numbers. Look, there's no getting around it—it's mostly an exercise in pure mathematical knowledge. But if you demand applications, the obvious one is crytography, and abstract math has made its way into things like physics a decent number of times. The later sections of this very post will highlight this further.
Everyone's favorite company, OpenAI, published a Lean-verified but non-peer-reviewed proof that the Riemann Zeta Function has no zeros with real part , which would be, as the kids say, big if true.
Usually when writing functions of complex values mathematicians write "z" to remind each other it's a complex number. Why is it s here? Uhh, well Wikipedia says it's tradition, following Riemann.
Heck, it even looks weird to me not to write s, so I'm just going to use s.
Also sorry about the formula that simultaneously has n (the index of summation), N (the cutoff scale factor) and (greek letter eta, the name of the smooth cutoff function). I didn't choose these, these are by convention!
Just Regularization is actually insufficient to deal with all our infinities. Typically, it also requires a second procedure in parallel: Renormalization.
Renormalization is arguably even battier than Regularization and kind of goes: OK so I see we're trying to calculate (Something that diverges). But if we pretend everything is fine and rearrange a little we get something like [function of thing we can measure in the lab, like electron mass] + [something that diverges] - [same thing that diverges], which we'll just say is equal to [function of thing we can measure in the lab, like electron mass]. Yes we just did but look the expressions subtracted algebraically, the theory works, and we don't think the is real, in the same way that no one really thought a point-electron has an infinite electric field. If the isn't real, then the two mathematically identical things should be okay to subtract. It also hinges on the fact that we just measure and assign a value to the first part.
More precisely, any electric field that arises parallel to the surface of the plate will be automatically canceled out by charges moving around inside the conductor (e.g. electrons moving towards or away the field). Thus, the only EM waves that can form will have a field strength of 0 at the surfaces, and quantization restricts how many different possible waves can do this.
Note that this leans on the assumption of the plates being perfect conductors. The corrections necessary for a real conductor have also been calculated.
Fair warning: not everyone agrees with this. Jaffe (2005) argued that the Casimir effect can be computed entirely from the interactions between the charges in the plates, with no mention of vacuum energy. The vacuum energy calculation is the standard textbook route and gives the right answer, and most physicists still describe the effect that way, but actually “proving” the existence of the vacuum energy takes more than just showing the Casimir effect
You might be slightly surpassed to see , unlike every other example that has come up so far, but this is a consequence of the formula from section 1 (), because of the sine term. The negative even integers are 0 and the negative odd integers alternate between positive and negative.
Technical note: previously I stipulated that the function needs to drop off to 0 eventually ("compactly supported") but neither Casimir's formula nor the common style function actually reaches 0. What gives? Well, Tao never explains it, but for this exact function the compactly supported part is not needed. Or as Claude said when I checked this detail I couldn't find an answer to: "The Euler-Maclaurin argument only needs smoothness and enough decay, but for the exponential cutoff you can avoid the question entirely, because the expansion is classical and exact: for positive integer , . With the constant term is , which is what Casimir's calculation finds"
The exact size of the cancellation term shown in the widget depends on how you model the cutoff. Here it is an exponential cutoff at a length of λ~p~/2π, which gives an energy density of 48π²ħc/λ~p~⁴. What does not depend on the cutoff is the way the term grows (as 1/λ~p~⁴) and the part left over after cancellation, which is the lesson of Section 2.
This is definitely a bit of a dive into the linear algebra, for which I apologize to my confused readers. This is here, however, so that those who do remember their linear algebra can give the following reaction:
Anyway for those who want to know, is essentially and the relation to the determinant follows from Jacobi's Formula.
I haven't even brought up attempts to quantize gravity, which fail to renormalize entirely. This can only be explained by handwave: but roughly it is because the gravitational potential is based on energy, rather than a charge that is a pure number. When attempting to renormalize, you integrate over possible energies and set an energy cutoff . For all quantum field theories, this turns out to hit an edge case in our regularization scheme: remember, the constant term leftover is but this is undefined if s is -1 (the sum ). For the better behaved theories, this unknown value can be set in some cases by renormalization by comparison with measured values of the electron mass or charge or other relevant known physical quantities. But for gravity, the fact that the terms involve energy squared and no unitless "charges" means that there are an infinite number of unknown values that need to be arbitrarily set. Obviously, this leaves too many degrees of freedom open to say anything meaningful.
Notably, Fermi's original theory of the Weak Nuclear Force had the same problem, which was eventually fixed by new physics in the electroweak theory and the W boson, which changed how the electroweak field potentials are calculated. Suggestive.
This chart reintroduces some of the complexity of real metals: a full plasma model of metals calculation has first order correction F ≈ Fideal(1 − 16δ/3a) with δ = λp/2π, which is only trustworthy when a ≳ 2.5 λp.
Let's take a moment to appreciate that if we could exactly calculate , this is tantamount to being able to identify every prime number—the prime numbers would just be where increases by 1. So anything we figure out about this function is the same as learning about the primes, with all that entails, like results about cryptography.
Epistemic Status: I consider myself fairly well-versed in mathematics, with a decent-to-good understanding of Complex Analysis, etc. but I am not a practicing mathematician.
If you're like me, then you're a bit saturated with explainer videos and posts purporting to explain this infamous, memetic math assertion:
If you're really like me, you're annoyed that the popular ones don't really explain the most direct derivation, and often resort to shuffling sequences around to show how it kind of works if you squint.[1] Not only is that not how it is typically first explained to a curious math student, these explanations also often leave out important details about why it's interesting and why we should care.
Though, as it turns out, I learned a decent bit myself making sure I got as much right in this post as I could.
Before we say anything further: that equals sign is of course a bit of a lie. What actually "equals", if it equals anything, is ∞, as one would expect. The equals sign here is really more of a "can be thought of as equivalent to, in some specific sense". And yet, it is somehow more than a mere mathematical parlor trick—if you insist on a physical-world "application"[2] there surprisingly is one in (spoilers) Section 3.
For this post, I'm expecting the reader to have a good grasp of Calc 1/2 and the ability to recognize things from Calc 3 if pointed out. A lot of what is written here is going to be oversimplification, or ignoring details. That simply comes with the territory, unfortunately, but I hope this post is less misleading than most.
Also, it wouldn't hurt to have a pop-sci level of understanding of Quantum Field Theory.
I think of there being three approaches to explaining this strange formula:
Warning: this post contains math! While the goal here is to help readers build a better intuitive feel for the mathematics involved, it is not strictly necessary that you understand every step along the way. Simply getting the gist of what's going on is enough to help you better comprehend at the end how a fake equation like 1+2+3... = -1/12 can reflect how reality works.
Index:
1 - The Canonical Approach: Analytic Continuation and the Riemann Zeta Function
What are Analytic Continuations?
There is no writing this without slaying the dragon that many other explainers (to me, bizarrely) refuse to touch: Analytic Continuation.
In a way, Analytic Continuation is an answer to one of the most natural of starting math questions: given a set of points, can we connect them with a nice curve?
Note: Many plots here will be "I asked Claude to make this to illustrate a point", or else copied from Wikipedia or some other open-source image source. The interactive widgets were built by Claude and reviewed by Gemini Neon, which also wrote several of their captions.
The classic example is , the factorial function. Sure, it's technically undefined anywhere outside the nonnegative integers {0, 1, 2, ...}, but it sure looks like there's some kind of curve you can draw connecting all the points.
But how would you define such a thing rigorously? You can take out a marker and draw all kinds of curves that technically hit all the points: curves that squiggle up and down, curves that are jaggedy, curves that asymptote to infinity every half-digit. What do we want?
Well, roughly speaking, we want it to be a curve, something smooth that feels like it could be a natural function, like or . To a mathematician, wanting something to be smooth suggests a function that is analytic;[6] that is, one that is differentiable, has a second derivative, a third derivative, ad infinitum.[7] Essentially every natural function you could write down has this property (within its domain), and it's part of why they look, well, so smooth.
So an analytic continuation (in the broadest sense) is: find a nice analytic curve that extends (continues) a function that has a restricted domain to other places, ideally the rest of the real number line (every possible real number from to ) or, even better, the entire complex number plane (all possible complex numbers ). There are techniques for generating such things, or, if you're clever enough, you can just make up an analytic function that fits the points and does what you want.
And in the case of the factorial function, we have made up the Gamma function:
(OK, technically , rather than . The reasons for this are historical: Legendre[8], who defined the modern gamma function, chose to do it this way. It makes some formulas nicer and other formulas messier. It has stuck.)
I'm not going to go through the exercise of proving that the Gamma function equals the factorial at all positive integers[9], or the fun fact that .[10]
But this function is indeed analytic, since it can be differentiated as often as you want by the Leibniz Rule.
This is what the Gamma function looks like over all the real numbers.
Okay, so the positive reals look sensible enough but what the heck is going on with the negative numbers? Is this really what should look like?
Well, no, it isn't, because it's not , only a sort of proxy, and that's a point to hold onto for later.
And this is what it looks like over the complex plane, with the height showing the magnitude :
So right now, if you're clever, a question might occur to you. I just sort of spat out a definition of that happens to be analytic and curve-fit the factorial function. Is this the only possible choice? Is it unique?
That would be really nice! Because it would mean that in some concrete sense the Gamma function is the way to extend the factorial function. Any other choice would be a compromise.
Well, unfortunately, no. There are infinitely many ways to do it, and the Gamma function is just a convenient choice that everyone likes.
But despair not: there is a case we're about to get to where it is unique. You see, if instead of starting with some points on the real number line, you start with a region[11] of the complex plane and a function that is analytic on the region, then there is indeed only one analytic continuation to the rest of the complex plane.[12]
And then the equals sign is less wobbly.
Consider our original intent: we wanted to find a way to connect points or extend a curve in the smoothest way possible. If there's more than one way to do it, then you're arguably just making up your favorite curve, and if z is outside the domain, then you might just be assigning some arbitrary value to .
But in the example I just outlined (starting with a region of the complex plane), there is only one way to extend it, which means that the value of is no longer arbitrary. It's the only possible analytic continuation.
The Riemann Zeta Function Enters the Picture
From here on out, for complex numbers of the form , I'm going to say "real part" for a and "imaginary part" for b and just assume you know what I'm talking about.
Also, think back to Calc 2: A series converges if it sums to a clear fixed value and diverges if it doesn't. The latter doesn't have to be to go to infinity! A sum can also oscillate back and forth—nonetheless, it's very common practice to use "diverges" as shorthand for "goes to infinity or negative infinity", which is a practice I will adopt.
Now it is time to introduce a very important, very well-known function which matches exactly the description I just gave—a unique analytic continuation of a region of the complex plane—the Riemann Zeta Function.
Let us define a precursor function first:
This function is well-defined (the series converges to a concrete value) whenever the real part of the exponent is greater than 1.[13]
The Riemann Zeta Function (written )[14] is the analytic continuation of this function to the rest of the complex plane.
A Tangent: the Riemann Hypothesis
Amazingly, this section actually has nothing directly to do with the overall topic of the post! But I imagine there is a lot of interest in the Riemann Hypothesis, and we're within spitting distance of it. Honestly, you owe it to yourself to know something about it.
If you truly don't care, or already know this material, just skip this section.
It is irresponsible to bring up the Riemann Zeta Function without explaining at least briefly what it is and why it's important, so let me go ahead and raise everyone's AI-news–following eyebrows by commenting that the infamous Riemann Hypothesis simply states:
Where I have simplified the mathematical language for understanding.
Discussion of the Riemann Hypothesis is a field extremely oversaturated in explainers[15], so here is the breezy 100,000-foot explanation of why it's important:
Let's take a moment to appreciate that if we could exactly calculate , this is tantamount to being able to identify every prime number—the prime numbers would just be where increases by 1. So anything we figure out about this function is the same as learning about the primes, with all that entails, like results about cryptography.
Also it's confusingly named π and has nothing to do with the number 3.14... for p, because prime numbers, you see. We've inherited a lot of these conventions from old-timey mathematicians.
From the prime number theorem[17] we know:
That is, gets asymptotically close to as x goes to infinity.
On its own, that's neat, but awful at actually letting us say anything meaningful about the prime numbers.[22] With more work you can do better. For instance in 1899 it was shown that:
for some positive constant a. And in 2002 it was shown (hat tip to Wikipedia), deep breath:
where .
But wouldn't it be great if we could do better? Like a lot better?
Well, if the Riemann Hypothesis were true, then:
and, dispensing with the big-O notation entirely (still assuming the RH):
where we define .[23]
So the Riemann Hypothesis places much stricter bounds on the distribution of prime numbers, with a whole laundry list of theorems about primes and other functions dependent on it being true, and it has resisted proof attempts since 1859. Computer searches have ruled out counterexamples (a zero[24] of with real part ) with imaginary part less than about , finding over ten trillion zeros with real part one-half.[25]
The Generalized Riemann Hypothesis
Because mathematicians were not satisfied with just the Riemann Hypothesis, it was eventually noticed that the curious property that seems to hold for the Riemann Zeta Function (all non-trivial zeroes have real part 1/2) also seems to hold for a whole family of related functions, the primitive Dirichlet L-functions. And like the Standard Riemann Hypothesis, the generalized version has significant consequences for number theory, for instance in guaranteeing runtimes for a number of prime-related algorithms.
There is no getting away from the math here. If you want to know the full extent of what Levent/Claude proved I have to engage in the deep arts. Feel free to skip if you don't want to know the details.
If you'll recall, we defined the Riemann Zeta Function as the analytic continuation of:
beyond its original definition on complex numbers with real part greater than 1. In comparison, a Dirichlet L-function replaces the numerator of 1 with a Dirichlet Character, which is a function defined as such:
keeping in mind that n and q are integers.
For a L-function to be primitive, its character function must not be induced (a formal term for "generated") by another character with smaller modulus. That is, there is no character with modulus such that:
where is the greatest common divisor function (so if it equals 1, n and q share no factor). (d also necessarily divides q, as a consequence of this definition). If there was such a character, that would make the original character function nearly identical to , just with extra zeroes whenever n and q share a common factor, and therefore not "primitive".
With these characteristics defining the L-function, then:
If we now take the analytic continuation to the rest of complex plane, we get the full Dirichlet L-function.
It can be shown that any such function is either zero at all the negative even numbers or the negative odd numbers. These are the trivial zeroes. The Generalized Riemann Hypothesis is then:
For all primitive Dirichlet L-functions, all non-trivial zeroes have real part 1/2.
Thanks to Levent's Lean proof, it seems that this (and the Riemann Hypothesis itself) are true.
Back to the Main Topic: The Riemann Zeta Function and 1+2+3...
Back to the series we came here for.
Leaving aside why this has anything to do with the prime numbers, as discussed already the Riemann Zeta Function is defined starting with the infinite sum:
which only converges if s[27] has real part >1.[28]
To get the actual Zeta Function we Analytically Continue this function to the rest of the complex plane, and as discussed at the end of the Analytic Continuation subsection, since we started with a region of the complex plane, this function is unique. There is no ambiguity about what analytic continuation we are talking about.
Actually calculating values of the Zeta Function gets a little tricky. For values with real part >1 some exact values are known, e.g. [29], and the rest can be numerically approximated by computers. For values with real part below zero, we rely on this rather horrifying relation, which was shown by Riemann himself:
where is our good friend the Gamma Function from last section. This relates negative values of s to corresponding positive values. For instance if s=-1, then 1-s=2 and we can use to calculate . This leaves a notable gap between real part 0 and 1 where this doesn't quite work, but which can be closed by a different trick that I'm going to leave out here.[30]
Some fun facts about the Riemann Zeta Function:
Hey wait a second—
Okay, assuming you didn't see it already, if you pretend that the Riemann Zeta function is literally , then if , this sum is just , or
And as we just established, .
so:
in the same sense that "equals" .
By the same logic, you can also say:
and infinitely many other such statements. You can go ahead and imagine air quotes around all these equals signs.
And the takeaway is...
I imagine at this point this is a little underwhelming. Of course, we knew the "equals sign" wasn't a real equals sign, but what does this say, really? Sure this happens to involve the Riemann Zeta Function, which is a cool function that's important to math, but the cool prime number part seems to have nothing to do with this.
And, yeah, that was the objection a lot of people—mathematicians included—had to this "fun fact". It seemed like a bit of a parlor trick. As we shall see, it is somehow more than that.
If at this point you are drowning and want to get to the "applications" already, feel free to skip to Section 3. You may want to go back to Section 2 afterward to see the connections, though.
2 - "Smooth Sums" of Sequences and Why -1/12 is Special
Speaking very loosely, when looking for alternative ways to attempt to "evaluate" divergent summations, such as with Ramanujan Summation, the answer that usually comes out is a match for the series above. That is:
Moreover, it is possible to come up with various more or less suspicious schemes for messing with sequences that will also have a tendency to land in roughly the same place. This seems like a strange but probably meaningless coincidence, except, well, it isn't. And we don't even have to resort to the complex numbers to explain it.[31]
In 2010 (and probably earlier), Terence Tao asked the question: what if we evaluated sums a different way? That is, the "traditional" (and obvious) way to try to evaluate an infinite sum is with partial sums:
But what if we instead took a weighted sum? That is, rather than cutting the infinite series off and focusing only on a limited part of the beginning, we took the whole series, but tried to downweight the later parts and bring them in only gradually?
Let me do a toy example with the simple series
Now, instead of summing terms one at a time, we chop off the later numbers to "make" the series converge, then try to fix it by putting values back in. As a simple example, let's make each subsequent term only half as important as the previous term:
where we're "down-weighting" each subsequent term . We sort of chopped the series horizontally rather than vertically. And in this case we know this chopped series sums to 2. That's a real equals sign! Now to get back to the original series, let's bring the missing parts back piece by piece. We'll need a smaller piece to add back, so let's down-weight by this time, rather than by .[32]
We can keep doing this manually, but it's easier to generalize a procedure. We can look at the series of "chopped" series:
which should[33] approach the same value. And here we see that each subsum is:
which indeed approaches infinity. As indeed, it really should.
This is... certainly one way to sum a series, but why are we doing this again?
Bear with me a bit longer. I was mostly using that as an example to ease us into the actual procedure that is used:
Define the weighting function (the smooth cutoff function, to use the right name for it) as . We require that , that the function be smooth on , and that the function evaluate to exactly 0 outside a certain finite region.[34] These are the criteria that define a suitable cutoff function, and they are sufficient to guarantee the series converges (because, well, it becomes 0 at some point).[35]
Then we define the series of smooth sums:
where is the original series we were interested in, although Tao's result focuses on series of the form [36] .
Confusingly, while Tao sticks to Zeta Function convention by talking about the series at points in his post, he uses the opposite convention in his formula, with the implicit definition of . To keep the formulas the same as in his post I'll stick to the latter.
Note that this is just flipping the sign of s. So for , we would have s=-1 here, but it corresponds to ; that is:
Terence Tao showed the surprising fact that:
where is the value predicted by analytic continuation and . Or in other words, the series of smooth sums is equal to:
or, in other words, the value B is baked into what you get no matter what you choose for as long as it "looks like" what we defined as a cutoff function. It's a property of the original series, and it also means that various "schemes" for shuffling terms around to get rid of the infinities will have a strong tendency to spit out B at the end.
Thus, in a way, really is secretly implied by , without needing to invoke complex numbers or analytic continuation.
OK so uh, that's great. This is a nice fun abstract math fact. Can we go home now—
3 - Quantum Field Theory, Regularization, and the Vacuum Energy
Okay wait what? How did we get here?
Alright, so this is the part of the post where I must do absolutely the most hand-waving, partly because not hand-waving involves a dive into QFT, and also because, frankly, I don't know QFT that well.
As you may or may not have heard, when formulating Quantum Field Theories, trying to calculate values for simple concepts (like the mass of the electron) very quickly veers into the rocks of divergent integrals and summations. Two common ways this can occur are:
It is not, as commonly supposed, that classical physics is free of such problems. For instance, performing electromagnetic calculations involving point-like electrons necessarily involves an infinite electric field at the "surface" of the electron and tacitly involves assuming the electron isn't "really" a point or that we don't care about such small distances. It's just that in classical physics, this pretty much never mattered—but in quantum physics it absolutely does.
Reflecting on that point about classical physics (that we were basically "ignoring" things that were too small) motivates "fixing" these problems in very roughly the following way[38]:
Regularization
Suppose we are trying to calculate A, which has the property that a direct QFT calculation yields:
Except that unfortunately trying to evaluate this series diverges to as (for example, if the function x(n) is something like just ).
Well, wait, it turns out that as the energy scale goes to and the length scale goes to 0. This is exactly the same thing as the "infinitely small electron" problem. Analogous to what we implicitly did in classical physics, we can just say we sort of don't believe in the higher energy parts, and replace our previous equation with something like:
where is some function that starts off at 1 and drops off to 0 eventually, and N is chosen to "cut off" the terms somewhere around where we stop believing our physics is accurate. If the terms of x(n) drop off sufficiently rapidly, this won't even be that bad an estimate.
This should look familiar at this point. This is very similar to what was described in the last section.
This procedure (and others like it) is used in real quantum mechanics to make real (extremely accurate) quantitative predictions, and is worth our attention as mathematicians and physicists because real quantum mechanics has to try to deal with divergent series and make them work, somehow.
And to illustrate this, we should talk about the Casimir Effect.
Casimir Effect
Like so many topics here, I am giving only a surface-level treatment.
A bare-minimum description of the Casimir Effect is that it is a physical force that arises in confined spaces due solely to quantum fluctuations in a vacuum. Just saying those words is a bit mysterious, but the classical example from Casimir himself should give some of the requisite flavor:
Image from Wikipedia
Before getting to the two (conducting!) plates shown above, some surprising predictions of Quantum Field Theory on an empty vacuum:
An attempt to estimate the vacuum energy mentioned in point 2 immediately runs into a familiar problem: infinite fluctuations at infinite points form a sum that diverges to infinity. Fortunately for most calculations, only differences in the vacuum energy usually matter; for most physical systems you might be studying, the vacuum energy everywhere should push all things equally and cancel out.[39]
(Though not for the universe as a whole. The negative pressure of the energy actually exceeds the gravitational pull, and an infinite vacuum energy would blow up the universe immediately. This is foreshadowing.)
Now let's return to the two conducting plates Casimir suggested. Speaking roughly, if the plates are really close together, then the quantized nature of the vacuum fluctuations (prediction 3 earlier) starts to matter.
Specifically, for the electromagnetic field[40], quantization starts to limit the range of possible electromagnetic wavelengths, because the waves have to "fit" between the plates, because the field strength at the surface of the conducting plates needs to be 0.[41] This reduction in the number of possible oscillations between the plates lowers the vacuum energy, because it reduces the number of possible random fluctuations, sort of like switching from a D20 to a D6.
But this means that there is a positive pressure from the vacuum energy outside the plates (still using a D20) pushing the plates inward, which seems like an experimental check on whether this kooky vacuum energy really exists.[42] Naturally, this has been measured, and the measurements seem to agree with the calculated theoretical values.[43]
That theoretical calculation is what we are here to talk about. Casimir originally calculated that the energy per unit area between the plates from this effect should be the following value:
Where is the distance between the plates, is the reduced Planck's constant[44], and is the the speed of light.
And we need to take the limit as . That summation on the right side? It is a divergent sum of the same form as we were using to define the Riemann Zeta Function.[45]
The typical treatment then proceeds by going OK, let's replace this with , the zeta function analytic continuation, and proceed to calculate the result, deriving an energy per unit area, and from it a pressure pushing the two plates together of:
something which has been roughly experimentally confirmed, as mentioned previously. The two plates just sitting next to each other really do get pressured together.
But wait, isn't that absolutely bonkers? We're just waving a seemingly magic wand over the original formula, asserting that:
And[46] this hack predicts real experimental results???
Well, it is kind of bonkers, but it makes more sense than it seems. In his original derivation in 1948, Casimir didn't take this approach; he performed regularization, assuming that the higher frequencies were less important. He defined a cutoff function , specifying that it would start from 1 then drop off to zero rapidly.[47] He himself considered the choice of arbitrary and a bit of mathematical convenience.
Along the way, he canceled out an equivalent expression for "infinitely distant" plates, effectively subtracting off the infinite components of the vacuum energy. By doing this he got the same formula as the Riemann Zeta Function.
At the time and for some time afterward, this looked a little mysterious, even if it worked, but with our result from Section 2, it is much less so. In fact, Section 2 implies it would have worked with any smooth cutoff choice—the important thing is that there is a cutoff at all. We may not understand exactly what it is or how it should be shaped, but the higher frequencies/smaller distances are somehow less important.
To be clear, from section 2 we know:
if is of the form and is a smooth cutoff function. So then:
When Casimir subtracted off his infinitely distant plates term, he effectively subtracted off the middle part, which is the only part that goes to infinity.[48]
This naturally just leaves:
and as this is just .
Note the key point here: the results of Section 2 (the discussion on smooth cutoffs) took a somewhat shaky physics calculation and put it on firmer epistemological ground—rather than needing to accept as an arbitrary choice that happens to work, the assumption is clearer: the higher frequency/energy components are less important (for some reason we don't know yet), and get cut off in the real world somehow. We bypass the question of exactly how with this one neat mathematical trick that lets us dodge the lack of understanding that our formulas otherwise carry with them. The wrinkle is, of course, we're still merely assuming they do get cut off in the real world.
Now, in the case of the Casimir effect we've actually managed to eventually develop the relevant understanding: physicists are now quite sure that the cutoff is derived from the plasma frequency of the metal, and that frequencies higher than the cutoff can simply pass through the metal, ignoring the plates. That means above-cutoff electromagnetic radiation does contribute to vacuum energy between the two Casimir plates, which means our formula was correct when it "arbitrarily" chose to exclude those higher frequencies from its count of missing vacuum energy between the plates. A theoretically perfect metal would not have this cutoff, but all real plates do. And perhaps that's the real lesson here.
So it's great that we have this relatively well-understood case study in why cutoffs work. But the thing is, we also use cutoffs elsewhere in physics, where it remains much less obvious what the physical meaning of those cutoffs are.
Black Hole Thermodynamics
The Casimir Effect is the most famous[51] use of what is called Zeta Function Regularization, and nowadays the relevant formula is typically derived this way rather than the way Casimir originally did it. But it is not the original reason the technique was introduced.
You do not need to follow the math closely in this section! The important part is the written explanation of how the Zeta Function Regularization we just learned about ended up being accepted as a useful tool in theoretical physics.
In the 1970s, physicists[52] began examining the notion of using zeta function regularization to study the "determinants of quantum operators", which are important in certain calculations but have the unfortunate property of often requiring you to take the determinant of an operator on an infinite-dimensional Hilbert Space.[53] This necessarily requires an infinitely long calculation. However, many key quantum operators (momentum, position, spin, etc.) are self-adjoint, meaning that (among other things) each one has a full set of eigenvalues that fully characterize it. The spectral zeta function of the operator A is then defined as the infinite sum:
where the zeta symbol is reused, possibly, to confuse the non-expert reader as much as possible.
The functional determinant[54], then, is defined as:[55]
Now, the sum above is not identical to the sum in the Zeta Function (which necessarily goes 1, 2, 3... unlike here), but it's close enough that the same analytic continuation procedure etc. is used.
In particular, Dowker and Critchley pointed out in 1976 that this could potentially be used to evaluate otherwise divergent path integrals on a Riemannian Manifold[56] without the downsides of other approaches (like violating tenets of General Relativity).
In 1977, Stephen Hawking showed that:
In particular, the one-loop quantum correction to the path integral partition function Z can be written:
...and at this point we are definitely delving far too greedily and too deep, and beyond where I can confidently narrate the math, so I will sum up by saying:
All of this served to popularize the notion of using Zeta Function Regularization in practical physics work, including the normal variation used in the Casimir effect. Before this, it was considered borderline mathematical voodoo, but Hawking's success with it in Black Hole calculations caused the physics community to pay attention.
It took decades of development in Effective Field Theory to fully reason out the connection between this approach and the usual approach of "cutting off" higher energy modes. Tao's method in Section 2 works here too, for much the same reason, and makes the relationship explicit.
It turns out once again, we are completing our calculations by removing the highest energy terms. But unlike with the Casimir Effect, it is no longer clear what exactly we are removing. Yes, technically, Hawking was removing the shortest timescale effects that don't have time to "propagate"—but if these were truly trivially unimportant, the sum wouldn't diverge! Taking them out is saying something: maybe that we don't think they really happen, or something changes about how they work, space-time doesn't permit it, something.
What would be even worse would be a case where we don't even know where to set the cutoff.
Vacuum Energy, and the Cosmological Constant
Our last topic is one we touched upon earlier when discussing the Casimir Effect: the Vacuum Energy—that is, the energy associated with the quantum fields of empty space.
As noted earlier, actually attempting to calculate the value of this energy from the Standard Model leads to a divergent sum. In many calculations this value does not matter, since it cancels out or is irrelevant, but on a universal scale it absolutely matters, because it is expected to contribute to the expansion or contraction of the universe. In particular, it is by far the leading candidate for the origin of the Cosmological Constant, which seems to be driving the accelerating expansion of the universe, essentially by applying a constant pressure outward.
No problem, you might say, we'll just use the techniques of regularization and cut off the higher energy terms! We just learned how and why to do that!
Well, the thing is, in dealing with vacuum energy outside the Casimir Effect (where we could cancel the infinities out against each other), the remaining terms do matter, and depend on exactly how we cut it off. In many places in Quantum Field Theory (and in Hawking's approach above), choosing a rough cutoff parameter that clearly includes the energy and momentum scale of the problem being studied (but excludes anything "too large") works quite well. For instance, when studying the electron—mass-energy 0.511 MeV[59], or Joules—a choice of cutoff a thousand times its mass-energy shifts the mass calculation by about 2.5%. A choice at the Planck Energy (about the electron energy) shifts it by 18%. Here, the answer is nearly insensitive to any reasonable cutoff, and physicists are comfortable using renormalization[60] to adjust the parameter to the experimental mass.
For the Vacuum energy, it's less obvious what the best choice is, and the result is extremely sensitive to the choice of cutoff ( , meaning that the energy is proportional to ). Various choices based on intuitive physical parameters (such as the Planck Energy) give results that are incredibly, absurdly out-of-line with observations of the Cosmological Constant, by factors of as much as .[61] This is known, relatively famously, as the Cosmological Constant Problem.
For practical calculations where it does matter, we can pick a cutoff value to get the number about right, analogous to renormalization, but, to quote Wikipedia, "many theorists consider this equivalent to ignoring the problem", a view I share.
So here, in one of the more important unsolved problems in physics, is a divergent sum we can't figure out how to handle. Zeta Function Regularization has helped before, but will it help here? Well, I doubt it will be as simple as that, or as simple as knowing that 1+2+3+4+5...=-1/12[62], but understanding just what's going on here may be part of the answer.
As a final thought, it's not a coincidence that so many physicists are convinced that these cutoff points (the Planck length, energy, etc.) must be the starting point of actual new physics, whether it be String Theory, Loop Quantum Gravity, or what have you. The Casimir effect with its concrete arguments about metal plates is the good scenario—there are many, many cases where it's not at all clear what we're cutting off and why.[63] A lot of these prospective new theories share the advantage of giving an answer to some of these questions.
We just don't know yet if they're right.
With acknowledgements to Julian Bradshaw for invaluable editing work and commentary, Claude for proofreading, widgets, and fact-checking, and Gemini Neon for reviewing the widgets and writing several of their captions.
For instance, the Numberphile video , which attracted a lot of controversy when it was first uploaded. The thing is, "shuffling sequences around" is a lot more meaningful than it might seem at first glance, but in very non-obvious ways, which we discuss in Section 2. Note that Numberphile much later returned to also explain the argument in Section 2 and the argument in Section 1, and these videos are fine.
How impure
"The Riemann Zeta Function is an analytic continuation of to , and at -1 it equals -1/12"
Straight from the mouth of the horse himself, Terence Tao
By the way, the first person to derive the formula might have been Euler, but whether he actually did or not is surprisingly disputed. As a non-Euler scholar, I'm going to stay out of this one.
(deep sigh), so OK technically, this is a function that is holomorphic. Technically, to be analytic, a function must equal a convergent power series at all points in the domain—basically, its Taylor series. For complex functions, where z and f(z) are allowed to be complex-valued, holomorphic and analytic are identical, which makes a lot of sense. For real functions, it is possible to have infinitely differentiable functions that are not analytic—technically these are called smooth, rather than holomorphic, which technically only applies to complex-value functions.
This is part of a global theme where math is consistent and behaves how you'd expect on the complex plane, and way messier and filled with edge cases if you focus on only the reals.
Anyway, as we will very soon be focusing primarily on the complex plane, I will keep just using the word "analytic", because it matches "analytic continuation".
This also implies the function and all its derivatives are continuous.
Apparently we have very few portraits of the guy. Also, note that I said he defined the modern version. The first version of the Gamma Function was defined by, of course, Euler.
A nice integration-by-parts exercise for the interested reader, I suppose.
Which is why you may have seen it asserted that . This is the same "not really equal" equals sign that shows up in the title of this post!
An open, connected subset
Strictly speaking, if you can find one at all at a given point. There is no guarantee that any given point or region will have a valid continuation. The one we talk about later is invalid at z=1.
Proving this is well beyond the scope of this post.
This is provable with the integral test for convergence, with some complication for complex values.
For instance, Numberphile, 3blue1brown, Physics Explained. My editor expressed interest in reading one on lesswrong, so I might do one someday, but unlike this article, I don't think it's easy to avoid the gory mathematical details. And hey, understanding Analytic Continuation is half the battle!
Why this random looking integral? Here, I'm just defining it for the sake of the following discussion. The point is that it's a surprisingly good estimate of the prime counting function
This theorem basically says . The result for Li(x) follows as a "trivial" consequence. Note that is thus itself an estimate of , but not as good of one.
x/ln(x) is the other, simpler approximation that I'm leaving off the graphs for simplicity.
It's also worth noting that if this were not the case, it should be possible to make a slightly better estimate for by just trying things like , etc.
There could be a smaller number! But this is the smallest crossing point that has been proven to exist.
Among other things, at that point the ratio between the two values is so close to 1 that even on a log-log chart the two lines will look pixel-identical.
I was asked to explain the importance of understanding the prime numbers. Look, there's no getting around it—it's mostly an exercise in pure mathematical knowledge. But if you demand applications, the obvious one is crytography, and abstract math has made its way into things like physics a decent number of times. The later sections of this very post will highlight this further.
To be clear, I'm not just making up the names Li and li; these are accepted definitions.
To my vast surprise, my editor didn't know what a "zero" was. A zero of a function f(x) is a value x where f(x) = 0. See also https://xkcd.com/2501/
Everyone's favorite company, OpenAI, published a Lean-verified but non-peer-reviewed proof that the Riemann Zeta Function has no zeros with real part , which would be, as the kids say, big if true.
As a bounded, periodic function multiplied by a convergent series, it can be shown to converge by the squeeze theorem.
Usually when writing functions of complex values mathematicians write "z" to remind each other it's a complex number. Why is it s here? Uhh, well Wikipedia says it's tradition, following Riemann.
Heck, it even looks weird to me not to write s, so I'm just going to use s.
Note that this definition already includes some fun historical series, like the Basel Problem. That is: . Naturally, this was solved by Euler.
See the footnote right above this one
Ask Claude or just Google/Gemini if you really want to know.
For this section, you can also try the Numberphile video or the formal and crisp explanation on Tao's blog.
I've of course specifically chosen these examples to be easy to sum trivially. See Geometric series.
If we can show uniform convergence, which is definitely beyond the scope of this post
That it is compactly supported
Though I would note, for simplicity earlier I picked a function that isn't quite this—namely, it didn't drop off to 0 at any point.
Dirichlet Series.
Also sorry about the formula that simultaneously has n (the index of summation), N (the cutoff scale factor) and (greek letter eta, the name of the smooth cutoff function). I didn't choose these, these are by convention!
Heisenberg Uncertainty Principle
Just Regularization is actually insufficient to deal with all our infinities. Typically, it also requires a second procedure in parallel: Renormalization.
Renormalization is arguably even battier than Regularization and kind of goes: OK so I see we're trying to calculate (Something that diverges). But if we pretend everything is fine and rearrange a little we get something like [function of thing we can measure in the lab, like electron mass] + [something that diverges] - [same thing that diverges], which we'll just say is equal to [function of thing we can measure in the lab, like electron mass]. Yes we just did but look the expressions subtracted algebraically, the theory works, and we don't think the is real, in the same way that no one really thought a point-electron has an infinite electric field. If the isn't real, then the two mathematically identical things should be okay to subtract. It also hinges on the fact that we just measure and assign a value to the first part.
This assumption is itself a form of renormalization.
Quantum Electrodynamics, if you insist
More precisely, any electric field that arises parallel to the surface of the plate will be automatically canceled out by charges moving around inside the conductor (e.g. electrons moving towards or away the field). Thus, the only EM waves that can form will have a field strength of 0 at the surfaces, and quantization restricts how many different possible waves can do this.
Note that this leans on the assumption of the plates being perfect conductors. The corrections necessary for a real conductor have also been calculated.
Fair warning: not everyone agrees with this. Jaffe (2005) argued that the Casimir effect can be computed entirely from the interactions between the charges in the plates, with no mention of vacuum energy. The vacuum energy calculation is the standard textbook route and gives the right answer, and most physicists still describe the effect that way, but actually “proving” the existence of the vacuum energy takes more than just showing the Casimir effect
See for instance here.
Reminder:
You might be slightly surpassed to see , unlike every other example that has come up so far, but this is a consequence of the formula from section 1 ( ), because of the sine term. The negative even integers are 0 and the negative odd integers alternate between positive and negative.
For instance, we could use the commonly used .
Technical note: previously I stipulated that the function needs to drop off to 0 eventually ("compactly supported") but neither Casimir's formula nor the common style function actually reaches 0. What gives? Well, Tao never explains it, but for this exact function the compactly supported part is not needed. Or as Claude said when I checked this detail I couldn't find an answer to: , . With the constant term is , which is what Casimir's calculation finds"
"The Euler-Maclaurin argument only needs smoothness and enough decay, but for the exponential cutoff you can avoid the question entirely, because the expansion is classical and exact: for positive integer
Reminder: this is still the technically forbidden , but is generally accepted in renormalization.
Specifically, F ≈ Fideal(1 − 16δ/3a) with δ = λp/2π.
The exact size of the cancellation term shown in the widget depends on how you model the cutoff. Here it is an exponential cutoff at a length of λ~p~/2π, which gives an energy density of 48π²ħc/λ~p~⁴. What does not depend on the cutoff is the way the term grows (as 1/λ~p~⁴) and the part left over after cancellation, which is the lesson of Section 2.
Well, in some circles
Imported from a 1971 Ray and Singer math paper about analytic torsion.
That is, such an operator would be represented by an infinitely large N x N matrix
That is, the determinant we can use in some cases for an infinite-dimensional operator despite it not being a "real" determinant
This is definitely a bit of a dive into the linear algebra, for which I apologize to my confused readers. This is here, however, so that those who do remember their linear algebra can give the following reaction:
Anyway for those who want to know, is essentially and the relation to the determinant follows from Jacobi's Formula.
That is, Einsteinian Space-time
See here for a list of other regularization methods
Note: this is not related to the derivation of Hawking Radiation
Mega-electronvolt, a mass-energy unit used in particle physics. Each MeV is about Joules.
See Footnote 38
Implying a universe that blew itself apart long ago. Also a vacuum energy that is the mass-energy density of steel.
Honorable mention: In Bosonic String Theory, this exact relation is apparently responsible for why the theory needs 26 dimensions
I haven't even brought up attempts to quantize gravity, which fail to renormalize entirely. This can only be explained by handwave: but roughly it is because the gravitational potential is based on energy, rather than a charge that is a pure number. When attempting to renormalize, you integrate over possible energies and set an energy cutoff . For all quantum field theories, this turns out to hit an edge case in our regularization scheme: remember, the constant term leftover is but this is undefined if s is -1 (the sum ). For the better behaved theories, this unknown value can be set in some cases by renormalization by comparison with measured values of the electron mass or charge or other relevant known physical quantities. But for gravity, the fact that the terms involve energy squared and no unitless "charges" means that there are an infinite number of unknown values that need to be arbitrarily set. Obviously, this leaves too many degrees of freedom open to say anything meaningful.
Notably, Fermi's original theory of the Weak Nuclear Force had the same problem, which was eventually fixed by new physics in the electroweak theory and the W boson, which changed how the electroweak field potentials are calculated. Suggestive.
This chart reintroduces some of the complexity of real metals: a full plasma model of metals calculation has first order correction F ≈ Fideal(1 − 16δ/3a) with δ = λp/2π, which is only trustworthy when a ≳ 2.5 λp.
Note for inclusion later:
Let's take a moment to appreciate that if we could exactly calculate , this is tantamount to being able to identify every prime number—the prime numbers would just be where increases by 1. So anything we figure out about this function is the same as learning about the primes, with all that entails, like results about cryptography.