A.6 Determinant
For square matrices we define a useful quantity called the determinant. Define the determinant of a matrix as the value of its only entry
For a matrix, define Before defining the determinant for larger matrices, we note the meaning of the determinant. An matrix gives a mapping of the -dimensional euclidean space to itself. So a matrix is a mapping of the plane to itself. The determinant of is the factor by which the area of objects changes. If we take the unit square (square of side 1) in the plane, then takes the square to a parallelogram of area . The sign of denotes a change of orientation (negative if the axes get flipped). For example, let Then . Let us see where sends the unit square—the square with vertices , , , and . The point gets sent to . The image of the square is another square with vertices , , , and . The image square has a side of length , and it is therefore of area . See Figure .
In general, the image of a square is going to be a parallelogram. In high school geometry, you may have seen a formula for computing the area of a with vertices , , and . The area is
The vertical lines above mean absolute value. The matrix carries the unit square to the given parallelogram.
Explore in 3D (opens in a new tab)There are a number of ways to define the determinant for an matrix. Let us use the so-called cofactor expansion. We define as the matrix with the row and the column deleted. For example, if
We now define the determinant recursively or in other words For a matrix, we get . For example, It turns out that we did not have to necessarily use the first row. That is for any , It is sometimes useful to use a row other than the first. In the following example it is more convenient to expand along the second row. Notice that for the second row we are starting with a negative sign. Let us check if it is really the same as expanding along the first row, In computing the determinant, we alternately add and subtract the determinants of the submatrices multiplied by for a fixed and all . The numbers are called cofactors of the matrix. And that is why this method of computing the determinant is called the cofactor expansion.Similarly we do not need to expand along a row, we can expand along a column. For any ,
A related fact is that A matrix is upper triangular if all elements below the main diagonal are . For example, is upper triangular. Similarly a lower triangular matrix is one where everything above the diagonal is zero. For example, The determinant for triangular matrices is very simple to compute. Consider the lower triangular matrix. If we expand along the first row, we find that the determinant is 1 times the determinant of the lower triangular matrix . So the deteriminant is just the product of the diagonal entries: Similarly for upper triangular matrices In general, if is triangular, then If is diagonal, then it is also triangular (upper and lower), so same formula applies. For example, In particular, the identity matrix is diagonal, and the diagonal entries are all 1. Thus, The determinant is telling you how geometric objects scale. If doubles the sizes of geometric objects and triples them, then (which applies to an object and then it applies ) should make size go up by a factor of . This is true in general:This property is one of the most useful, and it is employed often to actually compute determinants. A particularly interesting consequence is to note what it means for the existence of inverses. Take and to be inverses, that is . Then
Neither nor can be zero. This fact is an extremely useful property of the determinant, and one which is used often in this book:In fact, says that
So we know what the determinant of is without computing .Let us return to the formula for the inverse of a matrix:
Notice the determinant of the matrix in the denominator of the fraction. The formula only works if the determinant is nonzero, otherwise we are dividing by zero.A common notation for the determinant is a pair of vertical lines:
Personally, I find this notation confusing as vertical lines usually mean a positive quantity, while determinants can be negative. Also think about how to write the absolute value of a determinant. This notation is not used in this book.Adapted from Differential Equations for Engineers by Jiří Lebl (Oklahoma State University), hosted on LibreTexts (math.libretexts.org) and licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.