i
i
i
i
i
i
i
i
5.3. Computing with Matrices and Determinants 99
of the parallelogram formed by the vectors. We can use matrices to handle the
mechanics of computing determinants.
If we have 2D vectors r and s, we denote the determinant |rs|; this value is
the signed area of the parallelogram formed by the vectors. Suppose we have
two 2D vectors with Cartesian coordinates (a, b) and (A, B) (Figure 5.7). The
determinant can be written in terms of column vectors or as a shorthand:
Figure 5.7. The 2D de-
terminant in Equation 5.8 is
the area of the parallelo-
gram formed by the 2D vec-
tors.
a
b
A
B
≡
aA
bB
= aB − Ab. (5.8)
Note that the determinant of a matrix is the same as the determinant of its trans-
pose:
aA
bB
=
ab
AB
= aB − Ab.
This means that for any parallelogram in 2D there is a “sibling” parallelogram that
has the same area but a different shape (Figure 5.8). For example the parallelo-
gram defined by vectors (3, 1) and (2, 4) has area 10, as does the parallelogram
defined by vectors (3, 2) and (1, 4).
Figure 5.8. The sibling
parallelogram has the same
area as the parallelogram in
Figure 5.7.
Example. The geometric meaning of the 3D determinant is helpful in seeing why
certain formulas make sense. For example, the equation of the plane through the
points (x
i
,y
i
,z
i
) for i =0, 1, 2 is
x − x
0
x − x
1
x − x
2
y − y
0
y − y
1
y − y
2
z − z
0
z − z
1
z − z
2
=0.
Each column is a vector from point (x
i
,y
i
,z
i
) to point (x, y, z). The volume of
the parallelepiped with those vectors as sides is zero only if (x, y, z) is coplanar
with the three other points. Almost all equations involving determinants have
similarly simple underlying geometry.
As we saw earlier, we can compute determinants by a brute force expansion
where most terms are zero, and there is a great deal of bookkeeping on plus and
minus signs. The standard way to manage the algebra of computing determinants
is to use a form of Laplace’s expansion. The key part of computing the determi-
nant this way is to find cofactors of various matrix elements. Each element of a
square matrix has a cofactor which is the determinant of a matrix with one fewer
row and column possibly multiplied by minus one. The smaller matrix is obtained
by eliminating the row and column that the element in question is in. For exam-
ple, for a 10×10 matrix, the cofactor of a
82
is the determinant of the 9 ×9 matrix
with the 8th row and 2nd column eliminated. The sign of a cofactor is positive if