 N-sphere
Get N-sphere essential facts below. View Videos or join the N-sphere discussion. Add N-sphere to your PopFlock.com topic list for future reference or share this resource on social media.
N-sphere Just as a stereographic projection can project a sphere's surface to a plane, it can also project 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, an n-sphere is a topological space that is homeomorphic to a standard n-sphere, which is the set of points in (n + 1)-dimensional Euclidean space that are situated at a constant distance r from a fixed point, called the center. It is the generalization of an ordinary sphere in the ordinary three-dimensional space. The "radius" of a sphere is the constant distance of its points to the center. When the sphere has unit radius, it is usual to call it the unit n-sphere or simply the n-sphere for brevity. In terms of the standard norm, the n-sphere is defined as

$S^{n}=\left\{x\in \mathbf {R} ^{n+1}:\left\|x\right\|=1\right\},$ and an n-sphere of radius r can be defined as

$S^{n}(r)=\left\{x\in \mathbf {R} ^{n+1}:\left\|x\right\|=r\right\}.$ The 0-sphere is a pair of points on the line, the 1-sphere is a circle in the plane, and the 2-sphere is an ordinary sphere within 3-dimensional space.

The dimension of n-sphere is n, and must not be confused with the dimension (n + 1) of the Euclidean space in which it is naturally embedded. An n-sphere is the surface or boundary of an (n + 1)-dimensional ball.

In particular:

• the pair of points at the ends of a (one-dimensional) line segment is a 0-sphere,
• a circle, which is the one-dimensional circumference of a (two-dimensional) disk, is a 1-sphere,
• the two-dimensional surface of a (three-dimensional) ball in three-dimensional space is a 2-sphere, often simply called a sphere,
• the three-dimensional boundary of a (four-dimensional) 4-ball in four-dimensional Euclidean is a 3-sphere, also known as a glome.
• the n - 1 dimensional boundary of a (n-dimensional) n-ball is an (n - 1)-sphere.

For n >= 2, the n-spheres that are differential manifolds can be characterized (up to a diffeomorphism) as 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. The 1-sphere is the 1-manifold that is a circle, which is not simply connected. The 0-sphere is the 0-manifold consisting of two points, which is not even connected.

## 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 {c - r, 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 3-dimensional 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, $S^{n}(r)$ , is represented by the equation:

$r^{2}=\sum _{i=1}^{n+1}\left(x_{i}-c_{i}\right)^{2},$ where c = (c1, c2, ..., cn+1) 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

