An n-ball is the -dimensional analog of a ball. In one dimension, it is a segment. In two, it is a disk. In three it is a proper ball. The volume of an -ball can be calculated generically for any dimension . One way to do so is to recognize that the volume must be proportional to the radius of the ball to the -th power (for dimensional constraints):
where is some scaling constant. The surface of such a ball will be
which is the surface of the bounding -dimensional hypersphere. We can manually calculate these values for two and three dimensions as
The trick is to see the following integral:
The comes by just solving the integral normally. The equality with the second integral comes from doing a coordinate shift to Polar coordinates, introducing the variable and finding that the coordinate change function is exactly . To determine , we just need to recognize that the last integral is a Gaussian integral and, by substituting and expressing it as a Gamma function, we get