Examples and questions with their solutions on how to find the determinant of a square matrix using the row echelon form are presented. The main idea is to row reduce the given matrix to triangular form then calculate its determinant. The determinant of the given matrix is calculated from the determinant of the triangular one taking into account the properties listed below.
Solution to Example 1
Let D be the determinant of the given matrix.
step 1: add row(1) to row(2) - see property (1) above - the determinant does not change D
step 2: subtract 2 times row(1) from row(3) - see property (1) above - the determinant does not change D
step 3: subtract 2 times row(2) from row(3) - see property (1) above - the determinant does not change D
Now that the matrix is in triangular form, the determinant of the given matrix is calculated as the product of the elements in the main diagonal (upper left to lower right).
Determinant of the triangular matrix = (2)(4)(-17) = - 136 = D = Det(A)
Example 2
\( \) \( \) \( \) \( \)
Combine rows and use the above properties to rewrite the 5 × 5 matrix given below in triangular form and calculate its determinant.
\[ A = \begin{bmatrix}
-1&0&-1&3&6\\
1&1&-1&0&4\\
1&-3&0&-2&2\\
-1&2&2&1&-3\\
0&-1&2&0&2
\end{bmatrix} \]
Solution to Example 2
Let D be the determinant of matrix A.
Step 1: we add rows to other rows as shown below and according to property (1) the determinant does not change D.
\[ \color{red}{\begin{matrix}
\\
R_2 + R_1 \\
R_3 + R_1\\
R_4 + R_2\\
\\
\end{matrix} }
\begin{bmatrix}
-1&0&-1&3&6\\
0&1&-2&3&10\\
0&-3&-1&1&8\\
0&3&1&1&1\\
0&-1&2&0&2
\end{bmatrix} \]
Step 2: we add multiples of rows to other rows as shown below and according to property (1) the determinant does not change D.
\[ \color{red}{\begin{matrix}
\\
\\
R_3 + 3 \times R_2\\
R_4- 3 \times R_2\\
R_5 + R_2
\end{matrix} }
\begin{bmatrix}
-1&0&-1&3&6\\
0&1&-2&3&10\\
0&0&-7&10&38\\
0&0&7&-8&-29\\
0&0&0&3&12
\end{bmatrix} \]
Step 3: we add a row to another row as shown below and according to property (1) the determinant does not change D.
\[ \color{red}{\begin{matrix}
\\
\\
\\
R_4+R_3\\
\\
\end{matrix} }
\begin{bmatrix}
-1&0&-1&3&6\\
0&1&-2&3&10\\
0&0&-7&10&38\\
0&0&0&2&9\\
0&0&0&3&12
\end{bmatrix} \]
Step 4: we add a multiple of a row to another row as shown below and according to property (1) the determinant does not change D.
\[ \color{red}{\begin{matrix}
\\
\\
\\
\\
R_5 - \dfrac{3}{2} R_4
\end{matrix} }
\begin{bmatrix}
-1&0&-1&3&6\\
0&1&-2&3&10\\
0&0&-7&10&38\\
0&0&0&2&9\\
0&0&0&0&-\dfrac{3}{2}
\end{bmatrix} \]
The matrix is now in triangular for and its determinant is given by the product of the entries in the main diagonal
Determinant of the triangular matrix = (-1)(1)(-7)(2)(-3/2) = - 21 = D = Det(A)
Note: Compare this method of calculating the determinant of a square matrix with the method of cofactors in determinant of a square matrix. Which method is more efficient?
Solutions to the Above Questions
Part 1
Let D be the determinant of the given matrix A.
step 1: Exchange row 4 and 5; according to property (2) the determinant change sign to: - D.
\[ \begin{bmatrix}
1&-1&-3&0&1\\
-1&0&0&1&5\\
1&-1&1&4&5\\
1&0&1&2&2 \\
0&0&1&0&-1
\end{bmatrix} \]
step 2: add multiples of rows to other rows; the determinant does not change: - D.
\[ \color{red}{\begin{matrix}
\\
R_2+R_1 \\
R_3-R_1 \\
R_4-R_1\\
\\
\end{matrix} }
\begin{bmatrix}
1&-1&-3&0&1\\
0&-1&-3&1&6\\
0&0&4&4&4\\
0&1&4&2&1\\
0&0&1&0&-1
\end{bmatrix} \]
step 3: add a multiple of a row to another row; the determinant does not change: - D.
\[ \color{red}{\begin{matrix}
\\
\\
\\
R_4+R_2\\
\\
\end{matrix} }
\begin{bmatrix}
1&-1&-3&0&1\\
0&-1&-3&1&6\\
0&0&4&4&4\\
0&0&1&3&7\\
0&0&1&0&-1
\end{bmatrix} \]
step 4: add multiples of rows to other rows; the determinant does not change: - D.
\[ \color{red}{\begin{matrix}
\\
\\
\\
R_4-(1/4)R_3\\
R_5 - (1/4)R_3
\end{matrix}}
\begin{bmatrix}
1&-1&-3&0&1\\
0&-1&-3&1&6\\
0&0&4&4&4\\
0&0&0&2&6\\
0&0&0&-1&-2
\end{bmatrix} \]
step 5: add a multiple of a row to another row; the determinant does not change: - D.
\[ \color{red} {\begin{matrix}
\\
\\
\\
\\
R5 + (1/2)R4
\end{matrix} }
\begin{bmatrix}
1&-1&-3&0&1\\
0&-1&-3&1&6\\
0&0&4&4&4\\
0&0&0&2&6\\
0&0&0&0&1
\end{bmatrix} \]
The matrix is now in triangular form and its determinant is given by the product of the entries in the main diagonal.
Determinant of the triangular matrix = (1)(-1)(4)(2)(1) = - 8 = - D
The determinant D of the given matrix is D = 8.
Part 2
a) row (1) is multiplied by 2 and row (3) by - 3, hence according to property (3) above, the determinant is 2 (-3) D = - 6 D.
b) rows (1) and (2) are interchanged and row (3) multiplied by 7, hence according to properties (2) and (3),
the determinant is (-1) 7 D = - 7 D.