1.5. Determinants#
A determinant is a scalar value that is calculated using the elements of a square matrix (non-square matrices do not have a determinant). Determinants play a very important role in linear algebra, one of their uses is they enable us to determine if a system of equations has a unique solution. Consider the system of two linear equations
To solve for \(x\) we could multiply the second equation by \(\dfrac{b}{d}\) and subtract from first equation and rearrange to make \(x\) the subject
To solve for \(x\) we could look to eliminate \(y\) by multiplying the second equation by \(\dfrac{b}{d}\) to give
and subtract this from the first equation
We can also solve for \(y\) by multiplying the first equation by \(\dfrac{c}{a}\) to give
and subtract this from the second equation
The denominators in the solutions to \(x\) and \(y\) are both \(a d - b c\) so if this value is zero then the system of equations does not have a solution. If we write the system using matrices (see the section on systems of linear equations for more detail on this), i.e.,
then the expression \(ad - bc\) is known as the determinant of the \(2 \times 2\) matrix containing the coefficients of \(x\) and \(y\).
The determinant of a square matrix \(A\) is denoted by \(\det(A)\) or \(|A|\) and is a scalar value that can be computed from the values of its elements.
1.5.1. Calculating the determinant of a \(2 \times 2\) matrix#
\(2 \times 2\) matrix)
(Determinant of aThe determinant of the \(2 \times 2\) matrix \(\begin{pmatrix}a & b \\ c & d \end{pmatrix}\) is
i.e., the product of the elements on the main diagonal minus the product of the other two elements. Note that the determinant of the matrix \(A\) is denoted by either \(\det(A)\) or \(|A|\).
Calculate the following determinants
(i) \(\begin{vmatrix} 5 & 2 \\ 3 & 4 \end{vmatrix}\)
Solution
(ii) \(\det \begin{pmatrix} a & b \\ ka & kb \end{pmatrix}\)
Solution
(iii) \(\begin{vmatrix} 2-\lambda & 3 \\ 5 & 6 - \lambda \end{vmatrix}\)
Solution
1.5.2. Calculating the determinant of an \(n \times n\) matrix#
To compute the determinant of a matrix larger than \(2\times 2\) we need to split the matrix up into multiple \(2\times 2\) matrices so we can use equation (1.8). This is done in a specific way explained below which using minors and cofactors.
(Minor)
The minor of an element of an \(n \times n\) square matrix is denoted by \(M_{ij}\) and is the determinant of the \((n-1) \times (n-1)\) square matrix that is formed by removing row \(i\) and column \(j\) from \(A\).
For example, given the matrix \(A\)
then the minor \(M_{21}\) is the determinant of the matrix \(A\) with row 2 and column 1 removed
Given the matrix
calculate:
(i) \(M_{11}\)
Solution
(ii) \(M_{12}\)
Solution
(iii) \(M_{13}\)
Solution
(Cofactor)
The cofactor of an element of a square matrix is denoted by \(C_{ij}\) and is defined by
The \((-1)^{i+j}\) term in equation (1.9) is positive when \(i + j\) is even and negative when \(i + j\) is odd which results in the following pattern of signs
\(n \times n\) matrix)
(Determinant of anThe determinant of an \(n\times n\) matrix \(A\) is defined by
for some fixed value in the range \(1 \leq k \leq n\) which represents a single row or column of \(A\).
Equation (1.10) allows us to express the determinant of an \(n \times n\) matrix in terms of determinants of \((n-1) \times (n-1)\) matrices. We can then apply the formula again to the sub-matrices. Continuing in this fashion we will eventually just be calculating \(2\times 2\) matrices, which we know how to do from equation (1.8).
For example, to calculate the determinant of the matrix
we can expand across row 1 using \(k = 1\) in the first summation in equation (1.10)
We could also had chosen to expand along column 2 using \(k = 2\) in equation (1.10) and the second summation in equation (1.10).
Which is the same as the result when expanded along row 1. So it does not matter which row or column we expand along to compute the determinant, we will always get the same answer. It is usually preferable to expand along the row or columns with the most zero elements or smallest integer values to simplify the calculations.
Calculate the determinant of the matrix
by expanding along:
(i) row 1
Solution
(ii) column 3
Solution
For larger matrices we have to apply equation (1.10) recursively until we get to \(2 \times 2\) determinants where we can use (1.8).
Calculate the determinant of the \(4 \times 4\) matrix
Solution
Here column 2 has two zero elements so it would be more efficient to expand along this column
(Properties of determinants)
Determinants have the following properties:
\(\det(AB) = \det(A)\det(B)\)
\(\det(A) = \det(A^\mathsf{T})\)
If a matrix has a row or column with all zero elements then its determinant is zero
Interchanging any two rows of a matrix changes the sign of the determinant
If all elements in a row are multiplied by a scalar \(k\) then the determinant is also multiplied by \(k\)
If one row of a matrix is a multiple of another row then the matrix has a determinant of zero
The value of a determinant is unchanged by adding a multiple of one row to another row