# Volume of an n-ball

(Redirected from Deriving the volume of an n-ball)
Graphs of volumes (V) and surface areas (S) of n-spheres of radius 1. In the SVG file, hover over a point to see its decimal value.

In geometry, a ball is a region in space comprising all points within a fixed distance from a given point; that is, it is the region enclosed by a sphere or hypersphere. An n-ball is a ball in n-dimensional Euclidean space. The volume of an n-ball is an important constant that occurs in formulas throughout mathematics; it generalizes the notion of the volume enclosed by a sphere in 3-dimensional space.

## Formulas

### The volume

The n-dimensional volume of a Euclidean ball of radius R in n-dimensional Euclidean space is:[1]

${\displaystyle V_{n}(R)={\frac {\pi ^{\frac {n}{2}}}{\Gamma \left({\frac {n}{2}}+1\right)}}R^{n},}$

where Γ is Leonhard Euler's gamma function (which can be thought of as an extension of the factorial function to noninteger arguments). Using explicit formulas for particular values of the gamma function at the integers and half integers gives formulas for the volume of a Euclidean ball that do not require an evaluation of the gamma function. These are:

{\displaystyle {\begin{aligned}V_{2k}(R)&={\frac {\pi ^{k}}{k!}}R^{2k},\\V_{2k+1}(R)&={\frac {2^{k+1}\pi ^{k}}{(2k+1)!!}}R^{2k+1}={\frac {2(k!)(4\pi )^{k}}{(2k+1)!}}R^{2k+1}.\end{aligned}}}

In the formula for odd-dimensional volumes, the double factorial (2k + 1)!! is defined for odd integers 2k + 1 as (2k + 1)!! = 1 · 3 · 5 · … · (2k − 1) · (2k + 1).

Instead of expressing the volume V of the ball in terms of its radius R, the formula can be inverted to express the radius as a function of the volume:

${\displaystyle R_{n}(V)={\frac {\Gamma \left({\frac {n}{2}}+1\right)^{\frac {1}{n}}}{\sqrt {\pi }}}V^{\frac {1}{n}}.}$

This formula, too, can be separated into even- and odd-dimensional cases using factorials and double factorials in place of the gamma function:

{\displaystyle {\begin{aligned}R_{2k}(V)&={\frac {(k!V)^{\frac {1}{2k}}}{\sqrt {\pi }}},\\R_{2k+1}(V)&=\left({\frac {(2k+1)!!V}{2^{k+1}\pi ^{k}}}\right)^{\frac {1}{2k+1}}.\end{aligned}}}

### Recursions

The volume satisfies several recursive formulas. These formulas can either be proved directly or proved as consequences of the general volume formula above. The simplest to state is a formula for the volume of an n-ball in terms of the volume of an (n − 2)-ball of the same radius:

${\displaystyle V_{n}(R)={\frac {2\pi R^{2}}{n}}V_{n-2}(R).}$

There is also a formula for the volume of an n-ball in terms of the volume of an (n − 1)-ball of the same radius:

${\displaystyle V_{n}(R)=R{\sqrt {\pi }}{\frac {\Gamma \left({\frac {n+1}{2}}\right)}{\Gamma \left({\frac {n}{2}}+1\right)}}V_{n-1}(R).}$

Using explicit formulas for the gamma function again shows that the one-dimension recursion formula can also be written as:

{\displaystyle {\begin{aligned}V_{2k}(R)&=R\pi {\frac {(2k-1)!!}{2^{k}k!}}V_{2k-1}(R)=R\pi {\frac {(2k-1)(2k-3)\cdots 5\cdot 3\cdot 1}{(2k)(2k-2)\cdots 6\cdot 4\cdot 2}}V_{2k-1}(R),\\[10px]V_{2k+1}(R)&=2R{\frac {2^{k}k!}{(2k+1)!!}}V_{2k}(R)=2R{\frac {(2k)(2k-2)\cdots 6\cdot 4\cdot 2}{(2k-1)(2k-3)\cdots 5\cdot 3\cdot 1}}V_{2k}(R).\end{aligned}}}

