The pairwise distance polynomials between n points in a real Euclidean space are Euclidean invariants that are associated via the Cayley-Menger relations.[1] These relations served multiple purposes such as generalising Heron's Formula, computing the content of a n-dimensional simplex, and ultimately determining if any real symmetric matrix is a Euclidean distance matrix in the field of Distance geometry.[2]
Karl Menger was a young geometry professor at the University of Vienna and Arthur Cayley was a British mathematician who specialized in algebraic geometry. Menger extended Cayley's algebraic excellence to propose a new axiom of metric spaces using the concepts of distance geometry and relation of congruence, known as the Cayley–Menger determinant. This ended up generalising one of the first discoveries in distance geometry, Heron's formula, which computes the area of a triangle given its side lengths.[3]
Let be points in -dimensional Euclidean space, with .[a] These points are the vertices of an n-dimensional simplex: a triangle when ; a tetrahedron when , and so on. Let be the Euclidean distances between vertices and . The content, i.e. the n-dimensional volume of this simplex, denoted by , can be expressed as a function of determinants of certain matrices, as follows:[4][5]
This is the Cayley–Menger determinant. For it is a symmetric polynomial in the 's and is thus invariant under permutation of these quantities. This fails for but it is always invariant under permutation of the vertices.[b]
Except for the final row and column of 1s, the matrix in the second form of this equation is a Euclidean distance matrix.
To reiterate, a simplex is an n-dimensional polytope and the convex hull of points which do not lie in any dimensional plane.[6] Therefore, a 2-simplex occurs when and the simplex results in a triangle. Therefore, the formula for determining of a triangle is provided below:[5]
As a result, the equation above presents the content of a 2-simplex (area of a planar triangle with side lengths , , and ) and it is a generalised form of Heron's Formula.[5]
Similarly, a 3-simplex occurs when and the simplex results in a tetrahedron.[6] Therefore, the formula for determining of a tetrahedron is provided below:[5]
As a result, the equation above presents the content of a 3-simplex, which is the volume of a tetrahedron where the edge between vertices and has length .[5]
In the case of , we have that is the area of a triangle and thus we will denote this by . By the Cayley–Menger determinant, where the triangle has side lengths , and ,
The result in the third line is due to the Fibonacci identity. The final line can be rewritten to obtain Heron's formula for the area of a triangle given three sides, which was known to Archimedes prior.[8]
In the case of , the quantity gives the volume of a tetrahedron, which we will denote by . For distances between and given by , the Cayley–Menger determinant gives[9][10]
Given a nondegenerate n-simplex, it has a circumscribed n-sphere, with radius . Then the (n + 1)-simplex made of the vertices of the n-simplex and the center of the n-sphere is degenerate. Thus, we have
In particular, when , this gives the circumradius of a triangle in terms of its edge lengths.
Karl Menger made a further discovery after the development of the Cayley–Menger determinant, which became known as Menger's Theorem. The theorem states:
A semimetricis Euclidean of dimension n if and only if all Cayley-Menger determinants onpoints is strictly positive, all determinants onpoints vanish, and a Cayley-Menger determinant on at least one set ofpoints is nonnegative (in which case it is necessarily zero).[1]
In simpler terms, if every subset of points can be isometrically embedded in an but not generally dimensional Euclidean space, then the semimetric is Euclidean of dimension unless consists of exactly points and the Cayley–Menger determinant on those points is strictly negative. This type of semimetric would be classified pseudo-Euclidean.[1]
Given the Cayley-Menger relations as explained above, the following section will bring forth two algorithms to decide whether a given matrix is a distance matrix corresponding to a Euclidean point set. The first algorithm will do so when given a matrix AND the dimension, , via a geometric constraint solving algorithm. The second algorithm does so when the dimension, , is not provided. This algorithm theoretically finds a realization of the full Euclidean distance matrix in the smallest possible embedding dimension in quadratic time.
For the sake and context of the following theorem, algorithm, and example, slightly different notation will be used than before resulting in an altered formula for the volume of the dimensional simplex below than above.
Theorem. An matrix is a Euclidean Distance Matrix if and only if for all submatrices of , where , . For to have a realization in dimension , if , then .[12]
As stated before, the purpose to this theorem comes from the following algorithm for realizing a Euclidean Distance Matrix or a Gramian Matrix.
If the dimension is fixed, we can solve a system of polynomial equations, one for each inner product entry of , where the variables are the coordinates of each point in the desired dimension .
Otherwise, we can solve for one point at a time.
Solve for the coordinates of using its distances to all previously placed points . Thus, is represented by at most coordinate values, ensuring minimum dimension and complexity.
Let each point have coordinates . To place the first three points:
Put at the origin, so .
Put on the first axis, so .
To place :
In order to find a realization using the above algorithm, the discriminant of the distance quadratic system must be positive, which is equivalent to having positive volume. In general, the volume of the dimensional simplex formed by the vertices is given by[12]
.
In this formula above, is the Cayley–Menger determinant. This volume being positive is equivalent to the determinant of the volume matrix being positive.
Let K be a positive integer and D be a n × n symmetric hollow matrix with nonnegative elements, with n ≥ 2. D is a Euclidean distance matrix with dim(D) = K if and only if there exist and an index set I = such that
whererealizes D, wheredenotes the component of the vector.
The extensive proof of this theorem can be found at the following reference.[13]