Trigonometry of a tetrahedron

The trigonometry of a tetrahedron explains the relationships between the lengths and various types of angles of a general tetrahedron.

Classical trigonometric quantities
The following are trigonometric quantities generally associated to a general tetrahedron: Let $$X = \overline{P_1P_2P_3P_4}$$ be a general tetrahedron, where $$P_1,P_2,P_3,P_4$$ are arbitrary points in three-dimensional space.
 * The 6 edge lengths - associated to the six edges of the tetrahedron.
 * The 12 face angles - there are three of them for each of the four faces of the tetrahedron.
 * The 6 dihedral angles - associated to the six edges of the tetrahedron, since any two faces of the tetrahedron are connected by an edge.
 * The 4 solid angles - associated to each point of the tetrahedron.

Furthermore, let $$e_{ij}$$ be the edge that joins $$P_{i}$$ and $$P_{j}$$ and let $$F_{i}$$ be the face of the tetrahedron opposite the point $$P_{i}$$; in other words: where $$i,j,k,l \in \{1,2,3,4\}$$ and $$i \neq j \neq k \neq l$$.
 * $$e_{ij}=\overline{P_iP_j}$$
 * $$F_i = \overline{P_jP_kP_l}$$

Define the following quantities:
 * $$d_{ij}$$ = the length of the edge $$e_{ij}$$
 * $$\alpha_{i,j}$$ = the face angle at the point $$P_i$$ on the face $$F_{j}$$
 * $$\theta_{ij}$$ = the dihedral angle between two faces adjacent to the edge $$e_{ij}$$
 * $$\Omega_i$$ = the solid angle at the point $$P_i$$

Area and volume
Let $$\Delta_i$$ be the area of the face $$F_i$$. Such area may be calculated by Heron's formula (if all three edge lengths are known):


 * $$\Delta_i = \sqrt{\frac{(d_{jk}+d_{jl}+d_{kl})(-d_{jk}+d_{jl}+d_{kl})(d_{jk}-d_{jl}+d_{kl})(d_{jk}+d_{jl}-d_{kl})}{16}}$$

or by the following formula (if an angle and two corresponding edges are known):


 * $$\Delta_i = \frac{1}{2}d_{jk} d_{jl}\sin\alpha_{j,i}$$

Let $$h_i$$ be the altitude from the point $$P_{i}$$ to the face $$F_{i}$$. The volume $$V$$ of the tetrahedron $$X $$ is given by the following formula: $$V = \frac{1}{3}\Delta_{i}h_{i}$$It satisfies the following relation:


 * $$288V^2 = \begin{vmatrix} 2Q_{12} & Q_{12}+Q_{13}-Q_{23} & Q_{12}+Q_{14}-Q_{24} \\ Q_{12}+Q_{13}-Q_{23} & 2Q_{13} & Q_{13}+Q_{14}-Q_{34} \\ Q_{12}+Q_{14}-Q_{24} & Q_{13}+Q_{14}-Q_{34} & 2Q_{14} \end{vmatrix}$$

where $$Q_{ij} = d_{ij}^2$$ are the quadrances (length squared) of the edges.

Affine triangle
Take the face $$F_{i}$$; the edges will have lengths $$d_{jk},d_{jl},d_{kl}$$ and the respective opposite angles are given by $$\alpha_{l,i},\alpha_{k,i},\alpha_{j,i}$$.

The usual laws for planar trigonometry of a triangle hold for this triangle.

Projective triangle
Consider the projective (spherical) triangle at the point $$P_i$$; the vertices of this projective triangle are the three lines that join $$P_i$$ with the other three vertices of the tetrahedron. The edges will have spherical lengths $$\alpha_{i,j},\alpha_{i,k},\alpha_{i,l}$$ and the respective opposite spherical angles are given by $$\theta_{ij},\theta_{ik},\theta_{il}$$.

The usual laws for spherical trigonometry hold for this projective triangle.

Alternating sines theorem
Take the tetrahedron $$X$$, and consider the point $$P_i$$ as an apex. The Alternating sines theorem is given by the following identity:$$\sin(\alpha_{j,l})\sin(\alpha_{k,j})\sin(\alpha_{l,k}) = \sin(\alpha_{j,k})\sin(\alpha_{k,l})\sin(\alpha_{l,j})$$One may view the two sides of this identity as corresponding to clockwise and counterclockwise orientations of the surface.

The space of all shapes of tetrahedra


