In mathematics, an -sphere is a topological space that is homeomorphic to a ''standard'' -''sphere'', which is the set of points in -dimensional Euclidean space that are situated at a constant distance 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 -sphere or simply the -sphere for brevity. In terms of the standard norm, the -sphere is defined as : S^n = \left\ , and an -sphere of radius can be defined as : S^n(r) = \left\ . The dimension of -sphere is , and must not be confused with the dimension of the Euclidean space in which it is naturally embedded. An -sphere is the surface or boundary of an -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 is a 2-sphere, often simply called a sphere, *the three-dimensional boundary of a (four-dimensional) 4-ball is a 3-sphere, *the dimensional boundary of a (-dimensional) -ball is an -sphere. For , the -spheres that are differential manifolds can be characterized (up to a diffeomorphism) as the simply connected -dimensional manifolds of constant, positive curvature. The -spheres admit several other topological descriptions: for example, they can be constructed by gluing two -dimensional Euclidean spaces together, by identifying the boundary of an -cube with a point, or (inductively) by forming the suspension of an -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.


For any natural number , an -sphere of radius is defined as the set of points in -dimensional Euclidean space that are at distance from some fixed point , where may be any positive real number and where may be any point in -dimensional space. In particular: * a 0-sphere is a pair of points , and is the boundary of a line segment (1-ball). * a 1-sphere is a circle of radius centered at , 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 -space

The set of points in -space, , that define an -sphere, S^n(r), is represented by the equation: :r^2=\sum_^ \left(x_i - c_i\right)^2 , where is a center point, and is the radius. The above -sphere exists in -dimensional Euclidean space and is an example of an -manifold. The volume form of an -sphere of radius is given by :\omega = \frac \sum_^ (-1)^ x_j \,dx_1 \wedge \cdots \wedge dx_ \wedge dx_\wedge \cdots \wedge dx_ = * dr where is the Hodge star operator; see for a discussion and proof of this formula in the case . As a result, :dr \wedge \omega = dx_1 \wedge \cdots \wedge dx_.


The space enclosed by an -sphere is called an -ball. An -ball is closed if it includes the -sphere, and it is open if it does not include the -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 -sphere can be constructed as a one-point compactification of -dimensional Euclidean space. Briefly, the -sphere can be described as , which is -dimensional Euclidean space plus a single point representing infinity in all directions. In particular, if a single point is removed from an -sphere, it becomes homeomorphic to . This forms the basis for stereographic projection.

Volume and surface area

and are the -dimensional volume of the -ball and the surface area of the -sphere embedded in dimension , respectively, of radius . The constants and (for , the unit ball and sphere) are related by the recurrences: :\begin V_0&=1 & V_&=\frac \\ptS_0&=2 & S_&=2\pi V_n \end The surfaces and volumes can also be given in closed form: :\begin S_(R) &= \fracR^ \\ptV_n(R) &= \fracR^n \end where is the gamma function. Derivations of these equations are given in this section.
In general, the volume of the -ball in -dimensional Euclidean space, and the surface area of the -sphere in -dimensional Euclidean space, of radius , are proportional to the th power of the radius, (with different constants of proportionality that vary with ). We write for the volume of the -ball and for the surface area of the -sphere, both of radius , where and are the values for the unit-radius case.
In theory, one could compare the values of and for . However, this is not well-defined. For example, if and 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 and for .


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, . So, :S_0 = 2. The unit 1-ball is the interval 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 \pi.


The ''surface area'', or properly the -dimensional volume, of the -sphere at the boundary of the -ball of radius is related to the volume of the ball by the differential equation :S_R^=\frac=, or, equivalently, representing the unit -ball as a union of concentric -sphere ''shells'', :V_ = \int_0^1 S_r^\,dr. So, :V_ = \frac. We can also represent the unit -sphere as a union of products of a circle (1-sphere) with an -sphere. Let and , so that and . Then, : \begin S_ &= \int_0^\fracS_1 r \cdot S_n R^n\, d\theta \\pt&=\int_0^\fracS_1 \cdot S_n R^n\cos\theta\,d\theta\\pt&=\int_0^1 S_1 \cdot S_n R^n \,dR\\pt&= S_1 \int_0^1 S_n R^n \,dR\\pt&= 2\pi V_. \end Since , the equation :S_ = 2\pi V_ holds for all . This completes the derivation of the recurrences: :\begin V_0&=1 & V_&=\frac \\ptS_0&=2 & S_&=2\pi V_n \end