$\omega ={\frac {1}{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 Flanders (1989, §6.1) for a discussion and proof of this formula in the case r = 1. As a result,

$dr\wedge \omega =dx_{1}\wedge \cdots \wedge dx_{n+1}.$ ### n-ball

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 Sn = Rn ? {?}, 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 Rn. This forms the basis for stereographic projection.

## Volume and surface area

Vn(R) and Sn(R) are the n-dimensional volume of the n-ball and the surface area of the n-sphere embedded in dimension n + 1, respectively, of radius R.

The constants Vn and Sn (for R = 1, the unit ball and sphere) are related by the recurrences:

{\begin{aligned}V_{0}&=1&V_{n+1}&={\frac {S_{n}}{n+1}}\\[6pt]S_{0}&=2&S_{n+1}&=2\pi V_{n}\end{aligned}} The surfaces and volumes can also be given in closed form:

{\begin{aligned}S_{n-1}(R)&={\frac {2\,\pi ^{\frac {n}{2}}}{\Gamma \left({\frac {n}{2}}\right)}}R^{n-1}\\[6pt]V_{n}(R)&={\frac {\pi ^{\frac {n}{2}}}{\Gamma \left({\frac {n}{2}}+1\right)}}R^{n}\end{aligned}} where ? is the gamma function. Derivations of these equations are given in this section.

In general, the volume of the n-ball in n-dimensional Euclidean space, and the surface area of the n-sphere in (n + 1)-dimensional Euclidean space, of radius R, are proportional to the nth power of the radius, R (with different constants of proportionality that vary with n). We write Vn(R) = VnRn for the volume of the n-ball and Sn(R) = SnRn for the surface area of the n-sphere, both of radius R, where Vn = Vn(1) and Sn = Sn(1) are the values for the unit-radius case.

In theory, one could compare the values of Sn(R) and Sm(R) for n ? m. However, this is not well-defined. For example, if n = 2 and m = 3 then the comparison is like comparing a number of square meters to a different number of cubic meters. The same applies to a comparison of Vn(R) and Vm(R) for n ? m.

### Examples

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

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

$S_{0}=2.$ The unit 1-ball is the interval [-1,1] of length 2. So,

$V_{1}=2.$ The unit 1-sphere is the unit circle in the Euclidean plane, and this has circumference (1-dimensional measure)

$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)

$V_{2}=\pi .$ Analogously, in 3-dimensional Euclidean space, the surface area (2-dimensional measure) of the unit 2-sphere is given by

$S_{2}=4\pi .$ and the volume enclosed is the volume (3-dimensional measure) of the unit 3-ball, given by

$V_{3}={\tfrac {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 R is related to the volume of the ball by the differential equation

$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,

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

$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 r = cos ? and r2 + R2 = 1, so that R = sin ? and dR = cos ? d?. Then,

{\begin{aligned}S_{n+2}&=\int _{0}^{\frac {\pi }{2}}S_{1}r\cdot S_{n}R^{n}\,d\theta \\[6pt]&=\int _{0}^{\frac {\pi }{2}}S_{1}\cdot S_{n}R^{n}\cos \theta \,d\theta \\[6pt]&=\int _{0}^{1}S_{1}\cdot S_{n}R^{n}\,dR\\[6pt]&=S_{1}\int _{0}^{1}S_{n}R^{n}\,dR\\[6pt]&=2\pi V_{n+1}.\end{aligned}} Since S1 = 2? V0, the equation

$S_{n+1}=2\pi V_{n}$ holds for all n.

This completes the derivation of the recurrences:

{\begin{aligned}V_{0}&=1&V_{n+1}&={\frac {S_{n}}{n+1}}\\[6pt]S_{0}&=2&S_{n+1}&=2\pi V_{n}\end{aligned}} ### Closed forms

Combining the recurrences, we see that

$V_{n+2}=2\pi {\frac {V_{n}}{n+2}}.$ So it is simple to show by induction on k that,

{\begin{aligned}V_{2k}&={\frac {\left(2\pi \right)^{k}}{(2k)!!}}={\frac {\pi ^{k}}{k!}}\\[6pt]V_{2k+1}&={\frac {2\left(2\pi \right)^{k}}{(2k+1)!!}}={\frac {2k!\left(4\pi \right)^{k}}{(2k+1)!}}\end{aligned}} where !! denotes the double factorial, defined for odd natural numbers 2k + 1 by (2k + 1)!! = 1 × 3 × 5 × ... × (2k - 1) × (2k + 1) and similarly for even numbers (2k)!! = 2 × 4 × 6 × ... × (2k - 2) × (2k).

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

$V_{n}={\frac {\pi ^{\frac {n}{2}}}{\Gamma \left({\frac {n}{2}}+1\right)}}={\frac {\pi ^{\frac {n}{2}}}{\left({\frac {n}{2}}\right)!}}$ where ? is the gamma function, which satisfies ? = , ?(1) = 1, and ?(x + 1) = x?(x), and so ?(x + 1) = x!, and where we conversely define x! = ?(x + 1) for any x.

By multiplying Vn by Rn, differentiating with respect to R, and then setting R = 1, we get the closed form

$S_{n-1}={\frac {n\pi ^{\frac {n}{2}}}{\Gamma \left({\frac {n}{2}}+1\right)}}={\frac {2\pi ^{\frac {n}{2}}}{\Gamma \left({\frac {n}{2}}\right)}}.$ for the (n-1)-dimensional volume of the sphere Sn-1.

### Other relations

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

$S_{n-1}={\frac {n}{2\pi }}S_{n+1}$  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 (where the n in the arrowhead refers to the n value that the arrowhead points to). If the direction of the bottom arrows were reversed, their arrowheads would say to multiply by . Alternatively said, the surface area Sn+1 of the sphere in n + 2 dimensions is exactly 2?R times the volume Vn enclosed by the sphere in n dimensions.

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

{\begin{aligned}V_{n}&={\frac {2\pi }{n}}V_{n-2}\\[6pt]S_{n-1}&={\frac {2\pi }{n-2}}S_{n-3}\end{aligned}} where S0 = 2, V1 = 2, S1 = 2? and V2 = ?.

The recurrence relation for Vn can also be proved via integration with 2-dimensional polar coordinates:

{\begin{aligned}V_{n}&=\int _{0}^{1}\int _{0}^{2\pi }V_{n-2}\left({\sqrt {1-r^{2}}}\right)^{n-2}\,r\,d\theta \,dr\\[6pt]&=\int _{0}^{1}\int _{0}^{2\pi }V_{n-2}\left(1-r^{2}\right)^{{\frac {n}{2}}-1}\,r\,d\theta \,dr\\[6pt]&=2\pi V_{n-2}\int _{0}^{1}\left(1-r^{2}\right)^{{\frac {n}{2}}-1}\,r\,dr\\[6pt]&=2\pi V_{n-2}\left[-{\frac {1}{n}}\left(1-r^{2}\right)^{\frac {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 r, and n - 1 angular coordinates ?1, ?2, ... ?n-1, where the angles ?1, ?2, ... ?n-2 range over [0,?] radians (or over [0,180] degrees) and ?n-1 ranges over [0,2?) radians (or over [0,360) degrees). If xi are the Cartesian coordinates, then we may compute x1, ... xn from r, ?1, ... ?n-1 with: 

{\begin{aligned}x_{1}&=r\cos(\varphi _{1})\\x_{2}&=r\sin(\varphi _{1})\cos(\varphi _{2})\\x_{3}&=r\sin(\varphi _{1})\sin(\varphi _{2})\cos(\varphi _{3})\\&\vdots \\x_{n-1}&=r\sin(\varphi _{1})\cdots \sin(\varphi _{n-2})\cos(\varphi _{n-1})\\x_{n}&=r\sin(\varphi _{1})\cdots \sin(\varphi _{n-2})\sin(\varphi _{n-1}).\end{aligned}} Except in the special cases described below, the inverse transformation is unique:

{\begin{aligned}r&={\sqrt {{x_{n}}^{2}+{x_{n-1}}^{2}+\cdots +{x_{2}}^{2}+{x_{1}}^{2}}}\\[6pt]\varphi _{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}}}}\\[6pt]\varphi _{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}}}}\\[6pt]&\vdots &&\vdots \\[6pt]\varphi _{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}}}}\\[6pt]\varphi _{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\\[6pt]2\pi -\arccos {\frac {x_{n-1}}{\sqrt {{x_{n}}^{2}+{x_{n-1}}^{2}}}}&x_{n}<0\end{cases}}\,.\end{aligned}} where if xk ? 0 for some k but all of xk+1, ... xn are zero then ?k = 0 when xk > 0, and ?k = ? (180 degrees) when xk < 0.

