Invertibility and Determinants
Read an inverse as a transformation that undoes an invertible square matrix and a determinant as signed volume scaling. Connect invertibility to rank, null spaces, unique solutions, and numerical stability.
An inverse undoes a square linear transformation. A determinant records its signed volume scaling and reveals whether any dimension has collapsed. These ideas describe the same structural boundary from different viewpoints.
An Inverse Reverses a Transformation
For a square matrix , an inverse is a matrix satisfying
The two products matter because matrix multiplication is not generally commutative. If sends to , then reverses that action:
For example,
The first matrix scales the coordinate axes by and ; the second uses reciprocal scales to restore the original vector.
Exercise: Undo diagonal scaling
For , what is the first diagonal entry of ?
Compute it first, then check your number.
HintMake the product equal one
The original and inverse diagonal entries must multiply to .
SolutionUse the reciprocal scale
The first coordinate is multiplied by , so the inverse must multiply it by
Their composition scales that coordinate by .
Invertibility Connects the Earlier Ideas
For a square matrix, the following statements are equivalent:
- exists;
- has rank ;
- the columns of form a basis of ;
- ;
- ;
- has exactly one solution for every ;
- .
These are not separate coincidences. Full column space gives existence for every target, while a trivial null space gives uniqueness. For a square matrix, both occur together exactly at full rank.
The matrix
is not invertible. Its second column repeats the first direction, its rank is , and lies in its null space. Once two distinct inputs produce the same output, no inverse can determine which input came first.
A Two-by-Two Inverse
For
the inverse, when it exists, is
Multiplying the two matrices verifies the formula:
The denominator is the determinant. If it is zero, division is impossible—and the matrix has already collapsed a direction.
Exercise: Find a two-by-two inverse entry
Let
What is the upper-left entry of ?
Compute it first, then check your number.
HintCompute the determinant first
Here .
SolutionApply the inverse formula
The inverse is
Its upper-left entry is .
The Determinant Is Signed Volume Scaling
For a two-dimensional matrix,
The magnitude is the factor by which scales area. In three dimensions, the magnitude gives the volume-scaling factor; the same interpretation extends to -dimensional volume.
The sign records orientation:
- preserves orientation;
- reverses orientation;
- collapses volume into a lower-dimensional set.
Thus a negative determinant does not mean negative geometric area. Its magnitude gives the area scale, while its sign records a reversal such as a reflection.
For diagonal and triangular matrices, the determinant is the product of the diagonal entries. For example,
Exercise: Detect a collapsed transformation
Compute the determinant of .
Compute it first, then check your number.
HintSubtract the diagonal products
Compute .
SolutionThe signed area scale is zero
The determinant is
A two-dimensional region is flattened into a line, so the matrix cannot be inverted.
Determinants Respect Composition
Applying and then gives the composed transformation . Their volume scales multiply:
This rule explains two useful facts. Since preserves volume, . If is invertible, then
and therefore
Exercise: Find an inverse determinant
If , what is ?
Compute it first, then check your number.
HintUse the identity composition
Since , their determinants must multiply to .
SolutionTake the reciprocal
The inverse determinant is
The negative sign remains because both transformations reverse orientation.
Solve Systems Without Forming the Inverse
The identity is valuable for proofs and reasoning. In numerical code, however, explicitly constructing merely to solve usually performs unnecessary work and can amplify rounding error. A linear-system solver instead uses an appropriate factorization.
Solve directly and verify
Edit the matrix or target. The residual checks the computed solution without explicitly constructing the inverse.
Ready to run.
Exercise: Choose a numerical operation
In numerical code, which operation is normally preferred for finding in ?
Select one choice, then check.
HintCompute only what is needed
The goal is one solution vector, not the full inverse transformation.
SolutionUse a linear-system solver
A solver uses a suitable factorization to compute without forming all of . This approach is generally more efficient and numerically reliable.
Near Singularity Requires More Than a Determinant Check
A nonzero determinant proves invertibility in exact mathematics, but it does not by itself guarantee a stable numerical solve. A matrix can be invertible yet send one direction to a very small scale. Rounding or measurement error in that direction may then be strongly amplified by the inverse.
For numerical work, do not test det(A) == 0 as a general stability check.
Matrix scale, singular values, and the condition number provide more useful
information. Later lessons on singular value decomposition and numerical
computation develop these tools.
Before Calling a Matrix Invertible
Confirm that the matrix is square, then use the structural test suited to the problem: full rank, trivial null space, unique solvability, or nonzero determinant. Use an inverse to reason about undoing a transformation, but use a linear-system solver when the computational task is to find from .
The next lesson considers systems for which exact inversion is unavailable or inappropriate. Least squares finds the closest reachable output, and the pseudoinverse extends inverse-like reasoning to rectangular or rank-deficient matrices.