Here I present a (fairly common) derivation for the volume of an n sphere.
Where an n-sphere is defined by
$S^n=\left\{x \epsilon \mathbb{R}^{n+1}: ||x||)=r\right\}$
We first start by calling on what we already know;
$V_{1}=2 \pi r$ for $S^0$ $V=\pi r^2$ for $S^{1}$ and $V=\frac{4}{3} \pi r^3$ for $S^2$ These can both be obtained most easily via usual methods of integrating in polar and spherical coordinates, respectively.
By inspection - and intuition - we should think that the volume is proportional to $r^{n+1}$ i.e some constant times r to the power of the dimension we are in.
Therefore we should expect that the formula for the volume of a sphere in
m-dimensions looks a little like
$V_{m}=\nu_{m} r^m$
where $\nu_{m}$ is the constant of proportionality that we are after.
Hence the volume element (in m-dimensions and spherical coordinates) is given by; $dV_{m}= m \nu_{m} r^{m-1} dr$
Now this seems like a leap of faith, or unjustified - but let's take a look at some Gaussian Integrals;
Im=∫e−(x21+...+x2m)dx1....dxm= where the integral is over all of $\mathbb{R}^m$
From our knowledge of a standard Gaussian Integral;
$I=\int_{- \infty}^{\infty} \! e^{-x^2} dx=\sqrt{\pi}$
and recognising the fact that the $x_i$ are independent, we can factorise the integral;
Im=∫e−x21dx1...∫e−x2mdxm=Im
Therefore Im=√πm=πm2
Now, transforming into m-dimensional spherical coordinates so that;
x21+....+x2m=r2
Which gives Im=∫e−r2dVm
and using our definition for the spherical volume element we got before;
∫∞0e−r2mνmrm−1dr=πm2
Taking out the variables which aren't dependent on r from the integrand we get;
Im=mνm∫∞0e−r2rm−1dr=πm2
You math geeks out there should recognise the form of the integral as somewhat close to the gamma function;
Γ(z+1)=∫∞0uze−udu
Now, substituting u=r2 then dudr=2r or in terms of u; dudr=2√u
Vm=νmm∫∞0e−u(√u)m−112√udu
πm2=νmm2∫∞0e−u(√u)m−2du
=νmm2∫∞0e−uum2−1du
Which we can almost assimilate with the above form of the Gamma function;
A simple substitution provides us with;
m2−1=z→m2=z+1
Hence Γ(z+1)=∫∞0uze−udu becomes;
Γ(m2)=∫∞0um2−1e−udu
Therefore; πm2=νmmΓ(m2)2
So putting it all together, we recover our unknown coefficient $\nu_m$;
νm=πm2m2Γ(m2)
Or you can obtain an equivalent formula by looking at
Γ(m2+1)=∫∞0un2e−udu and integrating by parts to recognise that;
Γ(m2+1)=m2Γ(m2)
Hence putting it all together, we recover the Volume of an n-dimensional sphere of radius r as;
Vm=πm2rmm2Γ(m2)
= πm2rmΓ(m2+1)
Having done all that, it could be an interesting idea to see how the volume of the unit n-sphere changes as we increase the number of dimensions;
In dimension 2; V=π
In dimension 3; V=43π
.
.
.
and so on.
Below is a plot of volume vs dimension for the unit sphere - constructed using the volume formula we obtained above;
I find it quite amazing that there is a maximum! That is that there is a point (around n=5) that when you start adding dimensions to the sphere; its volume decreases!
Final Word:
It may not seem like there are any real world applications for the use of n-dimensional spheres, but there actually are! In statistical mechanics, a system of N independent particles may be confined to the surface or within a volume of an N dimensional sphere in phase space (due to energy considerations)- where here we don't think of N as spatial dimensions, but degrees of freedom. So when N becomes large (as it does in the thermodynamic limit) we are required to use the above formula and it is just as well that the volume decreases to zero as N becomes large, otherwise it would be indicating that the thermodynamic properties (which in general depend on the statistical behaviour of the particles) of our ensemble have would become infinite - which is an indication that something has gone wrong in the math!