Simplex



In geometry, a simplex (plural: simplexes or simplices) is a generalization of the notion of a triangle or tetrahedron to arbitrary dimensions. The simplex is so-named because it represents the simplest possible polytope in any given dimension. For example,
 * a 0-dimensional simplex is a point,
 * a 1-dimensional simplex is a line segment,
 * a 2-dimensional simplex is a triangle,
 * a 3-dimensional simplex is a tetrahedron, and
 * a 4-dimensional simplex is a 5-cell.

Specifically, a $k$-simplex is a $k$-dimensional polytope that is the convex hull of its $k + 1$ vertices. More formally, suppose the $k + 1$ points $$u_0, \dots, u_k$$ are affinely independent, which means that the $k$ vectors $$u_1 - u_0,\dots, u_k-u_0$$ are linearly independent. Then, the simplex determined by them is the set of points $$ C = \left\{\theta_0 u_0 + \dots +\theta_k u_k ~\Bigg|~ \sum_{i=0}^{k} \theta_i=1 \mbox{ and } \theta_i \ge 0 \mbox{ for } i = 0, \dots, k\right\}.$$

A regular simplex is a simplex that is also a regular polytope. A regular $k$-simplex may be constructed from a regular $(k − 1)$-simplex by connecting a new vertex to all original vertices by the common edge length.

The standard simplex or probability simplex is the $(k − 1)$-dimensional simplex whose vertices are the $k$ standard unit vectors in $$\mathbf{R}^k$$, or in other words $$\left\{x \in \mathbf{R}^{k} : x_0 + \dots + x_{k-1} = 1, x_i \ge 0 \text{ for } i = 0, \dots, k-1 \right\}.$$

In topology and combinatorics, it is common to "glue together" simplices to form a simplicial complex. The associated combinatorial structure is called an abstract simplicial complex, in which context the word "simplex" simply means any finite set of vertices.

History
The concept of a simplex was known to William Kingdon Clifford, who wrote about these shapes in 1886 but called them "prime confines". Henri Poincaré, writing about algebraic topology in 1900, called them "generalized tetrahedra". In 1902 Pieter Hendrik Schoute described the concept first with the Latin superlative simplicissimum ("simplest") and then with the same Latin adjective in the normal form simplex ("simple").

The regular simplex family is the first of three regular polytope families, labeled by Donald Coxeter as $α_{n}$, the other two being the cross-polytope family, labeled as $β_{n}$, and the hypercubes, labeled as $γ_{n}$. A fourth family, the tessellation of $n$-dimensional space by infinitely many hypercubes, he labeled as $δ_{n}$.

Elements
The convex hull of any nonempty subset of the $n + 1$ points that define an $n$-simplex is called a face of the simplex. Faces are simplices themselves. In particular, the convex hull of a subset of size $m + 1$ (of the $n + 1$ defining points) is an $m$-simplex, called an $m$-face of the $n$-simplex. The 0-faces (i.e., the defining points themselves as sets of size 1) are called the vertices (singular: vertex), the 1-faces are called the edges, the ($n − 1$)-faces are called the facets, and the sole $n$-face is the whole $n$-simplex itself. In general, the number of $m$-faces is equal to the binomial coefficient $$\tbinom{n+1}{m+1}$$. Consequently, the number of $m$-faces of an $n$-simplex may be found in column ($m + 1$) of row ($n + 1$) of Pascal's triangle. A simplex $A$ is a coface of a simplex $B$ if $B$ is a face of $A$. Face and facet can have different meanings when describing types of simplices in a simplicial complex.

The extended f-vector for an $n$-simplex can be computed by $(1,1)^{n+1}$, like the coefficients of polynomial products. For example, a 7-simplex is (1,1)8 = (1,2,1)4 = (1,4,6,4,1)2 = (1,8,28,56,70,56,28,8,1).

The number of 1-faces (edges) of the $n$-simplex is the $n$-th triangle number, the number of 2-faces of the $n$-simplex is the $(n − 1)$th tetrahedron number, the number of 3-faces of the $n$-simplex is the $(n − 2)$th 5-cell number, and so on.

