Solving Linear Systems
Cramer's rule solves a linear system directly from determinants when its coefficient matrix is invertible.
It expresses each solution component as a ratio of two determinants. For large systems, Gaussian elimination requires much less computation.
Adjugate Matrix
The adjugate matrix connects the determinant to both the inverse formula and Cramer's rule.
Here adjugate means the transpose of the cofactor matrix. It is a different construction from the conjugate transpose of a complex matrix.
For matrix , the adjugate matrix is defined as:
Each entry of the adjugate matrix is given by
Here, is the submatrix formed by deleting row and column from . The indices are swapped because the cofactors occupy transposed positions in the adjugate.
The adjugate matrix contains the cofactors of in transposed positions.
Structure of the Adjugate Matrix
Write each minor determinant as . The alternating signs and transposed indices remain visible in the whole adjugate:
Each element is calculated by taking the determinant of the corresponding submatrix, then given a sign based on the checkerboard pattern .
Adjugate Matrix Identity
The adjugate satisfies the following identity with the original matrix:
In other words:
A diagonal entry of the product is a Laplace expansion along the same row, so it equals the determinant. An off-diagonal entry uses a different row. That expansion is the determinant of a matrix with two equal rows, so it is zero.
Matrix Inverse Formula
From this identity, we can derive the matrix inverse formula using the adjugate matrix.
If matrix is invertible, then:
However, calculating the matrix inverse with this formula is much less efficient than Gaussian elimination for large matrices.
Example for a Two by Two Matrix
For a matrix:
Its determinant is:
Its adjugate is:
So its inverse is:
Compute each entry of the numerator matrix:
Solving a Linear System with Determinants
Let be an invertible matrix and be the columns of . For vector , the solution of the linear equation system is given by:
Write for the matrix with column replaced by :
Cramer's formula applies for .
To calculate the -th component of solution , we replace the -th column of matrix with vector , then calculate the determinant of this modified matrix and divide it by the determinant of the original matrix .
Proving the Solution Formula
The proof of Cramer's rule uses Laplace expansion and the adjugate identity.
For :
The final equality follows from Laplace expansion along the -th column.
Solving a Three Variable System by Determinants
Solve the following system by replacing one column of at a time:
Calculate the determinant of .
The calculation gives , so the determinant is nonzero. Thus is invertible and the system has a unique solution. We can now apply Cramer's rule:
Check the three numerator determinants by expanding their first rows. Then substitute the solution into each original equation.
Solution Properties for Integer Matrices
If is invertible and , then the entries of and the solution of are rational. Before reduction, they can all be written over the common denominator . Each reduced denominator therefore divides .
This occurs because determinant calculation only involves addition, subtraction, and multiplication operations, so the determinant of an integer matrix is always an integer. In the inverse formula and Cramer's rule, the only division operation is division by .