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 AA, an inverse is a matrix A1A^{-1} satisfying

A1A=AA1=I.A^{-1}A=AA^{-1}=I.

The two products matter because matrix multiplication is not generally commutative. If AA sends x\mathbf{x} to b\mathbf{b}, then A1A^{-1} reverses that action:

Ax=bx=A1b.A\mathbf{x}=\mathbf{b} \quad\Longrightarrow\quad \mathbf{x}=A^{-1}\mathbf{b}.

For example,

A=[2004]andA1=[1/2001/4].A=\begin{bmatrix}2&0\\0&4\end{bmatrix} \qquad\text{and}\qquad A^{-1}=\begin{bmatrix}1/2&0\\0&1/4\end{bmatrix}.

The first matrix scales the coordinate axes by 22 and 44; the second uses reciprocal scales to restore the original vector.

Exercise: Undo diagonal scaling

For A=diag(5,2)A=\operatorname{diag}(5,2), what is the first diagonal entry of A1A^{-1}?

Compute it first, then check your number.

Review

Not marked done.

Your checked work will be saved automatically.

Correct records the checked result. Done is your learning status, and you can undo it.

Clearing an answer or resetting code starts the response again. It does not remove Done or Review.

Your checked work will be saved automatically.

HintMake the product equal one

The original and inverse diagonal entries must multiply to 11.

SolutionUse the reciprocal scale

The first coordinate is multiplied by 55, so the inverse must multiply it by

15=0.2.\frac{1}{5}=0.2.

Their composition scales that coordinate by 5(1/5)=15(1/5)=1.

Invertibility Connects the Earlier Ideas

For a square n×nn\times n matrix, the following statements are equivalent:

  • A1A^{-1} exists;
  • AA has rank nn;
  • the columns of AA form a basis of Rn\mathbb{R}^n;
  • Col(A)=Rn\operatorname{Col}(A)=\mathbb{R}^n;
  • Null(A)={0}\operatorname{Null}(A)=\{\mathbf{0}\};
  • Ax=bA\mathbf{x}=\mathbf{b} has exactly one solution for every bRn\mathbf{b}\in\mathbb{R}^n;
  • det(A)0\det(A)\ne0.

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

B=[1224]B=\begin{bmatrix}1&2\\2&4\end{bmatrix}

is not invertible. Its second column repeats the first direction, its rank is 11, and [2,1]T[-2,1]^{\mathsf T} 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

A=[abcd],A=\begin{bmatrix}a&b\\c&d\end{bmatrix},

the inverse, when it exists, is

A1=1adbc[dbca].A^{-1} =\frac{1}{ad-bc} \begin{bmatrix}d&-b\\-c&a\end{bmatrix}.

Multiplying the two matrices verifies the formula:

[abcd][dbca]=(adbc)I.\begin{bmatrix}a&b\\c&d\end{bmatrix} \begin{bmatrix}d&-b\\-c&a\end{bmatrix} =(ad-bc)I.

The denominator adbcad-bc 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

A=[2103].A=\begin{bmatrix}2&1\\0&3\end{bmatrix}.

What is the upper-left entry of A1A^{-1}?

Compute it first, then check your number.

Review

Not marked done.

Your checked work will be saved automatically.

Correct records the checked result. Done is your learning status, and you can undo it.

Clearing an answer or resetting code starts the response again. It does not remove Done or Review.

Your checked work will be saved automatically.

HintCompute the determinant first

Here adbc=2(3)1(0)=6ad-bc=2(3)-1(0)=6.

SolutionApply the inverse formula

The inverse is

A1=16[3102].A^{-1}=\frac{1}{6} \begin{bmatrix}3&-1\\0&2\end{bmatrix}.

Its upper-left entry is 3/6=1/2=0.53/6=1/2=0.5.

The Determinant Is Signed Volume Scaling

For a two-dimensional matrix,

det(A)=adbc.\det(A)=ad-bc.

The magnitude det(A)|\det(A)| is the factor by which AA scales area. In three dimensions, the magnitude gives the volume-scaling factor; the same interpretation extends to nn-dimensional volume.

The sign records orientation:

  • det(A)>0\det(A)>0 preserves orientation;
  • det(A)<0\det(A)<0 reverses orientation;
  • det(A)=0\det(A)=0 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,

det[2103]=23=6.\det\begin{bmatrix}2&1\\0&3\end{bmatrix}=2\cdot3=6.

Exercise: Detect a collapsed transformation

Compute the determinant of [1224]\begin{bmatrix}1&2\\2&4\end{bmatrix}.

Compute it first, then check your number.

Review

Not marked done.

Your checked work will be saved automatically.

Correct records the checked result. Done is your learning status, and you can undo it.

Clearing an answer or resetting code starts the response again. It does not remove Done or Review.

Your checked work will be saved automatically.

HintSubtract the diagonal products

Compute 1(4)2(2)1(4)-2(2).

SolutionThe signed area scale is zero

The determinant is

1422=44=0.1\cdot4-2\cdot2=4-4=0.

A two-dimensional region is flattened into a line, so the matrix cannot be inverted.

Determinants Respect Composition

Applying BB and then AA gives the composed transformation ABAB. Their volume scales multiply:

det(AB)=det(A)det(B).\det(AB)=\det(A)\det(B).

This rule explains two useful facts. Since II preserves volume, det(I)=1\det(I)=1. If AA is invertible, then

1=det(I)=det(AA1)=det(A)det(A1),1=\det(I)=\det(AA^{-1}) =\det(A)\det(A^{-1}),

and therefore

det(A1)=1det(A).\det(A^{-1})=\frac{1}{\det(A)}.

Exercise: Find an inverse determinant

If det(A)=4\det(A)=-4, what is det(A1)\det(A^{-1})?

Compute it first, then check your number.

Review

Not marked done.

Your checked work will be saved automatically.

Correct records the checked result. Done is your learning status, and you can undo it.

Clearing an answer or resetting code starts the response again. It does not remove Done or Review.

Your checked work will be saved automatically.

HintUse the identity composition

Since AA1=IAA^{-1}=I, their determinants must multiply to 11.

SolutionTake the reciprocal

The inverse determinant is

det(A1)=14=14=0.25.\det(A^{-1})=\frac{1}{-4}=-\frac14=-0.25.

The negative sign remains because both transformations reverse orientation.

Solve Systems Without Forming the Inverse

The identity x=A1b\mathbf{x}=A^{-1}\mathbf{b} is valuable for proofs and reasoning. In numerical code, however, explicitly constructing A1A^{-1} merely to solve Ax=bA\mathbf{x}=\mathbf{b} 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 x\mathbf{x} in Ax=bA\mathbf{x}=\mathbf{b}?

Choose the preferred method

Select one choice, then check.

Review

Not marked done.

Your checked work will be saved automatically.

Correct records the checked result. Done is your learning status, and you can undo it.

Clearing an answer or resetting code starts the response again. It does not remove Done or Review.

Your checked work will be saved automatically.

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 x\mathbf{x} without forming all of A1A^{-1}. 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 x\mathbf{x} from Ax=bA\mathbf{x}=\mathbf{b}.

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.

Review

Not marked done.