An $n$-simplex is the polytope with the fewest vertices that requires $n$ dimensions. Consider a line segment AB as a shape in a 1-dimensional space (the 1-dimensional space is the line in which the segment lies). One can place a new point $n$ somewhere off the line. The new shape, triangle ABC, requires two dimensions; it cannot fit in the original 1-dimensional space. The triangle is the 2-simplex, a simple shape that requires two dimensions. Consider a triangle ABC, a shape in a 2-dimensional space (the plane in which the triangle resides). One can place a new point $C$ somewhere off the plane. The new shape, tetrahedron ABCD, requires three dimensions; it cannot fit in the original 2-dimensional space. The tetrahedron is the 3-simplex, a simple shape that requires three dimensions. Consider tetrahedron ABCD, a shape in a 3-dimensional space (the 3-space in which the tetrahedron lies). One can place a new point $D$ somewhere outside the 3-space. The new shape ABCDE, called a 5-cell, requires four dimensions and is called the 4-simplex; it cannot fit in the original 3-dimensional space. (It also cannot be visualized easily.) This idea can be generalized, that is, adding a single new point outside the currently occupied space, which requires going to the next higher dimension to hold the new shape. This idea can also be worked backward: the line segment we started with is a simple shape that requires a 1-dimensional space to hold it; the line segment is the 1-simplex. The line segment itself was formed by starting with a single point in 0-dimensional space (this initial point is the 0-simplex) and adding a second point, which required the increase to 1-dimensional space.

More formally, an $Δ^{n}$-simplex can be constructed as a join (∨ operator) of an $E$-simplex and a point, $(n + 1)$. An $$-simplex can be constructed as a join of an $n$-simplex and an $m$-simplex. The two simplices are oriented to be completely normal from each other, with translation in a direction orthogonal to both of them. A 1-simplex is the join of two points: $(m + n + 1)$. A general 2-simplex (scalene triangle) is the join of three points: $∨ = 2 ⋅$. An isosceles triangle is the join of a 1-simplex and a point: $∨ ∨$. An equilateral triangle is 3 ⋅ or {3}. A general 3-simplex is the join of 4 points: $\{ \} ∨$. A 3-simplex with mirror symmetry can be expressed as the join of an edge and two points: $∨ ∨ ∨$. A 3-simplex with triangular symmetry can be expressed as the join of an equilateral triangle and 1 point: $\{ \} ∨ ∨$ or $3.∨$. A regular tetrahedron is $\{3\}∨$ or $n$ and so on.

In some conventions, the empty set is defined to be a (−1)-simplex. The definition of the simplex above still makes sense if $4 ⋅$. This convention is more common in applications to algebraic topology (such as simplicial homology) than to the study of polytopes.

Symmetric graphs of regular simplices
These Petrie polygons (skew orthogonal projections) show all the vertices of the regular simplex on a circle, and all vertex pairs connected by edges.

Standard simplex
The standard $\{3,3\}$-simplex (or unit $n$-simplex) is the subset of $n = −1$ given by
 * $$\Delta^n = \left\{(t_0,\dots,t_n)\in\mathbf{R}^{n+1} ~\Bigg|~ \sum_{i = 0}^n t_i = 1 \text{ and } t_i \ge 0 \text{ for } i = 0, \ldots, n\right\}$$.

The simplex $R^{3}$ lies in the affine hyperplane obtained by removing the restriction $R^{n+1}$ in the above definition.

The $Δ^{n}$ vertices of the standard $n$-simplex are the points $t_{i} ≥ 0$, where

A standard simplex is an example of a 0/1-polytope, with all coordinates as 0 or 1. It can also be seen one facet of a regular $n + 1$-orthoplex.

There is a canonical map from the standard $n$-simplex to an arbitrary $n$-simplex with vertices ($e_{i} ∈ R^{n+1}$, ..., $e_{0} = (1, 0, 0, ..., 0),$) given by
 * $$(t_0,\ldots,t_n) \mapsto \sum_{i = 0}^n t_i v_i$$

The coefficients $e_{1} = (0, 1, 0, ..., 0),$ are called the barycentric coordinates of a point in the $n$-simplex. Such a general simplex is often called an affine $n$-simplex, to emphasize that the canonical map is an affine transformation. It is also sometimes called an oriented affine $n$-simplex to emphasize that the canonical map may be orientation preserving or reversing.

More generally, there is a canonical map from the standard $$(n-1)$$-simplex (with $n$ vertices) onto any polytope with $n$ vertices, given by the same equation (modifying indexing):
 * $$(t_1,\ldots,t_n) \mapsto \sum_{i = 1}^n t_i v_i$$

These are known as generalized barycentric coordinates, and express every polytope as the image of a simplex: $$\Delta^{n-1} \twoheadrightarrow P.$$

A commonly used function from $e_{n} = (0, 0, 0, ..., 1)$ to the interior of the standard $$(n-1)$$-simplex is the softmax function, or normalized exponential function; this generalizes the standard logistic function.

