Inverse Matrices
Reversing transformations and solving equations
The Idea of Reversibility
Imagine you apply a transformation to space—stretching, rotating, shearing. Now ask yourself: can you undo it? Can you find another transformation that takes you back exactly to where you started?
This is the central question behind inverse matrices. If a matrix represents some transformation, then its inverse is the transformation that perfectly reverses it. Apply and then , and you end up exactly where you began.
Think of it like this: if is a recipe that transforms ingredients into a dish, then is the reverse recipe that extracts the original ingredients from the dish. Of course, not every cooking process can be reversed—some transformations destroy information. The same is true for matrices.
Forward and Reverse
Let's see this in action. Below, we start with the standard basis vectors and , apply a transformation , and then apply its inverse to get back to the original.
Interactive: Step through the transformation and its inverse
Original: The original unit vectors i and j
Notice how applying after brings us right back to the identity—the original unit vectors. This is the defining property of an inverse:
Here, is the identity matrix, which represents doing nothing to space. When you multiply any vector by , it stays exactly where it is.
Solving Systems of Equations
Why do we care about inverses? One of the most powerful applications is solving systems of linear equations. Consider the equation:
This says: some unknown vector , when transformed by , lands on . To find , we need to reverse the transformation. Multiply both sides by :
The inverse tells us exactly where was before the transformation—the answer to our equation.
Interactive: Adjust b and see the solution x = A⁻¹b
Given and
The solution is
Drag the sliders to change and watch how the solution changes. The blue vector shows where must be so that after transformation by , it lands on the purple .
When Does an Inverse Exist?
Here's the crucial question: when can a transformation be reversed? The answer connects directly to the determinant.
Remember that the determinant measures how a transformation scales area. If the determinant is zero, the transformation squashes space down to a lower dimension—a line, or even a single point. When this happens, information is lost. Multiple input vectors get mapped to the same output, so there's no way to uniquely trace back.
Interactive: Watch space collapse as det(A) approaches zero
,
Determinant ≈ 0: No inverse exists! Information is lost.
When , the two columns of the matrix become parallel—they point in the same direction. The entire 2D plane gets squashed onto a single line. This matrix is called singular, and it has no inverse.
The rule is simple:
A non-zero determinant means the transformation preserves dimensionality—nothing is lost, so everything can be recovered.
The Formula for 2×2 Inverse
For a 2×2 matrix, there's a beautiful explicit formula. Given:
The inverse is:
Notice the pattern: swap the diagonal entries ( and ), negate the off-diagonal entries ( and ), and divide everything by the determinant .
This formula makes it clear why the determinant matters: we're dividing by it. If , the formula breaks down—you can't divide by zero.
Interactive: Adjust the matrix and see its inverse computed
Verification: A·A⁻¹ ≈ = I ✓
Play with the matrix entries. Watch how the inverse changes, and verify that . Try making the determinant approach zero and see what happens.
Geometric Intuition
Here's another way to think about the inverse. If stretches space by a factor of 2 along some direction, then compresses it by a factor of 1/2 along that same direction. If rotates by 30° counterclockwise, rotates by 30° clockwise.
Every action has an equal and opposite reaction. The inverse is the "anti-transformation" that undoes exactly what the original did.
This also explains why singular matrices have no inverse: if flattens a 2D region to a 1D line, there's no way to "unflatten" it back. The information about where points were in the perpendicular direction is gone forever.
Key Takeaways
- The inverse is the transformation that perfectly reverses
- The defining property: , the identity matrix
- An inverse exists if and only if
- When , the matrix is singular—it squashes space and loses information
- We can solve by computing
- For 2×2 matrices: swap diagonals, negate off-diagonals, divide by the determinant