The radius of an n-ball of volume V may be expressed recursively in terms of the radius of an (n − 1)-ball or an (n − 2)-ball. These formulas may be derived from the explicit formula for Rn(V) above.

{\displaystyle {\begin{aligned}R_{n}(V)&={\frac {\Gamma ({\frac {n}{2}}+1)^{1/n}}{\Gamma ({\frac {n-1}{2}}+1)^{1/(n-1)}}}V^{-1/(n(n-1))}R_{n-1}(V),\\R_{n}(V)&=\left({\frac {n}{2}}\right)^{1/n}\left(V\cdot \Gamma \left({\frac {n}{2}}\right)\right)^{-2/(n(n-2))}R_{n-2}(V).\end{aligned}}}

Using explicit formulas for the gamma function shows that the one-dimension recursion formula is equivalent to

{\displaystyle {\begin{aligned}R_{2k}(V)&={\frac {(2^{k}k!)^{1/(2k)}}{(2k-1)!!^{1/(2k-1)}}}\left({\frac {2}{\pi }}\right)^{1/(4k-2)}V^{-1/(2k(2k-1))}R_{2k-1}(V)\\&={\frac {{\big (}(2k)(2k-2)\cdots 6\cdot 4\cdot 2{\big )}^{1/(2k)}}{{\big (}(2k-1)(2k-3)\cdots 5\cdot 3\cdot 1{\big )}^{1/(2k-1)}}}\left({\frac {2}{\pi }}\right)^{1/(4k-2)}V^{-1/(2k(2k-1))}R_{2k-1}(V),\\R_{2k+1}(V)&={\frac {(2k+1)!!^{1/(2k+1)}}{(2^{k}k!)^{1/(2k)}}}\left({\frac {\pi }{2}}\right)^{1/(4k+2)}V^{-1/((2k+1)2k)}R_{2k}(V)\\&={\frac {{\big (}(2k+1)(2k-1)\cdots 5\cdot 3\cdot 1{\big )}^{1/(2k+1)}}{{\big (}(2k)(2k-2)\cdots 6\cdot 4\cdot 2{\big )}^{1/(2k)}}}\left({\frac {\pi }{2}}\right)^{1/(4k+2)}V^{-1/((2k+1)2k)}R_{2k}(V),\\\end{aligned}}}

and that the two-dimension recursion formula is equivalent to

{\displaystyle {\begin{aligned}R_{2k}(V)&=k^{1/(2k)}(V\cdot (k-1)!)^{-1/(2(k-1)k)}R_{2k-2}(V)\\&=k^{1/(2k)}(V\cdot (k-1)\cdot (k-2)\cdots 3\cdot 2\cdot 1)^{-1/(2(k-1)k)}R_{2k-2}(V),\\R_{2k+1}(V)&=(2k+1)^{1/(2k+1)}\left(V\cdot (2k-1)!!{\sqrt {\frac {\pi }{2}}}\right)^{-2/(4k^{2}-1)}R_{2k-1}(V)\\&=(2k+1)^{1/(2k+1)}\left(V\cdot (2k-1)(2k-3)\cdots 5\cdot 3\cdot 1{\sqrt {\frac {\pi }{2}}}\right)^{-2/(4k^{2}-1)}R_{2k-1}(V).\end{aligned}}}

### Low dimensions

In low dimensions, these volume and radius formulas simplify to the following, which demonstrates that the volume of the unit n-sphere peaks at dimension 5.