Examples

 * Δ0 is the point $(n + 1)$ in $v_{0}$.
 * Δ1 is the line segment joining $v_{n}$ and $t_{i}$ in $R^{n}$.
 * Δ2 is the equilateral triangle with vertices $1$, $R^{1}$ and $(1, 0)$ in $(0, 1)$.
 * Δ3 is the regular tetrahedron with vertices $R^{2}$, $(1, 0, 0)$, $(0, 1, 0)$ and $(0, 0, 1)$ in $R^{3}$.
 * Δ4 is the regular 5-cell with vertices $(1, 0, 0, 0)$, $(0, 1, 0, 0)$, $(0, 0, 1, 0)$, $(0, 0, 0, 1)$ and $R^{4}$ in $(1, 0, 0, 0, 0)$.

Increasing coordinates
An alternative coordinate system is given by taking the indefinite sum:

\begin{align} s_0 &= 0\\ s_1 &= s_0 + t_0 = t_0\\ s_2 &= s_1 + t_1 = t_0 + t_1\\ s_3 &= s_2 + t_2 = t_0 + t_1 + t_2\\ &\;\;\vdots\\ s_n &= s_{n-1} + t_{n-1} = t_0 + t_1 + \cdots + t_{n-1}\\ s_{n+1} &= s_n + t_n = t_0 + t_1 + \cdots + t_n = 1 \end{align} $$ This yields the alternative presentation by order, namely as nondecreasing $n$-tuples between 0 and 1:
 * $$\Delta_*^n = \left\{(s_1,\ldots,s_n)\in\mathbf{R}^n\mid 0 = s_0 \leq s_1 \leq s_2 \leq \dots \leq s_n \leq s_{n+1} = 1 \right\}. $$

Geometrically, this is an $n$-dimensional subset of $$\mathbf{R}^n$$ (maximal dimension, codimension 0) rather than of $$\mathbf{R}^{n+1}$$ (codimension 1). The facets, which on the standard simplex correspond to one coordinate vanishing, $$t_i=0,$$ here correspond to successive coordinates being equal, $$s_i=s_{i+1},$$ while the interior corresponds to the inequalities becoming strict (increasing sequences).

A key distinction between these presentations is the behavior under permuting coordinates – the standard simplex is stabilized by permuting coordinates, while permuting elements of the "ordered simplex" do not leave it invariant, as permuting an ordered sequence generally makes it unordered. Indeed, the ordered simplex is a (closed) fundamental domain for the action of the symmetric group on the $n$-cube, meaning that the orbit of the ordered simplex under the $n$! elements of the symmetric group divides the $n$-cube into $$n!$$ mostly disjoint simplices (disjoint except for boundaries), showing that this simplex has volume $(0, 1, 0, 0, 0)$. Alternatively, the volume can be computed by an iterated integral, whose successive integrands are 1, $n$, $(0, 0, 1, 0, 0)$, $(0, 0, 0, 1, 0)$, ..., $(0, 0, 0, 0, 1)$.

A further property of this presentation is that it uses the order but not addition, and thus can be defined in any dimension over any ordered set, and for example can be used to define an infinite-dimensional simplex without issues of convergence of sums.

Projection onto the standard simplex
Especially in numerical applications of probability theory a projection onto the standard simplex is of interest. Given $$ (p_i)_i$$ with possibly negative entries, the closest point $$\left(t_i\right)_i$$ on the simplex has coordinates
 * $$t_i= \max\{p_i+\Delta\, ,0\},$$

where $$\Delta$$ is chosen such that $\sum_i\max\{p_i+\Delta\, ,0\}=1.$

$$\Delta$$ can be easily calculated from sorting $R^{5}$. The sorting approach takes $$O( n \log n)$$ complexity, which can be improved to $1/n!$ complexity via median-finding algorithms. Projecting onto the simplex is computationally similar to projecting onto the $$\ell_1$$ ball.

Corner of cube
Finally, a simple variant is to replace "summing to 1" with "summing to at most 1"; this raises the dimension by 1, so to simplify notation, the indexing changes:
 * $$\Delta_c^n = \left\{(t_1,\ldots,t_n)\in\mathbf{R}^n ~\Bigg|~ \sum_{i = 1}^n t_i \leq 1 \text{ and } t_i \ge 0 \text{ for all } i \right\}.$$

This yields an $x$-simplex as a corner of the $n$-cube, and is a standard orthogonal simplex. This is the simplex used in the simplex method, which is based at the origin, and locally models a vertex on a polytope with $n$ facets.

