Section 1.1 Determinants and Applications of Determinants
Objectives
- Define determinants and learn how to calculate a determinant.
- Identify the properties of determinants that help to find the value of the determinant with fewer calculations.
- Identify the minors of a matrix.
- Use minors to find the cofactors of a matrix.
- Use the cofactor matrix to find the adjoint of a matrix.
- Use the cofactor matrix to find the inverse of a matrix.
- Use Cramer’s Rule formula to find the solution of a linear system of equations.
\(\, \)
\(\Large{\textbf{Section Content}} \)
\(\, \)
Subsection 1.1.1 Determinants and their properties
Determinant is a very useful mathematical concept. In linear algebra we use determinants to
- Determine if a matrix is singular, i.e., it has no inverse.
- Determine if a system has no solution.
- Solve systems of equations using Cramer’s Rule.
- Find the inverse of a matrix.
Definition 1.1.1. First order determinant.
The determinant of a scalar is called a first order determinant and it is equal to the scalar:
Definition 1.1.2. Second order determinant.
A second order determinant is the determinant of a \(2 \times 2 \)matrix, and it is defined as
Checkpoint 1.1.3. Find second order determinants.
Find the determinant of the given matrix.
\(\detA{\bA{A}}\) =
Checkpoint 1.1.4. Use determinants to find \(2\times 2\) inverses.
The inverse of a \(2 \times 2\) matrix
can be found as
Find the inverse of the given matrix.
\(\lceil\) | \(\rceil\) | |||
\(\boldsymbol{A}^{-1}=\) | \(\lfloor\) | \(\rfloor\) |
\(-0.333333\)
\(-0.333333\)
\(0.333333\)
\(0.833333\)
Subsubsection 1.1.1.1 Properties of determinants
- A determinant is a number associated with a square matrix \(\boldsymbol{A} \in \boldsymbol{F}^{n\times n}\text{.}\)
- Given a matrix \(\boldsymbol{A}\text{,}\) \(\text{det}(\boldsymbol{A})\) is a unique number.
- Determinants are defined only for square matrices.
- Multiplicativity\begin{equation*} \detA{A\,B} = \detA{A}\, \detA{B} \end{equation*}
- Invariance under transpose\begin{equation*} \text{det}(\boldsymbol{A}) = \text{det}(\boldsymbol{A^{\mathsf{T}}}) \end{equation*}
-
Invariance under row operations.
If \(\boldsymbol{A} \in \boldsymbol{F}^{n\times n} \text{,}\) for \(n >1\) and \(\boldsymbol{B}\) is the matrix obtained from \(\boldsymbol{A}\) by summing up the multiple of any row/column to another row/column, then
\begin{equation*} \detA{B} = \detA{A} \end{equation*}Example 1.1.5. Invariance under row operation.
\begin{equation*} \begin{array}{ccccc} \boldsymbol{A} = \left[ \begin{array}{cc} 3 \amp 1\\ 0 \amp -2 \end{array} \right], \amp \hspace{0.5cm}\amp \boldsymbol{B} = \left[ \begin{array}{cc} 3\amp1 \\ 9 \amp 1\end{array} \right], \amp \hspace{0.5cm}\amp \boldsymbol{C} = \left[ \begin{array}{cc} 3 \amp 4\\ 0 \amp -2 \end{array} \right]. \\ \amp\amp\\ \text{det}(\boldsymbol{A}) = 3\cdot (-2) - 1 \cdot 0 = -6, \amp\hspace{0.5cm}\amp \text{det}(\boldsymbol{B}) = 3\cdot 1 - 1 \cdot 9 = -6, \amp \hspace{0.5cm}\amp \text{det}(\boldsymbol{C}) = 3\cdot (-2) - 4 \cdot 0 = -6. \end{array} \end{equation*} -
There is a change of sign under row/column interchange.
If \(\boldsymbol{A} \in \boldsymbol{F}^{n\times n} \text{,}\) for \(n >1\) and \(\boldsymbol{B}\) is the matrix obtained from \(\boldsymbol{A}\) by interchanging two rows or two columns, then
\begin{equation*} \detA{B} = - \detA{A} \end{equation*}Example 1.1.6. Determinant after row exchange.
\begin{equation*} \begin{array}{ccccc} \boldsymbol{A} = \left[ \begin{array}{cc} 3 \amp 1\\ 0 \amp -2 \end{array} \right], \amp \hspace{0.5cm}\amp \boldsymbol{B} = \left[ \begin{array}{cc} 0 \amp -2 \\3 \amp 1\end{array} \right], \amp \hspace{0.5cm}\amp \boldsymbol{C} = \left[ \begin{array}{cc} 1 \amp 3 \\-2 \amp 0\end{array} \right]. \\ \amp\amp\\ \text{det}(\boldsymbol{A}) = 3\cdot (-2) - 1 \cdot 0 = -6, \amp\hspace{0.5cm}\amp \text{det}(\boldsymbol{B}) = 0\cdot 1 - (-2) \cdot 3 = 6, \amp \hspace{0.5cm}\amp \text{det}(\boldsymbol{C}) = 1\cdot 0 - 3 \cdot (-2) = 6. \end{array} \end{equation*} - Determinant of an identity matrix\begin{equation*} \detA{I} = 1 \end{equation*}
- Determinant of a inverse matrix\begin{equation*} \detA{A^{-1}}= \frac{1}{\detA{A}} \end{equation*}
Example 1.1.7. Determinant of an inverse.
\begin{equation*} \begin{array}{ccc} \boldsymbol{A} = \left[ \begin{array}{cc} 1 \amp -2 \\ -1 \amp 4 \end{array}\right] \amp\hspace{0.5cm} \amp \boldsymbol{B} = \left[ \begin{array}{cc} 2 \amp 1 \\ \frac{1}{2} \amp \frac{1}{2} \end{array}\right]\\ \amp\amp\\ \detA{A} = 2 \amp\hspace{0.5cm} \amp \detA{B} = \frac{1}{2} \end{array} \end{equation*}\begin{equation*} \begin{array}{ccc} \boldsymbol{A} \boldsymbol{B} \amp=\amp \left[ \begin{array}{cc} 1 \amp -2 \\ -1 \amp 4 \end{array}\right] \left[ \begin{array}{cc} 2 \amp 1 \\ \frac{1}{2} \amp \frac{1}{2} \end{array}\right] = \left[ \begin{array}{cc} 1 \amp 0\\ 0 \amp 1 \end{array}\right]\\ \amp\amp\\ \boldsymbol{B} \boldsymbol{A} \amp=\amp \left[ \begin{array}{cc} 2 \amp 1 \\ \frac{1}{2} \amp \frac{1}{2} \end{array}\right] \left[ \begin{array}{cc} 1 \amp -2 \\ -1 \amp 4 \end{array}\right]= \left[ \begin{array}{cc} 1 \amp 0\\ 0 \amp 1 \end{array}\right] \end{array} \end{equation*}
Subsection 1.1.2 Minors and cofactors
Subsubsection 1.1.2.1 Minors and matrix of minors
Definition 1.1.8. Minors of a determinant.
The minor of an entry in a \(n \times n\) determinant is the \((n-1) \times (n-1)\) determinant found by eliminating the row and column in the \(n \times n\) determinant that contains the entry.\\
Example 1.1.9. Finding minors.
Consider the \(3 \times 3\) matrix,
we denote its determinant as
So that,
Definition 1.1.10. Matrix of minors.
Given a square matrix \(\bA{A}_{n\times n}\text{,}\) the matrix of minors is the square matrix \(\bA{M}_{n \times n}\) where each element, \(m_{ij},\) corresponds to the minor of \(a_{ij}\text{.}\)
Example 1.1.11. Find matrix of minors.
Find the matrix of minors of the following matrix
We first find the minors of each entry:
The matrix of minors is
Subsubsection 1.1.2.2 Cofactors and cofactor matrix
Definition 1.1.12. Cofactors.
A Cofactor of a matrix element is defined as
where \(M_{ij} \) is the element's minor.
Definition 1.1.13. Cofactor matrix.
A cofactor matrix is a matrix having the cofactors as the elements of the matrix.
A simple way to find the cofactors and the cofactor matrix is to consider the corresponding minors and change the sign based on the checkerboard pattern below,
Example 1.1.14. Cofactor matrix.
Consider the matrix from the previous example and its matrix of minors,
Then the Cofactor matrix is simply,
Subsection 1.1.3 Determinants of \(n \times n\) matrices with \(n >2 \)
To find the determinant of a \(3 \times 3\) matrix, we multiply each entry of a given row or column by their corresponding cofactors.
Example 1.1.15. Determinant of a \(3 \times 3 \) matrix.
Find the determinant of \(\displaystyle \left[ \begin{array}{ccc} 2 \amp -3 \amp -1 \\ 3 \amp 2\amp 0\\ -1 \amp -1\amp -2 \end{array}\right] \)
-
We could find the determinant using the cofactors of the first row:
\begin{equation*} \begin{array}{ccc} \left| \begin{array}{ccc} 2 \amp -3 \amp -1 \\ 3 \amp 2\amp 0\\ -1 \amp -1\amp -2 \end{array}\right| \amp =\amp 2 \left| \begin{array}{cc} 2 \amp 0 \\ -1 \amp -2 \end{array}\right| - (-3) \left| \begin{array}{cc} 3 \amp 0 \\ -1 \amp -2 \end{array}\right| + (-1) \left| \begin{array}{cc} 3\amp 2 \\ -1 \amp -1 \end{array}\right|\\ \amp =\amp 2 \left(-4 -0\right) + 3 \left( -6+0\right) - 1 \left(-3 +2\right)\\ \amp = \amp -25 \end{array} \end{equation*} -
We could also use the second row and its cofactors. Note that the last entry in the row is zero, which will save us the time to calculate its minor.
\begin{equation*} \begin{array}{ccc} \left| \begin{array}{ccc} 2 \amp -3 \amp -1 \\ 3 \amp 2\amp 0\\ -1 \amp -1\amp -2 \end{array}\right| \amp =\amp - 3 \left| \begin{array}{cc} -3 \amp -1 \\ -1 \amp -2 \end{array}\right| + 2 \left| \begin{array}{cc} 2 \amp -1 \\ -1 \amp -2 \end{array}\right| + 0\\ \amp =\amp -3 \left(6 -1\right) + 2 \left( -4-1\right)\\ \amp = \amp -25 \end{array} \end{equation*} -
Alternatively, we can use a column. For example we can use the entries in column 3 and their cofactors,
\begin{equation*} \begin{array}{ccc} \left| \begin{array}{ccc} 2 \amp -3 \amp -1 \\ 3 \amp 2\amp 0\\ -1 \amp -1\amp -2 \end{array}\right| \amp =\amp - 1 \left| \begin{array}{cc} 3 \amp 2 \\ -1 \amp -1 \end{array}\right| + 0 + (-2) \left| \begin{array}{cc} 2 \amp -3 \\ 3 \amp 2 \end{array}\right|\\ \amp =\amp -1 \left(-3 +2\right) - 2 \left( 4+ 9\right)\\ \amp =\amp -25 \end{array} \end{equation*}
Checkpoint 1.1.16. Find third order determinants.
Find the determinant of the given matrix.
\(\detA{\bA{A}}\) =
\(51\)
Insight 1.1.17. Determinants larger than \(3 \times 3 \).
For \(n \times n \) matrices where \(n>3 \) the procedure consists of first using the minors to create \(3 \times 3\) determinants and then use minors again to get \(2 \times 2\) determinants.
Example 1.1.18. Determinant of a \(4 \times 4 \) matrix.
Find the determinant of \(\displaystyle \left[ \begin{array}{cccc} 1 \amp -3 \amp 0 \amp 2\\ 0 \amp 1 \amp 1 \amp 0\\ 0 \amp 4 \amp 0 \amp 3\\ 0 \amp 0 \amp 1 \amp 0 \end{array} \right]\)
We use the first column and its cofactors to reduce the problem to calculating a \(3 \times 3 \) determinant:
Next we use the last row and its cofactors and reduce the problem to calculating a \(2 \times 2 \) determinant:
Checkpoint 1.1.19. Find fourth order determinants.
Find the determinant of the given matrix.
\(\detA{\bA{A}}\) =
\(29\)
We use row 1 to reduce the problem to a \(3 \times 3\) determinant:
We use row 1 to reduce the problem to a \(2 \times 2\) determinant:
Subsection 1.1.4 Adjoint and inverse matrices
Definition 1.1.20. Adjugate matrix.
Given a square matrix \(\bA{A}\text{,}\) its adjugate matrix also known as adjoint matrix, \(\text{adj}(\bA{A}),\) is defined as the transpose of the cofactor matrix of \(\bA{A}\text{.}\)
Insight 1.1.21. Using adjoint matrix to find a matrix inverse.
- Determine the matrix of minors.
- Transform the matrix of minors into a matrix of cofactors.
- Find the adjoint of the matrix as the transpose of the cofactor matrix.
- Divide the adjoint by the determinant
Example 1.1.22. Matrix Inverse.
Find the inverse of \(\bA{A} = \left[ \begin{array}{ccc} 2 \amp -3 \amp -1\\ 3 \amp 2 \amp 0\\ -1 \amp 0 \amp -2 \end{array}\right]\)
First we check whether the matrix has an inverse by calculating its determinant,
Since the \(\detA{A} \ne 0 \) the matrix is invertible.
Next, we find the matrix of minors:
Next we find the cofactor matrix:
And the adjoint matrix:
Finally we find the inverse:
Checkpoint 1.1.23. Find matrix inverses using determinants.
Find the inverse of the given matrix.
\(\,\)
First find its determinant: \(\hspace{1cm} \detA{\bA{A}}\) =
Next, find the matrix of minors >>
\(\lceil\) | \(\rceil\) | ||||
\(\boldsymbol{M}=\) | \(\vert\) | \(\vert\) | |||
\(\lfloor\) | \(\rfloor\) |
<<
Next, find the cofactor matrix: >>
\(\lceil\) | \(\rceil\) | ||||
\(\boldsymbol{C}=\) | \(\vert\) | \(\vert\) | |||
\(\lfloor\) | \(\rfloor\) |
<<
Next, find the adjoint matrix: >>
\(\lceil\) | \(\rceil\) | ||||
\(\text{adj}(\boldsymbol{A})=\) | \(\vert\) | \(\vert\) | |||
\(\lfloor\) | \(\rfloor\) |
<<
Finally, divide the adjoint matrix by the determinant: >>
\(\lceil\) | \(\rceil\) | ||||
\(\boldsymbol{A}^{-1}=\) | \(\vert\) | \(\vert\) | |||
\(\lfloor\) | \(\rfloor\) |
<<
\(21\)
\(6\)
\(-1\)
\(8\)
\(-12\)
\(2\)
\(5\)
\(-3\)
\(-3\)
\(3\)
\(6\)
\(1\)
\(8\)
\(12\)
\(2\)
\(-5\)
\(-3\)
\(3\)
\(3\)
\(6\)
\(12\)
\(-3\)
\(1\)
\(2\)
\(3\)
\(8\)
\(-5\)
\(3\)
\(0.285714\)
\(0.571429\)
\(-0.142857\)
\(0.047619\)
\(0.0952381\)
\(0.142857\)
\(0.380952\)
\(-0.238095\)
\(0.142857\)
Subsection 1.1.5 Cramer's rule and systems of equations
Cramer's rule is used to solve systems of linear equations.
where the coefficient matrix is square, \(\bA{A} \in \mathbb{F}^{n\times n}, \) and \(\detA{\bA{A}} \ne 0\text{.}\)
If the above conditions are met, Cramer's rule states that the solution of the system is given by
where \(\bA{A}_i \) is the matrix formed by replacing the \(i\)th column of \(\bA{A}\) with the \(\bA{b}\) vector.
Example 1.1.24. Cramer's Rule.
Solve the following system of equations using Cramer's rule,
We first determine \(\bA{A} \) and \(\detA{\bA{A}}\text{,}\)
Next, we find the determinants of the \(\bA{A}_i's\text{,}\)
Finally, we find the solution as,
Checkpoint 1.1.25. Use Cramer's rule to solve a system of equations.
Solve the given system of equations using Cramer’s rule.
\(\,\)
First find the determinant of the matrix of coefficients \(\hspace{1cm} \detA{\bA{A}}\) =
Next, find the determinant of the matrix corresponding to \(x_1\)
\(\hspace{1cm} \detA{\bA{A}_1}\) =,
and use that to find \(\hspace{1cm} x_1\) =
Next, find the determinant of the matrix corresponding to \(x_2\)
\(\hspace{1cm} \detA{\bA{A}_2} =\) ,
and use that to find \(\hspace{1cm} x_2\) =
Finally, find the determinant of the matrix corresponding to \(x_3\)
\(\hspace{1cm} \detA{\bA{A}_3} =\),
and use that to find \(\hspace{1cm} x_3\) =