Mathwords logoMathwords

Hypersphere — Definition, Formula & Examples

A hypersphere is the generalization of a sphere to any number of dimensions. Just as a sphere is the set of all points at a fixed distance from a center in 3D space, a hypersphere is the set of all points at a fixed distance from a center in nn-dimensional space.

An nn-sphere, denoted SnS^n, is the set {xRn+1:xc=r}\{\mathbf{x} \in \mathbb{R}^{n+1} : \|\mathbf{x} - \mathbf{c}\| = r\}, where c\mathbf{c} is the center, r>0r > 0 is the radius, and \|\cdot\| is the Euclidean norm. The nn-sphere is an nn-dimensional manifold embedded in (n+1)(n+1)-dimensional Euclidean space. The term "hypersphere" typically refers to the case n3n \geq 3.

Key Formula

Vn(r)=πn/2Γ ⁣(n2+1)rnV_n(r) = \frac{\pi^{n/2}}{\Gamma\!\left(\frac{n}{2} + 1\right)}\, r^n
Where:
  • Vn(r)V_n(r) = Volume (hypervolume) of the n-dimensional ball enclosed by the hypersphere
  • nn = Dimension of the ball (the enclosing hypersphere is (n−1)-dimensional)
  • rr = Radius of the hypersphere
  • Γ\Gamma = The gamma function, which generalizes the factorial to non-integers

How It Works

Lower-dimensional cases build intuition for hyperspheres. A 0-sphere (S0S^0) consists of two points on a line. A 1-sphere (S1S^1) is a circle in 2D. A 2-sphere (S2S^2) is the ordinary sphere in 3D. A 3-sphere (S3S^3) lives in 4D space and is the first case usually called a hypersphere. Each step up adds one coordinate to the equation while keeping the same structural pattern: all points equidistant from a center.

Worked Example

Problem: Find the hypervolume of a 4-dimensional ball (bounded by a 3-sphere) with radius r=3r = 3.
Apply the formula with n = 4: Substitute n=4n = 4 and r=3r = 3 into the volume formula.
V4(3)=π4/2Γ ⁣(42+1)34=π2Γ(3)81V_4(3) = \frac{\pi^{4/2}}{\Gamma\!\left(\frac{4}{2} + 1\right)} \cdot 3^4 = \frac{\pi^2}{\Gamma(3)} \cdot 81
Evaluate the gamma function: Since Γ(3)=2!=2\Gamma(3) = 2! = 2, substitute this value.
V4(3)=π2281=81π22V_4(3) = \frac{\pi^2}{2} \cdot 81 = \frac{81\pi^2}{2}
Compute numerically: Using π29.8696\pi^2 \approx 9.8696, compute the final result.
V4(3)81×9.86962399.72V_4(3) \approx \frac{81 \times 9.8696}{2} \approx 399.72
Answer: The hypervolume of a 4-dimensional ball with radius 3 is 81π22399.72\dfrac{81\pi^2}{2} \approx 399.72 (in 4D unit-hypervolume).

Why It Matters

Hyperspheres appear throughout machine learning, physics, and statistics. In high-dimensional data analysis, understanding how volume concentrates near the surface of a hypersphere explains the "curse of dimensionality." In general relativity, the 3-sphere models the spatial geometry of a closed universe.

Common Mistakes

Mistake: Confusing the dimension of the sphere with the dimension of the ambient space.
Correction: An nn-sphere (SnS^n) is an nn-dimensional surface living in (n+1)(n+1)-dimensional space. The ordinary sphere in 3D is S2S^2, not S3S^3.