Linear Algebra, Interactive EditionXYZ Homework Edition

⇩ Download ▾

3.5 Inverses and the Invertible Matrix Theorem

The previous section built compositions; this one asks for a specific composition — the one that gets you back. A square matrix AA is invertible when there is a matrix A−1A^{-1} with A−1A=IA^{-1}A = I and AA−1=IAA^{-1} = I, the identity, so that applying AA and then A−1A^{-1}, or the other way round, returns every vector to where it started. (For square matrices either equation turns out to force the other, but that is a theorem, not part of the definition.) Section 3.3 already tells you when to expect one. If TT confuses two inputs, no return trip can know which of them to go back to; if TT misses a target, no return trip can start from there. Invertible should mean one-to-one and onto — and for a square matrix those were the same condition.

Work with a family, so the interesting case can be approached rather than merely described:

A d = ( 2 1 1 d ) A_d = \begin{pmatrix} 2 & 1 \\ 1 & d \end{pmatrix}

Chapter 4 will recompute its determinant at length; for now take detAd=2d−1\det A_d = 2d - 1, which section 3.2's area argument already gives you as the cross-product of the columns (2,1)(2, 1) and (1,d)(1, d).

Seen face-on in one upright plane, against a gray horizontal axis and a gray vertical axis with numbered ticks: a light gray outline of the unit square; a colored parallelogram outlined in pale orange, which is that square stretched and sheared by a matrix, with its two edges from the origin drawn over the outline in red and blue; and a third quadrilateral inside the gray outline, which is the parallelogram carried back by the inverse matrix. However the slider is dragged, the third shape exactly fills the gray outline - the round trip always returns what it started with. As the slider approaches its lowest setting the middle parallelogram grows thin and nearly collapses to a line, and the entries of the inverse that undoes it grow large, reaching 20 at the slider's lowest setting; they would grow without bound only if the slider could reach one half.Explore in 3D (opens in a new tab)

Seen face-on in one upright plane, against a gray horizontal axis and a gray vertical axis with numbered ticks: a light gray outline of the unit square; a colored parallelogram outlined in pale orange, which is that square stretched and sheared by a matrix, with its two edges from the origin drawn over the outline in red and blue; and a third quadrilateral inside the gray outline, which is the parallelogram carried back by the inverse matrix. However the slider is dragged, the third shape exactly fills the gray outline - the round trip always returns what it started with. As the slider approaches its lowest setting the middle parallelogram grows thin and nearly collapses to a line, and the entries of the inverse that undoes it grow large, reaching 20 at the slider's lowest setting; they would grow without bound only if the slider could reach one half.

Seen face-on: the gray outline of the unit square, its image under AdA_d — the parallelogram with red edge (2,1)(2, 1) and blue edge (1,d)(1, d) — and, filling the gray outline, the result of carrying that parallelogram back through Ad−1A_d^{-1}. The slider dd runs from 0.550.55 up to 2.52.5, stopping just short of the value where the determinant would vanish.

Explore the figure

  1. At the default d=1d = 1 the middle parallelogram is a healthy shape and the returned quadrilateral exactly fills the gray outline. That coincidence is the whole definition: A−1A^{-1} undoes AA.
  2. Drag dd up to 2.52.5. The parallelogram grows — its area is 2(2.5)−1=42(2.5) - 1 = 4 — and the return trip still lands precisely on the square. Nothing about being large makes a transformation hard to reverse.
  3. Now drag dd down towards 0.550.55. The parallelogram thins alarmingly; at d=0.55d = 0.55 its area is 2(0.55)−1=0.12(0.55) - 1 = 0.1, a tenth of the square it came from. The return trip still works exactly — but look at what it has to do, stretching that sliver back into a full square.
  4. Read the slider's lower limit as a warning. It stops at 0.550.55 rather than 0.50.5 because at d=0.5d = 0.5 the columns are (2,1)(2, 1) and (1,0.5)(1, 0.5), the second exactly half the first: the parallelogram has collapsed to a segment, and there is nothing left to carry back.

The formula, and where it breaks

For a 2×22 \times 2 matrix the inverse can be written down outright.

[d·(−1+2·d)−1−(−1+2·d)−1−(−1+2·d)−12·(−1+2·d)−1]\begin{bmatrix}d \cdot \left(-1 + 2 \cdot d\right)^{-1} & -\left(-1 + 2 \cdot d\right)^{-1} \\ -\left(-1 + 2 \cdot d\right)^{-1} & 2 \cdot \left(-1 + 2 \cdot d\right)^{-1}\end{bmatrix}
The inverse, for every slider setting at once ✓ Computed · mojocas 0.1.0 ✓ Agrees with the text The inverse, for every slider setting at once, computed exactly by mojocas 0.1.0, and confirmed to agree with the result stated in the text.

The inverse of AdA_d computed symbolically. Every entry carries the determinant 2d−12d - 1 in its denominator — swap the diagonal entries, negate the off-diagonal ones, divide by the determinant. The formula makes the failure case unmissable: at d=0.5d = 0.5 the denominator is zero and there is no matrix to write down. That is not a defect of the formula but a report about the geometry, since a collapsed parallelogram cannot be un-collapsed.

Substituting a particular value makes the shape concrete.

[1−1−12]\begin{bmatrix}1 & -1 \\ -1 & 2\end{bmatrix}
The inverse at the default slider ✓ Computed · mojocas 0.1.0 ✓ Agrees with the text The inverse at the default slider, computed exactly by mojocas 0.1.0, and confirmed to agree with the result stated in the text.

At d=1d = 1 the determinant is 2(1)−1=12(1) - 1 = 1, so the division does nothing and the inverse comes out in whole numbers. This is the matrix the figure is applying when you first open it, and you can check the round trip by hand: it sends the red column (2,1)(2, 1) back to (1,0)(1, 0) and the blue column (1,1)(1, 1) back to (0,1)(0, 1) — the two basis vectors the square was built from.

Why must a zero determinant rule out an inverse? Because determinants multiply. If A−1A^{-1} existed then det(A−1)·det(A)=det(I)=1\det(A^{-1}) \cdot \det(A) = \det(I) = 1, and no number times zero is 11. The same fact told geometrically: |detA||\det A| is the factor by which areas scale, so a determinant of zero means every region is flattened to zero area, and no transformation can restore area from nothing.

Everything, all at once

Collect what this chapter and the last have established about a square n×nn \times n matrix AA. Each of the following says the same thing; if any one holds, all of them do.

This is the Invertible Matrix Theorem, and its content is not that these are ten separate facts about invertibility but that they are one fact wearing ten costumes. You have watched most of them already: independence was a vector failing to escape a plane, rank and nullity were a budget that had to add up, onto and one-to-one were a missed point and a collapsed line, and the determinant was an area running through zero. The theorem's practical use is that you may check whichever condition is cheapest and conclude all the others — and its practical warning is that when one fails, they all fail together, so a matrix is never nearly invertible in some respects and fine in others.

An original work of XYZ Homework, built around interactive XYZ 3D figures. Chapters 1–6 follow the topic sequence of Interactive Linear Algebra (Margalit & Rabinoff, Georgia Tech, GNU FDL). Chapter 0's scope (its topics, their order, and the idea each figure shows) follows the Vectors chapter of Ximera's Linear Algebra: An Interactive Introduction. The prose, worked examples and figures were written for this book, which is not affiliated with or endorsed by the authors of either work. License: CC-BY-NC-SA-4.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or any other accessibility standard. Every page is built against an automated accessibility gate, and our target for the published editions is WCAG 2.2 Level AA. If something is unusable, please tell us.