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
To solve for
and subtract this from the first equation
We can also solve for
and subtract this from the second equation
The denominators in the solutions to
then the expression
The determinant of a square matrix
1.5.1. Calculating the determinant of a matrix#
Definition 1.16 (Determinant of a
The determinant of the
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
Example 1.9
Calculate the following determinants
(i)
Solution
(ii)
Solution
(iii)
Solution
1.5.2. Calculating the determinant of an matrix#
To compute the determinant of a matrix larger than
Definition 1.17 (Minor)
The minor of an element of an
For example, given the matrix
then the minor
Example 1.10
Given the matrix
calculate:
(i)
Solution
(ii)
Solution
(iii)
Solution
Definition 1.18 (Cofactor)
The cofactor of an element of a square matrix is denoted by
The
Definition 1.19 (Determinant of an
The determinant of an
for some fixed value in the range
Equation (1.10) allows us to express the determinant of an
For example, to calculate the determinant of the matrix
we can expand across row 1 using
We could also had chosen to expand along column 2 using
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.
Example 1.11
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
Example 1.12
Calculate the determinant of the
Solution
Here column 2 has two zero elements so it would be more efficient to expand along this column
Theorem 1.7 (Properties of determinants)
Determinants have the following properties:
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
then the determinant is also multiplied byIf 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