Putting any of the four vertices in the role of O yields four such identities, but at most three of them are independent; if the "clockwise" sides of three of the four identities are multiplied and the product is inferred to be equal to the product of the "counterclockwise" sides of the same three identities, and then common factors are cancelled from both sides, the result is the fourth identity.

Three angles are the angles of some triangle if and only if their sum is 180° (π radians). What condition on 12 angles is necessary and sufficient for them to be the 12 angles of some tetrahedron? Clearly the sum of the angles of any side of the tetrahedron must be 180°. Since there are four such triangles, there are four such constraints on sums of angles, and the number of degrees of freedom is thereby reduced from 12 to 8. The four relations given by the sine law further reduce the number of degrees of freedom, from 8 down to not 4 but 5, since the fourth constraint is not independent of the first three. Thus the space of all shapes of tetrahedra is 5-dimensional.

Law of sines for the tetrahedron
See: Law of sines

Law of cosines for the tetrahedron
The law of cosines for the tetrahedron relates the areas of each face of the tetrahedron and the dihedral angles about a point. It is given by the following identity:


 * $$\Delta_i^2 = \Delta_j^2 + \Delta_k^2 + \Delta_l^2 - 2(\Delta_{j}\Delta_{k}\cos\theta_{il} + \Delta_j \Delta_l \cos\theta_{ik}+\Delta_k \Delta_l \cos\theta_{ij})$$

Relationship between dihedral angles of tetrahedron
Take the general tetrahedron $$X$$ and project the faces $$F_i,F_j,F_k$$ onto the plane with the face $$F_l$$. Let $$c_{ij} = \cos\theta_{ij}$$.

Then the area of the face $$F_l$$ is given by the sum of the projected areas, as follows:$$\Delta_l = \Delta_ic_{jk} + \Delta_jc_{ik} + \Delta_kc_{ij}$$By substitution of $$i,j,k,l \in \{1,2,3,4\}$$ with each of the four faces of the tetrahedron, one obtains the following homogeneous system of linear equations:$$\begin{cases} -\Delta_1 + \Delta_2c_{34} + \Delta_3c_{24} + \Delta_4c_{23} = 0 \\ \Delta_1c_{34} - \Delta_2 + \Delta_3c_{14} + \Delta_4c_{13} = 0\\ \Delta_1c_{24} + \Delta_2c_{14} - \Delta_3 + \Delta_4c_{12} = 0\\ \Delta_1c_{23} + \Delta_2c_{13} + \Delta_3c_{12} - \Delta_4 = 0 \end{cases}$$This homogeneous system will have solutions precisely when: $$\begin{vmatrix} -1 & c_{34} & c_{24} & c_{23} \\ c_{34} & -1 & c_{14} & c_{13} \\ c_{24} & c_{14} & -1 & c_{12} \\ c_{23} & c_{13} & c_{12} & -1 \end{vmatrix} = 0$$By expanding this determinant, one obtains the relationship between the dihedral angles of the tetrahedron, as follows: $$1-\sum_{1 \leq i < j \leq 4}c^{2}_{ij}+\sum_{j=2\atop k\neq l\neq j}^{4}c^{2}_{1j}c^{2}_{kl} = 2\left(\sum_{i=1\atop j\neq k\neq l\neq i}^{4}c_{ij}c_{ik}c_{il}+\sum_{2\leq j<k\leq 4\atop l\neq j,k}c_{1j}c_{1k}c_{jl}c_{kl}\right) $$

Skew distances between edges of tetrahedron
Take the general tetrahedron $$X$$ and let $$P_{ij}$$ be the point on the edge $$e_{ij}$$ and $$P_{kl}$$ be the point on the edge $$e_{kl}$$ such that the line segment $$\overline{P_{ij}P_{kl}}$$ is perpendicular to both $$e_{ij}$$ & $$e_{kl}$$. Let $$R_{ij}$$ be the length of the line segment $$\overline{P_{ij}P_{kl}}$$.

To find $$R_{ij}$$:

First, construct a line through $$P_{k}$$ parallel to $$e_{il}$$ and another line through $$P_{i}$$ parallel to $$e_{kl}$$. Let $$O$$ be the intersection of these two lines. Join the points $$O$$ and $$P_{j}$$. By construction, $$\overline{OP_iP_lP_k}$$ is a parallelogram and thus $$\overline{OP_kP_i}$$ and $$\overline{OP_lP_i}$$ are congruent triangles. Thus, the tetrahedron $$X$$ and $$Y = \overline{OP_iP_jP_k}$$ are equal in volume.