Dimension Volume of a ball of radius R Radius of a ball of volume V
0 ${\displaystyle 1}$ (all 0-balls have volume 1)
1 ${\displaystyle 2R}$ ${\displaystyle {\frac {V}{2}}=0.5\times V}$
2 ${\displaystyle \pi R^{2}\approx 3.142\times R^{2}}$ ${\displaystyle {\frac {V^{\frac {1}{2}}}{\sqrt {\pi }}}\approx 0.564\times V^{\frac {1}{2}}}$
3 ${\displaystyle {\frac {4\pi }{3}}R^{3}\approx 4.189\times R^{3}}$ ${\displaystyle \left({\frac {3V}{4\pi }}\right)^{\frac {1}{3}}\approx 0.620\times V^{\frac {1}{3}}}$
4 ${\displaystyle {\frac {\pi ^{2}}{2}}R^{4}\approx 4.935\times R^{4}}$ ${\displaystyle {\frac {(2V)^{\frac {1}{4}}}{\sqrt {\pi }}}\approx 0.671\times V^{\frac {1}{4}}}$
5 ${\displaystyle {\frac {8\pi ^{2}}{15}}R^{5}\approx 5.264\times R^{5}}$ ${\displaystyle \left({\frac {15V}{8\pi ^{2}}}\right)^{\frac {1}{5}}\approx 0.717\times V^{\frac {1}{5}}}$
6 ${\displaystyle {\frac {\pi ^{3}}{6}}R^{6}\approx 5.168\times R^{6}}$ ${\displaystyle {\frac {(6V)^{\frac {1}{6}}}{\sqrt {\pi }}}\approx 0.761\times V^{\frac {1}{6}}}$
7 ${\displaystyle {\frac {16\pi ^{3}}{105}}R^{7}\approx 4.725\times R^{7}}$ ${\displaystyle \left({\frac {105V}{16\pi ^{3}}}\right)^{\frac {1}{7}}\approx 0.801\times V^{\frac {1}{7}}}$
8 ${\displaystyle {\frac {\pi ^{4}}{24}}R^{8}\approx 4.059\times R^{8}}$ ${\displaystyle {\frac {(24V)^{\frac {1}{8}}}{\sqrt {\pi }}}\approx 0.839\times V^{\frac {1}{8}}}$
9 ${\displaystyle {\frac {32\pi ^{4}}{945}}R^{9}\approx 3.299\times R^{9}}$ ${\displaystyle \left({\frac {945V}{32\pi ^{4}}}\right)^{\frac {1}{9}}\approx 0.876\times V^{\frac {1}{9}}}$
10 ${\displaystyle {\frac {\pi ^{5}}{120}}R^{10}\approx 2.550\times R^{10}}$ ${\displaystyle {\frac {(120V)^{\frac {1}{10}}}{\sqrt {\pi }}}\approx 0.911\times V^{\frac {1}{10}}}$

### High dimensions

Suppose that R is fixed. Then the volume of an n-ball of radius R approaches zero as n tends to infinity. This can be shown using the two-dimension recursion formula. At each step, the new factor being multiplied into the volume is proportional to 1 / n, where the constant of proportionality R2 is independent of n. Eventually, n is so large that the new factor is less than 1. From then on, the volume of an n-ball must decrease at least geometrically, and therefore it tends to zero. A variant on this proof uses the one-dimension recursion formula. Here, the new factor is proportional to a quotient of gamma functions. Gautschi's inequality bounds this quotient above by n−1/2. The argument concludes as before by showing that the volumes decrease at least geometrically.

A more precise description of the high dimensional behavior of the volume can be obtained using Stirling's approximation. It implies the asymptotic formula:

${\displaystyle V_{n}(R)\sim {\frac {1}{\sqrt {n\pi }}}\left({\frac {2\pi e}{n}}\right)^{\frac {n}{2}}R^{n}.}$

The error in this approximation is a factor of 1 + O(n−1). Stirling's approximation is in fact an underestimate of the gamma function, so the above formula is an upper bound. This provides another proof that the volume of the ball decreases exponentially: When n is sufficiently large, the factor Re/n is less than one, and then the same argument as before applies.

If instead V is fixed while n is large, then by Stirling's approximation again, the radius of an n-ball of volume V is approximately

${\displaystyle R_{n}(V)\sim (\pi n)^{\frac {1}{2n}}{\sqrt {\frac {n}{2\pi e}}}V^{\frac {1}{n}}.}$

This expression is a lower bound for Rn(V), and the error is again a factor of 1 + O(n−1). As n increases, Rn(V) grows as O(n).

### Relation with surface area

Let An(R) denote the surface area of the n-sphere of radius R. The n-sphere is the boundary of the (n + 1)-ball of radius R. The (n + 1)-ball is a union of concentric spheres, and consequently the surface area and the volume are related by:

${\displaystyle A_{n}(R)={\frac {d}{dR}}V_{n+1}(R).}$

Since the volume is proportional to a power of the radius, the above relation leads to a simple recurrence equation relating the surface area of an n-ball and the volume of an (n + 1)-ball. By applying the two-dimension recursion formula, it also gives a recurrence equation relating the surface area of an n-ball and the volume of an (n − 1)-ball:

{\displaystyle {\begin{aligned}V_{0}(R)&=1,\\A_{0}(R)&=2,\\V_{n+1}(R)&={\frac {R}{n+1}}A_{n}(R),\\A_{n+1}(R)&=(2\pi R)V_{n}(R).\end{aligned}}}

## Proofs

There are many proofs of the above formulas.

### The volume is proportional to the nth power of the radius

An important step in several proofs about volumes of n-balls, and a generally useful fact besides, is that the volume of the n-ball of radius R is proportional to Rn:

${\displaystyle V_{n}(R)\propto R^{n}.}$

The proportionality constant is the volume of the unit ball.

This is a special case of a general fact about volumes in n-dimensional space: If K is a body (measurable set) in that space and RK is the body obtained by stretching in all directions by the factor R then the volume of RK equals Rn times the volume of K. This is a direct consequence of the change of variables formula:

${\displaystyle V(RK)=\int _{RK}dx=\int _{K}R^{n}\,dy=R^{n}V(K)}$

where dx = dx1dxn and the substitution x = Ry was made.

Another proof of the above relation, which avoids multi-dimensional integration, uses induction: The base case is n = 0, where the proportionality is obvious. For the inductive case, assume that proportionality is true in dimension n − 1. Note that the intersection of an n-ball with a hyperplane is an (n − 1)-ball. When the volume of the n-ball is written as an integral of volumes of (n − 1)-balls:

${\displaystyle V_{n}(R)=\int _{-R}^{R}V_{n-1}\left({\sqrt {R^{2}-x^{2}}}\right)\,dx,}$

it is possible by the inductive assumption to remove a factor of R from the radius of the (n − 1)-ball to get:

${\displaystyle V_{n}(R)=R^{n-1}\int _{-R}^{R}V_{n-1}\left({\sqrt {1-\left({\frac {x}{R}}\right)^{2}}}\right)\,dx.}$

Making the change of variables t = x/R leads to:

${\displaystyle V_{n}(R)=R^{n}\int _{-1}^{1}V_{n-1}\left({\sqrt {1-t^{2}}}\right)\,dt=R^{n}V_{n}(1),}$

which demonstrates the proportionality relation in dimension n. By induction, the proportionality relation is true in all dimensions.

### The two-dimension recursion formula

A proof of the recursion formula relating the volume of the n-ball and an (n − 2)-ball can be given using the proportionality formula above and integration in cylindrical coordinates. Fix a plane through the center of the ball. Let r denote the distance between a point in the plane and the center of the sphere, and let θ denote the azimuth. Intersecting the n-ball with the (n − 2)-dimensional plane defined by fixing a radius and an azimuth gives an (n − 2)-ball of radius R2r2. The volume of the ball can therefore be written as an iterated integral of the volumes of the (n − 2)-balls over the possible radii and azimuths:

${\displaystyle V_{n}(R)=\int _{0}^{2\pi }\int _{0}^{R}V_{n-2}\left({\sqrt {R^{2}-r^{2}}}\right)\,r\,dr\,d\theta ,}$

The azimuthal coordinate can be immediately integrated out. Applying the proportionality relation shows that the volume equals:

${\displaystyle V_{n}(R)=2\pi V_{n-2}(R)\int _{0}^{R}\left(1-\left({\frac {r}{R}}\right)^{2}\right)^{\frac {n-2}{2}}\,r\,dr.}$

The integral can be evaluated by making the substitution u = 1 − (r/R)2
to get:

{\displaystyle {\begin{aligned}V_{n}(R)&=2\pi V_{n-2}(R)\cdot \left[-{\frac {R^{2}}{n}}\left(1-\left({\frac {r}{R}}\right)^{2}\right)^{\frac {n}{2}}\right]_{r=0}^{r=R}\\&={\frac {2\pi R^{2}}{n}}V_{n-2}(R),\end{aligned}}}