Cartesian coordinates for a regular $n$-dimensional simplex in Rn
One way to write down a regular $n$-simplex in $x^{2}/2$ is to choose two points to be the first two vertices, choose a third point to make an equilateral triangle, choose a fourth point to make a regular tetrahedron, and so on. Each step requires satisfying equations that ensure that each newly chosen vertex, together with the previously chosen vertices, forms a regular simplex. There are several sets of equations that can be written down and used for this purpose. These include the equality of all the distances between vertices; the equality of all the distances from vertices to the center of the simplex; the fact that the angle subtended through the new vertex by any two previously chosen vertices is $$\pi/3$$; and the fact that the angle subtended through the center of the simplex by any two vertices is $$\arccos(-1/n)$$.

It is also possible to directly write down a particular regular $n$-simplex in $x^{3}/3!$ which can then be translated, rotated, and scaled as desired. One way to do this is as follows. Denote the basis vectors of $x^{n}/n!$ by $p_{i}$ through $O(n)$. Begin with the standard $R^{n}$-simplex which is the convex hull of the basis vectors. By adding an additional vertex, these become a face of a regular $n$-simplex. The additional vertex must lie on the line perpendicular to the barycenter of the standard simplex, so it has the form $R^{n}$ for some real number $n$. Since the squared distance between two basis vectors is 2, in order for the additional vertex to form a regular $α$-simplex, the squared distance between it and any of the basis vectors must also be 2. This yields a quadratic equation for $n$. Solving this equation shows that there are two choices for the additional vertex:
 * $$\frac{1}{n} \left(1 \pm \sqrt{n + 1} \right) \cdot (1, \dots, 1).$$

Either of these, together with the standard basis vectors, yields a regular $α$-simplex.

The above regular $n$-simplex is not centered on the origin. It can be translated to the origin by subtracting the mean of its vertices. By rescaling, it can be given unit side length. This results in the simplex whose vertices are:
 * $$\frac{1}{\sqrt{2}}\mathbf{e}_i - \frac{1}{n\sqrt{2}}\bigg(1 \pm \frac{1}{\sqrt{n + 1}}\bigg) \cdot (1, \dots, 1),$$

for $$1 \le i \le n$$, and
 * $$\pm\frac{1}{\sqrt{2(n + 1)}} \cdot (1, \dots, 1).$$

Note that there are two sets of vertices described here. One set uses $$+$$ in each calculation. The other set uses $$-$$ in each calculation.

This simplex is inscribed in a hypersphere of radius $$\sqrt{n/(2(n + 1))}$$.

A different rescaling produces a simplex that is inscribed in a unit hypersphere. When this is done, its vertices are
 * $$\sqrt{1 + n^{-1}}\cdot\mathbf{e}_i - n^{-3/2}(\sqrt{n + 1} \pm 1) \cdot (1, \dots, 1),$$

where $$1 \le i \le n$$, and
 * $$\pm n^{-1/2} \cdot (1, \dots, 1).$$

The side length of this simplex is $\sqrt{2(n + 1)/n}$.

A highly symmetric way to construct a regular $n$-simplex is to use a representation of the cyclic group $R^{n}$ by orthogonal matrices. This is an $e_{1}$ orthogonal matrix $n$ such that $e_{n}$ is the identity matrix, but no lower power of $Q$ is. Applying powers of this matrix to an appropriate vector $(n − 1)$ will produce the vertices of a regular $Q$-simplex. To carry this out, first observe that for any orthogonal matrix $n$, there is a choice of basis in which $Q$ is a block diagonal matrix
 * $$Q = \operatorname{diag}(Q_1, Q_2, \dots, Q_k),$$

where each $(α/n, ..., α/n)$ is orthogonal and either $Z_{n+1}$ or $n × n$. In order for $Q$ to have order $Q^{n+1} = I$, all of these matrices must have order dividing $v$. Therefore each $Q_{i}$ is either a $2 × 2$ matrix whose only entry is $1 × 1$ or, if $Q$ is odd, $n + 1$; or it is a $n + 1$ matrix of the form
 * $$\begin{pmatrix}

\cos \frac{2\pi\omega_i}{n + 1} & -\sin \frac{2\pi\omega_i}{n + 1} \\ \sin \frac{2\pi\omega_i}{n + 1} & \cos \frac{2\pi\omega_i}{n + 1} \end{pmatrix},$$ where each $Q_{i}$ is an integer between zero and $n$ inclusive. A sufficient condition for the orbit of a point to be a regular simplex is that the matrices $1 × 1$ form a basis for the non-trivial irreducible real representations of $1$, and the vector being rotated is not stabilized by any of them.

