Cayley–Menger determinant

From testwiki
Revision as of 15:48, 18 January 2025 by 186.159.162.140 (talk) (Definition)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Short description

In linear algebra, geometry, and trigonometry, the Cayley–Menger determinant is a formula for the content, i.e. the higher-dimensional volume, of a n-dimensional simplex in terms of the squares of all of the distances between pairs of its vertices. The determinant is named after Arthur Cayley and Karl Menger.

The n(n1)/2 pairwise distance polynomials between Template:Mvar 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, as well as computing the content of a Template:Mvar-dimensional simplex, and ultimately determining if any real symmetric matrix is a Euclidean distance matrix for some Template:Math points in the field of distance geometry.[2]

History

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 results to propose a new axiom of metric spaces using the concepts of distance geometry up to congruence equivalence, 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]

Definition

Let A0,A1,,An be n+1 points in k-dimensional Euclidean space, with kn.Template:Efn These points are the vertices of an Template:Mvar-dimensional simplex: a triangle when n=2; a tetrahedron when n=3, and so on. Let dij be the Euclidean distances between vertices Ai and Aj. The content, i.e. the Template:Mvar-dimensional volume of this simplex, denoted by vn, can be expressed as a function of determinants of certain matrices, as follows:[4][5]

vn2=1(n!)22n|2d012d012+d022d122d012+d0n2d1n2d012+d022d1222d022d022+d0n2d2n2d012+d0n2d1n2d022+d0n2d2n22d0n2|=(1)n+1(n!)22n|0d012d022d0n21d0120d122d1n21d022d1220d2n21d0n2d1n2d2n20111110|.

This is the Cayley–Menger determinant. For n=2 it is a symmetric polynomial in the dij's and is thus invariant under permutation of these quantities. This fails for n>2, but it is always invariant under permutation of the vertices.Template:Efn

Except for the final row and column of 1s, the matrix in the second form of this equation is a Euclidean distance matrix.

Compare this to the usual formula for the oriented volume of a simplex, namely 1n! times the determinant of the Template:Math matrix composed of the Template:Mvar edge vectors A1A0,,AnA0. Unlike the Cayley-Menger determinant, the latter matrix changes with rotation of the simplex, though not with translation; regardless, its determinant and the resulting volume do not change.

Special cases

2-Simplex

To reiterate, a simplex is an Template:Mvar-dimensional polytope and the convex hull of n+1 points which do not lie in any (n1) dimensional plane.[6] Therefore, a 2-simplex occurs when n=2 and the simplex results in a triangle. Therefore, the formula for determining Vj2 of a triangle is provided below:[5]


16Δ2=|011110c2b21c20a21b2a20|

As a result, the equation above presents the content of a 2-simplex (area of a planar triangle with side lengths a, b, and c) and it is a generalised form of Heron's Formula.[5]

3-Simplex

Similarly, a 3-simplex occurs when n=3 and the simplex results in a tetrahedron.[6] Therefore, the formula for determining Vj2 of a tetrahedron is provided below:[5]

288V2=|0111110d122d132d1421d2120d232d2421d312d3220d3421d412d422d4320|

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 i and j has length dij.[5]

Proof

Let the column vectors A0,A1,,An be n+1 points in n-dimensional Euclidean space. Starting with the volume formula vn=1n!|det(A0A1An111)|, we note that the determinant is unchanged when we add an extra row and column to make an (n+2)×(n+2) matrix, P=(A0A1An01110A02A12An21), where Aj2 is the square of the length of the vector Aj. Additionally, we note that the (n+2)×(n+2) matrix Q=(2000002000002000000100010) has a determinant of (2)n(1)=(1)n+12n. Thus,[7] det(0d012d022d0n21d0120d122d1n21d022d1220d2n21d0n2d1n2d2n20111110)=det(PTQP)=det(Q)det(P)2=(1)n+12n(n!)2vn2.

Example

