Matrix Determinant Calculator




The determinant of a square matrix A = ( a i j ) of dimension n is a real number which depends linearly on each column vector of the matrix. We denote by det ( A ) or | A | the determinant of the square matrix A.

determinant format

Properties of determinants

  • The determinant is equal to 0 if,
    • Two lines in the matrix are equal.
    • The matrix has at least one row or column equal to zero.
    • The matrix is ​​unique.
  • Subtracting row i from row j n times does not change the value of the determinant.
  • If two rows or columns are swapped, the sign of the determinant changes from positive to negative or from negative to positive.
  • The determinant of the identity matrix is equal to 1, det ( I n ) = 1
  • The determinants of A and its transpose are equal, det ( A T ) = det ( A )
  • det ( A - 1 ) = 1 det ( A ) = [ det ( A ) ] - 1
  • If A and B have matrices of the same dimension, det ( A B ) = det ( A ) × det ( B )
  • det ( c A ) = c n x det ( A )
  • det ( A ) = a n a 22 a n n = i = 1 n a i i , if the matrix A is triangular a i j = 0 et i j , the determinant is equal to the product of the diagonal of the matrix.

Determinant calculation methods

Cofactor expansion (Laplace expansion)

Cofactor expansion is used for small matrices because it becomes inefficient for large matrices compared to the matrix decomposition methods.

The formula for calculating the expansion of Place is given by:

cofactor expansion formula

Where k is a fixed choice of i { 1 , 2 , , n } and det ( A k j ) is the minor of element a i j .

Example

cofactor expansion

Leibniz formula

leibeniz formula
Where S n { 1 , 2 , , n } is a set of permutations from 1 to n, and sgn is a function that defines the sign int the set S n , which returns +1 for even permutations and -1 for odd permutations.
leibeniz condition

Example

leibeniz determinant

Gauss Elimination

Gauss elimination is also used to find the determinant by transforming the matrix into a reduced row echelon form by swapping rows or columns, add to row and multiply of another row in order to show a maximum of zeros.

For each pivot we multiply by -1.

gauss elimination determinant
Where p is the number of the permutations and A [ k , j ] is the pivot calculated in step j.

Rule of Sarrus

The Sarrus Rule is used for computing only 3x3 matrix determinant. The method consists in adding the first two columns after the first three columns then calculating the product of the coefficients of each diagonal according to the following scheme:

Rule of Sarrus

Bareiss algorithm(Montante's method)

The Bareiss algorithm calculates the echelon form of the matrix with integer values. It looks a bit like the Gaussian elimination algorithm and in terms of the number of operations performed. Divisions made have no remainder.

The determinant is determined after several reductions of the matrix to the last row by dividing on a pivot of the diagonal with the formula:

Bareiss algorithm