In practical terms, for $n$ even this means that every matrix $−1$ is $2 × 2$, there is an equality of sets
 * $$\{\omega_1, n + 1 - \omega_1, \dots, \omega_{n/2}, n + 1 - \omega_{n/2}\} = \{1, \dots, n\},$$

and, for every $ω_{i}$, the entries of $Q_{i}$ upon which $Z_{n+1}$ acts are not both zero. For example, when $Q_{i}$, one possible matrix is
 * $$\begin{pmatrix}

\cos(2\pi/5) & -\sin(2\pi/5) & 0 & 0 \\ \sin(2\pi/5) & \cos(2\pi/5) & 0 & 0 \\ 0 & 0 & \cos(4\pi/5) & -\sin(4\pi/5) \\ 0 & 0 & \sin(4\pi/5) & \cos(4\pi/5) \end{pmatrix}.$$ Applying this to the vector $2 × 2$ results in the simplex whose vertices are

\begin{pmatrix} 1 \\ 0 \\ 1 \\ 0 \end{pmatrix}, \begin{pmatrix} \cos(2\pi/5) \\ \sin(2\pi/5) \\ \cos(4\pi/5) \\ \sin(4\pi/5) \end{pmatrix}, \begin{pmatrix} \cos(4\pi/5) \\ \sin(4\pi/5) \\ \cos(8\pi/5) \\ \sin(8\pi/5) \end{pmatrix}, \begin{pmatrix} \cos(6\pi/5) \\ \sin(6\pi/5) \\ \cos(2\pi/5) \\ \sin(2\pi/5) \end{pmatrix}, \begin{pmatrix} \cos(8\pi/5) \\ \sin(8\pi/5) \\ \cos(6\pi/5) \\ \sin(6\pi/5) \end{pmatrix}, $$ each of which has distance √5 from the others. When $n$ is odd, the condition means that exactly one of the diagonal blocks is $Q_{i}$, equal to $v$, and acts upon a non-zero entry of $Q_{i}$; while the remaining diagonal blocks, say $n = 4$, are $(1, 0, 1, 0)$, there is an equality of sets
 * $$\left\{\omega_1, -\omega_1, \dots, \omega_{(n-1)/2}, -\omega_{n-1)/2}\right\} = \left\{1, \dots, (n-1)/2, (n+3)/2, \dots, n \right\},$$

and each diagonal block acts upon a pair of entries of $1 × 1$ which are not both zero. So, for example, when $−1$, the matrix can be
 * $$\begin{pmatrix}

0 & -1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & -1 \\ \end{pmatrix}.$$ For the vector $v$, the resulting simplex has vertices

\begin{pmatrix} 1 \\ 0 \\ 1/\surd2 \end{pmatrix}, \begin{pmatrix} 0 \\ 1 \\ -1/\surd2 \end{pmatrix}, \begin{pmatrix} -1 \\ 0 \\ 1/\surd2 \end{pmatrix}, \begin{pmatrix} 0 \\ -1 \\ -1/\surd2 \end{pmatrix}, $$ each of which has distance 2 from the others.

Volume
The volume of an $n$-simplex in $n$-dimensional space with vertices $Q_{1}, ..., Q_{(n − 1) / 2}$ is

\mathrm{Volume} = \frac{1}{n!} \left|\det \begin{pmatrix} v_1-v_0 && v_2-v_0 && \cdots && v_n-v_0 \end{pmatrix}\right| $$

where each column of the $2 × 2$ determinant is a vector that points from vertex $v$ to another vertex $n = 3$. This formula is particularly useful when $$v_0$$ is the origin.

The expression

\mathrm{Volume} = \frac{1}{n!} \det\left[ \begin{pmatrix} v_1^\text{T}-v_0^\text{T} \\ v_2^\text{T}-v_0^\text{T} \\ \vdots \\ v_n^\text{T}-v_0^\text{T} \end{pmatrix} \begin{pmatrix} v_1-v_0 & v_2-v_0 & \cdots & v_n-v_0 \end{pmatrix} \right]^{1/2} $$ employs a Gram determinant and works even when the $n$-simplex's vertices are in a Euclidean space with more than $n$ dimensions, e.g., a triangle in $$\mathbf{R}^3$$.

A more symmetric way to compute the volume of an $n$-simplex in $$\mathbf{R}^n$$ is

\mathrm{Volume} = {1\over n!} \left|\det \begin{pmatrix} v_0 & v_1 & \cdots & v_n \\ 1  & 1   & \cdots & 1 \end{pmatrix}\right|. $$

Another common way of computing the volume of the simplex is via the Cayley–Menger determinant, which works even when the n-simplex's vertices are in a Euclidean space with more than n dimensions.

