Algorithm: Calculating the Determinant of a Matrix
To calculate the determinant of a square matrix :
Go through the entries in the first row of one by one. Multiply the -th entry with the determinant of its cofactor matrix and alternate the algebraic sign each time - if is even, place a minus sign before the result. Calculating the determinant of the cofactor matrix involves the same process recursively, until a or -matrix is obtained, at which point one can use the theorems for those.
The sum of all results from Step 1 is the determinant of .
Tips
- Search for a row or column with many rows and exchange it with the first one.
- If the first column contains many zeros, calculate the determinant of ‘s transpose, since they are the same.
EXAMPLE
According to the algorithm
We must now calculate the determinants of the -matrices.
- For the first matrix:
- For the second matrix:
- For the third matrix:
- For the fourth matrix:
We see that all determinants are and so
Theorem: Determinant of a -Matrix
Theorem: Determinant of a -Matrix
The determinant of every -matrix is given by
PROOF
By definition
The -determinants can be calculated with the previous theorem.