In the case of n=2, we have that v2 is the area of a triangle and thus we will denote this by A. By the Cayley–Menger determinant, where the triangle has side lengths a, b and c,

16A2=|2a2a2+b2c2a2+b2c22b2|=4a2b2(a2+b2c2)2=(a2+b2+c2)22(a4+b4+c4)=(a+b+c)(a+bc)(ab+c)(a+b+c)

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 n=3, the quantity v3 gives the volume of a tetrahedron, which we will denote by V. For distances between Ai and Aj given by dij, the Cayley–Menger determinant gives[9][10]

144V2=12|2d012d012+d022d122d012+d032d132d012+d022d1222d022d022+d032d232d012+d032d132d022+d032d2322d032|=4d012d022d032+(d012+d022d122)(d012+d032d132)(d022+d032d232)d012(d022+d032d232)2d022(d012+d032d132)2d032(d012+d022d122)2.

Finding the circumradius of a simplex

Given a nondegenerate Template:Mvar-simplex, it has a circumscribed Template:Mvar-sphere, with radius r. Then the Template:Math-simplex made of the vertices of the Template:Mvar-simplex and the center of the Template:Mvar-sphere is degenerate. Thus, we have

|0r2r2r2r21r20d012d022d0n21r2d0120d122d1n21r2d022d1220d2n21r2d0n2d1n2d2n201111110|=0

In particular, when n=2, this gives the circumradius of a triangle in terms of its edge lengths.

Set Classifications

From these determinants, we also have the following classifications:

Straight

A set Template:Math (with at least three distinct elements) is called straight if and only if, for any three elements Template:Mvar, Template:Mvar, and Template:Mvar of Template:Math,[11]

det[0d(AB)2d(AC)21d(AB)20d(BC)21d(AC)2d(BC)2011110]=0

Plane

A set Template:Math (with at least four distinct elements) is called plane if and only if, for any four elements Template:Mvar, Template:Mvar, Template:Mvar and Template:Mvar of Template:Math,[11]

det[0d(AB)2d(AC)2d(AD)21d(AB)20d(BC)2d(BD)21d(AC)2d(BC)20d(CD)21d(AD)2d(BD)2d(CD)20111110]=0

but not all triples of elements of Template:Math are straight to each other;

Flat

A set Template:Mvar (with at least five distinct elements) is called flat if and only if, for any five elements Template:Mvar, Template:Mvar, Template:Mvar, Template:Mvar and Template:Mvar of Template:Mvar,[11]

det[0d(AB)2d(AC)2d(AD)2d(AE)21d(AB)20d(BC)2d(BD)2d(BE)21d(AC)2d(BC)20d(CD)2d(CE)21d(AD)2d(BD)2d(CD)20d(DE)21d(AE)2d(BE)2d(CE)2d(DE)201111110]=0

but not all quadruples of elements of Template:Mvar are plane to each other; and so on.

Menger's Theorem

Karl Menger made a further discovery after the development of the Cayley–Menger determinant, which became known as Menger's Theorem. The theorem states:

For a finite set of points A, a semi-metric ρ:A×A0 can be obtained from a Euclidean metric of dimension n if and only if every Cayley-Menger determinant on n+1 points is strictly positive, every determinant on n+2 points vanishes, and a Cayley-Menger determinant on at least one set of n+3 points is nonnegative (in which case it is necessarily zero).[1]

In simpler terms, if every subset of n+2 points can be isometrically embedded in an n-dimensional, but not generally (n1)-dimensional Euclidean space, then the semi-metric is Euclidean of dimension n unless A consists of exactly n+3 points and the Cayley–Menger determinant on those n+3 points is strictly negative. This type of semi-metric would be classified as pseudo-Euclidean.[1]

Realization of a Euclidean distance matrix

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, d, via a geometric constraint solving algorithm. The second algorithm does so when the dimension, d, is not provided. This algorithm theoretically finds a realization of the full n×n Euclidean distance matrix in the smallest possible embedding dimension in quadratic time.