Without the $(1, 0, 1/\sqrt{2})$ it is the formula for the volume of an $n$-parallelotope. This can be understood as follows: Assume that $n$ is an $P$-parallelotope constructed on a basis $$(v_0, e_1, \ldots, e_n)$$ of $$\mathbf{R}^n$$. Given a permutation $$\sigma$$ of $$\{1,2,\ldots, n\}$$, call a list of vertices $$v_0,\ v_1, \ldots, v_n$$ a $n$-path if
 * $$v_1 = v_0 + e_{\sigma(1)},\ v_2 = v_1 + e_{\sigma(2)},\ldots, v_n = v_{n-1}+e_{\sigma(n)}$$

(so there are $(v_{0}, ..., v_{n})$ $n$-paths and $$v_n$$ does not depend on the permutation). The following assertions hold:

If $n$ is the unit $P$-hypercube, then the union of the $n$-simplexes formed by the convex hull of each $n$-path is $n$, and these simplexes are congruent and pairwise non-overlapping. In particular, the volume of such a simplex is
 * $$ \frac{\operatorname{Vol}(P)}{n!} = \frac 1 {n!}.$$

If $P$ is a general parallelotope, the same assertions hold except that it is no longer true, in dimension > 2, that the simplexes need to be pairwise congruent; yet their volumes remain equal, because the $n$-parallelotope is the image of the unit $n$-hypercube by the linear isomorphism that sends the canonical basis of $$\mathbf{R}^n$$ to $$e_1,\ldots, e_n$$. As previously, this implies that the volume of a simplex coming from a $i$-path is:
 * $$ \frac{\operatorname{Vol}(P)}{n!} = \frac{\det(e_1, \ldots, e_n)}{n!}.$$

Conversely, given an $n$-simplex $$(v_0,\ v_1,\ v_2,\ldots v_n)$$ of $$\mathbf R^n$$, it can be supposed that the vectors $$e_1 = v_1-v_0,\ e_2 = v_2-v_1,\ldots e_n=v_n-v_{n-1}$$ form a basis of $$\mathbf R^n$$. Considering the parallelotope constructed from $$v_0$$ and $$e_1,\ldots, e_n$$, one sees that the previous formula is valid for every simplex.

Finally, the formula at the beginning of this section is obtained by observing that
 * $$\det(v_1-v_0, v_2-v_0,\ldots, v_n-v_0) = \det(v_1-v_0, v_2-v_1,\ldots, v_n-v_{n-1}).$$

From this formula, it follows immediately that the volume under a standard $n$-simplex (i.e. between the origin and the simplex in $n × n$) is
 * $${1 \over (n+1)!}$$

The volume of a regular $n$-simplex with unit side length is
 * $$\frac{\sqrt{n+1}}{n!\sqrt{2^n}}$$

as can be seen by multiplying the previous formula by $v0$, to get the volume under the $P$-simplex as a function of its vertex distance $n$ from the origin, differentiating with respect to $n$, at $$x=1/\sqrt{2}$$ (where the $n$-simplex side length is 1), and normalizing by the length $$dx/\sqrt{n+1}$$ of the increment, $$(dx/(n+1),\ldots, dx/(n+1))$$, along the normal vector.

Dihedral angles of the regular n-simplex
Any two $vk$-dimensional faces of a regular $n$-dimensional simplex are themselves regular $1/n!$-dimensional simplices, and they have the same dihedral angle of $n!$.

This can be seen by noting that the center of the standard simplex is $\left(\frac{1}{n+1}, \dots, \frac{1}{n+1}\right)$, and the centers of its faces are coordinate permutations of $\left(0, \frac{1}{n}, \dots, \frac{1}{n}\right)$. Then, by symmetry, the vector pointing from $\left(\frac{1}{n+1}, \dots, \frac{1}{n+1}\right)$ to $\left(0, \frac{1}{n}, \dots, \frac{1}{n}\right)$  is perpendicular to the faces. So the vectors normal to the faces are permutations of $$(-n, 1, \dots, 1)$$, from which the dihedral angles are calculated.

Simplices with an "orthogonal corner"
An "orthogonal corner" means here that there is a vertex at which all adjacent edges are pairwise orthogonal. It immediately follows that all adjacent faces are pairwise orthogonal. Such simplices are generalizations of right triangles and for them there exists an $n$-dimensional version of the Pythagorean theorem:

The sum of the squared $R^{n+1}$-dimensional volumes of the facets adjacent to the orthogonal corner equals the squared $x^{n+1}$-dimensional volume of the facet opposite of the orthogonal corner.
 * $$ \sum_{k=1}^n |A_k|^2 = |A_0|^2 $$