There are some special cases where the inverse transform is not unique; ?k for any k will be ambiguous whenever all of xk, xk+1, ... xn are zero; in this case ?k may be chosen to be zero.

### Spherical volume and area elements

To express the volume element of n-dimensional Euclidean space in terms of spherical coordinates, first observe that the Jacobian matrix of the transformation is:

$J_{n}={\begin{pmatrix}\cos(\varphi _{1})&-r\sin(\varphi _{1})&0&0&\cdots &0\\\sin(\varphi _{1})\cos(\varphi _{2})&r\cos(\varphi _{1})\cos(\varphi _{2})&-r\sin(\varphi _{1})\sin(\varphi _{2})&0&\cdots &0\\\vdots &\vdots &\vdots &\ddots &&\vdots \\&&&&&0\\\sin(\varphi _{1})\cdots \sin(\varphi _{n-2})\cos(\varphi _{n-1})&\cdots &\cdots &&&-r\sin(\varphi _{1})\cdots \sin(\varphi _{n-2})\sin(\varphi _{n-1})\\\sin(\varphi _{1})\cdots \sin(\varphi _{n-2})\sin(\varphi _{n-1})&r\cos(\varphi _{1})\cdots \sin(\varphi _{n-1})&\cdots &&&r\sin(\varphi _{1})\cdots \sin(\varphi _{n-2})\cos(\varphi _{n-1})\end{pmatrix}}.$ The determinant of this matrix can be calculated by induction. When n = 2, a straightforward computation shows that the determinant is r. For larger n, observe that Jn can be constructed from Jn − 1 as follows. Except in column n, rows n − 1 and n of Jn are the same as row n − 1 of Jn − 1, but multiplied by an extra factor of cos ?n − 1 in row n − 1 and an extra factor of sin ?n − 1 in row n. In column n, rows n − 1 and n of Jn are the same as column n − 1 of row n − 1 of Jn − 1, but multiplied by extra factors of sin ?n − 1 in row n − 1 and cos ?n − 1 in row n, respectively. The determinant of Jn can be calculated by Laplace expansion in the final column. By the recursive description of Jn, the submatrix formed by deleting the entry at (n − 1, n) and its row and column almost equals Jn − 1, except that its last row is multiplied by sin ?n − 1. Similarly, the submatrix formed by deleting the entry at (n, n) and its row and column almost equals Jn − 1, except that its last row is multiplied by cos ?n − 1. Therefore the determinant of Jn is

