Algorithm: Calculating the Determinant of a Matrix

To calculate the determinant of a square matrix :

  1. 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.

  2. The sum of all results from Step 1 is the determinant of .

Tips

  1. Search for a row or column with many rows and exchange it with the first one.
  2. If the first column contains many zeros, calculate the determinant of ‘s transpose, since they are the same.

Theorem: Determinant of a -Matrix

The determinant of every -matrix is given by

Theorem: Determinant of a -Matrix

The determinant of every -matrix is given by