where $$ A_1 \ldots A_n $$ are facets being pairwise orthogonal to each other but not orthogonal to $$A_0$$, which is the facet opposite the orthogonal corner.

For a 2-simplex, the theorem is the Pythagorean theorem for triangles with a right angle and for a 3-simplex it is de Gua's theorem for a tetrahedron with an orthogonal corner.

Relation to the (n + 1)-hypercube
The Hasse diagram of the face lattice of an $n$-simplex is isomorphic to the graph of the $(n − 1)$-hypercube's edges, with the hypercube's vertices mapping to each of the $n$-simplex's elements, including the entire simplex and the null polytope as the extreme points of the lattice (mapped to two opposite vertices on the hypercube). This fact may be used to efficiently enumerate the simplex's face lattice, since more general face lattice enumeration algorithms are more computationally expensive.

The $x$-simplex is also the vertex figure of the $(n − 1)$-hypercube. It is also the facet of the $cos^{−1}(1/n)$-orthoplex.

Topology
Topologically, an $x$-simplex is equivalent to an $n$-ball. Every $n$-simplex is an $n$-dimensional manifold with corners.

Probability
In probability theory, the points of the standard $n$-simplex in $(n − 1)$-space form the space of possible probability distributions on a finite set consisting of $(n − 1)$ possible outcomes. The correspondence is as follows: For each distribution described as an ordered $(n + 1)$-tuple of probabilities whose sum is (necessarily) 1, we associate the point of the simplex whose barycentric coordinates are precisely those probabilities. That is, the $n$th vertex of the simplex is assigned to have the $n$th probability of the $(n + 1)$-tuple as its barycentric coefficient. This correspondence is an affine homeomorphism.

Aitchison geometry
Aitchinson geometry is a natural way to construct an inner product space from the standard simplex $$\Delta^{D-1}$$. It defines the following operations on simplices and real numbers:


 * Perturbation (addition)


 * $$ x \oplus y = \left[\frac{x_1 y_1}{\sum_{i=1}^D x_i y_i},\frac{x_2 y_2}{\sum_{i=1}^D x_i y_i}, \dots, \frac{x_D y_D}{\sum_{i=1}^D x_i y_i}\right] \qquad \forall x, y \in \Delta^{D-1}

$$


 * Powering (scalar multiplication)


 * $$ \alpha \odot x = \left[\frac{x_1^\alpha}{\sum_{i=1}^D x_i^\alpha},\frac{x_2^\alpha}{\sum_{i=1}^D x_i^\alpha}, \ldots,\frac{x_D^\alpha}{\sum_{i=1}^D x_i^\alpha} \right] \qquad \forall x \in \Delta^{D-1}, \; \alpha \in \mathbb{R}

$$


 * Inner product


 * $$ \langle x, y \rangle = \frac{1}{2D}

\sum_{i=1}^D \sum_{j=1}^D \log \frac{x_i}{x_j} \log \frac{y_i}{y_j} \qquad \forall x, y \in \Delta^{D-1}$$

Compounds
Since all simplices are self-dual, they can form a series of compounds;
 * Two triangles form a hexagram {6/2}.
 * Two tetrahedra form a compound of two tetrahedra or stella octangula.
 * Two 5-cells form a compound of two 5-cells in four dimensions.

Algebraic topology
In algebraic topology, simplices are used as building blocks to construct an interesting class of topological spaces called simplicial complexes. These spaces are built from simplices glued together in a combinatorial fashion. Simplicial complexes are used to define a certain kind of homology called simplicial homology.

A finite set of $n$-simplexes embedded in an open subset of $(n + 1)$ is called an affine $n$-chain. The simplexes in a chain need not be unique; they may occur with multiplicity. Rather than using standard set notation to denote an affine chain, it is instead the standard practice to use plus signs to separate each member in the set. If some of the simplexes have the opposite orientation, these are prefixed by a minus sign. If some of the simplexes occur in the set more than once, these are prefixed with an integer count. Thus, an affine chain takes the symbolic form of a sum with integer coefficients.

Note that each facet of an $n$-simplex is an affine $(n + 1)$-simplex, and thus the boundary of an $n$-simplex is an affine $n + 1$-chain. Thus, if we denote one positively oriented affine simplex as
 * $$\sigma=[v_0,v_1,v_2,\ldots,v_n]$$

with the $$v_j$$ denoting the vertices, then the boundary $$\partial\sigma$$ of $n$ is the chain
 * $$\partial\sigma = \sum_{j=0}^n (-1)^j [v_0,\ldots,v_{j-1},v_{j+1},\ldots,v_n].$$

