The ball that is largest in five dimensions
Worth reading first: A circle unrolled into a triangle · A band of a sphere is a band of its cylinder.
A circle unrolled found the area of a disc by cutting it into rings and straightening them, and the slice that has to match found the ball’s volume one dimension up. That second essay ended with a sequence it quoted and did not explain: the volumes of the balls of radius one in dimensions one, two, three and on, which rise to a maximum at five dimensions and then fall towards nothing.
This essay explains the sequence. It needs one idea — the rings again — and it ends with three pictures of high-dimensional space that are true, checkable and almost impossible to believe.
In one dimension the “ball” of radius one is the interval from to , of length . In two it is the disc, of area . In three it is the ordinary ball, . In four it is , in five , in six — and from there down, to in twenty dimensions and about in a hundred.
The rings, one dimension at a time
The recursion that produces these numbers is the ring dissection again, used in a way that jumps two dimensions at once.
Split the coordinates of -dimensional space into the first two and the other . A point of the unit ball projects onto the first two coordinates as a point of the unit disc, at some distance from the centre. Above that point, the rest of the ball is the set of the other coordinates whose squares add up to at most : an -dimensional ball of radius . Its volume is .
So the -ball is a stack of -balls over the disc, and its volume is the disc’s area weighted by their volumes. Cut the disc into rings, as the first essay did: the ring at radius and width has area , and every point on it carries the same -ball. Adding up,
The integral is elementary — the factor is exactly the change in — and the whole recursion is that one line. Starting from , a point, and , the interval, it produces every other volume: , , , and so on. The figure computes them this way and checks every one against an independent formula through the gamma function.
Why five
The recursion explains the peak without any computation. Each step multiplies the volume two dimensions back by , which is more than one when is less than and less than one after that. So the volumes in even dimensions rise, , up to dimension six and then fall; the odd ones rise up to dimension five and then fall. Between the two sequences the largest volume is at five.
The bounding sphere’s surface area has its own recursion, and its values are as tidy as the volumes: the circle’s length is , the ordinary sphere’s area , the three-dimensional sphere that bounds the four-dimensional ball has volume , and the largest of them, bounding the ball in seven dimensions, is — the most surface any unit sphere has. A ball of radius in dimensions has volume , and its rate of growth with the radius is its surface, — the same onion argument by which a disc’s area grows by its circumference. So the unit sphere’s area is , and since , the surface two dimensions up is times the volume here, and the surface peaks exactly two dimensions after the volume, at seven.
The recursion can be solved in closed form. With the gamma function, the continuous extension of the factorial, the volume is — and that formula makes sense for every real , not only whole numbers. Drawn as a curve, the volume peaks at and the surface at , exactly two apart as the recursion requires. The peak’s position is not a whole number and has no meaning of its own; what is meaningful is that the whole-number dimensions nearest to it are five and six, and five is the larger.
One more consequence of the closed form is too neat to omit. In even dimensions the volume is , and the sum of those over every is the exponential series at : . The even-dimensional unit balls, all of them together, have total volume .
Where the π^(n/2) comes from
The powers of have a second derivation that explains why they come in halves, and it runs through the bell curve.
The integral of over the whole line is , as one number under every bell showed. In dimensions the integral of over all of space is therefore , because the integrand is a product of one-dimensional bells. The same integral can be computed in shells: the function depends only on the distance from the origin, the shell at radius has area , and . Setting the two computations equal gives the sphere’s area, and dividing by gives the ball’s volume.
The ball’s volume is a Gaussian integral read two ways, once as a product over coordinates and once as a sum over shells. The is the product of square roots of , one for each coordinate; the gamma function is what the shells contribute. And the reason the volume eventually falls is visible in that split: the product grows like , geometrically, while grows like a factorial, faster than any geometric sequence.
The ball is not small
It is tempting to read the falling volumes as the ball shrinking. It is not. The unit ball’s volume is being measured against the unit cube, whose side is one — while the unit ball’s diameter is two, and the cube that just contains it has side two and volume . The fraction of that cube the ball fills is : in two dimensions, in three, in ten, and in twenty.
So the right statement is not that the ball is small but that the cube is enormous and its corners hold nearly all of it. A cube in twenty dimensions has more than a million corners, each at distance from the centre, while the ball reaches out only to distance . A ball of radius about — a radius that grows with the dimension — has a volume that neither explodes nor vanishes; the unit ball is small only in the units of a cube whose corners run off into dimensions a ball does not reach.
That ratio is also why estimating a ball’s volume by throwing random points into the cube and counting hits, the method that estimates in two dimensions, fails completely in high dimension: in twenty dimensions almost no point lands inside, and the estimate is nought. The error that does not care how many dimensions is true of sampling a fixed function, and the ball’s indicator in a cube is the case where the thing being measured has itself almost vanished.
Where the volume is: near the surface, and near every axis’s middle
Two further pictures describe how the ball’s volume is arranged, and they seem to contradict each other.
Almost all the volume is near the surface. A ball of radius has of the unit ball’s volume, by scaling, so the shell of depth holds the rest, . In three dimensions the outer tenth of the radius holds of the volume; in a hundred dimensions it holds all but three thousandths of a per cent; in a thousand, even the outer hundredth holds all but four thousandths of a per cent. A high-dimensional ball is almost entirely rind.
And almost every coordinate is small. Take one coordinate of a random point of the ball. Its spread is proportional to the volume of the slice of the ball at that coordinate, , which in high dimensions is a narrow peak around nought, about wide. In three dimensions it is a parabola — not the flat spread that the band of a sphere gave for points on the surface, because the ball’s interior adds weight near the middle.
The two facts are consistent. The point’s distance from the centre is nearly , but that distance is the square root of the sum of squared coordinates, each of size about . The point is far from the centre along no axis in particular, and that is exactly what a sphere that is nearly all equator found for the surface: in high dimension every equator holds nearly everything.
The ball between the corner balls
The third picture is a puzzle with an answer that most people refuse at first.
Put a ball of radius in each corner of the cube from to , centred at the points whose coordinates are all . They touch each other and the cube’s faces. Now put the largest ball that fits between them, centred at the origin. The corner balls’ centres are at distance from the origin, so the middle ball has radius : in the plane, in space.
The middle ball grows with the dimension, and the cube does not. In four dimensions its radius is , the same as the corner balls’. In nine it is exactly and the middle ball touches the centre of every face of the cube. In ten dimensions it pokes out through the faces, while still touching every one of the corner balls and fitting between them. The corner balls sit near the corners, which are far away, and leave a great deal of room along the axes, which is where the middle ball goes.
Two other balls, one on each side
“Ball” depends on how distance is measured, and the Euclidean ball is the middle member of a family whose other members behave in opposite ways.
Measure distance by the largest coordinate instead of the square root of the sum of squares, and the ball of radius one is the cube from to , with volume — growing without bound. Measure it by the sum of the absolute values of the coordinates, and the ball is the cross-polytope, the octahedron’s relative, with volume — shrinking even faster than the Euclidean ball’s. Circles that are diamonds and squares drew the two-dimensional members of this family, where the three balls look like variations on one shape. In high dimension they are nothing alike: the cube’s volume is concentrated in its corners, the cross-polytope’s near its centre, and the Euclidean ball, between them, keeps its volume in a thin shell at a single distance.
The Euclidean ball’s volume sits between and for every , and on a logarithmic scale roughly midway between them in high dimension. Every convex shape that is symmetric about its centre has a volume that can be squeezed between the volumes of such inscribed and circumscribed bodies, and how tight the squeeze can be made is the subject of John’s theorem on ellipsoids — one of the standard tools for estimating a high-dimensional volume that cannot be computed.
Computing a volume nobody can compute
The collapse of the ball-to-cube ratio is not only a curiosity. It is the obstacle to computing volumes in high dimension at all.
Computing the exact volume of a convex polytope given by its faces is hard in a precise sense — as hard as counting problems get — and so is approximating it by any deterministic method to within a factor that does not grow exponentially with the dimension. The obvious randomised method, throwing points into a box around the body and counting hits, fails for the reason the ball shows: in high dimension the body is a vanishing fraction of any box that contains it, and a feasible number of points never hits it.
Martin Dyer, Alan Frieze and Ravi Kannan found the way round in 1991. Instead of one box, use a chain of bodies, each only slightly larger than the last — for instance the body cut down by balls of radii growing by a factor of — so that each fits inside the next with a large share of its volume. Estimate each ratio by sampling points from the larger body, which is done by a random walk that samples a distribution instead of by drawing from a box, and multiply the ratios. The number of steps grows only polynomially with the dimension, and the volume of a convex body can be approximated to any accuracy, with high probability, in polynomial time — by randomness, and by no known deterministic method. The shrinking ball is why the chain is needed: a single jump from the body to a box around it is a factor of the kind the figure’s bars show falling off a cliff.
What the figures cannot draw
Nothing beyond three dimensions is drawn. Every picture of a high-dimensional ball here is a number or a curve — a volume, a share, a radius — and the one geometric drawing is the two-dimensional square with its circles. That is not a limitation of these figures in particular; it is the reason the facts are surprising, since intuition is built from the drawable cases, in which the corner balls stay inside and the rind is thick.
The volumes are computed two ways and trusted to the digits printed. The recursion and the gamma function agree to nine significant figures at every dimension, and the shares and radii follow by formula. None of the figures samples the high-dimensional ball; the shares near the surface are exact consequences of scaling, not measurements.
Still open: how densely balls can pack
The volumes of balls are the denominators of the oldest problem about them: how large a fraction of space can be filled with non-overlapping balls of equal size. In three dimensions the answer, about , is the greengrocer’s pyramid of oranges, and was proved by Thomas Hales. In eight and twenty-four dimensions Maryna Viazovska proved in 2016, with others for twenty-four, that the answers are given by the exceptional lattices, the eight-dimensional one of which two hundred and forty directions describes. In every other dimension above three the best packing is not known.
What is known for large dimensions is a pair of bounds that are exponentially far apart. The best packings anyone can prove exist fill a fraction a little more than of space; the best upper bounds allow about . The true density of the best packing in high dimensions is not known to within an exponential factor, and whether the best packings are lattices, as in eight and twenty-four, or irregular, as some evidence suggests, is open. The volumes computed here are what those fractions are fractions of.
A disc of rings, in every dimension
The habit worth keeping is the dissection that did the work.
An earlier essay cut a disc into rings to find its area. The same rings, carrying at each radius not a length but a whole lower-dimensional ball, give the volume of every ball in every dimension, two dimensions at a time. The recursion that results is a single factor, , and everything else follows from comparing that factor with one. An idea used once on a flat disc keeps working in every dimension, and what it computes there — a peak at five, a vanishing fraction of a cube, a ball that is almost all rind — is exactly what intuition built on the disc gets wrong.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- Zero in four dimensions — both name dimension, hypercube, sphere
- A ball whose outside is not one — both name dimension, sphere
- A bell curve assembled out of coin flips — both name normal distribution, pi
- A walk that changes one thing at a time — both name hypercube, recursion
- An endless region with a finite area — both name pi, volume
- Curvatures that stay whole — both name dimension, recursion
Named objects
A dashed tag is an object no other essay names yet.
Concentration inequalityDimensionHypercubeNormal distributionPiRecursionSphereVolume