7. The Determinant and Inverse of Matrix
2026-02-25
The Determinant of a Square Matrix (矩阵的行列式)
The determinant is defined only for square matrices. For a n×n matrix A, the determinant of A, denoted as det(A), is a scalar value.
For matrix
A=a1,1a2,1⋮an,1a1,2a2,2⋮an,2⋯⋯⋱⋯a1,na2,n⋮an,n
the determinant of A can be denoted as
det(A)=a1,1a2,1⋮an,1a1,2a2,2⋮an,2⋯⋯⋱⋯a1,na2,n⋮an,n
Computation of the Determinant
For a 2×2 matrix A=[acbd], the determinant is computed as:
det(A)=ad−bc
For a 3×3 matrix A=adgbehcfi, the determinant is computed as:
det(A)=a(ei−fh)−b(di−fg)+c(dh−eg)
that is,
det(A)=aehfi−bdgfi+cdgeh
For any square matrix A, let Ai,j be the (n−1)×(n−1) matrix obtained by deleting the i-th row and j-th column of A. For example, for the above 3×3 matrix A, we have A1,1=[ehfi], A1,2=[dgfi], and A1,3=[dgeh].
Then we can compute the determinant of A by expanding along the first row as follows:
det(A)=a1,1×det(A1,1)−a1,2×det(A1,2)+⋯+(−1)n+1a1,n×det(A1,n)
Specifically, if A is a triangular matrix, then the determinant of A is the product of the entries on the main diagonal of A. That is,
deta1,10⋮0a1,2a2,2⋮0⋯⋯⋱⋯a1,na2,n⋮an,n=a1,1a2,2⋯an,n
Rules of the Determinant
- If A is a square matrix and B is obtained from A by interchanging two rows, then det(B)=−det(A).
- If A is a square matrix and B is obtained from A by multiplying a row of A by a nonzero scalar c, then det(B)=c⋅det(A).
- If A is a square matrix and B is obtained from A by adding a scalar multiple of one row of A to another row, then det(B)=det(A).
- det(kA)=kn⋅det(A), where k is a scalar.
- det(AB)=det(A)⋅det(B), and det(Ak)=(det(A))k for any positive integer k.
- det(AT)=det(A)
- det(A−1)=det(A)1 if A is invertible.
- det(A+B) is NOT equal to det(A)+det(B) in general.
Geometric Interpretation of the Determinant
Area and Volume Scaling Factor
The determinant of a square matrix can be interpreted as the scaling factor of the linear transformation represented by the matrix. Specifically, if A is an n×n matrix, then the absolute value of det(A) represents how much the volume of a unit cube in Rn is scaled when transformed by A. If det(A)=0, it means that the transformation collapses the space into a lower dimension, and thus the volume is reduced to zero.
Computing the Area or Volume of a Parallelogram
For a 2×2 matrix A, ∣det(A)∣ gives the area of the parallelogram formed by the column vectors of A.
For a 3×3 matrix A, ∣det(A)∣ gives the volume of the parallelepiped formed by the column vectors of A.
The column vectors of a matrix can be thought of as the edges of a parallelogram (in 2D) or a parallelepiped (in 3D) that connects the origin to the adjacent vertices (相邻顶点). Note that the origin is also one of the vertices of the parallelogram or parallelepiped.
For example, for the 3×3 matrix A=100010111, the column vectors are 100, 010, and 111, and the parallelepiped formed by these three vectors looks like this:

The Inverse of a Square Matrix (矩阵的逆)
Definition
For a n×n square matrix A, if there exists a matrix B such that AB=BA=In, then we call B the inverse of A, denoted as A−1, and we say that A is invertible.
A matrix is invertible if and only if its determinant is nonzero.
A matrix that is NOT invertible is called a singular matrix, and a matrix that is invertible is called a nonsingular matrix.
Info
For a 2×2 matrix A=[acbd], if det(A)=ad−bc=0, then A is invertible and
A−1=ad−bc1[d−c−ba]
The inverse of a matrix has the following properties:
- If A is invertible, then A−1 is also invertible and (A−1)−1=A.
- For invertible matrices, (AB)−1=B−1A−1, (ABC)−1=C−1B−1A−1, etc.
- If A is invertible, then AT is also invertible and (AT)−1=(A−1)T.
Finding the Inverse of a Matrix
An n×n matrix A is invertible if and only if A is row equivalent to the identity matrix In. And in this case, we can find A−1 by performing the same row operations on In.
As a result, we can find A−1 by row reducing the augmented matrix [AIn] to the form [InA−1].