Get AI summaries of any video or article — Sign up free
Why colliding blocks compute pi thumbnail

Why colliding blocks compute pi

3Blue1Brown·
6 min read

Based on 3Blue1Brown's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.

TL;DR

Model the two-block system using conservation of energy and momentum, then encode the changing velocities as coordinates in a rescaled state space.

Briefing

A pair of idealized, frictionless blocks can be tuned—by choosing a mass ratio—to produce a collision count whose digits match those of π, even though the setup is purely classical. The key mechanism is a geometric reformulation: conservation laws force the system’s evolving “state” into a circle, and each collision corresponds to stepping along that circle by equal angular arcs. When the mass ratio is a power of 100, the step angle becomes so close to a power-of-10 scale that the maximum number of steps before “overshooting” the circle’s circumference lands on the same integer digits as π (e.g., 100:1 gives 31 collisions; 10,000:1 gives 314; 1,000,000:1 gives 3,141).

The collision puzzle starts with a smaller block initially at rest and a larger block moving toward it on a frictionless plane, with a wall on the left. After each collision between blocks, and after each bounce off the wall, the system continues until both blocks move to the right. The total number of collisions grows with the mass ratio, and for ratios like 100:1 and 10,000:1 the final counts line up strikingly with 31 and 314. The analysis depends on ideal assumptions—perfectly elastic collisions, a fixed wall, and ignoring relativistic and practical effects—because the “action” compresses into a dense burst of impacts as the mass ratio increases.

To make the problem solvable, the analysis shifts from tracking velocities directly to tracking a point in a higher-dimensional “state space.” By encoding the two changing velocities into coordinates, conservation of energy becomes a circle (or a circle after a rescaling of axes), while conservation of momentum becomes a straight line in that same coordinate system. Each collision moves the state point from one intersection of the momentum line with the energy circle to the other, producing a zig-zag path. The experiment ends when the point enters a specific “end zone” region: both velocities must be positive and the smaller block’s speed must be less than the larger block’s.

Counting collisions becomes counting how many equal circular arcs fit before the zig-zag would overlap the end zone boundary. A geometry theorem about inscribed angles implies those arcs have equal angular size, so the collision count reduces to a “how many steps of size 2θ fit into 2π?” problem. The slope of the momentum line is tied to the mass ratio, and the step angle θ is determined through an arctangent relation. For small angles, arctan(x) is close to x (a small-angle approximation), making θ effectively behave like a power of 10 when the mass ratio is a power of 100—hence the shared digits with π.

There’s a caveat: turning “close” into “exact digits” is delicate. The approximation error scales like θ³, and an off-by-one mismatch would require an unlikely pattern in the known digits of π (such as a run of nines). A fully rigorous proof that the digits always match is beyond current math tools, so the statement that these tuned classical collisions compute π is described as an unsolved problem. Still, the puzzle remains valuable as a demonstration of how stripping away messy physics can reveal hidden connections—connections that, in this case, also echo inside quantum computing via Grover’s algorithm.

Cornell Notes

Idealized collisions between two blocks can be converted into a geometry problem by using conservation of energy and momentum. In a rescaled “state space,” energy conservation forces the system onto a circle, while momentum conservation forces it onto a line; each collision moves the state point to the other intersection of that line with the circle. The zig-zag path continues until the point reaches an “end zone” where both blocks move right and the smaller block is slower. Equal-angle arcs on the circle correspond to equal collision steps, so the total number of steps becomes a “how many arcs fit around 2π?” calculation. When the mass ratio is a power of 100, the resulting step angle is small enough that small-angle approximations make the collision count share the digits of π—though a fully rigorous proof of exact digit agreement remains unsolved.

How do conservation laws turn the block-collision process into a circle-and-line geometry problem?

Conservation of energy constrains the system’s two changing velocities to lie on a fixed curve. After rescaling coordinates (so the axes reflect √m1·v1 and √m2·v2 rather than v1 and v2 directly), the energy constraint becomes a circle x^2 + y^2 = constant. Conservation of momentum becomes a linear relation in the same coordinates, producing a straight line whose slope is tied to the masses (in the rescaled system, the slope involves −√(m1/m2) or equivalently the related ratio). Each collision swaps the state point from one intersection of that momentum line with the energy circle to the other.

Why does each collision correspond to “hopping” between two intersection points on the circle?

At any moment, the state point must satisfy both constraints: it must sit on the energy circle (fixed total kinetic energy) and on the momentum line (fixed total momentum for the two-block system). Before a block-block collision, the point is at one intersection of the line and circle; after the collision, the system still has the same energy and momentum, but the velocities change sign/assignment in a way that moves the state to the other intersection. The same intersection-hopping logic repeats after each wall bounce, except the wall bounce changes the momentum of the two-block system because momentum is transferred into the wall.

