After understanding the basic concepts of determinant, we need to know how to calculate it practically. There are several methods that can be used depending on the form of the matrix we encounter.
For small matrices, we can use direct formulas. However, for larger matrices, we need more efficient strategies.
Before discussing the cofactor expansion method, we need to understand the concept of submatrix. For matrix A∈Rn×n and indices i,j∈{1,2,…,n}, submatrix Aij is a matrix of size (n−1)×(n−1) obtained by removing row i and column j from matrix A.
Let's look at an example for a 3×3 matrix. Suppose we have:
A=a11a21a31a12a22a32a13a23a33
To get submatrix A12, we remove row 1 and column 2:
The most common method for calculating determinants is cofactor expansion. For matrix A∈Rn×n with n>1, the determinant can be calculated using the formula:
detA=i=1∑n(−1)i+j⋅aij⋅detAij
for a fixed and freely chosen column j.
In this formula, the term (−1)i+j⋅detAij is called the cofactor of element aij. The sign (−1)i+j provides a checkerboard pattern to determine positive or negative signs.
Elementary matrices are matrices obtained from the identity matrix with one elementary row operation. The determinants of elementary matrices have values that are easy to calculate:
Scalar matrixSi(λ) that multiplies row i by λ:
detSi(λ)=λ
Permutation matrixQij(λ) that swaps row i and j:
detQij(λ)=1
Transvection matrixPij that adds a multiple of row j to row i:
detPij=−1
Note that permutation matrices have determinant 1, not −1 as often mistaken. The negative sign appears when we perform row swap operations on other matrices.
One of the most efficient methods for calculating determinants is using Gaussian elimination. The process is to transform the matrix into upper triangular form, then multiply the diagonal elements.
When matrix A is transformed into upper triangular form R through Gaussian elimination, we need to count how many row swaps are performed. If there are p row swaps, then: