§01What Is the Inverse of a Matrix?
An inverse "undoes" a matrix, just as dividing by a number undoes multiplication by it.
For a square matrix A, the inverse A⁻¹ is defined by:
where I is the identity matrix of the same size.
Not every matrix has an inverse. A matrix that does is called invertible or non-singular. A matrix that doesn't is singular.
Equivalently: A is invertible iff its rows (or columns) are linearly independent, iff its rank equals n, iff 0 is not an eigenvalue.
§02The 2×2 Formula
For 2×2 matrices there is a clean direct formula, memorise it.
The scalar 1/(ad − bc) = 1/det(A). If det(A) = 0, A has no inverse.
The pattern is easy to remember: swap the main diagonal entries, negate the off-diagonal entries, and divide by the determinant.
§03Gauss-Jordan Elimination — The General Method
For 3×3 and larger matrices, form the augmented matrix [A | I] and row reduce until the left block becomes I.
- Set up the augmented matrix
Write [A | I], the n×n matrix A alongside the n×n identity.
- Row reduce the left block to I
Apply elementary row operations to the entire augmented matrix until the left side becomes the identity matrix.
- Read off the inverse
The right block has become A⁻¹.
- Check: if the left block won't reach I
If you encounter a zero row on the left, A is singular: no inverse exists.
§04Key Properties of Inverse Matrices
The Cofactor / Adjugate Method (3×3)
adj(A) is the transpose of the cofactor matrix of A. Efficient for 3×3; Gauss-Jordan is faster for larger sizes.
§05Ten Worked Examples
From the 2×2 formula to Gauss-Jordan on 3×3 matrices, every step shown.
Find A⁻¹ for A = [[3, 1],[5, 2]].
Find A⁻¹ for A = [[4, 7],[2, 6]].
Determine if A = [[2, 6],[1, 3]] is invertible.
Since det(A) = 0, the matrix is singular. No inverse exists. Geometrically, this transformation collapses ℝ² onto a line.
Singular — no inverse existsFind A⁻¹ for A = [[1,0,0],[1,1,0],[1,1,1]].
Left block is now I, so right block is A⁻¹:
Find A⁻¹ for A = [[2,1,0],[1,2,1],[0,1,2]].
Solve [[3,1],[5,2]]x = [[5],[8]] using the inverse found in Example 01.
If A⁻¹ = [[2,1],[1,1]] and B⁻¹ = [[3,0],[0,1]], find (AB)⁻¹.
Given A = [[1,2],[3,4]], find (Aᵀ)⁻¹.
Find A⁻¹ for the diagonal matrix A = diag(2, 5, −1).
If A = PDP⁻¹ (diagonalisation), express A⁻¹ in terms of P and D.
This is the elegant connection between the inverse and the eigenstructure of a matrix.
A⁻¹ = PD⁻¹P⁻¹§06Four Common Mistakes
§07Practice Quiz — 10 Questions
Consolidate your understanding before moving on.