I’ve been thinking during idle moments over the last few months of how to convey to people why mathematics is beautiful. It’s a weird kind of beauty, and that’s been my main struggle: how to convey this weird kind of beauty to people who’ve learned it the wrong way and think it’s even a category error to talk about the beauty of some formulas they’ve had shoved down their throats.
I don’t have the self-confidence to think that this will actually convince anyone, but I’m going to keep trying. I’m going to start sort of in the middle, or maybe toward the end. The short form is that
People have been talking about the Riemann Hypothesis lately. The fundamental object they’re talking about is this thing called the Riemann Zeta Function:
The zeta function is intimately connected to the prime numbers, in a way that should be surprising.
That feeling of surprise is central to (at least my experience of) mathematical joy, which is an under-discussed topic, and (again, at least in my experience) not usually part of the mathematics curricula that we all had in American schools.
Leonhard Euler embodies a certain kind of mathematical experimentation that brings that joy front and center, if your eyes are trained to look for it.
I want to write this out in as much detail as I can without losing everyone, because it’s just interesting and beautiful.
What I want you to pay attention to as we go along is how much Leonhard Euler, the formula’s namesake, was clearly just playing, and how much fun he was clearly having. One of the things about math as we often learn it—and a thing that has thrown even friends of mine who love math as much as I do— is how often it feels like we get stopped by fiddly details. Euler, it has felt to me, was often just messing around. That habit of messing around, combined with a mathematical intuition that few have had, led him to some amazing discoveries. So let’s watch, to the extent that I can reproduce it, the messing around that he was doing.
So start with the zeta function. Why would you want to do that? That much I can’t tell you. Euler had better hunches than I did. But start with the formula we mentioned above:
This probably looks like gobbledygook to a lot of people. All the means is “add things.” In particular,
That is, one of the values of the zeta function is the sums of the reciprocals. Another is this:
That second formula has a very pretty sum: . And yes, it’s the that you think it is: the ratio of a circle’s circumference to its diameter. Euler became famous for discovering this formula; it was the solution to the so-called Basel problem. How does show up in there? This is amazing. It’s completely unexpected. The always brilliant 3Blue1Brown has a video that tries to build the intuition. (If you see , you should expect a circle somewhere.) In words: take each of the positive integers. Square it. Divide 1 by that square. Now add up all those reciprocals of squares. You end up with the square of somehow?
And just in case you think there’s some mathematical wool being pulled over your eyes, you can see for yourself by adding up the first few terms (in a spreadsheet or with a calculator or whatever). Let stand for the th partial sum of . Then
The exact value of the sum, after infinitely many terms are added together, is . You can verify with a calculator that is approximately 1.64493407. So these partial sums seem to be approaching the correct total.
So let’s just pause here and note one particular type of mathematical joy: surprise. How in the world does the sum of the reciprocals of the squares come to involve ? Like I mentioned in the post about Lockhart: mathematics often feels like a novel you’ve written, using characters that you know are entirely fictional, and yet they end up doing things that even you, the author, weren’t expecting. You can pick whatever starting premises you want; but once you’ve chosen the premises, you have to follow the story wherever it leads.
Back to the zeta function. The trick to Euler’s discovery is to successively multiply the left side of the zeta function by something that will knock out one prime number after another on the right side. First, multiply both sides by :
That removes all of the terms on the right side whose denominators have a factor of —i.e., those whose denominators are , , , , and so forth.
Now multiply both sides by to knock out those terms whose denominators have a factor in them:
Repeat this for every other prime number. You’ll eventually have subtracted off every term whose denominator contains a prime-power factor—i.e., every one of the fractions on the right. All that will be left is the number 1. I.e., you’ll be left with
, where is an arbitrary prime. In shorter form, this is
(The big capital just means “multiply these things together.”) Divide both sides by the zeta function. You’re left with
or, finally,
which is the famous Euler Product Formula. It’s the very beginning of the Riemann Hypothesis.
We’ve just established a surprising connection between prime numbers and the zeta function: a sum over all the integers equals a product over all the primes. This formula has a nice plain-English interpretation, or at least a hint towards what the function could mean or what value it could have. The formula we just came up with is
In particular, when ,
Look at the left side first, in that second equation. Half of all positive integers are divisible by 2, so of them are not divisible by 2; that’s what the first term in parentheses hints at. Now take the half that remain, and remove all of them that are divisible by 3. The fraction that are divisible by neither 2 nor 3 is the product: times . That is, the fraction divisible by neither 2 nor 3 is . If you repeat this process for primes , you’re computing the fraction of all positive integers not divisible by any of those primes. That’s what the left side of the equation seems to refer to; so when , the left side of the Euler product formula seems to be telling us the fraction of all integers that are not divisible by any prime.
As for the right side, we know that the zeta function at diverges—that is, that it blows up to infinity (a fact that you’ll learn in any intro calculus class). And so we know that (the right side of the equation) is zero. Altogether, then, we know that the fraction of integers not divisible by any prime (left side) equals zero (right side).
Suppose that there were only finitely many prime numbers—let’s say . In that case, each of the terms in parentheses on the left side here would be a finite number less than 1. The product of finitely many such numbers is, itself, finite and nonzero. So if there were only finitely many prime numbers, we’d have
- The fraction of numbers not divisible by any prime is nonzero (left side), and
- The fraction not divisible by any prime is zero (right side).
That’s a contradiction. We must be wrong that there are only finitely many primes; there must be infinitely many primes. My understanding is that, when Euler proved this, it was the first new proof of the infinitude of primes since Euclid, a couple millennia earlier.
It really feels like Euler was experimenting: “What if I multiply this one weird thing (the zeta function) by these other weird things (functions of the prime numbers)? And what if I continue doing that for every prime number?” He did the same thing, from what I can tell, with the work that led him to one of the more famous and beguiling formulas in mathematics:
(Feynman called it “the most remarkable formula in mathematics.)
More people would love mathematics, I think, if they learned that it’s okay to experiment.
I’m going to stop myself here, at the start of what the Riemann Hypothesis is all about. I intend to add followup posts as I make my way through Edwards. And I intend to write more about the intriguing structure of the primes. Hopefully what I’ve written above gives a hint about why this might be interesting. I honestly can’t explain to you why I, myself, find this interesting, while various geometric theorems about intersections of perpendiculars leave me cold. Maybe I’ll figure out the particular allure for myself as I write it out.