Simple Rules for Inverting Any 2x2 Matrix

What Is a Matrix Inverse, Anyway?

A matrix inverse is what you multiply a matrix by to get the identity matrix. If you have matrix A, then A-1 is its inverse when AA-1 = I.

For 2x2 matrices, finding the inverse is almost insultingly simple once you know the trick. Most textbooks make it seem complicated. It isn't.

The Only Formula You Need

For any 2x2 matrix:

A = [[a, b], [c, d]]

The inverse is:

A-1 = (1/det) Γ— [[d, -b], [-c, a]]

That's it. Swap a and d, negate b and c, then divide everything by the determinant.

The Determinant Is the Make-or-Break Number

Before you do anything, calculate the determinant:

det = ad - bc

If det = 0, stop. The matrix has no inverse. This isn't a calculation errorβ€”some matrices just can't be inverted. We call them singular or non-invertible matrices.

Zero-determinant matrices are like dividing by zero. The operation is undefined, and there's no way around it.

Step-by-Step: Inverting a 2x2 Matrix

Example 1: A Straightforward Case

Let's invert:

A = [[3, 1], [2, 5]]

Step 1: Calculate the determinant.

det = (3)(5) - (1)(2) = 15 - 2 = 13

13 is not zero, so we can proceed.

Step 2: Swap the diagonal elements.

[[3, 1], [2, 5]] β†’ [[5, 1], [2, 3]]

Step 3: Negate the off-diagonal elements.

[[5, 1], [2, 3]] β†’ [[5, -1], [-2, 3]]

Step 4: Divide by the determinant.

A-1 = (1/13) Γ— [[5, -1], [-2, 3]]

Or written out:

A-1 = [[5/13, -1/13], [-2/13, 3/13]]

Example 2: With Negative Numbers

Invert:

A = [[2, -4], [-3, 7]]

det = (2)(7) - (-4)(-3) = 14 - 12 = 2

[[2, -4], [-3, 7]] β†’ [[7, -4], [-3, 2]] (swap diagonal)

[[7, -4], [-3, 2]] β†’ [[7, 4], [3, 2]] (negate off-diagonal)

A-1 = (1/2) Γ— [[7, 4], [3, 2]] = [[7/2, 2], [3/2, 1]]

Quick Reference Table

Original MatrixDeterminantInverse
[[1, 2], [3, 4]]-2(1/-2)[[4, -2], [-3, 1]]
[[2, 0], [0, 3]]6[[1/2, 0], [0, 1/3]]
[[4, 2], [2, 1]]0Does not exist
[[1, 0], [0, 1]]1[[1, 0], [0, 1]]

How to Check Your Answer

Multiply A by A-1. You should get the identity matrix [[1, 0], [0, 1]].

Using our first example:

[[3, 1], [2, 5]] Γ— [[5/13, -1/13], [-2/13, 3/13]]

First row, first column: (3)(5/13) + (1)(-2/13) = 15/13 - 2/13 = 13/13 = 1 βœ“

First row, second column: (3)(-1/13) + (1)(3/13) = -3/13 + 3/13 = 0 βœ“

Second row, first column: (2)(5/13) + (5)(-2/13) = 10/13 - 10/13 = 0 βœ“

Second row, second column: (2)(-1/13) + (5)(3/13) = -2/13 + 15/13 = 13/13 = 1 βœ“

If your result isn't the identity matrix, you made an error somewhere.

Common Mistakes That Will Mess You Up

Why This Formula Works

The 2x2 inverse formula isn't arbitrary. It comes from solving the system of equations that defines the inverse. You can derive it by setting up AA-1 = I and solving for each element of A-1.

Most people don't need the derivation. If you're taking a linear algebra course, your professor might ask for it. For practical purposes, the formula is what matters.

When You'll Actually Use This

2x2 matrix inverses show up in:

The formula becomes a reflex once you practice it a few times. Most people can invert a 2x2 matrix in under 30 seconds after enough reps.

Getting Started: Your First Practice Problems

Try inverting these matrices. Answers below.

1. [[4, 7], [2, 6]]

2. [[1, -1], [-1, 1]]

3. [[0.5, 1.5], [2, 3]]

---

Answers:

1. det = 24 - 14 = 10. Inverse: [[6/10, -7/10], [-2/10, 4/10]] = [[3/5, -7/10], [-1/5, 2/5]]

2. det = (1)(1) - (-1)(-1) = 1 - 1 = 0. No inverse exists.

3. det = (0.5)(3) - (1.5)(2) = 1.5 - 3 = -1.5. Inverse: (1/-1.5)[[3, -1.5], [-2, 0.5]] = [[-2, 1], [4/3, -1/3]]