Closed forms

Combining the recurrences, we see that :V_=2\pi \frac. So it is simple to show by induction on ''k'' that, :\begin V_ &= \frac = \frac \\ptV_ &= \frac = \frac \end where denotes the double factorial, defined for odd natural numbers by and similarly for even numbers . In general, the volume, in -dimensional Euclidean space, of the unit -ball, is given by :V_n = \frac = \frac where is the gamma function, which satisfies , , and , and so , and where we conversely define x! = for any x. By multiplying by , differentiating with respect to , and then setting , we get the closed form :S_ = \frac = \frac. for the (n-1)-dimensional volume of the sphere ''S''n-1.

Other relations

The recurrences can be combined to give a "reverse-direction" recurrence relation for surface area, as depicted in the diagram: :S_ = \frac S_ Index-shifting to then yields the recurrence relations: :\begin V_n &= \frac V_ \\ptS_ &= \frac S_ \end where , , and . The recurrence relation for can also be proved via integration with 2-dimensional polar coordinates: :\begin V_n & = \int_0^1 \int_0^ V_\left(\sqrt\right)^ \, r \, d\theta \, dr \\pt& = \int_0^1 \int_0^ V_ \left(1-r^2\right)^\, r \, d\theta \, dr \\pt& = 2 \pi V_ \int_^ \left(1-r^2\right)^\, r \, dr \\pt& = 2 \pi V_ \left-\frac\left(1-r^2\right)^\frac \right_ \\pt& = 2 \pi V_ \frac = \frac V_. \end

Spherical coordinates

We may define a coordinate system in an -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 , and angular coordinates , where the angles range over radians (or over degrees) and ranges over radians (or over degrees). If are the Cartesian coordinates, then we may compute from with: :\begin 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_ &= r \sin(\varphi_1) \cdots \sin(\varphi_) \cos(\varphi_) \\ x_n &= r \sin(\varphi_1) \cdots \sin(\varphi_) \sin(\varphi_) . \end Except in the special cases described below, the inverse transformation is unique: : \begin r &= \sqrt \\pt\varphi_1 &= \arccot \frac &&= \arccos \frac \\pt\varphi_2 &= \arccot \frac &&= \arccos \frac \\pt &\vdots &&\vdots \\pt\varphi_ &= \arccot \frac &&= \arccos \frac \\pt\varphi_ &= 2\arccot \frac &&= \begin \arccos \frac & x_n\geq 0 \\pt 2\pi - \arccos \frac & x_n < 0 \end \,. \end where if for some but all of are zero then when , and (180 degrees) when . There are some special cases where the inverse transform is not unique; for any will be ambiguous whenever all of are zero; in this case may be chosen to be zero.

Spherical volume and area elements

