Determinants
The determinant is a function which takes as an input a square matrix and outputs a real or complex number called the determinant of the input matrix. The denominator in the fraction appearing in Eq. (10.17) is the determinant of a matrix . For the inverse of a matrix to exist, we require that the determinant is nonzero. The notation for the determinant is
With a matrix
we can use the shortcut
For instance,
For determinants, we make use of each entry in the first row and multiply by the determinant that is not in the entry's column or row. This is called the expansion of by the first row of . More specifically,
Each term in the matrix comes with a corresponding sign given as follows,
obtained from the formula . We may also choose to expand by the first column of instead. In that case we have,
Example 10.3 Calculate the determinant of
by expanding along the first row and the first column.
Solution Expanding along the first row, we have
Expanding along the first column, we have
We have already used the determinant in computing the cross product (see Chapter 9, Section 9.4) as well as in the scalar triple product. Recall that we used the latter in calculating the volume of a parallelepiped and so the determinant,
can be understood as calculating a volume.
Cofactors of a matrix
Minors and cofactors
Given a matrix , the minors are the determinants formed by removing the given row and column of the matrix. If is a square matrix then the minor of the entry in the row and solumn is the determinant of the submatrix formed by deleting the row and column. This number is often denoted by . Minors are used to calculate cofactors which are in turn used to compute determinants and inverses. The cofactors of a matrix are denoted by
Example 10.4 For the matrix
calculate the cofactor .
Solution The sign corresponding to row 3 , column 2 is negative since . The minor is given by the determinant of the submatrix left after deleting row 3 , column 2 as shown below
The cofactor is
expanding along the first row gives
Consider the determinant of as the expansion along the first row expressed in terms of the cofactors,
We may expand over any row or column and get a similar expression in terms of cofactors. We observe that
To understand the case consider a matrix and say, and in Eq. (10.23).
For in Eq. (10.23), the entries of the first row of i.e. are used while the cofactors are obtained with the second row always deleted. Since the second row is always deleted and none of the entries are used in Eq. (10.23) then, it follows, that the second row can simply be replaced with any row; note that this does not affect the calculation of Eq. (10.23) when .
Now suppose we replace the second row with a row that is equal to the first one such that the matrix is made up of two rows that are the same and a third row that is different. Let us go back to Eq. (10.22) which gives the relationship between the determinant and the triple scalar product. The vectors , and represent the rows of the matrix. If any of those two are the same, the determinant is zero; if and are the same, the angle between them is zero and therefore the cross product is zero [see Eq. (9.22)]. If and or and are equal, then is perpendicular to a plane that contains both and (and, by extension, ) and therefore the determinant is zero since the dot product of two perpendicular vectors is zero. The same argument can be made for the general case where .
Let us see this with an example. Consider the matrix
For in Eq. (10.23), we are considering the expression,
The cofactors in the second row are associated with the signs,,-+- refer to Eq. (10.21)]. Equation (10.24) gives,
Since the entries in the second row have not been used, we realise that this result is the same as calculating the determinant of
is trivially zero since two of the three rows in are the same.
Cramer's rule
The adjugate matrix and Cramer's rule
The adjugate matrix denoted by is the transpose of the matrix formed by the cofactors of , i.e.
The product has its entries equal to
from Eq. (10.23) we know this is equal to when and equal to 0 when . Therefore
This leads us to Cramer's rule which states
this follows from Eq. (10.14).
Example 10.5 Consider a matrix,
determine its inverse using Cramer's rule.
Solution We determine the inverse using Eq. (10.26). The cofactors are associated with the following signs
The matrix of cofactors is
which gives the adjugate matrix as
From Eq. (10.26), the inverse of is
as before.
determinants
So far we have calculated determinants of and matrices. The determinant formula generalises to matrices as follows
where are the minors described above. We find these determinants by induction on the dimension of the matrix. We carry out an example on a matrix next.
Example 10.6 Compute the determinant of the following matrix,
Solution We start by calculating the determinant by expansion along the first row,
Next, for each of the four determinants above, we obtain 3 determinants formed by the submatrices left when deleting the row and column of each entry in the first row. We carry these out one by one.
The determinant of is calculated as -72 .
Exercises
- Calculate the following determinants: (a) ; (b) .
- Calculate the following determinants: (a) (b) .