4.3 Matrix Inverse & Invertibility
In algebra, we divide numbers to solve equations. For example, if , we multiply both sides by the reciprocal (the inverse) of , which is or , to get .
In matrix algebra, we cannot divide matrices. Instead, we multiply by the Matrix Inverse, denoted as . Let's learn how to "undo" transformations and understand when a matrix can be inverted.
1. What is a Matrix Inverse?
The inverse of a square matrix is a new matrix that satisfies the following property:
Where is the Identity matrix (which does nothing). Multiplying a matrix by its inverse is the matrix equivalent of dividing a number by itself to get .
2. Geometric Intuition: Undoing a Transformation
Think of a matrix as a physical action that moves basis vectors. The inverse matrix is the action that reverses or undoes it:
- If matrix rotates the grid counter-clockwise, then rotates the grid clockwise.
- If matrix stretches the grid by a factor of , then shrinks the grid by a factor of .
Applying followed by returns every vector in space to its original starting position.
3. Invertibility Conditions (When does an inverse exist?)
Only square matrices can have an inverse. However, not all square matrices are invertible! A matrix is invertible only if:
If , the matrix is singular (non-invertible).
Why Singular Matrices Cannot Be Inverted
Geometrically, a determinant of means the matrix collapses the entire 2D space down onto a flat 1D line or point.
Imagine you take a 3D coordinate model of a teapot and squish it completely flat onto a 2D shadow. If I give you the flat shadow, you cannot reconstruct the original 3D coordinates because information about depth is lost forever.
Because space is collapsed and information is lost, it is physically impossible to undo the transformation. Therefore, singular matrices have no inverse.
4. Interactive Transformation Workspace
Use the sliders to experiment. Load the Collapse (Singular) preset. Notice how the space collapses to a single diagonal line and the determinant becomes . Read the analysis panel showing why it is non-invertible.
Interactive 2D Linear Transformation Visualizer
det(M) = (1.50 × 1.50) - (0.50 × 0.50)
det(M) = 2.00
5. Solving Systems of Equations using Inverses
If we have a system of equations , and is non-singular, we can solve it algebraically by multiplying both sides by :
This is the standard algebraic formulation for finding solutions in machine learning models!