Theorem (d is given)

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 n1 dimensional simplex below than above.

Theorem. An n×n matrix Δ is a Euclidean Distance Matrix if and only if for all k×k submatrices S of Δ, where kn, det(δS^)0. For Δ to have a realization in dimension d, if |S|=kd+2, then det(δS^)=0.[12]

As stated before, the purpose to this theorem comes from the following algorithm for realizing a Euclidean Distance Matrix or a Gramian Matrix.

Algorithm

Input
Euclidean Distance Matrix Δ or Gramian Matrix Γ.
Output
Pointset P
Procedure
  • If the dimension d 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 p1,...,pn in the desired dimension d.
  • Otherwise, we can solve for one point at a time.
    • Solve for the coordinates of pk using its distances to all previously placed points p1,...,pk1. Thus, pk is represented by at most k1 coordinate values, ensuring minimum dimension and complexity.

Example

Let each point pk have coordinates pk1,pk2,.... To place the first three points:

  1. Put p1 at the origin, so p1=0,0,....
  2. Put p2 on the first axis, so p2=(δ12)2,0,....
  3. To place p3:

{(p11p31)2+(p12p32)2=(δ13)2(p21p31)2+(p22p32)2=(δ23)2 {p31=(δ12)2+(δ13)2(δ23)22δ12p32=(δ31+δ32+δ12)(δ31+δ32δ12)(δ31δ32+δ12)(δ31+δ32+δ12)2δ01

In order to find a realization using the above algorithm, the discriminant of the distance quadratic system must be positive, which is equivalent to Δp1p2p3 having positive volume. In general, the volume of the n1 dimensional simplex formed by the n vertices is given by[12]

Vn12=(1)n2n1(n1!)2det(Δ^).

In this formula above, det(Δ^) is the Cayley–Menger determinant. This volume being positive is equivalent to the determinant of the volume matrix being positive.

Theorem (d not given)

Let Template:Mvar be a positive integer and Template:Mvar be a Template:Math symmetric hollow matrix with nonnegative elements, with Template:Math. Template:Mvar is a Euclidean distance matrix with Template:Math if and only if there exist {xi}i=1nK and an index set Template:Math{i1,...,iK+1}In such that

{xi=0xij(j1)0, jI2,K+1xij(i)=0, jI2,K,iIj,K,

where {xi}i=1n realizes Template:Mvar, where xh(l) denotes the lth component of the hth vector.

The extensive proof of this theorem can be found at the following reference.[13]

Algorithm - K = edmsph(D, x)

Source:[13]

I={1,2} K=1 (x1,x2)=(0,D12) for i{3,...,n} do

Γ =jISK(xj,Dij)
if Γ = ∅; then
return
else if Γ ={pi} then
xi=pi
else if Γ={pi+,pi} then
xi=pi+
x ← expand(x)
Template:Math
Template:Math
else
error: Template:Math
end if

end for return K

See also

Notes

Template:Notelist

References

Template:Reflist

  1. 1.0 1.1 1.2 Sitharam, Meera; St. John, Audrey; Sidman, Jessica. Handbook of Geometric Constraint Systems Principles. Boca Raton, FL: CRC Press. Template:ISBN
  2. http://ufo2.cise.ufl.edu/index.php/Distance_Geometry Distance Geometry
  3. Six Mathematical Gems from the History of Distance Geometry
  4. Template:Cite book
  5. 5.0 5.1 5.2 5.3 5.4 Cayley-Menger Determinant
  6. 6.0 6.1 Simplex Encyclopedia of Mathematics
  7. Template:Cite web
  8. Template:Cite book
  9. Template:Cite journal
  10. Template:Cite book
  11. 11.0 11.1 11.2 Distance Geometry Wiki Page
  12. 12.0 12.1 Sitharam, Meera. "Lecture 1 through 6"." Geometric Complexity CIS6930, University of Florida. Received 28 Mar.2020
  13. 13.0 13.1 Realizing Euclidean Distance Matrices by Sphere Intersection