It follows from this expression, and the linearity of the boundary operator, that the boundary of the boundary of a simplex is zero:
 * $$\partial^2\sigma = \partial \left( \sum_{j=0}^n (-1)^j [v_0,\ldots,v_{j-1},v_{j+1},\ldots,v_n] \right) = 0. $$

Likewise, the boundary of the boundary of a chain is zero: $$ \partial ^2 \rho =0 $$.

More generally, a simplex (and a chain) can be embedded into a manifold by means of smooth, differentiable map $$f:\mathbf{R}^n \to M$$. In this case, both the summation convention for denoting the set, and the boundary operation commute with the embedding. That is,
 * $$f \left(\sum\nolimits_i a_i \sigma_i \right) = \sum\nolimits_i a_i f(\sigma_i)$$

where the $$a_i$$ are the integers denoting orientation and multiplicity. For the boundary operator $$\partial$$, one has:
 * $$\partial f(\rho) = f (\partial \rho)$$

where $n$ is a chain. The boundary operation commutes with the mapping because, in the end, the chain is defined as a set and little more, and the set operation always commutes with the map operation (by definition of a map).

A continuous map $$f: \sigma \to X$$ to a topological space $k$ is frequently referred to as a singular $k$-simplex. (A map is generally called "singular" if it fails to have some desirable property such as continuity and, in this case, the term is meant to reflect to the fact that the continuous map need not be an embedding.)

Algebraic geometry
Since classical algebraic geometry allows one to talk about polynomial equations but not inequalities, the algebraic standard n-simplex is commonly defined as the subset of affine $(n + 1)$-dimensional space, where all coordinates sum up to 1 (thus leaving out the inequality part). The algebraic description of this set is $$\Delta^n := \left\{x \in \mathbb{A}^{n+1} ~\Bigg|~ \sum_{i=1}^{n+1} x_i = 1\right\},$$ which equals the scheme-theoretic description $$\Delta_n(R) = \operatorname{Spec}(R[\Delta^n])$$ with $$R[\Delta^n] := R[x_1,\ldots,x_{n+1}]\left/\left(1-\sum x_i \right)\right.$$ the ring of regular functions on the algebraic $k$-simplex (for any ring $$R$$).

By using the same definitions as for the classical $k$-simplex, the $n$-simplices for different dimensions $n$ assemble into one simplicial object, while the rings $$R[\Delta^n]$$ assemble into one cosimplicial object $$R[\Delta^\bullet]$$ (in the category of schemes resp. rings, since the face and degeneracy maps are all polynomial).

The algebraic $σ$-simplices are used in higher K-theory and in the definition of higher Chow groups.

Applications

 * In statistics, simplices are sample spaces of compositional data and are also used in plotting quantities that sum to 1, such as proportions of subpopulations, as in a ternary plot.
 * In probability theory, a simplex space is often used to represent the space of probability distributions. The Dirichlet distribution, for instance, is defined on a simplex.
 * In industrial statistics, simplices arise in problem formulation and in algorithmic solution. In the design of bread, the producer must combine yeast, flour, water, sugar, etc. In such mixtures, only the relative proportions of ingredients matters: For an optimal bread mixture, if the flour is doubled then the yeast should be doubled. Such mixture problem are often formulated with normalized constraints, so that the nonnegative components sum to one, in which case the feasible region forms a simplex. The quality of the bread mixtures can be estimated using response surface methodology, and then a local maximum can be computed using a nonlinear programming method, such as sequential quadratic programming.
 * In operations research, linear programming problems can be solved by the simplex algorithm of George Dantzig.
 * In game theory, strategies can be represented as points within a simplex. This representation simplifies the analysis of mixed strategies.
 * In geometric design and computer graphics, many methods first perform simplicial triangulations of the domain and then fit interpolating polynomials to each simplex.
 * In chemistry, the hydrides of most elements in the p-block can resemble a simplex if one is to connect each atom. Neon does not react with hydrogen and as such is a point, fluorine bonds with one hydrogen atom and forms a line segment, oxygen bonds with two hydrogen atoms in a bent fashion resembling a triangle, nitrogen reacts to form a tetrahedron, and carbon forms a structure resembling a Schlegel diagram of the 5-cell. This trend continues for the heavier analogues of each element, as well as if the hydrogen atom is replaced by a halogen atom.
 * In some approaches to quantum gravity, such as Regge calculus and causal dynamical triangulations, simplices are used as building blocks of discretizations of spacetime; that is, to build simplicial manifolds.