Skip to content

How to find the inverse of a matrix (2×2 and 3×3)

6 min read

Short answer

For a 2×2 matrix, (abcd)−1=1ad−bc(d−b−ca)\begin{pmatrix}a&b\\c&d\end{pmatrix}^{-1}=\dfrac1{ad-bc}\begin{pmatrix}d&-b\\-c&a\end{pmatrix}, which exists only if ad−bc≠0ad-bc\neq0. For larger matrices, row-reduce the augmented matrix [A∣I][A\mid I] until the left side becomes II; the right side is then A−1A^{-1}.

A matrix maps the unit square to a parallelogram and its inverse maps it backAA⁻¹unit squaredet A = 1
A turns the unit square into a parallelogram; A⁻¹ undoes it and maps the parallelogram back to the square.

What the inverse does

A−1A^{-1} is the transformation that undoes AA: A−1A=AA−1=IA^{-1}A=AA^{-1}=I. It exists only when AA does not squash space, i.e. when det⁡A≠0\det A\neq0. A matrix without an inverse is called singular.

Two methods

2×2: swap the diagonal entries, negate the off-diagonal ones, divide by the determinant.

Any size: write [A∣I][A\mid I] and apply row operations until the left block is II. The same operations turn the right block into A−1A^{-1}. If you cannot reach II (a zero row appears on the left), the matrix is singular.

Worked example

Find A−1A^{-1} for A=(2153)A=\begin{pmatrix}2&1\\5&3\end{pmatrix}, and for B=(110011001)B=\begin{pmatrix}1&1&0\\0&1&1\\0&0&1\end{pmatrix}.

AA. det⁡A=2⋅3−1⋅5=1\det A=2\cdot3-1\cdot5=1, so A−1=(3−1−52).A^{-1}=\begin{pmatrix}3&-1\\-5&2\end{pmatrix}. Check: AA−1A A^{-1} has first row (2⋅3+1⋅(−5), 2(−1)+1⋅2)=(1,0)(2\cdot3+1\cdot(-5),\ 2(-1)+1\cdot2)=(1,0) ✓.

BB. Row-reduce [B∣I][B\mid I]: R1→R1−R2R_1\to R_1-R_2, then R2→R2−R3R_2\to R_2-R_3, then R1→R1+R3R_1\to R_1+R_3. The left side becomes II and the right side becomes B−1=(1−1101−1001).B^{-1}=\begin{pmatrix}1&-1&1\\0&1&-1\\0&0&1\end{pmatrix}.

Try it yourself

Find the inverse of (4726)\begin{pmatrix}4&7\\2&6\end{pmatrix}.

Show the answer

det⁡=24−14=10\det=24-14=10, so the inverse is 110(6−7−24)=(0.6−0.7−0.20.4)\dfrac1{10}\begin{pmatrix}6&-7\\-2&4\end{pmatrix}=\begin{pmatrix}0.6&-0.7\\-0.2&0.4\end{pmatrix}.

Keep going with practice

Vidi's matrix calculator computes inverses and row reductions so you can check each of your steps.