How does the inscribed angle theorem make the arc segments equal, and why does that matter for counting collisions?

The zig-zag path hits the circle at a sequence of points. The lines used in the zig-zag have a fixed slope, so the angle between successive segments is constant (call it θ). The inscribed angle theorem implies that the arc between the endpoints of two such segments subtends an angle of exactly 2θ at the circle. Because θ is the same for every step (set by the slope tied to the mass ratio), every arc segment along the circle has the same angular size. That turns collision counting into a step-counting problem: how many equal 2θ arcs fit into the full 2π radians around the circle before reaching the end zone.

What role does the mass ratio play in determining the step angle θ?

The slope of the momentum line depends on the square root of the mass ratio. The step angle θ is related to that slope through a tangent relationship: tan(θ) = √(m2/m1) (with sign handled by the geometry of the state-space diagram). Thus θ = arctan(√(m2/m1)). When m1:m2 is a power of 100 (like 100:1, 10,000:1, 1,000,000:1), √(m2/m1) becomes a small power of 10, making θ small. For small θ, arctan(x) ≈ x, so θ behaves almost like that power of 10, producing collision counts whose digits match π.

Why is the “digits of π” claim described as unsolved rather than fully proven?

The argument relies on small-angle approximations (arctan(x) ≈ x) and on the idea that approximation errors won’t change the integer collision count. The error between tan(θ) and θ scales like θ^3, so for tiny θ the numerical discrepancy is extremely small. But an off-by-one error would require a very specific alignment with π’s decimal expansion—such as encountering a run of nines that would flip the rounding threshold. For the digits of π currently known, such a pattern seems extraordinarily unlikely, yet proving it cannot be done with current mathematical tools, so exact digit agreement remains unrigorously established.

How does the analysis justify ignoring real-world complications like inelasticity and relativity?

The clean π-matching behavior depends on ideal assumptions: perfectly elastic collisions (no energy loss), a fixed wall (momentum transfer to the wall treated as negligible for the wall’s motion), and nonrelativistic dynamics. As the mass ratio grows, the collision burst becomes extremely concentrated, and a realistic model would need relativistic corrections and other practical effects. The analysis intentionally strips those away to isolate the underlying mathematical structure—conservation laws plus geometry—where the π connection emerges.

Review Questions

  1. In the rescaled state-space coordinates, what do conservation of energy and conservation of momentum become (circle vs line), and how does that determine the state point’s motion after each collision?
  2. Why does equal slope imply equal arc angles on the circle, and how does that reduce collision counting to a “fit 2θ steps into 2π” problem?
  3. What small-angle approximation is used to connect the mass ratio to θ, and what kind of rare decimal pattern would be required for an off-by-one digit mismatch with π?

Key Points

  1. 1

    Model the two-block system using conservation of energy and momentum, then encode the changing velocities as coordinates in a rescaled state space.

  2. 2

    After rescaling by √m1 and √m2, energy conservation becomes a circle, while momentum conservation becomes a straight line with slope determined by the mass ratio.

  3. 3

    Each collision corresponds to moving the state point from one intersection of the momentum line with the energy circle to the other intersection, creating a repeating zig-zag path.

  4. 4

    The zig-zag hits the circle at points separated by equal angular arcs; the inscribed angle theorem links the fixed segment slope to a constant arc angle of 2θ.

  5. 5

    The collision count becomes a step-counting problem around a full 2π radians, with the end condition set by an “end zone” region in the state space.

  6. 6

    When the mass ratio is a power of 100, θ = arctan(√(m2/m1)) is small enough that arctan(x) ≈ x makes the step size effectively behave like a power of 10, producing π-like digits.

  7. 7

    Exact digit agreement is not fully proven because approximation error could, in principle, shift the integer count; ruling that out rigorously is beyond current methods.

Highlights

Conservation laws force the evolving two-velocity state onto a circle and a momentum line; collisions become intersection-hopping on that geometry.
Equal slopes translate into equal arc angles on the circle via the inscribed angle theorem, turning physics into a “how many equal steps fit?” calculation.
The step angle satisfies θ = arctan(√(m2/m1)); for mass ratios that are powers of 100, small-angle approximations make the collision count share π’s digits.
The π connection is described as unsolved in the strict sense because a rigorous proof that approximation error can never flip the integer digits is not available.

Topics

  • Block Collisions
  • State Space Geometry
  • Conservation Laws
  • Inscribed Angle Theorem
  • Small-Angle Approximation

Mentioned