Determinant Calculation Methods
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.
Basic Case of 1×1 Matrix
For matrices of size , the determinant is very simple. If with , then:
This is the most basic case that becomes the foundation for calculating determinants of larger matrices.
Submatrix Concept
Before discussing the cofactor expansion method, we need to understand the concept of submatrix. For matrix and indices , submatrix is a matrix of size obtained by removing row and column from matrix .
Let's look at an example for a matrix. Suppose we have:
To get submatrix , we remove row 1 and column 2:
For submatrix , we remove row 2 and column 3:
This process applies to all combinations of rows and columns that are removed.
Cofactor Expansion
The most common method for calculating determinants is cofactor expansion. For matrix with , the determinant can be calculated using the formula:
for a fixed and freely chosen column .
In this formula, the term is called the cofactor of element . The sign provides a checkerboard pattern to determine positive or negative signs.
Example of 3×3 Cofactor Expansion
Let's look at an example of cofactor expansion for a 3×3 matrix:
We choose the first row for expansion:
We can perform expansion based on any row or column. Usually we choose a row or column that has many zeros to simplify the calculation.
Triangular and Diagonal Matrices
For some special types of matrices, determinant calculation becomes very simple:
Upper Triangular Matrix
For upper triangular matrix :
Its determinant is:
Lower Triangular Matrix
For lower triangular matrix :
Its determinant is:
Diagonal Matrix
For diagonal matrix :
Its determinant is:
For all three types of matrices, the determinant equals the product of all main diagonal elements.
Elementary Matrices
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 matrix that multiplies row i by :
-
Permutation matrix that swaps row i and j:
-
Transvection matrix that adds a multiple of row j to row i:
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.
Gaussian Elimination for Determinant Calculation
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 is transformed into upper triangular form through Gaussian elimination, we need to count how many row swaps are performed. If there are row swaps, then:
Since is an upper triangular matrix:
Therefore:
Method Efficiency
Gaussian elimination has time complexity , which is much more efficient compared to cofactor expansion which has complexity .
For large unstructured matrices, Gaussian elimination is the most practical and reliable method.
Complete Calculation Example
Let's look at an example of determinant calculation using Gaussian elimination:
Step 1: Swap rows 1 and 3 to get a non-zero pivot:
Step 2: Eliminate the first column by subtracting 2 times row 1 from row 2:
Step 3: Eliminate the second column by subtracting 1.5 times row 2 from row 3:
Since there is one row swap ():