Volume of n-Dimensional Balls: Formula, Intuition, and Surprises

 6 min read

YouTube video ID: fsLh-NYhOoU

Source: YouTube video by 3Blue1BrownWatch original video

PDF

The talk centers on an underappreciated formula: the volume of an n-dimensional ball. The speaker wants the audience to leave understanding not just the formula, but "what it is, why it's true and what it represents."

This formula is compared in significance to e^(i*pi). The goal is to reveal the beauty that appears when familiar low-dimensional formulas are generalized to arbitrary n.

Puzzle 1: geometric probability in 2D and 3D

Start with a simple probability: choose X and Y uniformly between −1 and 1. The event X^2 + Y^2 < 1 is the same as asking whether the point (X,Y) lies inside the unit circle drawn inside the 2×2 square.

The probability is the area of the unit circle divided by the area of the square, giving pi/4. The same picture extends to three variables X, Y, Z: the event X^2 + Y^2 + Z^2 < 1 selects points inside the unit ball in a 2×2×2 cube, so the probability is the volume of the unit sphere divided by the cube's volume.

This geometric probability "is kind of screaming out at you that it wants to be a picture." The question generalizes naturally to n variables X1,...,Xn and thus to the volume of an n-dimensional unit ball, which is directly relevant because "Higher-dimensional geometry is real" and useful in fields like machine learning and large language models (ChatGPT, Claude, Gemini), where data are points in high-dimensional space.

Puzzle 2: tangent spheres at cube corners

A second puzzle contrasts intuition in low and high dimensions. Place unit spheres at each corner of an n-dimensional cube and ask for the radius of a sphere centered at the origin that is tangent to all corner spheres.

In 2D, with unit circles at the corners of a square, the diagonal length is sqrt(2) and the inner circle's radius is sqrt(2) − 1 (approximately 0.4). In 3D, the cube diagonal is sqrt(3) and the inner sphere radius is sqrt(3) − 1 (approximately 0.7). In n dimensions the distance from the center to a corner is sqrt(n), so the inner sphere radius is sqrt(n) − 1.

For large n this becomes counterintuitive: the inner sphere can become so large that it appears to "poke out" beyond an enclosing box. The explanation offered is that "Cubes are messed up in higher dimensions. At the very least, they defy our intuition." Spheres remain round; the cube's corners move far from the center as dimension grows.

Familiar formulas and the boundary–interior relationship

Review the familiar low-dimensional formulas to build a bridge to higher dimensions. For circles: circumference 2pir and area pir^2. For spheres: surface area 4pir^2 and volume (4/3)pi*r^3. In one dimension a ball is a line segment of length 2r, and in zero dimensions a ball has "volume" 1.

A key structural fact is that the derivative of the volume with respect to r gives the surface measure of the boundary, and conversely integrating the boundary measure yields the interior volume. This derivative/integral relationship between boundary and interior persists across dimensions.

Archimedes' projection and the "Knight's Move" generalization

Archimedes' classical method computes a sphere's surface area by projecting patches of the sphere onto an enclosing cylinder. The projection introduces two opposite factors—one stretching, one squishing—which cancel, preserving area and producing the 4pir^2 result.

That same idea generalizes: the boundary of an n-dimensional ball can be related to the interior of an (n−2)-dimensional ball combined with a 2D circle. The speaker describes this step as a "Knight's Move" in the chart of dimensions: moving two steps down in dimension while incorporating a 2D factor lets one compute volume constants recursively.

Recurrence relation, base cases, and the Gamma function

From the Knight's Move idea arises a recurrence for the constants C_n in the volume formula V_n(r) = C_n * r^n. The recurrence is C_n = (2*pi / n) * C_{n-2}. The base cases given are C_0 = 1 and C_1 = 2, corresponding to a 0-dimensional unit ball of volume 1 and a 1-dimensional unit ball (segment) of length 2.

Packing these facts together yields a closed form: for the unit ball, V_n(1) = pi^(n/2) / Gamma(n/2 + 1), where Gamma is the Gamma function — the generalization of the factorial that supplies the necessary values at half-integers and beyond.

Calculated examples and a compact table

Using the closed form and the recurrence produces familiar and new values for low dimensions. The talk lists specific values and a striking high-dimensional approximation.

Dimension nUnit ball volume V_n(1)
0D1
1D2
2Dpi
3D(4/3)*pi
4Dpi^2 / 2
100D≈ 2.37 × 10^−40

Also noted: the volume of a 4D unit ball is (pi^2 / 2) * r^4 in the general r case; the example for n=100 illustrates how tiny volumes can become.

Numerical phenomena: "your balls are just puny"

Numerically, unit-ball volumes grow for a few dimensions, then plunge and become extremely small. For example, in 100 dimensions the unit ball volume is approximately 2.37 × 10^−40.

This leads to the memorable verdict: "Your balls are just puny." The explanation is geometric: in high dimensions almost all of a ball's volume is concentrated very near the boundary.

Interpretation: volume concentrated near the boundary and unit-free comparison

The concentration near the boundary can be quantified: in 2D only 2% of a unit circle's area lies within 0.01 of the boundary, while in very high dimensions expressions like 0.99^10000 are effectively zero, indicating that virtually all volume sits next to the surface. This gives a unit-free way to see why spheres seem small in comparison to cubes as dimension increases.

The initial probability question about sums of squares being less than 1 is directly linked to these volumes: the probability equals the unit-ball volume divided by the hypercube's volume, reinforcing that the volume formula is the natural object behind the probability puzzle.

Beauty in generalization and context

The speaker frames the subject as an instance where broadening perspective reveals underlying beauty: "The beauty that underlies factorials and the beauty that underlies the volume formula for a sphere is actually only visible once you've stepped back to see things general enough."

Historical and cultural notes appear alongside the mathematics: Archimedes is credited for the projection method, Donald Knuth is cited for noting the 0-dimensional verification (the probability of a sum of zero squares < 1 is 1), and Numberphile is mentioned as a platform that has showcased the formula. The talk connects these computations and insights to modern applications and to the delight of seeing familiar formulas become part of a larger, more revealing pattern.

  Takeaways

  • Geometric visualization often makes probability and volume problems intuitive, but analytical methods can also derive the same results.
  • High-dimensional geometry is practically useful and shows counterintuitive phenomena, such as cubes having corners far from their centers.
  • The volume of an n-ball satisfies V_n(1) = pi^(n/2)/Gamma(n/2 + 1) and the constants follow C_n = (2*pi/n)*C_{n-2} with C_0=1, C_1=2.
  • Numerically, unit-ball volumes grow then shrink, producing 'puny' balls in high dimensions with most volume concentrated near the boundary.
  • Relating boundaries to interiors via derivative/integral ideas and Archimedes' projection generalizes across dimensions and reveals mathematical beauty.

Frequently Asked Questions

Who is 3Blue1Brown on YouTube?

3Blue1Brown is a YouTube channel that publishes videos on a range of topics. Browse more summaries from this channel below.

Does this page include the full transcript of the video?

Yes, the full transcript for this video is available on this page. Click 'Show transcript' in the sidebar to read it.

Helpful resources related to this video

If you want to practice or explore the concepts discussed in the video, these commonly used tools may help.

Links may be affiliate links. We only include resources that are genuinely relevant to the topic.

PDF