# Unit sphere

In mathematics, a unit sphere is a sphere of unit radius: the set of points at Euclidean distance 1 from some center point in three-dimensional space. More generally, the unit $n$-sphere is an $n$-sphere of unit radius in $(n+1)$-dimensional Euclidean space; the unit circle is a special case, the unit $1$-sphere in the plane. An (open) unit ball is the region inside of a unit sphere, the set of points of distance less than 1 from the center.
A sphere or ball with unit radius and center at the origin of the space is called the unit sphere or the unit ball. Any arbitrary sphere can be transformed to the unit sphere by a combination of translation and scaling, so the study of spheres in general can often be reduced to the study of the unit sphere.
The unit sphere is often used as a model for spherical geometry because it has constant sectional curvature of 1, which simplifies calculations. In trigonometry, circular arc length on the unit circle is called radians and used for measuring angular distance; in spherical trigonometry surface area on the unit sphere is called steradians and used for measuring solid angle.
In more general contexts, a unit sphere is the set of points of distance 1 from a fixed central point, where different norms can be used as general notions of "distance", and an (open) unit ball is the region inside.

## Unit spheres and balls in Euclidean space

In Euclidean space of $n$ dimensions, the $(n-1)$-dimensional unit sphere is the set of all points $(x_{1},\ldots ,x_{n})$ which satisfy the equation
    $x_{1}^{2}+x_{2}^{2}+\cdots +x_{n}^{2}=1.$
The open unit $n$-ball is the set of all points satisfying the inequality
    $x_{1}^{2}+x_{2}^{2}+\cdots +x_{n}^{2}<1,$
and closed unit $n$-ball is the set of all points satisfying the inequality
    $x_{1}^{2}+x_{2}^{2}+\cdots +x_{n}^{2}\leq 1.$

### Volume and area

The classical equation of a unit sphere is that of the ellipsoid with a radius of 1 and no alterations to the $x$-, $y$-, or $z$- axes:
    $x^{2}+y^{2}+z^{2}=1$
The volume of the unit ball in Euclidean $n$-space, and the surface area of the unit sphere, appear in many important formulas of analysis. The volume of the unit $n$-ball, which we denote $V_{n},$ can be expressed by making use of the gamma function. It is
    $V_{n}={\frac {\pi ^{n/2}}{\Gamma (1+n/2)}}={\begin{cases}{\pi ^{n/2}}/{(n/2)!}&\mathrm {if~} n\geq 0\mathrm {~is~even} \\[6mu]{2(2\pi )^{(n-1)/2}}/{n!!}&\mathrm {if~} n\geq 0\mathrm {~is~odd,} \end{cases}}$
where $n!!$ is the double factorial.
The hypervolume of the $(n-1)$-dimensional unit sphere (i.e., the "area" of the boundary of the $n$-dimensional unit ball), which we denote $A_{n-1},$ can be expressed as
    $A_{n-1}=nV_{n}={\frac {n\pi ^{n/2}}{\Gamma (1+n/2)}}={\frac {2\pi ^{n/2}}{\Gamma (n/2)}}={\begin{cases}{2\pi ^{n/2}}/{(n/2-1)!}&\mathrm {if~} n\geq 1\mathrm {~is~even} \\[6mu]{2(2\pi )^{(n-1)/2}}/{(n-2)!!}&\mathrm {if~} n\geq 1\mathrm {~is~odd.} \end{cases}}$
For example, $A_{0}=2$ is the "area" of the boundary of the unit ball $[-1,1]\subset \mathbb {R}$, which simply counts the two points. Then $A_{1}=2\pi$ is the "area" of the boundary of the unit disc, which is the circumference of the unit circle. $A_{2}=4\pi$ is the area of the boundary of the unit ball $\{x\in \mathbb {R} ^{3}:x_{1}^{2}+x_{2}^{2}+x_{3}^{2}\leq 1\}$, which is the surface area of the unit sphere $\{x\in \mathbb {R} ^{3}:x_{1}^{2}+x_{2}^{2}+x_{3}^{2}=1\}$.
The surface areas and the volumes for some values of $n$ are as follows:
| $n$ | $A_{n-1}$ (surface area) | $A_{n-1}$ (surface area) | $V_{n}$ (volume) | $V_{n}$ (volume) |
| 0 | | | $(1/0!)\pi ^{0}$ | 1 |
| 1 | $1(2^{1}/1!!)\pi ^{0}$ | 2 | $(2^{1}/1!!)\pi ^{0}$ | 2 |
| 2 | $2(1/1!)\pi ^{1}=2\pi$ | 6.283 | $(1/1!)\pi ^{1}=\pi$ | 3.141 |
| 3 | $3(2^{2}/3!!)\pi ^{1}=4\pi$ | 12.57 | $(2^{2}/3!!)\pi ^{1}=(4/3)\pi$ | 4.189 |
| 4 | $4(1/2!)\pi ^{2}=2\pi ^{2}$ | 19.74 | $(1/2!)\pi ^{2}=(1/2)\pi ^{2}$ | 4.935 |
| 5 | $5(2^{3}/5!!)\pi ^{2}=(8/3)\pi ^{2}$ | 26.32 | $(2^{3}/5!!)\pi ^{2}=(8/15)\pi ^{2}$ | 5.264 |
| 6 | $6(1/3!)\pi ^{3}=\pi ^{3}$ | 31.01 | $(1/3!)\pi ^{3}=(1/6)\pi ^{3}$ | 5.168 |
| 7 | $7(2^{4}/7!!)\pi ^{3}=(16/15)\pi ^{3}$ | 33.07 | $(2^{4}/7!!)\pi ^{3}=(16/105)\pi ^{3}$ | 4.725 |
| 8 | $8(1/4!)\pi ^{4}=(1/3)\pi ^{4}$ | 32.47 | $(1/4!)\pi ^{4}=(1/24)\pi ^{4}$ | 4.059 |
| 9 | $9(2^{5}/9!!)\pi ^{4}=(32/105)\pi ^{4}$ | 29.69 | $(2^{5}/9!!)\pi ^{4}=(32/945)\pi ^{4}$ | 3.299 |
| 10 | $10(1/5!)\pi ^{5}=(1/12)\pi ^{5}$ | 25.50 | $(1/5!)\pi ^{5}=(1/120)\pi ^{5}$ | 2.550 |
where the decimal expanded values for $n\geq 2$ are rounded to the displayed precision.

