What Is the Inverse of a Matrix?
The inverse of a square matrix $A$ — written $A^{-1}$ — is the unique matrix such that:
$$A \cdot A^{-1} = A^{-1} \cdot A = I$$
where $I$ is the identity matrix (1s on the diagonal, 0s elsewhere). It's the matrix-multiplication equivalent of "the reciprocal of a number" — $5 \times \tfrac{1}{5} = 1$.
Not every matrix has an inverse. A matrix is invertible (or non-singular) if and only if its determinant is non-zero.
The Formula for the Inverse of a 2×2 Matrix
For a matrix $A = \begin{pmatrix} a & b \ c & d \end{pmatrix}$ with $\det(A) = ad - bc \neq 0$:
$$A^{-1} = \frac{1}{ad - bc} \begin{pmatrix} d & -b \ -c & a \end{pmatrix}$$
In words: swap the diagonal entries, negate the off-diagonal entries, then divide every element by the determinant.
When Does the Inverse Exist?
The inverse $A^{-1}$ exists if and only if:
$$\det(A) = ad - bc \neq 0$$
If $ad - bc = 0$, the matrix is singular — it has no inverse, and the formula's division would be undefined.
Geometrically, $\det(A) = 0$ means the two column vectors of $A$ are parallel — the matrix collapses a 2D plane onto a 1D line (or onto the origin), and you can't reverse that collapse.
Step-by-Step Calculation
For any $2 \times 2$ matrix $A = \begin{pmatrix} a & b \ c & d \end{pmatrix}$:
Compute the determinant: $\det(A) = ad - bc$.
If $\det(A) = 0$, stop — the inverse doesn't exist.
Swap the diagonal entries: $a \leftrightarrow d$.
Negate the off-diagonal entries: $b \to -b$, $c \to -c$.
Divide every element by $\det(A)$.
Three Worked Examples — Quick, Standard, Stretch
Quick — Simple Numbers
Find the inverse of $A = \begin{pmatrix} 4 & 3 \ 1 & 2 \end{pmatrix}$.
$\det(A) = (4)(2) - (3)(1) = 8 - 3 = 5$.
$$A^{-1} = \frac{1}{5} \begin{pmatrix} 2 & -3 \ -1 & 4 \end{pmatrix} = \begin{pmatrix} 0.4 & -0.6 \ -0.2 & 0.8 \end{pmatrix}$$
Verify. $A \cdot A^{-1} = \begin{pmatrix} 4 & 3 \ 1 & 2 \end{pmatrix} \begin{pmatrix} 0.4 & -0.6 \ -0.2 & 0.8 \end{pmatrix} = \begin{pmatrix} 1.6 - 0.6 & -2.4 + 2.4 \ 0.4 - 0.4 & -0.6 + 1.6 \end{pmatrix} = \begin{pmatrix} 1 & 0 \ 0 & 1 \end{pmatrix}$ ✓
Standard — Determinant with Negatives
Find the inverse of $B = \begin{pmatrix} 2 & -5 \ 3 & 1 \end{pmatrix}$.
$\det(B) = (2)(1) - (-5)(3) = 2 - (-15) = 17$.
$$B^{-1} = \frac{1}{17} \begin{pmatrix} 1 & 5 \ -3 & 2 \end{pmatrix}$$
Stretch — Singular Matrix
Try to find the inverse of $C = \begin{pmatrix} 2 & 4 \ 1 & 2 \end{pmatrix}$.
$\det(C) = (2)(2) - (4)(1) = 4 - 4 = 0$.
Determinant is zero $\Rightarrow$ the inverse doesn't exist. The matrix is singular.
Notice the two rows are proportional (the second row is half the first) — a tell that the rows are linearly dependent and the matrix isn't invertible.
Why Does the Matrix Inverse Matter? (The Real-World GROUND)
"To solve a system, find the inverse." — linear algebra heuristic.
The matrix inverse is the workhorse of every system of linear equations and every linear transformation:
Solving systems of equations. $A\vec{x} = \vec{b}$ has solution $\vec{x} = A^{-1}\vec{b}$ (when $A$ is invertible). The two-equations-two-unknowns case is exactly the $2 \times 2$ inverse problem.
Computer graphics. Every rotation, scaling, or shear is a matrix. To undo the transformation (e.g., to map screen coordinates back to world coordinates), you invert the matrix.
Robotics. Forward kinematics converts joint angles to end-effector position; the inverse kinematics problem — given a desired position, find the joint angles — uses the matrix inverse.
Cryptography. Hill cipher encrypts messages by matrix multiplication; decryption inverts the matrix.
Statistics. Linear regression coefficients are computed as $\hat{\boldsymbol{\beta}} = (X^T X)^{-1} X^T \vec{y}$ — matrix inversion is the central calculation.
The $2 \times 2$ inverse formula is the simplest non-trivial case. It was first explicitly written by Arthur Cayley in his 1858 Memoir on the Theory of Matrices — the paper that founded modern matrix algebra.
Learn more: Multiplication of Matrices
A Worked Example — Wrong Path First
Find the inverse of $M = \begin{pmatrix} 3 & 2 \ 4 & 1 \end{pmatrix}$.
The intuitive (wrong) approach. A student forgets to swap the diagonal and writes:
$$M^{-1} \stackrel{?}{=} \frac{1}{3 - 8} \begin{pmatrix} 3 & -2 \ -4 & 1 \end{pmatrix} = -\frac{1}{5} \begin{pmatrix} 3 & -2 \ -4 & 1 \end{pmatrix}$$
Why it fails. The student kept $a = 3$ in the upper-left and $d = 1$ in the lower-right — but the inverse formula swaps them. The (wrong) matrix doesn't satisfy $M M^{-1} = I$.
The correct method. Determinant: $\det(M) = (3)(1) - (2)(4) = 3 - 8 = -5$.
Swap diagonal, negate off-diagonal:
$$M^{-1} = -\frac{1}{5}\begin{pmatrix} 1 & -2 \ -4 & 3 \end{pmatrix} = \begin{pmatrix} -0.2 & 0.4 \ 0.8 & -0.6 \end{pmatrix}$$
Verify. $M M^{-1} = \begin{pmatrix} 3 & 2 \ 4 & 1 \end{pmatrix} \begin{pmatrix} -0.2 & 0.4 \ 0.8 & -0.6 \end{pmatrix} = \begin{pmatrix} -0.6 + 1.6 & 1.2 - 1.2 \ -0.8 + 0.8 & 1.6 - 0.6 \end{pmatrix} = \begin{pmatrix} 1 & 0 \ 0 & 1 \end{pmatrix}$ ✓
What Are the Most Common Mistakes With 2x2 Inverses?
Mistake 1: Forgetting to swap the diagonal
The fix: $a$ and $d$ trade places. Negate $b$ and $c$, but swap $a$ and $d$.
Mistake 2: Sign errors in $b$ and $c$
Where it slips in: Negating $a$ or $d$ instead of $b$ and $c$.
The fix: Only the off-diagonal entries get a negative sign. Diagonal entries keep their sign.
Mistake 3: Forgetting to divide by the determinant
The fix: The whole matrix gets divided by $\det(A)$. Forgetting this gives a matrix that's $|\det(A)|$ times too large.
Key Takeaways
For $A = \begin{pmatrix} a & b \ c & d \end{pmatrix}$: $A^{-1} = \dfrac{1}{ad - bc} \begin{pmatrix} d & -b \ -c & a \end{pmatrix}$.
The determinant $ad - bc$ must be non-zero for the inverse to exist.
Three operations: swap the diagonal, negate the off-diagonal, divide by the determinant.
Always verify by computing $A \cdot A^{-1}$ — should equal the identity.
Singular matrices ($\det = 0$) have no inverse; their columns are linearly dependent.
A Practical Next Step
Try these three before moving on to 3x3 inverses.
Find the inverse of $\begin{pmatrix} 5 & 2 \ 3 & 1 \end{pmatrix}$.
Check whether $\begin{pmatrix} 4 & 6 \ 2 & 3 \end{pmatrix}$ is invertible.
Find the inverse of $\begin{pmatrix} 1 & 2 \ 3 & 4 \end{pmatrix}$ and verify by multiplication.
Was this article helpful?
Your feedback helps us write better content