Leibniz formula: An endless fraction series equals pi over 4
The Leibniz formula for pi is the infinite series where pi/4 equals 1 - 1/3 + 1/5 - 1/7 and so on.
May 18, 2017
The host of 3Blue1Brown explores the connection between prime numbers, complex numbers, and the Leibniz formula for pi by counting integer points within a circle and factoring Gaussian integers.
The Leibniz formula for pi is the infinite series where pi/4 equals 1 - 1/3 + 1/5 - 1/7 and so on.
The Gauss Circle Problem counts the integer coordinate points inside a circle centered at the origin, which is approximately equal to the circle's area, πR².
The problem of counting the number of integer coordinate points (lattice points) inside a circle centered at the origin.
The connection between the number of ways an integer `n` can be expressed as the sum of two squares (a² + b²) and the number of lattice points on a circle with radius √n.
Gaussian integers are complex numbers written as a + bi using integer values for a and b, forming a grid of lattice points in the complex plane.
Complex numbers of the form `a + bi`, where 'a' and 'b' are integers.
Factoring in Gaussian integers is the process of breaking down numbers into Gaussian prime factors, which works just like prime factorization for regular integers.
This is analogous to prime factorization for regular integers.
A special multiplicative function called the Dirichlet character systematically counts lattice points on circles by assigning 1, -1, or 0 to numbers based on their prime factors.
“Whenever you see pi show up in math, there's always going to be a circle hiding somewhere, sometimes very sneakily.”
“Now it's a factoring problem!”
“This won't be easy. In fact, this is probably one of the most intricate videos I've ever done, but the culmination is worth it.”
n can be expressed as the sum of two squares (a² + b²) and the number of lattice points on a circle with radius √n.a + bi, where 'a' and 'b' are integers. They form a grid of lattice points in the complex plane.Whenever pi shows up in math, the narrator says there is always a circle hiding somewhere, sometimes very sneakily. In this episode, which came out on May 18, 2017, the narrator leads us through one of the most intricate videos on the show to find that hidden circle. By the end, you will see how prime numbers, complex numbers, and geometry come together to explain a famous infinite series for pi.
An endless string of odd fractions holds the secret to a circle. Take one, subtract a third, add a fifth, subtract a seventh, and keep alternating forever. This infinite series is called the Leibniz formula, and it equals pi divided by four. The narrator warns that uncovering why this works will not be easy, though the culmination is worth it.
To find the circle hiding inside that formula, you have to count points on a grid. This brings us to the Gauss Circle Problem, which asks how many lattice points, meaning points where both coordinates are whole numbers, sit inside a circle centered at the origin. That count turns out to be approximately equal to the area of the circle, which is pi times the radius squared.
Counting those grid points is secretly a puzzle about squared numbers. Instead of looking inside the whole circle, you can count the lattice points sitting right on the edge of a circle whose radius is the square root of an integer n. The number of points on that ring is connected to the number of ways that the integer n can be written as the sum of two squares.
Viewing that flat two dimensional plane as a set of complex numbers unlocks a completely new angle. Complex numbers written as an integer a plus an integer b times i are called Gaussian integers. Plotted out on the complex plane, these numbers form that exact same grid of lattice points.
This shift turns a geometric drawing into an algebraic puzzle. As one character in the episode exclaims, now it is a factoring problem. Just as regular whole numbers can be broken down into regular prime factors, numbers in this grid can be broken down into Gaussian prime factors. A surprising regularity appears here: prime numbers that are one more than a multiple of four, such as five or thirteen, can be factored into Gaussian primes. Primes that are three more than a multiple of four, such as three or seven, cannot.
A special mathematical rule tracks this prime pattern to count the points on every circle systematically. It is called the Dirichlet character, and it is a multiplicative function. It works by assigning a value of one, negative one, or zero to numbers based on their prime factors, linking the factoring pattern back to the Leibniz series.
Looking at one problem from two different perspectives, geometric and number theoretic, reveals how the Leibniz formula for pi is deeply rooted in counting grid points and factoring primes. "Whenever you see pi show up in math, there's always going to be a circle hiding somewhere, sometimes very sneakily."
3Blue1Brown
3Blue1Brown
3Blue1Brown
3Blue1Brown
3Blue1Brown
3Blue1Brown
3Blue1Brown
3Blue1Brown
Numberphile
Math & Physics Podcast
Numberphile
Theories of Everything with Curt Jaimungal
Numberphile
Big Think