#### Recursion

The $A_{n}$ values satisfy the recursion:
    $A_{0}=2$
    $A_{1}=2\pi$
    $A_{n}={\frac {2\pi }{n-1}}A_{n-2}$ for $n>1$.
The $V_{n}$ values satisfy the recursion:
    $V_{0}=1$
    $V_{1}=2$
    $V_{n}={\frac {2\pi }{n}}V_{n-2}$ for $n>1$.

#### Non-negative real-valued dimensions

The value 2$^{−n}$V$_n$=π$^{n/2}$/2$^n$Γ(1+1/2 n){\textstyle 2^{-n}V_{n}=\pi ^{n/2}{\big /}\, 2^{n}\Gamma {\bigl1+{\tfrac {1}{2}}n{\bigr )}} at non-negative real values of $n$ is sometimes used for normalization of Hausdorff measure.

#### Other radii

The surface area of an $(n-1)$-sphere with radius $r$ is $A_{n-1}r^{n-1}$ and the volume of an $n$- ball with radius $r$ is $V_{n}r^{n}.$ For instance, the area is $A_{2}=4\pi r^{2}$ for the two-dimensional surface of the three-dimensional ball of radius $r.$ The volume is $V_{3}={\tfrac {4}{3}}\pi r^{3}$ for the three-dimensional ball of radius $r$.

## Unit balls in normed vector spaces

The open unit ball of a normed vector space $V$ with the norm $\|\cdot \|$ is given by
    $\{x\in V:\|x\|<1\}$
It is the topological interior of the closed unit ball of $(V,\|\cdot \|)\colon$
    $\{x\in V:\|x\|\leq 1\}$
The latter is the disjoint union of the former and their common border, the unit sphere of $(V,\|\cdot \|)\colon$
    $\{x\in V:\|x\|=1\}$
The "shape" of the unit ball is entirely dependent on the chosen norm; it may well have "corners", and for example may look like $[-1,1]^{n}$ in the case of the max-norm in $\mathbb {R} ^{n}$. One obtains a naturally round ball as the unit ball pertaining to the usual Hilbert space norm, based in the finite-dimensional case on the Euclidean distance; its boundary is what is usually meant by the unit sphere.
Let $x=(x_{1},...x_{n})\in \mathbb {R} ^{n}.$ Define the usual $\ell _{p}$-norm for $p\geq 1$ as:
    $\|x\|_{p}={\biggl\sum _{k=1}^{n}|x_{k}|^{p}{\biggr )}^{1/p}$
Then $\|x\|_{2}$ is the usual Hilbert space norm. $\|x\|_{1}$ is called the Hamming norm, or $\ell _{1}$-norm. The condition $p\geq 1$ is necessary in the definition of the $\ell _{p}$ norm, as the unit ball in any normed space must be convex as a consequence of the triangle inequality. Let $\|x\|_{\infty }$ denote the max-norm or $\ell _{\infty }$-norm of $x$.
Note that for the one-dimensional circumferences $C_{p}$ of the two-dimensional unit balls, we have:
    $C_{1}=4{\sqrt {2}}$ is the minimum value.
    $C_{2}=2\pi$
    $C_{\infty }=8$ is the maximum value.

## Generalizations
### Metric spaces

All three of the above definitions can be straightforwardly generalized to a metric space, with respect to a chosen origin. However, topological considerations (interior, closure, border) need not apply in the same way (e.g., in ultrametric spaces, all of the three are simultaneously open and closed sets), and the unit sphere may even be empty in some metric spaces.

### Quadratic forms

If $V$ is a linear space with a real quadratic form $F:V\to \mathbb {R} ,$ then $\{p\in V:F(p)=1\}$ may be called the unit sphere or unit quasi-sphere of $V.$ For example, the quadratic form $x^{2}-y^{2}$, when set equal to one, produces the unit hyperbola, which plays the role of the "unit circle" in the plane of split-complex numbers. Similarly, the quadratic form $x^{2}$ yields a pair of lines for the unit sphere in the dual number plane.