n-sphere

2-sphere wireframe as an orthogonal projection
Just as a stereographic projection can project a sphere's surface to a plane, it can also project the surface of a 3-sphere into 3-space. This image shows three coordinate directions projected to 3-space: parallels (red), meridians (blue) and hypermeridians (green). Due to the conformal property of the stereographic projection, the curves intersect each other orthogonally (in the yellow points) as in 4D. All of the curves are circles: the curves that intersect <0,0,0,1> have an infinite radius (= straight line).

In mathematics, the n-sphere is the generalization of the ordinary sphere to an n-dimensional space. For any natural number n, an n-sphere of radius r is defined as the set of points in (n + 1)-dimensional Euclidean space which are at distance r from a central point, where the radius r may be any positive real number. Thus, the n-sphere centred at the origin is defined by:

${\displaystyle S^{n}=\left\{x\in \mathbb {R} ^{n+1}:\|x\|=r\right\}.}$

It is an n-dimensional manifold in Euclidean (n + 1)-space.

In particular:

a 0-sphere is the pair of points at the ends of a (one-dimensional) line segment,
a 1-sphere is the circle, which is the one-dimensional circumference of a (two-dimensional) disk in the plane,
a 2-sphere is the two-dimensional surface of a (three-dimensional) ball in three-dimensional space.

Spheres of dimension n > 2 are sometimes called hyperspheres, with 3-spheres sometimes known as glomes. The n-sphere of unit radius centered at the origin is called the unit n-sphere, denoted Sn. The unit n-sphere is often referred to as the n-sphere.

An n-sphere is the surface or boundary of an (n + 1)-dimensional ball, and is an n-dimensional manifold. For n ≥ 2, the n-spheres are the simply connected n-dimensional manifolds of constant, positive curvature. The n-spheres admit several other topological descriptions: for example, they can be constructed by gluing two n-dimensional Euclidean spaces together, by identifying the boundary of an n-cube with a point, or (inductively) by forming the suspension of an (n − 1)-sphere.

Description

For any natural number n, an n-sphere of radius r is defined as the set of points in (n + 1)-dimensional Euclidean space that are at distance r from some fixed point c, where r may be any positive real number and where c may be any point in (n + 1)-dimensional space. In particular:

• a 0-sphere is a pair of points {cr, c + r}, and is the boundary of a line segment (1-ball).
• a 1-sphere is a circle of radius r centered at c, and is the boundary of a disk (2-ball).
• a 2-sphere is an ordinary 2-dimensional sphere in 3-dimensional Euclidean space, and is the boundary of an ordinary ball (3-ball).
• a 3-sphere is a sphere in 4-dimensional Euclidean space.

Euclidean coordinates in (n + 1)-space

The set of points in (n + 1)-space: (x1,x2,…,xn+1) that define an n-sphere, (Sn) is represented by the equation:

${\displaystyle r^{2}=\sum _{i=1}^{n+1}(x_{i}-c_{i})^{2}.\,}$

where c is a center point, and r is the radius.

The above n-sphere exists in (n + 1)-dimensional Euclidean space and is an example of an n-manifold. The volume form ω of an n-sphere of radius r is given by

${\displaystyle \omega ={1 \over r}\sum _{j=1}^{n+1}(-1)^{j-1}x_{j}\,dx_{1}\wedge \cdots \wedge dx_{j-1}\wedge dx_{j+1}\wedge \cdots \wedge dx_{n+1}=*dr}$

where * is the Hodge star operator; see Template:Harvtxt for a discussion and proof of this formula in the case r = 1. As a result, ${\displaystyle \scriptstyle {dr\wedge \omega =dx_{1}\wedge \cdots \wedge dx_{n+1}}.}$

n-ball