As a consequence, the quantity $$R_{ij}$$ is equal to the altitude from the point $$P_{k}$$ to the face $$\overline{OP_iP_j}$$ of the tetrahedron $$Y$$; this is shown by translation of the line segment $$\overline{P_{ij}P_{kl}}$$.

By the volume formula, the tetrahedron $$Y$$ satisfies the following relation: $$3V = R_{ij} \times \Delta(\overline{OP_iP_j})$$where $$\Delta(\overline{OP_iP_j})$$ is the area of the triangle $$\overline{OP_iP_j}$$. Since the length of the line segment $$\overline{OP_i}$$ is equal to $$d_{kl}$$ (as $$\overline{OP_iP_lP_k}$$ is a parallelogram): $$\Delta(\overline{OP_iP_j}) = \frac{1}{2}d_{ij}d_{kl}\sin\lambda$$where $$\lambda = \angle OP_iP_j$$. Thus, the previous relation becomes: $$6V = R_{ij}d_{ij}d_{kl}\sin\lambda$$To obtain $$\sin\lambda$$, consider two spherical triangles: Combining the two equations gives the following result:$$\cos\alpha_{i,k}\sin\alpha_{k,j} + \cos\lambda\sin\alpha_{i,j} = \cos\alpha_{i,l}\left(\cos\alpha_{i,j}\sin\alpha_{k,j} + \sin\alpha_{i,j}\cos\alpha_{k,j}\right) =\cos\alpha_{i,l}\sin\alpha_{l,j}$$
 * 1) Take the spherical triangle of the tetrahedron $$X$$ at the point $$P_i$$; it will have sides $$\alpha_{i,j},\alpha_{i,k},\alpha_{i,l}$$ and opposite angles $$\theta_{ij},\theta_{ik},\theta_{il}$$. By the spherical law of cosines:$$\cos\alpha_{i,k} = \cos\alpha_{i,j}\cos\alpha_{i,l}+\sin\alpha_{i,j}\sin\alpha_{i,l}\cos\theta_{ik}$$
 * 2) Take the spherical triangle of the tetrahedron $$X$$ at the point $$P_i$$. The sides are given by $$\alpha_{i,l},\alpha_{k,j},\lambda$$ and the only known opposite angle is that of $$\lambda$$, given by $$\pi - \theta_{ik}$$. By the spherical law of cosines:$$\cos\lambda = \cos\alpha_{i,l}\cos\alpha_{k,j}-\sin\alpha_{i,l}\sin\alpha_{k,j}\cos\theta_{ik}$$

Making $$\cos\lambda$$ the subject:$$\cos\lambda = \cos\alpha_{i,l}\frac{\sin\alpha_{l,j}}{\sin\alpha_{i,j}} - \cos\alpha_{i,k}\frac{\sin\alpha_{k,j}}{\sin\alpha_{i,j}}$$Thus, using the cosine law and some basic trigonometry:$$\cos\lambda = \frac{d_{ij}^2+d_{ik}^2-d_{jk}^2}{2d_{ij}d_{ik}}\frac{d_{ik}}{d_{kl}} - \frac{d_{ij}^2+d_{il}^2-d_{jl}^2}{2d_{ij}d_{il}}\frac{d_{il}}{d_{kl}} = \frac{d_{ik}^2+d_{jl}^2-d_{il}^2-d_{jk}^2}{2d_{ij}d_{kl}}$$Thus:$$\sin\lambda = \sqrt{1-\left(\frac{d_{ik}^2+d_{jl}^2-d_{il}^2-d_{jk}^2}{2d_{ij}d_{kl}}\right)^2} =\frac{\sqrt{4d_{ij}^2d_{kl}^2-(d_{ik}^2+d_{jl}^2-d_{il}^2-d_{jk}^2)^2}}{2d_{ij}d_{kl}}$$So:$$R_{ij} = \frac{12V}{\sqrt{4d_{ij}^2d_{kl}^2-(d_{ik}^2+d_{jl}^2-d_{il}^2-d_{jk}^2)^2}}$$$$R_{ik}$$ and $$R_{il}$$ are obtained by permutation of the edge lengths.

Note that the denominator is a re-formulation of the Bretschneider-von Staudt formula, which evaluates the area of a general convex quadrilateral.