which is the two-dimension recursion formula.

The same technique can be used to give an inductive proof of the volume formula. The base cases of the induction are the 0-ball and the 1-ball, which can be checked directly using the facts Γ(1) = 1 and Γ(3/2) = 1/2 · Γ(1/2) = π/2. The inductive step is similar to the above, but instead of applying proportionality to the volumes of the (n − 2)-balls, the inductive assumption is applied instead.

### The one-dimension recursion formula

The proportionality relation can also be used to prove the recursion formula relating the volumes of an n-ball and an (n − 1)-ball. As in the proof of the proportionality formula, the volume of an n-ball can be written as an integral over the volumes of (n − 1)-balls. Instead of making a substitution, however, the proportionality relation can be applied to the volumes of the (n − 1)-balls in the integrand:

${\displaystyle V_{n}(R)=V_{n-1}(R)\int _{-R}^{R}\left(1-\left({\frac {x}{R}}\right)^{2}\right)^{\frac {n-1}{2}}\,dx.}$

The integrand is an even function, so by symmetry the interval of integration can be restricted to [0, R]. On the interval [0, R], it is possible to apply the substitution u = (x/R)2
. This transforms the expression into:

${\displaystyle V_{n-1}(R)\cdot R\cdot \int _{0}^{1}(1-u)^{\frac {n-1}{2}}u^{-{\frac {1}{2}}}\,du}$

The integral is a value of a well-known special function called the beta function Β(x), and the volume in terms of the beta function is:

${\displaystyle V_{n}(R)=V_{n-1}(R)\cdot R\cdot \mathrm {B} \left({\tfrac {n+1}{2}},{\tfrac {1}{2}}\right).}$

The beta function can be expressed in terms of the gamma function in much the same way that factorials are related to binomial coefficients. Applying this relationship gives:

${\displaystyle V_{n}(R)=V_{n-1}(R)\cdot R\cdot {\frac {\Gamma \left({\frac {n+1}{2}}\right)\Gamma \left({\frac {1}{2}}\right)}{\Gamma \left({\frac {n}{2}}+1\right)}}.}$

Using the value Γ(1/2) = π gives the one-dimension recursion formula:

${\displaystyle V_{n}(R)=R{\sqrt {\pi }}{\frac {\Gamma \left({\frac {n+1}{2}}\right)}{\Gamma \left({\frac {n}{2}}+1\right)}}V_{n-1}(R).}$

As with the two-dimension recursive formula, the same technique can be used to give an inductive proof of the volume formula.

### Direct integration in spherical coordinates

The volume can be computed by integrating the volume element in spherical coordinates. The spherical coordinate system has a radial coordinate r and angular coordinates φ1, …, φn − 1, where the domain of each φ except φn − 1 is [0, π), and the domain of φn − 1 is [0, 2π). The spherical volume element is:

${\displaystyle dV=r^{n-1}\sin ^{n-2}(\varphi _{1})\sin ^{n-3}(\varphi _{2})\cdots \sin(\varphi _{n-2})\,dr\,d\varphi _{1}\,d\varphi _{2}\cdots d\varphi _{n-1},}$

and the volume is the integral of this quantity over r between 0 and R and all possible angles:

${\displaystyle V_{n}(R)=\int _{0}^{R}\int _{0}^{\pi }\cdots \int _{0}^{2\pi }r^{n-1}\sin ^{n-2}(\varphi _{1})\cdots \sin(\varphi _{n-2})\,d\varphi _{n-1}\cdots d\varphi _{1}\,dr.}$

Each of the factors in the integrand depends on only a single variable, and therefore the iterated integral can be written as a product of integrals:

${\displaystyle V_{n}(R)=\left(\int _{0}^{R}r^{n-1}\,dr\right)\left(\int _{0}^{\pi }\sin ^{n-2}(\varphi _{1})\,d\varphi _{1}\right)\cdots \left(\int _{0}^{2\pi }d\varphi _{n-1}\right).}$

The integral over the radius is Rn/n. The intervals of integration on the angular coordinates can, by symmetry, be changed to [0, π/2]:

${\displaystyle V_{n}(R)={\frac {R^{n}}{n}}\left(2\int _{0}^{\frac {\pi }{2}}\sin ^{n-2}(\varphi _{1})\,d\varphi _{1}\right)\cdots \left(4\int _{0}^{\frac {\pi }{2}}d\varphi _{n-1}\right).}$

Each of the remaining integrals is now a particular value of the beta function:

${\displaystyle V_{n}(R)={\frac {R^{n}}{n}}\textstyle \mathrm {B} \left({\frac {n-1}{2}},{\frac {1}{2}}\right)\mathrm {B} \left({\frac {n-2}{2}},{\frac {1}{2}}\right)\cdots \mathrm {B} \left(1,{\frac {1}{2}}\right)\cdot 2\mathrm {B} \left({\frac {1}{2}},{\frac {1}{2}}\right).}$

The beta functions can be rewritten in terms of gamma functions:

${\displaystyle V_{n}(R)={\frac {R^{n}}{n}}{\frac {\Gamma \left({\frac {n-1}{2}}\right)\Gamma \left({\frac {1}{2}}\right)}{\Gamma \left({\frac {n}{2}}\right)}}{\frac {\Gamma \left({\frac {n-2}{2}}\right)\Gamma \left({\frac {1}{2}}\right)}{\Gamma \left({\frac {n-1}{2}}\right)}}\cdots {\frac {\Gamma \left(1\right)\Gamma \left({\frac {1}{2}}\right)}{\Gamma \left({\frac {3}{2}}\right)}}\cdot 2{\frac {\Gamma \left({\frac {1}{2}}\right)\Gamma \left({\frac {1}{2}}\right)}{\Gamma \left(1\right)}}.}$

This product telescopes. Combining this with the values Γ(1/2) = π and Γ(1) = 1 and the functional equation zΓ(z) = Γ(z + 1) leads to:

${\displaystyle V_{n}(R)={\frac {2\pi ^{\frac {n}{2}}R^{n}}{n\Gamma \left({\frac {n}{2}}\right)}}={\frac {\pi ^{\frac {n}{2}}R^{n}}{\Gamma \left({\frac {n}{2}}+1\right)}}.}$

### Gaussian integrals

The volume formula can be proven directly using Gaussian integrals. Consider the function:

${\displaystyle f(x_{1},\ldots ,x_{n})=\exp \left(-{\tfrac {1}{2}}\sum _{i=1}^{n}x_{i}^{2}\right).}$

This function is both rotationally invariant and a product of functions of one variable each. Using the fact that it is a product and the formula for the Gaussian integral gives:

${\displaystyle \int _{\mathbf {R} ^{n}}f\,dV=\prod _{i=1}^{n}\left(\int _{-\infty }^{\infty }\exp \left(-{\tfrac {1}{2}}x_{i}^{2}\right)\,dx_{i}\right)=(2\pi )^{\frac {n}{2}},}$

where dV is the n-dimensional volume element. Using rotational invariance, the same integral can be computed in spherical coordinates:

${\displaystyle \int _{\mathbf {R} ^{n}}f\,dV=\int _{0}^{\infty }\int _{S^{n-1}(r)}\exp \left(-{\tfrac {1}{2}}r^{2}\right)\,dA\,dr,}$

where Sn − 1(r) is an (n − 1)-sphere of radius r and dA is the area element (equivalently, the (n − 1)-dimensional volume element). The surface area of the sphere satisfies a proportionality equation similar to the one for the volume of a ball: If An − 1(r) is the surface area of an (n − 1)-sphere of radius r, then:

${\displaystyle A_{n-1}(r)=r^{n-1}A_{n-1}(1).}$

Applying this to the above integral gives the expression:

${\displaystyle A_{n-1}(1)\int _{0}^{\infty }\exp \left(-{\tfrac {1}{2}}r^{2}\right)\,r^{n-1}\,dr.}$

By substituting t = r2/2, the expression is transformed into:

${\displaystyle A_{n-1}(1)2^{\frac {n-2}{2}}\int _{0}^{\infty }e^{-t}t^{\frac {n-2}{2}}\,dt.}$