{{#invoke:main|main}}

The space enclosed by an n-sphere is called an (n + 1)-ball. An (n + 1)-ball is closed if it includes the n-sphere, and it is open if it does not include the n-sphere.

Specifically:

• A 1-ball, a line segment, is the interior of a (0-sphere).
• A 2-ball, a disk, is the interior of a circle (1-sphere).
• A 3-ball, an ordinary ball, is the interior of a sphere (2-sphere).
• A 4-ball is the interior of a 3-sphere, etc.

Topological description

Topologically, an n-sphere can be constructed as a one-point compactification of n-dimensional Euclidean space. Briefly, the n-sphere can be described as ${\displaystyle \mathbb {S} ^{n}=\mathbb {R} ^{n}\cup \{\infty \}}$, which is n-dimensional Euclidean space plus a single point representing infinity in all directions. In particular, if a single point is removed from an n-sphere, it becomes homeomorphic to ${\displaystyle \mathbb {R} ^{n}}$. This forms the basis for stereographic projection.[1]

Volume and surface area

${\displaystyle V_{n}(R)}$ and ${\displaystyle S_{n}(R)}$ are the n-dimensional volumes of the n-ball and n-sphere of radius ${\displaystyle R}$, respectively.

The constants ${\displaystyle V_{n}}$ and ${\displaystyle S_{n}}$ (for the unit ball and sphere) are related by the recurrences:

${\displaystyle V_{0}=1\qquad V_{n+1}=S_{n}/(n+1)}$
${\displaystyle S_{0}=2\qquad S_{n+1}=2\pi V_{n}}$

The surfaces and volumes can also be given in closed form:

${\displaystyle {\begin{array}{ll}S_{n-1}(R)&=\displaystyle {{\frac {n\pi ^{n/2}}{\Gamma ({\frac {n}{2}}+1)}}R^{n-1}}\\[1em]V_{n}(R)&=\displaystyle {\frac {\pi ^{n/2}}{\Gamma ({\frac {n}{2}}+1)}}R^{n}\end{array}}}$

where ${\displaystyle \Gamma \,}$ is the gamma function. Derivations of these equations are given in this section.

In general, the volumes of the n-ball in n-dimensional Euclidean space, and the n-sphere in (n + 1)-dimensional Euclidean, of radius R, are proportional to the nth power of the radius, R. We write ${\displaystyle V_{n}(R)=V_{n}R^{n}}$ for the volume of the n-ball and ${\displaystyle S_{n}(R)=S_{n}R^{n}}$ for the surface of the n-sphere, both of radius ${\displaystyle R}$.

Examples

The 0-ball consists of a single point. The 0-dimensional Hausdorff measure is the number of points in a set, so

${\displaystyle V_{0}=1}$.

The unit 1-ball is the interval ${\displaystyle [-1,1]}$ of length 2. So,

${\displaystyle V_{1}=2.}$

The 0-sphere consists of its two end-points, ${\displaystyle \{-1,1\}}$. So

${\displaystyle S_{0}=2}$.

The unit 1-sphere is the unit circle in the Euclidean plane, and this has circumference (1-dimensional measure)

${\displaystyle S_{1}=2\pi .\,}$

The region enclosed by the unit 1-sphere is the 2-ball, or unit disc, and this has area (2-dimensional measure)

${\displaystyle V_{2}=\pi .\,}$

Analogously, in 3-dimensional Euclidean space, the surface area (2-dimensional measure) of the unit 2-sphere is given by

${\displaystyle S_{2}=4\pi \,}$

and the volume enclosed is the volume (3-dimensional measure) of the unit 3-ball, given by

${\displaystyle V_{3}={\frac {4}{3}}\pi .\,}$

Recurrences

The surface area, or properly the n-dimensional volume, of the n-sphere at the boundary of the (n + 1)-ball of radius ${\displaystyle R}$ is related to the volume of the ball by the differential equation

${\displaystyle S_{n}R^{n}={\frac {dV_{n+1}R^{n+1}}{dR}}={(n+1)V_{n+1}R^{n}}}$,

or, equivalently, representing the unit n-ball as a union of concentric (n − 1)-sphere shells,

${\displaystyle V_{n+1}=\int _{0}^{1}S_{n}r^{n}\,dr}$

So,

${\displaystyle V_{n+1}={\frac {S_{n}}{n+1}}}$.

We can also represent the unit (n + 2)-sphere as a union of tori, each the product of a circle (1-sphere) with an n-sphere. Let ${\displaystyle r=\cos \theta }$ and ${\displaystyle r^{2}+R^{2}=1}$, so that ${\displaystyle R=\sin \theta }$ and ${\displaystyle dR=\cos \theta \,d\theta }$. Then,

{\displaystyle {\begin{aligned}S_{n+2}&=\int _{0}^{\pi /2}S_{1}r.S_{n}R^{n}\,d\theta =\int _{0}^{\pi /2}S_{1}.S_{n}R^{n}\cos \theta \,d\theta \\&=\int _{0}^{1}S_{1}.S_{n}R^{n}\,dR=S_{1}\int _{0}^{1}S_{n}R^{n}\,dR\\&=2\pi V_{n+1}\end{aligned}}}

This completes our derivation of the recurrences:

${\displaystyle V_{0}=1\qquad V_{n+1}=S_{n}/(n+1)}$
${\displaystyle S_{0}=2\qquad S_{n+1}=2\pi V_{n}}$

Closed forms

Combining the recurrences, we see that ${\displaystyle V_{n+2}=2\pi V_{n}/(n+2)}$. So it is simple to show by induction on k that,

${\displaystyle V_{2k}={\frac {\pi ^{k}}{k!}}}$
${\displaystyle V_{2k+1}={\frac {2(2\pi )^{k}}{(2k+1)!!}}={\frac {2k!(4\pi )^{k}}{(2k+1)!}}}$

where ${\displaystyle !!}$ denotes the double factorial, defined for odd integers 2k + 1 by (2k + 1)!! = 1 · 3 · 5 ··· (2k − 1) · (2k + 1).

In general, the volume, in n-dimensional Euclidean space, of the unit n-ball, is given by

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

By multiplying ${\displaystyle V_{n}}$ by ${\displaystyle R^{n}}$, differentiating with respect to ${\displaystyle R}$, and then setting ${\displaystyle R=1}$, we get the closed form

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

Other relations

The recurrences can be combined to give a "reverse-direction" recurrence relation for surface area, as depicted in the diagram:

${\displaystyle S_{n-1}={\frac {n}{2\pi }}S_{n-1+2}}$
(Note that n refers to the dimension of the ambient Euclidean space, which is also the intrinsic dimension of the solid whose volume is listed here, but which is 1 more than the intrinsic dimension of the sphere whose surface area is listed here.) The curved red arrows show the relationship between formulas for different n. The formula coefficient at each arrow's tip equals the formula coefficient at that arrow's tail times the factor in the arrowhead. If the direction of the bottom arrows were reversed, their arrowheads would say to multiply by Template:Frac2. Alternatively said, the surface area Sn+1 of the sphere in n+2 dimensions is exactly 2π times the volume Vn enclosed by the sphere in n dimensions.

Index-shifting n to n − 2 then yields the recurrence relations:

${\displaystyle V_{n}={\frac {2\pi }{n}}V_{n-2}}$
${\displaystyle S_{n-1}={\frac {2\pi }{n-2}}S_{n-1-2}}$

where S0 = 2, V1 = 2, S1 = 2π and V2 = π.

The recurrence relation for ${\displaystyle V_{n}}$ can also be proved via integration with 2-dimensional polar coordinates:

{\displaystyle {\begin{aligned}V_{n}&=\int _{0}^{1}\int _{0}^{2\pi }V_{n-2}({\sqrt {1-r^{2}}})^{n-2}\,r\,d\theta \,dr\\[6pt]&=\int _{0}^{1}\int _{0}^{2\pi }V_{n-2}(1-r^{2})^{n/2-1}\,r\,d\theta \,dr\\[6pt]&=2\pi V_{n-2}\int _{0}^{1}(1-r^{2})^{n/2-1}\,r\,dr\\[6pt]&=2\pi V_{n-2}\left[-{\frac {1}{n}}(1-r^{2})^{n/2}\right]_{r=0}^{r=1}\\[6pt]&=2\pi V_{n-2}{\frac {1}{n}}={\frac {2\pi }{n}}V_{n-2}.\end{aligned}}}

Spherical coordinates

We may define a coordinate system in an n-dimensional Euclidean space which is analogous to the spherical coordinate system defined for 3-dimensional Euclidean space, in which the coordinates consist of a radial coordinate, ${\displaystyle r\,,}$ and n − 1 angular coordinates ${\displaystyle \phi _{1},\phi _{2},\dots ,\phi _{n-1}\,}$ where ${\displaystyle \phi _{n-1}\,}$ ranges over ${\displaystyle [0,2\pi )\,}$ radians (or over [0, 360) degrees) and the other angles range over ${\displaystyle [0,\pi ]\,}$ radians (or over [0, 180] degrees). If ${\displaystyle \ x_{i}}$ are the Cartesian coordinates, then we may compute ${\displaystyle x_{1},\ldots ,x_{n}}$ from ${\displaystyle r,\phi _{1},\ldots ,\phi _{n-1}}$ with:

{\displaystyle {\begin{aligned}x_{1}&=r\cos(\phi _{1})\\x_{2}&=r\sin(\phi _{1})\cos(\phi _{2})\\x_{3}&=r\sin(\phi _{1})\sin(\phi _{2})\cos(\phi _{3})\\&\vdots \\x_{n-1}&=r\sin(\phi _{1})\cdots \sin(\phi _{n-2})\cos(\phi _{n-1})\\x_{n}&=r\sin(\phi _{1})\cdots \sin(\phi _{n-2})\sin(\phi _{n-1})\,.\end{aligned}}}

Except in the special cases described below, the inverse transformation is unique:

{\displaystyle {\begin{aligned}r&={\sqrt {{x_{n}}^{2}+{x_{n-1}}^{2}+\cdots +{x_{2}}^{2}+{x_{1}}^{2}}}\\\phi _{1}&=\operatorname {arccot} {\frac {x_{1}}{\sqrt {{x_{n}}^{2}+{x_{n-1}}^{2}+\cdots +{x_{2}}^{2}}}}=\arccos {\frac {x_{1}}{\sqrt {{x_{n}}^{2}+{x_{n-1}}^{2}+\cdots +{x_{1}}^{2}}}}\\\phi _{2}&=\operatorname {arccot} {\frac {x_{2}}{\sqrt {{x_{n}}^{2}+{x_{n-1}}^{2}+\cdots +{x_{3}}^{2}}}}=\arccos {\frac {x_{2}}{\sqrt {{x_{n}}^{2}+{x_{n-1}}^{2}+\cdots +{x_{2}}^{2}}}}\\&\vdots \\\phi _{n-2}&=\operatorname {arccot} {\frac {x_{n-2}}{\sqrt {{x_{n}}^{2}+{x_{n-1}}^{2}}}}=\arccos {\frac {x_{n-2}}{\sqrt {{x_{n}}^{2}+{x_{n-1}}^{2}+{x_{n-2}}^{2}}}}\\\phi _{n-1}&=2\operatorname {arccot} {\frac {x_{n-1}+{\sqrt {x_{n}^{2}+x_{n-1}^{2}}}}{x_{n}}}={\begin{cases}\arccos {\frac {x_{n-1}}{\sqrt {{x_{n}}^{2}+{x_{n-1}}^{2}}}}&x_{n}\geq 0\\2\pi -\arccos {\frac {x_{n-1}}{\sqrt {{x_{n}}^{2}+{x_{n-1}}^{2}}}}&x_{n}<0\end{cases}}\,.\end{aligned}}}

There are some special cases where the inverse transform is not unique; ${\displaystyle \phi _{k}}$ for any ${\displaystyle k}$ will be ambiguous whenever all of ${\displaystyle x_{k},x_{k+1},\ldots ,x_{n}}$ are zero; in this case ${\displaystyle \phi _{k}}$ may be chosen to be zero.

Spherical volume element

Expressing the angular measures in radians, the volume element in n-dimensional Euclidean space will be found from the Jacobian of the transformation:

{\displaystyle {\begin{aligned}d^{n}V&=\left|\det {\frac {\partial (x_{i})}{\partial (r,\phi _{j})}}\right|dr\,d\phi _{1}\,d\phi _{2}\cdots d\phi _{n-1}\\[6pt]&=r^{n-1}\sin ^{n-2}(\phi _{1})\sin ^{n-3}(\phi _{2})\cdots \sin(\phi _{n-2})\,dr\,d\phi _{1}\,d\phi _{2}\cdots d\phi _{n-1}\end{aligned}}}

and the above equation for the volume of the n-ball can be recovered by integrating:

${\displaystyle V_{n}=\int _{\phi _{n-1}=0}^{2\pi }\int _{\phi _{n-2}=0}^{\pi }\cdots \int _{\phi _{1}=0}^{\pi }\int _{r=0}^{R}d^{n}V.\,}$

The volume element of the (n-1)–sphere, which generalizes the area element of the 2-sphere, is given by

${\displaystyle d_{S^{n-1}}V=\sin ^{n-2}(\phi _{1})\sin ^{n-3}(\phi _{2})\cdots \sin(\phi _{n-2})\,d\phi _{1}\,d\phi _{2}\cdots d\phi _{n-1}.}$

The natural choice of an orthogonal basis over the angular coordinates is a product of ultraspherical polynomials,

{\displaystyle {\begin{aligned}&{}\quad \int _{0}^{\pi }\sin ^{n-j-1}(\phi _{j})C_{s}^{((n-j-1)/2)}(\cos \phi _{j})C_{s'}^{((n-j-1)/2)}(\cos \phi _{j})\,d\phi _{j}\\[6pt]&={\frac {\pi 2^{3-n+j}\Gamma (s+n-j-1)}{s!(2s+n-j-1)\Gamma ^{2}((n-j-1)/2)}}\delta _{s,s'}\end{aligned}}}

for j = 1, 2, ..., n − 2, and the e isφj for the angle j = n − 1 in concordance with the spherical harmonics.

Stereographic projection

{{#invoke:main|main}}

Just as a two-dimensional sphere embedded in three dimensions can be mapped onto a two-dimensional plane by a stereographic projection, an n-sphere can be mapped onto an n-dimensional hyperplane by the n-dimensional version of the stereographic projection. For example, the point ${\displaystyle \ [x,y,z]}$ on a two-dimensional sphere of radius 1 maps to the point ${\displaystyle \left[{\frac {x}{1-z}},{\frac {y}{1-z}}\right]}$ on the ${\displaystyle \ xy}$ plane. In other words,

${\displaystyle \ [x,y,z]\mapsto \left[{\frac {x}{1-z}},{\frac {y}{1-z}}\right].}$

Likewise, the stereographic projection of an n-sphere ${\displaystyle \mathbf {S} ^{n-1}}$ of radius 1 will map to the ${\displaystyle n-1}$ dimensional hyperplane ${\displaystyle \mathbf {R} ^{n-1}}$ perpendicular to the ${\displaystyle \ x_{n}}$ axis as

${\displaystyle [x_{1},x_{2},\ldots ,x_{n}]\mapsto \left[{\frac {x_{1}}{1-x_{n}}},{\frac {x_{2}}{1-x_{n}}},\ldots ,{\frac {x_{n-1}}{1-x_{n}}}\right].}$

Generating random points

Uniformly at random from the (n − 1)-sphere

To generate uniformly distributed random points on the (n − 1)-sphere (i.e., the surface of the n-ball), Template:Harvtxt gives the following algorithm.

Generate an n-dimensional vector of normal deviates (it suffices to use N(0, 1), although in fact the choice of the variance is arbitrary), ${\displaystyle \mathbf {x} =(x_{1},x_{2},\ldots ,x_{n})}$.

Now calculate the "radius" of this point, ${\displaystyle r={\sqrt {x_{1}^{2}+x_{2}^{2}+\cdots +x_{n}^{2}}}.}$

The vector ${\displaystyle {\frac {1}{r}}\mathbf {x} }$ is uniformly distributed over the surface of the unit n-ball.

Examples

For example, when n = 2 the normal distribution exp(−x12) when expanded over another axis exp(−x22) after multiplication takes the form exp(−x12x22) or exp(−r2) and so is only dependent on distance from the origin.

Alternatives

Another way to generate a random distribution on a hypersphere is to make a uniform distribution over a hypercube that includes the unit hyperball, exclude those points that are outside the hyperball, then project the remaining interior points outward from the origin onto the surface. This will give a uniform distribution, but it is necessary to remove the exterior points. As the relative volume of the hyperball to the hypercube decreases very rapidly with dimension, this procedure will succeed with high probability only for fairly small numbers of dimensions.

Wendel's theorem gives the probability that all of the points generated will lie in the same half of the hypersphere.

Uniformly at random from the n-ball

With a point selected from the surface of the n-ball uniformly at random, one needs only a radius to obtain a point uniformly at random within the n-ball. If u is a number generated uniformly at random from the interval [0, 1] and x is a point selected uniformly at random from the surface of the n-ball then u1/nx is uniformly distributed over the entire unit n-ball.

Specific spheres

0-sphere
The pair of points {±R} with the discrete topology for some R > 0. The only sphere that is disconnected. Has a natural Lie group structure; isomorphic to O(1). Parallelizable.
1-sphere
Also known as the circle. Has a nontrivial fundamental group. Abelian Lie group structure U(1); the circle group. Topologically equivalent to the real projective line, RP1. Parallelizable. SO(2) = U(1).
2-sphere
Also known as the sphere. Complex structure; see Riemann sphere. Equivalent to the complex projective line, CP1. SO(3)/SO(2).
3-sphere
Parallelizable, Principal U(1)-bundle over the 2-sphere, Lie group structure Sp(1), where also
${\displaystyle \mathrm {Sp} (1)\cong \mathrm {SO} (4)/\mathrm {SO} (3)\cong \mathrm {SU} (2)\cong \mathrm {Spin} (3)}$.
4-sphere
Equivalent to the quaternionic projective line, HP1. SO(5)/SO(4).
5-sphere
Principal U(1)-bundle over CP2. SO(6)/SO(5) = SU(3)/SU(2).
6-sphere
Almost complex structure coming from the set of pure unit octonions. SO(7)/SO(6) = G2/SU(3).
7-sphere
Topological quasigroup structure as the set of unit octonions. Principal Sp(1)-bundle over S4. Parallelizable. SO(8)/SO(7) = SU(4)/SU(3) = Sp(2)/Sp(1) = Spin(7)/G2 = Spin(6)/SU(3). The 7-sphere is of particular interest since it was in this dimension that the first exotic spheres were discovered.
8-sphere
Equivalent to the octonionic projective line OP1.
23-sphere
A highly dense sphere-packing is possible in 24 dimensional space, which is related to the unique qualities of the Leech lattice.

Notes

1. James W. Vick (1994). Homology theory, p. 60. Springer

References

• {{#invoke:citation/CS1|citation

|CitationClass=book }}.

• {{#invoke:citation/CS1|citation

|CitationClass=book }} (Chapter 20: 3-spheres and hyperbolic 3-spaces.)

• {{#invoke:citation/CS1|citation

|CitationClass=book }} (Chapter 14: The Hypersphere)

• {{#invoke:Citation/CS1|citation

|CitationClass=journal }}

• {{#invoke:Citation/CS1|citation

|CitationClass=journal }}

• {{#invoke:Citation/CS1|citation

|CitationClass=journal }}