1. Home
  2. 3Blue1Brown

May 18, 2017

The hidden circle behind the Leibniz formula for pi

29 min → 1:25

Overview

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.

3 things to know

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.

Grid points inside a circle roughly equal its area

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².

More

The problem of counting the number of integer coordinate points (lattice points) inside a circle centered at the origin.

Sum of Two Squares

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.

Also in this episode

Gaussian integers form a grid in the complex plane

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.

More

Complex numbers of the form `a + bi`, where 'a' and 'b' are integers.

▶ Watch at 6:37

Numbers break down into Gaussian prime factors like regular 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.

More

This is analogous to prime factorization for regular integers.

A special function gives numbers 1, -1, or 0

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.

Quotes

“Whenever you see pi show up in math, there's always going to be a circle hiding somewhere, sometimes very sneakily.”

▶ Watch at 0:58

“Now it's a factoring problem!”

▶ Watch at 6:37

“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.”

▶ Watch at 0:31

Full summary

Episode Overview

  • The video explores the deep connection between prime numbers, complex numbers, and a famous infinite series for π (the Leibniz formula).
  • It begins by posing a geometric problem: counting integer points (lattice points) within a circle, linking the count to the circle's area, πR².
  • The problem is then reframed using number theory, specifically by examining how integers can be written as the sum of two squares.
  • This leads into the world of complex numbers and Gaussian integers, where the question becomes about how prime numbers factor, revealing a surprising pattern that explains the formula.

Key Concepts

  • Leibniz Formula for π: The infinite series π/4 = 1 - 1/3 + 1/5 - 1/7 + ...
  • Gauss Circle Problem: The problem of counting the number of integer coordinate points (lattice points) inside a circle centered at the origin. The number of points is approximately equal to the circle's area, πR².
  • Sum of Two Squares: 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: Complex numbers of the form a + bi, where 'a' and 'b' are integers. They form a grid of lattice points in the complex plane.
  • Factoring in Gaussian Integers: The process of breaking down numbers into "Gaussian prime" factors. This is analogous to prime factorization for regular integers.
  • Dirichlet Character (χ): A special multiplicative function introduced to systematically count lattice points on circles by assigning values (1, -1, or 0) to numbers based on their prime factors.

Quotes

  • At 00:31 - "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." - The narrator sets expectations for a challenging but rewarding mathematical journey.
  • At 00:58 - "Whenever you see pi show up in math, there's always going to be a circle hiding somewhere, sometimes very sneakily." - This quote establishes the central theme of uncovering the geometric intuition behind the formula for pi.
  • At 06:37 - "Now it's a factoring problem!" - A character exclaims, highlighting the crucial shift in perspective from a geometric problem (sum of squares) to an algebraic one (factoring complex numbers).

Takeaways

  • The Leibniz formula for π is deeply rooted in the geometry of counting integer points on a grid and the structure of prime numbers.
  • Viewing a 2D plane as the set of complex numbers allows geometric problems to be translated into algebraic problems (like factoring), which can unlock new insights.
  • A surprising regularity exists in how prime numbers behave: primes that are 1 more than a multiple of 4 (e.g., 5, 13, 17) can be factored into "Gaussian primes," while those that are 3 more than a multiple of 4 (e.g., 3, 7, 11) cannot. This pattern is the key to the final formula.
  • Approaching a problem from two different perspectives (in this case, geometric and number-theoretic) can lead to powerful identities and a deeper understanding of the underlying principles.

Watch the full episode 29 min

Read along with the audio summary

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."

More from 3Blue1Brown

Related Episodes