{\begin{aligned}|J_{n}|&=(-1)^{(n-1)+n}(-r\sin(\varphi _{1})\dotsm \sin(\varphi _{n-2})\sin(\varphi _{n-1}))(\sin(\varphi _{n-1})|J_{n-1}|)\\&\qquad {}+(-1)^{n+n}(r\sin(\varphi _{1})\dotsm \sin(\varphi _{n-2})\cos(\varphi _{n-1}))(\cos(\varphi _{n-1})|J_{n-1}|)\\&=(r\sin(\varphi _{1})\dotsm \sin(\varphi _{n-2})|J_{n-1}|(\sin ^{2}(\varphi _{n-1})+\cos ^{2}(\varphi _{n-1}))\\&=(r\sin(\varphi _{1})\dotsm \sin(\varphi _{n-2})|J_{n-1}|.\end{aligned}} Induction then gives a closed-form expression for the volume element in spherical coordinates

{\begin{aligned}d^{n}V&=\left|\det {\frac {\partial (x_{i})}{\partial \left(r,\varphi _{j}\right)}}\right|dr\,d\varphi _{1}\,d\varphi _{2}\cdots d\varphi _{n-1}\\&=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}.\end{aligned}} The formula for the volume of the n-ball can be derived from this by integration.

Similarly the surface area element of the (n - 1)-sphere of radius R, which generalizes the area element of the 2-sphere, is given by

$d_{S^{n-1}}V=R^{n-1}\sin ^{n-2}(\varphi _{1})\sin ^{n-3}(\varphi _{2})\cdots \sin(\varphi _{n-2})\,d\varphi _{1}\,d\varphi _{2}\cdots d\varphi _{n-1}.$ The natural choice of an orthogonal basis over the angular coordinates is a product of ultraspherical polynomials,

{\begin{aligned}&{}\quad \int _{0}^{\pi }\sin ^{n-j-1}\left(\varphi _{j}\right)C_{s}^{\left({\frac {n-j-1}{2}}\right)}\cos \left(\varphi _{j}\right)C_{s'}^{\left({\frac {n-j-1}{2}}\right)}\cos \left(\varphi _{j}\right)\,d\varphi _{j}\\[6pt]&={\frac {2^{3-n+j}\pi \Gamma (s+n-j-1)}{s!(2s+n-j-1)\Gamma ^{2}\left({\frac {n-j-1}{2}}\right)}}\delta _{s,s'}\end{aligned}} for j = 1, 2,... n - 2, and the eis?j for the angle j = n - 1 in concordance with the spherical harmonics.

### Polyspherical coordinates

The standard spherical coordinate system arises from writing Rn as the product R × Rn − 1. These two factors may be related using polar coordinates. For each point x of Rn, the standard Cartesian coordinates

$\mathbf {x} =(x_{1},\dots ,x_{n})=(y_{1},z_{1},\dots ,z_{n-1})=(\mathbf {y} ,\mathbf {z} )$ can be transformed into a mixed polar-Cartesian coordinate system:

$\mathbf {x} =(r\cos \theta ,(r\sin \theta )\mathbf {z} ).$ This says that points in Rn may be expressed by taking the ray starting at the origin and passing through z ? Rn − 1, rotating it towards the first basis vector by ?, and traveling a distance r along the ray. Repeating this decomposition eventually leads to the standard spherical coordinate system.

Polyspherical coordinate systems arise from a generalization of this construction. The space Rn is split as the product of two Euclidean spaces of smaller dimension, but neither space is required to be a line. Specifically, suppose that p and q are positive integers such that n = p + q. Then Rn = Rp × Rq. Using this decomposition, a point x ? Rn may be written as

$\mathbf {x} =(x_{1},\dots ,x_{n})=(y_{1},\dots ,y_{p},z_{1},\dots ,z_{q})=(\mathbf {y} ,\mathbf {z} ).$ This can be transformed into a mixed polar-Cartesian coordinate system by writing:

$\mathbf {x} =((r\sin \theta ){\hat {\mathbf {y} }},(r\cos \theta ){\hat {\mathbf {z} }}).$ Here ${\hat {\mathbf {y} }}$ and ${\hat {\mathbf {z} }}$ are the unit vectors associated to y and z. This expresses x in terms of ${\hat {\mathbf {y} }}\in S^{p-1}$ , ${\hat {\mathbf {z} }}\in S^{q-1}$ , r >= 0, and an angle ?. It can be shown that the domain of ? is [0, 2?) if p = q = 1, [0, ?] if exactly one of p and q is 1, and [0, ?/2] if neither p nor q are 1. The inverse transformation is

{\begin{aligned}r&=\lVert \mathbf {x} \rVert ,\\\theta &=\arcsin(\lVert \mathbf {y} \rVert /\lVert \mathbf {x} \rVert )\\&=\arccos(\lVert \mathbf {z} \rVert /\lVert \mathbf {x} \rVert )\\&=\arctan(\lVert \mathbf {y} \rVert /\lVert \mathbf {z} \rVert ).\end{aligned}} These splittings may be repeated as long as one of the factors involved has dimension two or greater. A polyspherical coordinate system is the result of repeating these splittings until there are no Cartesian coordinates left. Splittings after the first do not require a radial coordinate because the domains of ${\hat {\mathbf {y} }}$ and ${\hat {\mathbf {z} }}$ are spheres, so the coordinates of a polyspherical coordinate system are a non-negative radius and n − 1 angles. The possible polyspherical coordinate systems correspond to binary trees with n leaves. Each non-leaf node in the tree corresponds to a splitting and determines an angular coordinate. For instance, the root of the tree represents Rn, and its immediate children represent the first splitting into Rp and Rq. Leaf nodes correspond to Cartesian coordinates for Sn − 1. The formulas for converting from polyspherical coordinates to Cartesian coordinates may be determined by finding the paths from the root to the leaf nodes. These formulas are products with one factor for each branch taken by the path. For a node whose corresponding angular coordinate is ?i, taking the left branch introduces a factor of sin ?i and taking the right branch introduces a factor of cos ?i. The inverse transformation, from polyspherical coordinates to Cartesian coordinates, is determined by grouping nodes. Every pair of nodes having a common parent can be converted from a mixed polar-Cartesian coordinate system to a Cartesian coordinate system using the above formulas for a splitting.

Polyspherical coordinates also have an interpretation in terms of the special orthogonal group. A splitting Rn = Rp × Rq determines a subgroup

$\operatorname {SO} _{p}(\mathbf {R} )\times \operatorname {SO} _{q}(\mathbf {R} )\subseteq \operatorname {SO} _{n}(\mathbf {R} ).$ This is the subgroup that leaves each of the two factors $S^{p-1}\times S^{q-1}\subseteq S^{n-1}$ fixed. Choosing a set of coset representatives for the quotient is the same as choosing representative angles for this step of the polyspherical coordinate decomposition.

In polyspherical coordinates, the volume measure on Rn and the area measure on Sn − 1 are products. There is one factor for each angle, and the volume measure on Rn also has a factor for the radial coordinate. The area measure has the form:

$dA_{n-1}=\prod _{i=1}^{n-1}F_{i}(\theta _{i})\,d\theta _{i},$ where the factors Fi are determined by the tree. Similarly, the volume measure is

$dV_{n}=r^{n-1}\,dr\,\prod _{i=1}^{n-1}F_{i}(\theta _{i})\,d\theta _{i}.$ Suppose we have a node of the tree that corresponds to the decomposition Rn1 + n2 = Rn1 × Rn2 and that has angular coordinate ?. The corresponding factor F depends on the values of n1 and n2. When the area measure is normalized so that the area of the sphere is 1, these factors are as follows. If n1 = n2 = 1, then

$F(\theta )={\frac {d\theta }{2\pi }}.$ If n1 > 1 and n2 = 1, and if B denotes the beta function, then

$F(\theta )={\frac {\sin ^{n_{1}-1}\theta }{\mathrm {B} ({\frac {n_{1}}{2}},{\frac {1}{2}})}}\,d\theta .$ If n1 = 1 and n2 > 1, then

$F(\theta )={\frac {\cos ^{n_{2}-1}\theta }{\mathrm {B} ({\frac {1}{2}},{\frac {n_{2}}{2}})}}\,d\theta .$ Finally, if both n1 and n2 are greater than one, then

$F(\theta )={\frac {(\sin ^{n_{1}-1}\theta )(\cos ^{n_{2}-1}\theta )}{{\frac {1}{2}}\mathrm {B} ({\frac {n_{1}}{2}},{\frac {n_{2}}{2}})}}\,d\theta .$ ## Stereographic projection

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 [x,y,z] on a two-dimensional sphere of radius 1 maps to the point [,] on the xy-plane. In other words,

$[x,y,z]\mapsto \left[{\frac {x}{1-z}},{\frac {y}{1-z}}\right].$ Likewise, the stereographic projection of an n-sphere Sn-1 of radius 1 will map to the (n - 1)-dimensional hyperplane Rn-1 perpendicular to the xn-axis as

$[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 on the (n - 1)-sphere A set of uniformly distributed points on the surface of a unit 2-sphere generated using Marsaglia's algorithm.

To generate uniformly distributed random points on the unit (n - 1)-sphere (that is, the surface of the unit n-ball), Marsaglia (1972) 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), x = (x1, x2,... xn). Now calculate the "radius" of this point:

$r={\sqrt {x_{1}^{2}+x_{2}^{2}+\cdots +x_{n}^{2}}}.$ The vector x is uniformly distributed over the surface of the unit n-ball.

An alternative given by Marsaglia is to uniformly randomly select a point x = (x1, x2,... xn) in the unit n-cube by sampling each xi independently from the uniform distribution over (-1,1), computing r as above, and rejecting the point and resampling if r >= 1 (i.e., if the point is not in the n-ball), and when a point in the ball is obtained scaling it up to the spherical surface by the factor ; then again x is uniformly distributed over the surface of the unit n-ball. This method becomes very inefficient for higher dimensions, as a vanishingly small fraction of the unit cube is contained in the sphere. In ten dimensions, less than 2% of the sphere is filled by the cube, so that on typically 50 attempts will be needed. In seventy dimensions, less than $10^{-24}$ of the cube is filled, meaning typically a trillion quadrillion trials will be needed, far more than a computer could ever carry out.

### Uniformly at random within the n-ball

With a point selected uniformly at random from the surface of the unit (n - 1)-sphere (e.g., by using Marsaglia's algorithm), one needs only a radius to obtain a point uniformly at random from within the unit 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 unit (n - 1)-sphere, then ux is uniformly distributed within the unit n-ball.

Alternatively, points may be sampled uniformly from within the unit n-ball by a reduction from the unit (n + 1)-sphere. In particular, if (x1,x2,...,xn+2) is a point selected uniformly from the unit (n + 1)-sphere, then (x1,x2,...,xn) is uniformly distributed within the unit n-ball (i.e., by simply discarding two coordinates).

If n is sufficiently large, most of the volume of the n-ball will be contained in the region very close to its surface, so a point selected from that volume will also probably be close to the surface. This is one of the phenomena leading to the so-called curse of dimensionality that arises in some numerical and other applications.

## Specific spheres

0-sphere
The pair of points R} with the discrete topology for some R > 0. The only sphere that is not path-connected. 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
Also known as the glome. Parallelizable, principal U(1)-bundle over the 2-sphere, Lie group structure Sp(1), where also
$\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
Possesses an almost complex structure coming from the set of pure unit octonions. SO(7)/SO(6) = G2/SU(3). The question of whether it has a complex structure is known as the Hopf problem, after Heinz Hopf.
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.

## Octahedral sphere

The octahedral n-sphere is defined similarly to the n-sphere but using the 1-norm

$S^{n}=\left\{x\in \mathbf {R} ^{n+1}:\left\|x\right\|_{1}=1\right\}$ The octahedral 1-sphere is a square (without its interior). The octahedral 2-sphere is a regular octahedron; hence the name. The octahedral n-sphere is the topological join of n+1 pairs of isolated points. Intuitively, the topological join of two pairs is generated by drawing a segment between each point in one pair and each point in the other pair; this yields a square. To join this with a third pair, draw a segment between each point on the square and each point in the third pair; this gives a octahedron.