This video is about the ridiculous way we used to calculate pi for 2,000 years. The most successful method was painstakingly slow and tedious, but then Isaac Newton came along and changed the game. You could say he speed ran pi, and I'm going to show you how he did it. But first, pi with pizzas. Cut the crust off a pizza and lay it across identical pizzas, and you'll find that it goes across three and a bit pizzas. This is pi. The circumference of a circle is roughly 3.14 times its diameter, but pi is also related to a circle's area. Area is just pi r squared, but why is it pi r squared? Well, cut a pizza into really thin slices and then form these slices into a rectangle. Now the area of this rectangle is just length times width. The length of the rectangle is half the circumference, because there's half the crust on one side and half on the other, so the length is pi r. The width is just the length of a piece of pizza, which is the radius of the original circle. So area is pi r times r, area is pi r squared. So the area of a unit circle is just pi. Keep that in mind, because it'll come in handy later.
So what was the ridiculous way we used to calculate pi? Well, it's sort of the most obvious way. It's easy to show that pi must be between three and four. Take a circle and draw a hexagon inside it with sides of length one. A regular hexagon can be divided into six equilateral triangles, so the diameter of the circle is two. Now the perimeter of the hexagon is six, and the circumference of the circle must be larger than this, so pi must be greater than six over two, so pi is greater than three. Now draw a square around the circle. The perimeter of the square is eight, which is bigger than the circle's circumference, so pi must be less than eight over two, so pi is less than four. This was actually known for thousands of years. Then in 250 BC, Archimedes improved on the method. First he starts with the hexagon, just like you did, and then he bisects the hexagon to a dodecagon, so that's a 12-sided regular shape, and he calculates its perimeter. The ratio of that perimeter to the diameter will be less than pi. He does the same thing for a circumscribed 12-gon and finds an upper bound for pi. The calculations now become a lot more tricky, because he has to extract square roots and square roots of square roots, and turn all these into fractions. But he works out the 12-gon, and then the 24-gon, 48-gon, and by the time he gets to the 96-gon he sort of had enough, but in the end he gets pi to between 3.1408 and 3.1429. For over 2,000 years ago, that's not too bad. That seems like all the precision you need in pi, right? So this goes way beyond precision for any practical purpose. This is now a matter of flexing your muscles. This is showing off just how much mathematical power you have, that you can work out a constant like pi to very high precision. So for the next 2,000 years, this is how everyone carried on bisecting polygons to dizzying heights. As pi passed through Chinese, Indian, Persian, and Arab mathematicians, each contributed to these bounds along Archimedes' line. In the late 16th century, Frenchman François Viète doubled a dozen more times than Archimedes, computing the perimeter of a polygon with 393,216 sides, only to be outdone at the turn of the 17th century by the Dutchman Ludolph van Ceulen. He spent 25 years on the effort, computing to high accuracy the perimeter of a polygon with two to the 62 sides, that is four quintillion, 611 quadrillion, 686 trillion, 18 billion, 427 million, 387,904 sides. What was the reward for all of that hard work? Just 35 correct decimal places of pi. He had these digits inscribed on his tombstone. Twenty years later, his record was surpassed by Christoph Grienberger, who got 38 correct decimal places, but he was the last to do it like this, pretty much, because shortly thereafter we get Sir Isaac Newton on the scene. Once Newton introduces his method, nobody is bisecting n-gons ever again.
The year was 1666, and Newton was just 23 years old. He was quarantining at home due to an outbreak of bubonic plague. Newton was playing around with simple expressions like (1 + x) squared. You can multiply it out and get 1 + 2x + x squared. Or what about (1 + x) cubed? Again, you can multiply out all the terms and get 1 + 3x + 3x squared + x cubed, and you could do the same for (1 + x) to the fourth, or (1 + x) to the fifth, and so on. But Newton knew there was a pattern that allowed him to skip all the tedious arithmetic and go straight to the answer. If you look at the numbers in these equations, the coefficients on x and x squared and so on, they're actually just the numbers in Pascal's triangle. The power that (1 + x) was raised to corresponds to the row of the triangle. Pascal's triangle is really easy to make. It's something that's been known from ancient Greeks, Indians, Chinese, and Persians. A lot of different cultures discovered this. All you do is, whenever you have a row, you add the two neighbors, and that gives you the value of the row below it. So that's a really quick, easy thing you can compute. You can get the coefficients for (1 + x) to the 10th in a second instead of sitting there doing all the algebra.
The thing that fascinated me when I started looking at those old documents was how, even though I don't speak those languages and I don't know those number systems, it is obvious, it is clear as day, that they are all writing down the same thing, which today in the Western world we call Pascal's triangle. That's the beauty of mathematics. It transcends culture, it transcends time, it transcends humanity. It's going to be around well after we're gone, and ancient civilizations, alien civilizations, will know Pascal's triangle.
Over time, people worked out a general formula for the numbers in Pascal's triangle, so you can calculate the numbers in any row without having to calculate all the rows before it. For any expression (1 + x) to the n, it is equal to 1 + n·x + [n(n − 1)/2!]·x squared + [n(n − 1)(n − 2)/3!]·x cubed, and so on. That's the binomial theorem. Binomial because there are only two terms, one and x. "Bi" is two, "nomial" refers to terms, and theorem is that this is a theorem you can rigorously prove, and that this formula is exactly what you'll see as the coefficients in Pascal's triangle. All of this was known in Newton's day already.
Yes, exactly. Everybody knew this formula, and yet nobody thought to do with it what Newton did, which was to break the formula. The standard binomial theorem insists that you apply it only when n is a positive integer, which makes sense, because this whole thing is about working out (1 + x) times itself a certain number of times. But Newton said, screw that, just apply the theorem. Math is about finding patterns and then extending them and trying to find out where they break. So he tries (1 + x) to the negative one, which is 1 over (1 + x). What happens if I just blindly plug in n equals negative one into the right-hand side of the formula? The terms alternate back and forth, plus one, minus one, plus one, minus one, and so on forever. That's 1 − x, the next term will be plus x squared, the next term will be minus x cubed, plus x to the fourth, minus x to the fifth. So it's an alternating series with plus and minus signs as the coefficients, so it becomes an infinite series.
That's right. If you don't have a positive integer, Newton's binomial theorem will give you an infinite sum. But how do you understand that? For all positive integers it was just a finite set of terms, and now we've got an infinite set of terms.
What happens is, if you have a positive integer, you remember that formula where the coefficient looks like n times (n − 1) times (n − 2), and so on. When you get to (n − n), if n is a positive integer, you will eventually get there, and (n − n) is zero. So that coefficient and all the coefficients after it are zero, and that's why it's just a finite sum. It's a finite triangle. But once you get outside the triangle with positive integers, you never hit (n − n), because n is not a positive integer, so you get this infinite series. So the big question is: does this actually work? Does Newton's infinite series actually give you the value of 1 over (1 + x)? It might be nonsense. There are lots of math formulas that break completely when you do this. We have rules for a reason, but we should always know the extent to which the rules have a chance of working.
Farther on, if you take that whole series and multiply it by (1 + x), and multiply all that out, you'll see all the terms cancel except the leading one. So that big series times (1 + x) is one. In other words, that big series is 1 over (1 + x). That's how Newton justified to himself that it makes sense to apply the formula where it shouldn't be applicable. So Newton is convinced the binomial theorem works even for negative values of n, which means there's more to Pascal's triangle above the zeroth row. You could add a zero and a one that add to make that first one, and then that row would continue minus one, plus one, minus one, plus one, all the way out to infinity. Outside the standard triangle, the implied value everywhere is zero, and this fits, because the alternating plus and minus ones add to make zero everywhere in the row beneath them. You can extend the pattern for all negative integers either using the binomial theorem or just by looking at what numbers would add together to make the numbers underneath. And here's something amazing: if you ignore the negative signs for a minute, these are the exact same numbers arranged in the same pattern as in the main triangle. The whole thing has just been rotated on its side.
But Newton doesn't stop with the integers. Next he tries fractional powers, like (1 + x) to the one half. Now what does that mean? You take (1 + x) to the one half, which is the same thing as the square root of (1 + x), and he wants to understand whether that has the same expansion. Putting n equals one half into the binomial theorem, he gets an infinite series. That makes me think we could actually go into Pascal's triangle, blow it up, and add fractions in between the rows that we're familiar with.
Exactly. There's even a continuum of Pascal's triangles between zero and one. There's a continuum of numbers you could put in for powers. You can think of each fraction, like a half, a quarter, a third, as existing in its own plane, where in each plane pairs of numbers add to make the number beneath them. n doesn't have to be a positive integer anymore. It doesn't have to be a negative integer. It doesn't have to be an integer at all. So now we're going to take n to be a half, and he works this out. Then he could do all kinds of things. For example, he could work out the square root of 3 very quickly and efficiently, because we can write 3 as 4 minus 1, and if we pull out a 4, then we get the square root of 4, which is 2, times the square root of (1 minus a quarter). If you put in minus a quarter for x in this series, you'll get a very rapidly converging series expansion that will quickly give you the square root of three to high accuracy.
Now, Newton is particularly interested in n equals one half, because the equation for a unit circle is x squared plus y squared equals one. If you solve for y, the top part of the circle is equal to (1 minus x squared) to the one half. This is basically the same expression he's been looking at. He just has to replace x with minus x squared, which adds in some minus signs and doubles the power of x on each term. Now he's got an equation for a circle where each term is just a rational number times x raised to some power. We have two different ways of representing the same thing, and whenever you have something like that, magic is about to happen. Fireworks are about to go off.
But how does he use this to calculate pi? Luckily for us, he had just invented calculus, or what he called the theory of fluxions. He realizes that if you integrate under that curve as x goes from zero to one, you're getting the area under the curve, which is a quarter circle. He knows that the area of a unit circle is exactly pi r squared, except r is one, so the area is pi, and we want just a quarter, so the area is pi over four. On the other side, he has this nice series, and he knows how to integrate x to some power. You just increase each power of x by one and divide by the new power, and now you have an infinite series of terms which just involve simple arithmetic with fractions. You put in x equals one, and you can calculate pi to an arbitrarily high precision.
But Newton goes even further, adding one final tweak. A not-so-good math paper has zero ideas. It's just pushing through things that everybody already knows but nobody bothered to do. Then there are good math papers that have one new idea that's really shockingly new. Newton's new idea number four is at this point, and he's about to have new idea number five. New idea number five: instead of integrating from zero to one, he's going to integrate just from zero to a half. When you have an infinite series, you want the terms to decrease in size as fast as possible, so you don't have to calculate as many of them to get a pretty good answer. Newton sees that if he integrates not from zero to one but from zero to a half, then when he substitutes a half for x, each term will shrink in size by an additional factor of x squared, which in this case is a quarter. But if you only integrate to a half, what is the area under the curve you're computing? It is this part of a circle, which you can break into a 30-degree sector of the circle, which has an area of pi over twelve, plus a right triangle with a base of a half and a height of root three over two. So that integral should come out to this expression, and rearranging for pi, you get the following. If you evaluate only the first five terms, you get pi equals 3.14161, which is off by just two parts in a hundred thousand. To match the computational power of van Ceulen's four-quintillion-sided polygon, you would only need to compute 50 terms in Newton's series. What before took years now would take only days.
So no one was bisecting polygons to find pi ever again. Why would you? Do all that work and somebody comes along and beats you in a second? It's sort of like once someone builds a crane, and then somebody else is still climbing up on a ladder to put a brick on a house. That's just not how you build houses anymore. We have new technology. Are you out of your mind? You're going to build a hundred-story house, and you're going to build a five-story thing that's going to fall over? You see it in New York City, where technology came along. There are rows and rows of five-story buildings, and all of a sudden here's a 20-story, and here's a 30-story, and here's a 90-story. So it's all about who has the technology.
For me, this is a story about how the obvious way of doing things is not always the best way, and that it's often a good idea to play around with patterns and push them beyond the bounds where you expect them to work, because a little bit of insight in mathematics can go a very long way.
Hey, this video was sponsored by Brilliant, a website with interactive courses and quizzes that let you dive deep into topics like the ones I've shown in this video: calculus, neural networks, programming in Python. They've got you covered. Now, I sometimes get asked why I don't get into the nitty-gritty detail or solve numerical problems in my videos, and the answer is because I don't think a video is the best way to learn those skills. The best way is to engage yourself in problem solving, like you can on Brilliant. I love the way they scaffold you through a topic, building your understanding and your confidence as you go. And as someone with a PhD in science education, I can say this is the only real way to learn. You have to be a little uncomfortable to gain understanding. When I do these quizzes, I find that my brain is really working. So I can guarantee that whatever level of education you're at, Brilliant will have something for you. It's the perfect complement to watching fun educational videos. For viewers of this channel, Brilliant are offering 20% off an annual subscription to the first 314 or pi hundred people to sign up. Just go to brilliant.org/veritasium. I will put that link in the description. So I want to thank Brilliant for supporting Veritasium, and I want to thank you for watching.
