1. Introduction
A coherent derivation of radius and center of the insphere of a general tetrahedron is hard to find (see e.g. [1] ). When setting up the linear system for their calculation the uniform orientation of the faces of the tetrahedron has to be observed. This is exemplified in the examples at the end. After transforming the original linear system into a system having a coefficient matrix of block upper triangular form the calculation of radius and center of the insphere of the tetrahedron can be separated from each other. The solution of the remaining linear system for the center of the insphere rests upon an exercise in [2].
2. Preliminaries
Matrices are designated by capital letters, such as B, C, D, E. The center of the insphere shall be denoted by
and its radius by r. Furthermore the four vertices of the tetrahedron are designated by
for
. The four faces of the tetrahedron are triangles having the three vertices:
,
,
,
. The order of the vertices for each triangle is chosen in such a way, that the normal to a face is directed into the interior of the tetrahedron according to the corkscrew rule: the direction of the normal of a face is defined such that the right thumb points in the direction of the normal and the fingers curl along the orientation of the bounding curve of a triangle.
The plane through the three vertices P1, P2, P3 can be described by (see e.g. [3] ):
(1)
Expanding determinant (1) in terms of the elements of the first row leads to:
(2)
with
(3)
If the vertices P1, P2, P3 do not lie on a straight line at least one of the terms
,
,
is different from zero and so is
(4)
Dividing Equation (2) by
leads to the so-called Hesse normal form of the plane
(5)
With the Hesse normal form (5) the distance r of the point
from the plane can be expressed by (see e.g. [3] ):
(6)
An illustration is given in Figure 1.
Repeating the above procedure for the plane through the vertices P1, P4, P2 of the tetrahedron gives by exchanging the indices
,
:
(7)
with
(8)
and
(9)
Repeating the above procedure for the plane through the vertices P1, P3, P4 of the tetrahedron gives by exchanging the indices
,
:
(10)
with
(11)
and
(12)
Repeating the above procedure for the plane through the vertices P2, P4, P3 of the tetrahedron gives by exchanging the indices
,
and
:
(13)
with
(14)
and
(15)
By splitting the terms
,
,
into
one obtains from (13)
(16)
with
(17)
can also be written as a determinant of the following matrix
(18)
From determinant
one obtains (17) by subtracting the first row from the second and third row, exchanging rows two and three and expanding the resulting determinant with respect to the first row. This process is reversible.
Corollary 1
For determinant
holds
if and only if the four vertices P1, P2, P3, P4 of the tetrahedron are lying in a plane.
Proof: Considering for instance the plane through P1, P2, P3 according to (1) the coordinates of vertex P4 are fulfilling (1) if and only if determinant
is zero after exchanging the third row with the second and afterwards with the first row, leaving the value of the determinant unchanged.
3. A Linear System
From Equations (6), (7), (10) and (16) one obtains the following system of linear equations for the unknowns
:
(19)
With the following Proposition the elements
,
,
in the last row of the linear system (19) can be expressed by the remaining elements.
Proposition 1
Proof: It is sufficient to prove the first statement.
Thus
Multiplying the linear system (19) from the left by the following transformation matrix
—or what is equivalent, by adding the first three rows of (19) to the last row—yields with the result of Proposition 1 a decomposed linear system, whose coefficient matrix has block upper triangular form
(20)
The summation of the terms
in the last row of (20) ranges over the index triplets 123, 142, 134 and 243. Looking at the last equation of (20) the calculation of r can be separated from the calculation of the other unknowns. The last equation of (20) yields:
(21)
where each of the terms
,
,
and
according to (4), (9), (12) and (15) is non-zero, if the three vertices involved do not lie on straight lines. Thus one obtains from (20) a linear system for the remaining unknowns
,
,
. For convenience the first and the third row of (20) are interchanged.
(22)
The next Proposition is formulated for the coefficient matrix
(23)
of the linear system (22). This Proposition rests upon an exercise in [2].
Proposition 2
For matrix C from (18) and matrix D from (23) the following statement is true:
, where
denotes the transpose of C and E the identity matrix. This means that D is the cofactor matrix of C. Furthermore for
holds:
is the inverse of D and
.
Proof: Expanding
in terms of the elements of the first, second and third column yields with denotations (11), (8), (3):
By multiplication of matrices
and D one obtains with the above results for determinant
the elements on the main diagonal of the product matrix:
(24)
The non-diagonal elements of the product matrix are zero because they can be written as 3 × 3 determinants with two equal columns. As an example this shall be shown for the element in row two and column one of the product matrix:
From (24) follows in case of
that
is the inverse of D.
Forming determinants in (24) yields
. Because of
for
one obtains
Corollary 2
If for determinant
holds
the coefficient matrix D of the linear system (22) has the following determinant
(25)
Proof: Determinant
can be transformed in the following way:
(26)
With (26) and the result of Proposition 2 for determinant
of the linear system (22) holds (25).
Finally the coordinates of the center of the insphere of the tetrahedron are obtained after solving the linear system (22). The result may also be found in [4].
Theorem 1
If the vertices P1, P2, P3, P4 of the tetrahedron are not lying in a plane the center of the insphere is given by:
(27)
(28)
(29)
Proof: The three vertices of each face of the tetrahedron cannot lie on a straight line; otherwise the vertices P1, P2, P3, P4 would lie in a plane. So the terms
defined in (4), (9), (12) and (15) are different from zero. Furthermore according to Corollary 1 determinant
is different from zero.
Multiplying the linear system (22) from the left by
, the inverse of coefficient matrix D according to Proposition 2, yields
With formula (21) for r one obtains
(30)
(31)
(32)
From (30), (31), (32) one can deduce (27), (28), (29).
4. The Planar Case
Assume that the three vertices of a triangle
,
,
are not coinciding. The center of the incircle of the triangle shall be denoted by
and its radius by r.
The straight line through P1 and P2 is given by
The so-called Hesse normal form of the line is obtained by dividing the equation by
yielding
The distance r of the point
from this line is given by (see e.g. [3] )
(33)
Repeating the above procedure for the line through P2 and P3 of the triangle gives by exchanging the indices
and
with
By splitting the terms
,
into
one obtains
(34)
with
Introducing matrix
and its determinant
Equation (34) turns into
(35)
As the vertices of the triangle were assumed to be not coinciding
is true. Repeating the above procedure for the line through P3 and P1 of the triangle gives by exchanging the indices
and
with
By splitting the terms
,
into
one obtains
(36)
with
Equations (33), (36) and (35) are forming a linear system for the unknowns
,
and r:
(37)
Adding the first and the second row of the linear system (37) to the last row yields
(38)
where the sum in the third row of (38) ranges over the index doublets 12, 31 and 23. From the third row of (38) one obtains
(39)
The remaining reduced linear system for
and
reads
(40)
Multiplying the linear system (40) from the left by
yields because of
(41)
and
as solution
With formula (39) for r one obtains from this result
and thus
5. Examples
The tetrahedrons considered in the sequel are having as vertex the origin, a vertex on the x-axis, a vertex in the x-y plane and a vertex in three-dimensional space:
,
,
and
. For determinant
according to (26) holds:
Determinant
is different from zero if the product
is different from zero.
Example 1
Consider a regular tetrahedron of edge length
, having the vertices
,
,
and
. For it holds
and
. From (21) the radius is
. The linear system (22) for the calculation of the center of the insphere reads:
The solution of the linear system is:
. The same result is obtained with (27), (28), (29). The distance of Pm from each vertex is
.
Example 2
Consider an irregular tetrahedron with the vertices
,
,
and
.
and from (21) the radius is
. The linear system (22) for the calculation of the center of the insphere reads using decimal numbers:
The solution of the linear system is:
. The distance of
to P1 is 4.27926, the distance of
to P2 is 3.07179, the distance of
to P3 is 2.83245 and the distance of
to P4 is 6.23721. These numerical results have been obtained with Mathematica.
6. Conclusion
A coherent derivation of radius and center of the insphere of a general tetrahedron is given. By means of elementary techniques of linear algebra the original linear system for the determination of radius and center of the insphere of a tetrahedron can be broken up to calculate the radius and the coordinates of the center separately. The remaining linear system for the coordinates of the center of the insphere can be solved by multiplying with the inverse of the coefficient matrix, which is found in the course of the treatise. This procedure can readily be applied in the planar case.