The Inverse of a 2×2 Matrix
Intuition
If a matrix is a transformation (stretch, rotate, shear), its inverse is the transformation that undoes it. A matrix that squashes the plane onto a line destroys information and cannot be undone — it has no inverse.
Precise explanation
For with :
Recipe: swap the diagonal, negate the off-diagonal, divide by the determinant. Check: .
is the factor by which scales areas; means area collapses to zero.
Numerically, solving directly (MA-08) is usually preferred over forming , but the inverse is a useful concept and appears in closed-form formulas such as .
Worked example
, , .
Common mistakes
- Negating the diagonal instead of the off-diagonal.
- Forgetting to divide by the determinant.
- Comparing to with
==— use a tolerance.
Why this matters
Inverses appear in the normal equations, Gaussian covariance matrices and change-of-basis arguments throughout ML theory.
References
- Mathematics for Machine Learning — Marc Peter Deisenroth, A. Aldo Faisal, Cheng Soon Ong (Cambridge University Press) (
S009)