01 / 21

\(2 \times 2\) Matrix
Inverses

Learn to compute the inverse of a \(2 \times 2\) matrix, understand when inverses exist, and use them to solve systems of linear equations.

Finite Mathematics

What Is a Matrix?

A matrix is a rectangular array of numbers arranged in rows and columns. A \(2 \times 2\) matrix has 2 rows and 2 columns:

\(a\)
\(b\)
\(c\)
\(d\)
General 2×2 Matrix
\(A=\)

What Is a Matrix Inverse?

The inverse of a matrix \(A\), written \(A^{-1}\), is the matrix that "undoes" \(A\). When you multiply a matrix by its inverse, you get the identity matrix:

Think of the identity matrix \(I\) like the number 1 in regular multiplication: any matrix times \(I\) stays the same.

Why Do Inverses Matter?

Solve Systems
Turn \(AX = B\) into \(X = A^{-1}B\) to solve systems of equations instantly.
Undo Transformations
In computer graphics and data science, inverses reverse rotations, reflections, and scaling.
Cryptography
Matrix inverses are used to encrypt and decrypt messages in Hill cipher systems.

The Determinant

Before computing an inverse, you need the determinant. For a \(2 \times 2\) matrix, it is the difference of the diagonal products:

\(a\)
\(b\)
\(c\)
\(d\)
\(=\)
\(\textcolor{#818cf8}{a}\textcolor{#f87171}{d} - \textcolor{#4ade80}{b}\textcolor{#fbbf24}{c}\)
\(\det\)
Main diagonal minus anti-diagonal

The Inverse Formula

If \(\det(A) \neq 0\), the inverse of \(A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}\) is:

1
Swap the main diagonal entries: \(a \leftrightarrow d\).
2
Negate the anti-diagonal entries: \(b \to -b\) and \(c \to -c\).
3
Divide every entry by the determinant \(ad - bc\).

When Is a Matrix Singular?

A matrix is called singular (non-invertible) when its determinant equals zero. No inverse exists because you would be dividing by zero.

Invertible
\(\det(A) \neq 0\): the matrix has a unique inverse \(A^{-1}\). The system \(AX = B\) has exactly one solution.
Singular
\(\det(A) = 0\): no inverse exists. The system \(AX = B\) has either no solution or infinitely many.

Inverse vs. Transpose

Inverse \(A^{-1}\) Transpose \(A^T\)
Definition \(AA^{-1} = I\) Swap rows and columns
Always exists? No: only if \(\det \neq 0\) Yes: always exists
Operation Swap diag, negate off-diag, divide by det Reflect entries across main diagonal
Result "Undoes" multiplication Rearranges the matrix

Step-by-Step Checklist

1
Identify entries: \(a, b, c, d\) from \(\begin{bmatrix} a & b \\ c & d \end{bmatrix}\).
2
Compute the determinant: \(\det = ad - bc\).
3
Check: if \(\det = 0\), stop: the matrix is singular.
4
Swap \(a\) and \(d\); negate \(b\) and \(c\).
5
Multiply every entry by \(\frac{1}{\det}\).
6
Verify: check that \(A \cdot A^{-1} = I\).

Example 1: Basic Inverse

Find the inverse of \(A = \begin{bmatrix} 3 & 1 \\ 5 & 2 \end{bmatrix}\).

1
Determinant: \(\det = (3)(2) - (1)(5) = 6 - 5 = \) \(1\)
2
Swap and negate: swap \(3 \leftrightarrow 2\), negate \(1 \to -1\) and \(5 \to -5\).
3
Divide by det: since \(\det = 1\), entries stay the same.

Example 1: Verification

Let's verify by computing \(A \cdot A^{-1}\):

Example 2: Fractional Entries

Find the inverse of \(A = \begin{bmatrix} 4 & 7 \\ 2 & 6 \end{bmatrix}\).

1
Determinant: \(\det = (4)(6) - (7)(2) = 24 - 14 = \) \(10\)
2
Swap and negate: swap \(4 \leftrightarrow 6\), negate \(7 \to -7\) and \(2 \to -2\).
3
Divide by 10: multiply each entry by \(\frac{1}{10}\).

Example 3: Solving a System

Solve the system using a matrix inverse:

Write as \(AX = B\) where \(A = \begin{bmatrix} 3 & 1 \\ 5 & 2 \end{bmatrix}\), \(X = \begin{bmatrix} x \\ y \end{bmatrix}\), \(B = \begin{bmatrix} 5 \\ 7 \end{bmatrix}\).

From Example 1, we already know \(A^{-1} = \begin{bmatrix} 2 & -1 \\ -5 & 3 \end{bmatrix}\). So:

Example 3: Solution

\(x = 3\)
First entry of the result vector gives the value of \(x\).
\(y = -4\)
Second entry of the result vector gives the value of \(y\).

Common Mistakes

✕ Wrong Swap
Negating the main diagonal instead of swapping it: you swap \(a \leftrightarrow d\), not change their signs.
✕ Forgetting the Scalar
Performing the swap and negate but forgetting to multiply by \(\frac{1}{\det}\). Every entry must be divided by the determinant.
✕ Wrong Determinant Sign
Computing \(bc - ad\) instead of \(ad - bc\). The main diagonal product comes first.

Summary at a Glance

Concept Formula / Rule Key Check
Determinant \(ad - bc\) \(\neq 0\) required
Inverse \(\frac{1}{\det}\begin{bmatrix} d & -b \\ -c & a \end{bmatrix}\) \(A A^{-1} = I\)
Singular \(\det = 0\) No inverse exists
Solve \(AX = B\) \(X = A^{-1}B\) Substitute back

Question 1 of 5

What is the determinant of \(\begin{bmatrix} 5 & 3 \\ 2 & 4 \end{bmatrix}\)?

Question 2 of 5

Find the inverse of \(A = \begin{bmatrix} 2 & 1 \\ 7 & 4 \end{bmatrix}\).

Question 3 of 5

Which matrix is singular (has no inverse)?

Question 4 of 5

If \(A^{-1} = \begin{bmatrix} 3 & -2 \\ -1 & 1 \end{bmatrix}\) and \(B = \begin{bmatrix} 8 \\ 3 \end{bmatrix}\), what is the solution to \(AX = B\)?

Question 5 of 5

What is the inverse of \(\begin{bmatrix} 1 & 2 \\ 3 & 8 \end{bmatrix}\)?