This is the gamma function evaluated at n/2.

Combining the two integrations shows that:

${\displaystyle A_{n-1}(1)={\frac {2\pi ^{\frac {n}{2}}}{\Gamma \left({\frac {n}{2}}\right)}}.}$

To derive the volume of an n-ball of radius R from this formula, integrate the surface area of a sphere of radius r for 0 ≤ rR and apply the functional equation zΓ(z) = Γ(z + 1):

${\displaystyle V_{n}(R)=\int _{0}^{R}{\frac {2\pi ^{\frac {n}{2}}}{\Gamma \left({\frac {n}{2}}\right)}}\,r^{n-1}\,dr={\frac {2\pi ^{\frac {n}{2}}}{n\Gamma \left({\frac {n}{2}}\right)}}R^{n}={\frac {\pi ^{\frac {n}{2}}}{\Gamma \left({\frac {n}{2}}+1\right)}}R^{n}.}$

## Balls in Lp norms

There are also explicit expressions for the volumes of balls in Lp norms. The Lp norm of the vector x = (x1, …, xn) in Rn is:

${\displaystyle \left(\sum _{i=1}^{n}|x_{i}|^{p}\right)^{\frac {1}{p}},}$

and an Lp ball is the set of all vectors whose Lp norm is less than or equal to a fixed number called the radius of the ball. The case p = 2 is the standard Euclidean distance function, but other values of p occur in diverse contexts such as information theory, coding theory, and dimensional regularization.

The volume of an Lp ball of radius R is:

${\displaystyle V_{n}^{p}(R)={\frac {\left(2\Gamma \left({\frac {1}{p}}+1\right)R\right)^{n}}{\Gamma \left({\frac {n}{p}}+1\right)}}.}$

These volumes satisfy a recurrence relation similar to the one dimension recurrence for p = 2:

${\displaystyle V_{n}^{p}(R)=\left(2\Gamma \left({\tfrac {1}{p}}+1\right)R\right){\frac {\Gamma \left({\frac {n-1}{p}}+1\right)}{\Gamma \left({\frac {n}{p}}+1\right)}}V_{n-1}^{p}(R).}$

For p = 2, one recovers the recurrence for the volume of a Euclidean ball because 2Γ(3/2) = π.

For example, in the cases p = 1 and p = ∞, the volumes are:

{\displaystyle {\begin{aligned}V_{n}^{1}(R)&={\frac {2^{n}}{n!}}R^{n},\\V_{n}^{\infty }(R)&=(2R)^{n}.\end{aligned}}}

These agree with elementary calculations of the volumes of cross-polytopes and hypercubes.

For most values of p, the surface area of an Lp sphere (the boundary of an Lp ball) cannot be calculated by differentiating the volume of an Lp ball with respect to its radius. While the volume can be expressed as an integral over the surface areas using the coarea formula, the coarea formula contains a correction factor that accounts for how the p-norm varies from point to point. For p = 2 and p = ∞, this factor is one. However, if p = 1, then the correction factor is n: The surface area of an L1-(n − 1)-sphere of radius R is n times the derivative at R of the volume of an L1-n-ball. For most values of p, the constant is a complicated integral.

The volume formula can be generalized even further. For positive real numbers p1, …, pn, define the unit (p1, …, pn) ball to be:

${\displaystyle B_{p_{1},\ldots ,p_{n}}=\left\{x=(x_{1},\ldots ,x_{n})\in \mathbf {R} ^{n}:\vert x_{1}\vert ^{p_{1}}+\cdots +\vert x_{n}\vert ^{p_{n}}\leq 1\right\}.}$

The volume of this ball has been known since the time of Dirichlet:[2][3]

${\displaystyle V(B_{p_{1},\ldots ,p_{n}})=2^{n}{\frac {\Gamma \left(1+{\frac {1}{p_{1}}}\right)\cdots \Gamma \left(1+{\frac {1}{p_{n}}}\right)}{\Gamma \left(1+{\frac {1}{p_{1}}}+\cdots +{\frac {1}{p_{n}}}\right)}}.}$