To express the volume element of -dimensional Euclidean space in terms of spherical coordinates, first observe that the Jacobian matrix of the transformation is: : J_n = \begin \cos(\varphi_) &-r\sin(\varphi_) &0 &0&\cdots &0 \\ \sin(\varphi_)\cos(\varphi_) &r\cos(\varphi_)\cos(\varphi_) &-r\sin(\varphi_)\sin(\varphi_)&0&\cdots &0 \\ \vdots & \vdots & \vdots &\ddots & &\vdots\\ & & & & &0 \\ \sin(\varphi_)\cdots\sin(\varphi_)\cos(\varphi_)& \cdots &\cdots & & &-r\sin(\varphi_)\cdots\sin(\varphi_)\sin(\varphi_) \\ \sin(\varphi_)\cdots\sin(\varphi_)\sin(\varphi_)& r\cos(\varphi_)\cdots\sin(\varphi_)& \cdots & & &r\sin(\varphi_)\cdots\sin(\varphi_)\cos(\varphi_) \end. The determinant of this matrix can be calculated by induction. When , a straightforward computation shows that the determinant is . For larger , observe that can be constructed from as follows. Except in column , rows and of are the same as row of , but multiplied by an extra factor of in row and an extra factor of in row . In column , rows and of are the same as column of row of , but multiplied by extra factors of in row and in row , respectively. The determinant of can be calculated by Laplace expansion in the final column. By the recursive description of , the submatrix formed by deleting the entry at and its row and column almost equals , except that its last row is multiplied by . Similarly, the submatrix formed by deleting the entry at and its row and column almost equals , except that its last row is multiplied by . Therefore the determinant of is :\begin |J_n| &= (-1)^(-r\sin(\varphi_1) \dotsm \sin(\varphi_)\sin(\varphi_))(\sin(\varphi_)|J_|) \\ &\qquad + (-1)^(r\sin(\varphi_1) \dotsm \sin(\varphi_)\cos(\varphi_))(\cos(\varphi_)|J_|) \\ &= (r\sin(\varphi_1) \dotsm \sin(\varphi_)|J_|(\sin^2(\varphi_) + \cos^2(\varphi_)) \\ &= (r\sin(\varphi_1) \dotsm \sin(\varphi_))|J_|. \end Induction then gives a closed-form expression for the volume element in spherical coordinates :\begin d^nV &= \left|\det\frac\ dr\,d\varphi_1 \, d\varphi_2\cdots d\varphi_ \\ &= r^\sin^(\varphi_1)\sin^(\varphi_2)\cdots \sin(\varphi_)\, dr\,d\varphi_1 \, d\varphi_2\cdots d\varphi_. \end The formula for the volume of the -ball can be derived from this by integration. Similarly the surface area element of the -sphere of radius , which generalizes the area element of the 2-sphere, is given by : d_V = R^\sin^(\varphi_1)\sin^(\varphi_2)\cdots \sin(\varphi_)\, d\varphi_1 \, d\varphi_2\cdots d\varphi_. The natural choice of an orthogonal basis over the angular coordinates is a product of ultraspherical polynomials, : \begin & \quad \int_0^\pi \sin^\left(\varphi_j\right) C_s^\cos \left(\varphi_j \right)C_^\cos \left(\varphi_j\right) \, d\varphi_j \\pt& = \frac\delta_ \end for , and the for the angle in concordance with the spherical harmonics.

Polyspherical coordinates

The standard spherical coordinate system arises from writing as the product . These two factors may be related using polar coordinates. For each point of , the standard Cartesian coordinates :\mathbf = (x_1, \dots, x_n) = (y_1, z_1, \dots, z_) = (\mathbf, \mathbf) can be transformed into a mixed polar–Cartesian coordinate system: :\mathbf = (r\cos \theta, (r\sin \theta)\mathbf). This says that points in may be expressed by taking the ray starting at the origin and passing through , rotating it towards the first basis vector by , and traveling a distance 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 is split as the product of two Euclidean spaces of smaller dimension, but neither space is required to be a line. Specifically, suppose that and are positive integers such that . Then . Using this decomposition, a point may be written as :\mathbf = (x_1, \dots, x_n) = (y_1, \dots, y_p, z_1, \dots, z_q) = (\mathbf, \mathbf). This can be transformed into a mixed polar–Cartesian coordinate system by writing: :\mathbf = ((r\sin \theta)\hat\mathbf, (r\cos \theta)\hat\mathbf). Here \hat\mathbf and \hat\mathbf are the unit vectors associated to and . This expresses in terms of \hat\mathbf \in S^, \hat\mathbf \in S^, , and an angle . It can be shown that the domain of is if , if exactly one of and is 1, and if neither nor are 1. The inverse transformation is :\begin r &= \lVert\mathbf\rVert, \\ \theta &= \arcsin(\lVert\mathbf\rVert / \lVert\mathbf\rVert) \\ &= \arccos(\lVert\mathbf\rVert / \lVert\mathbf\rVert) \\ &= \arctan(\lVert\mathbf\rVert / \lVert\mathbf\rVert). \end 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 and \hat\mathbf are spheres, so the coordinates of a polyspherical coordinate system are a non-negative radius and angles. The possible polyspherical coordinate systems correspond to binary trees with 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 , and its immediate children represent the first splitting into and . Leaf nodes correspond to Cartesian coordinates for . 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 , taking the left branch introduces a factor of and taking the right branch introduces a factor of . 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 determines a subgroup :\operatorname_p(\mathbb) \times \operatorname_q(\mathbb) \subseteq \operatorname_n(\mathbb). This is the subgroup that leaves each of the two factors S^ \times S^ \subseteq S^ 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 and the area measure on are products. There is one factor for each angle, and the volume measure on also has a factor for the radial coordinate. The area measure has the form: :dA_ = \prod_^ F_i(\theta_i)\,d\theta_i, where the factors are determined by the tree. Similarly, the volume measure is :dV_n = r^\,dr\,\prod_^ F_i(\theta_i)\,d\theta_i. Suppose we have a node of the tree that corresponds to the decomposition and that has angular coordinate . The corresponding factor depends on the values of and . When the area measure is normalized so that the area of the sphere is 1, these factors are as follows. If , then :F(\theta) = \frac. If and , and if denotes the beta function, then :F(\theta) = \frac\,d\theta. If and , then :F(\theta) = \frac\,d\theta. Finally, if both and are greater than one, then :F(\theta) = \frac\,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 -sphere can be mapped onto an -dimensional hyperplane by the -dimensional version of the stereographic projection. For example, the point on a two-dimensional sphere of radius 1 maps to the point on the -plane. In other words, :,y,z\mapsto \leftfrac,\frac\right Likewise, the stereographic projection of an -sphere of radius 1 will map to the -dimensional hyperplane perpendicular to the -axis as :_1,x_2,\ldots,x_n\mapsto \leftfrac,\frac,\ldots,\frac\right

Generating random points

Uniformly at random on the -sphere

To generate uniformly distributed random points on the unit -sphere (that is, the surface of the unit -ball), gives the following algorithm. Generate an -dimensional vector of normal deviates (it suffices to use , although in fact the choice of the variance is arbitrary), . Now calculate the "radius" of this point: :r=\sqrt. The vector is uniformly distributed over the surface of the unit -ball. An alternative given by Marsaglia is to uniformly randomly select a point in the unit -cube by sampling each independently from the uniform distribution over , computing as above, and rejecting the point and resampling if (i.e., if the point is not in the -ball), and when a point in the ball is obtained scaling it up to the spherical surface by the factor ; then again is uniformly distributed over the surface of the unit -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 cube is filled by the sphere, so that typically more than 50 attempts will be needed. In seventy dimensions, less than 10^ 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 -ball

With a point selected uniformly at random from the surface of the unit -sphere (e.g., by using Marsaglia's algorithm), one needs only a radius to obtain a point uniformly at random from within the unit -ball. If is a number generated uniformly at random from the interval and is a point selected uniformly at random from the unit -sphere, then is uniformly distributed within the unit -ball. Alternatively, points may be sampled uniformly from within the unit -ball by a reduction from the unit -sphere. In particular, if is a point selected uniformly from the unit -sphere, then is uniformly distributed within the unit -ball (i.e., by simply discarding two coordinates). If is sufficiently large, most of the volume of the -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 with the discrete topology for some . 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, ℝP1. 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(1) \cong \mathrm(4)/\mathrm(3) \cong \mathrm(2) \cong \mathrm(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) = ''G''2/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 ''S''4. Parallelizable. SO(8)/SO(7) = SU(4)/SU(3) = Sp(2)/Sp(1) = Spin(7)/''G''2 = 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\ 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.

See also

*Affine sphere *Conformal geometry *Exotic sphere *Homology sphere *Homotopy groups of spheres *Homotopy sphere *Hyperbolic group *Hypercube *Inversive geometry *Loop (topology) *Manifold *Möbius transformation *Orthogonal group *Spherical cap *Volume of an -ball *Wigner semicircle distribution



* * * * * *

External links

* {{Authority control Category:Multi-dimensional geometry Category:Spheres