AP Precalculus · Study guide

The Inverse and Determinant of a Matrix

AP® Precalculus · Unit 4 · Functions Involving Parameters, Vectors, and Matrices

The Inverse and Determinant of a Matrix

The identity matrix plays the role of 1, and an inverse matrix undoes a matrix the way division undoes multiplication. This guide computes determinants and inverses of 2 × 2 matrices, reads the determinant as an area, and uses inverses to solve systems.

The idea in one paragraph

The identity matrix \(I\) has 1s down the main diagonal and 0s elsewhere, and \(AI = IA = A\). The inverse \(A^{-1}\), when it exists, satisfies \(AA^{-1} = A^{-1}A = I\). For \(A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}\), the determinant is \(\det A = ad - bc\), and \(A\) has an inverse if and only if \(\det A \ne 0\). The absolute value of the determinant is the area of the parallelogram spanned by the columns (or rows); a determinant of 0 means those vectors are parallel.

1The identity matrix

Worked Example 1 The identity matrix

Show that \(IA = AI = A\).

\[I = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}, \qquad A = \begin{bmatrix} 2 & 1 \\ 5 & 3 \end{bmatrix}\]
  1. 1
    Row 1 of \(I\) times column 1 of \(A\): \(1(2) + 0(5) = 2\). Each entry works the same way, picking out one entry of \(A\).
  2. 2
    \(I\) does for matrices what 1 does for numbers.
Answer: \(IA = AI = \begin{bmatrix} 2 & 1 \\ 5 & 3 \end{bmatrix}\)

2Determinant and inverse

\[ A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}, \qquad \det A = ad - bc, \qquad A^{-1} = \frac{1}{ad - bc}\begin{bmatrix} d & -b \\ -c & a \end{bmatrix} \]
Worked Example 2 Determinant and inverse

Find \(\det A\) and \(A^{-1}\) for \(A = \begin{bmatrix} 2 & 1 \\ 5 & 3 \end{bmatrix}\), and check.

  1. 1
    \(\det A = 2(3) - 1(5) = 1\). Not 0, so the inverse exists.
  2. 2
    Swap the diagonal entries, change the signs of the other two, divide by 1: \(A^{-1} = \begin{bmatrix} 3 & -1 \\ -5 & 2 \end{bmatrix}\).
  3. 3
    Check: \(AA^{-1} = \begin{bmatrix} 6 - 5 & -2 + 2 \\ 15 - 15 & -5 + 6 \end{bmatrix} = I\).
Answer: \(\det A = 1\), \(A^{-1} = \begin{bmatrix} 3 & -1 \\ -5 & 2 \end{bmatrix}\)
Worked Example 3 A determinant that is not 1

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

  1. 1
    \(\det B = 4(1) - 2(3) = -2\).
  2. 2
    \(B^{-1} = \dfrac{1}{-2}\begin{bmatrix} 1 & -2 \\ -3 & 4 \end{bmatrix} = \begin{bmatrix} -0.5 & 1 \\ 1.5 & -2 \end{bmatrix}\).
  3. 3
    Check one entry of \(BB^{-1}\): row 1 · column 1 \(= 4(-0.5) + 2(1.5) = 1\).
Answer: \(B^{-1} = \begin{bmatrix} -0.5 & 1 \\ 1.5 & -2 \end{bmatrix}\)
Write it like this

“Since \(\det A = 1 \ne 0\), \(A\) is invertible, and \(A^{-1} = \begin{bmatrix} 3 & -1 \\ -5 & 2 \end{bmatrix}\).”

Common Mistake 1 · Swapping the wrong entries

Swap \(a\) and \(d\) (the main diagonal) and negate \(b\) and \(c\). Negating the diagonal instead, or swapping \(b\) and \(c\), gives a matrix that fails the check \(AA^{-1} = I\).

Common Mistake 2 · Forgetting to divide by the determinant

For \(B\), \(\begin{bmatrix} 1 & -2 \\ -3 & 4 \end{bmatrix}\) still has to be multiplied by \(\frac{1}{-2}\). Only when \(\det = 1\) does that step change nothing.

3When no inverse exists

Worked Example 4 When there is no inverse

Does \(S = \begin{bmatrix} 2 & 4 \\ 1 & 2 \end{bmatrix}\) have an inverse?

  1. 1
    \(\det S = 2(2) - 4(1) = 0\). The formula would divide by 0.
  2. 2
    Its columns \(\langle 2, 1\rangle\) and \(\langle 4, 2\rangle\) are parallel (one is twice the other), so they span no area.
Answer: No inverse: the determinant is 0.

4Determinant as area

Figure 1. The absolute value of a 2 × 2 determinant is the area of the parallelogram spanned by its columns (or rows). Both axes use the same scale, so the shaded shape has its true area.
Worked Example 5 Determinant as area

Find the area of the parallelogram spanned by \(\langle 3, 1\rangle\) and \(\langle 1, 2\rangle\). What about \(\langle 1, 2\rangle\) and \(\langle 3, 1\rangle\) in that order?

  1. 1
    Put them in as columns: \(\det\begin{bmatrix} 3 & 1 \\ 1 & 2 \end{bmatrix} = 6 - 1 = 5\).
  2. 2
    Swapping the columns gives \(\det\begin{bmatrix} 1 & 3 \\ 2 & 1 \end{bmatrix} = 1 - 6 = -5\). The area is the absolute value: still 5.
Answer: Area 5 either way (Figure 1).

5Solving systems

Worked Example 6 Solving a system with an inverse

Solve \(2x + y = 7\), \(5x + 3y = 19\).

  1. 1
    Write it as \(A\begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 7 \\ 19 \end{bmatrix}\) with \(A = \begin{bmatrix} 2 & 1 \\ 5 & 3 \end{bmatrix}\).
  2. 2
    Multiply both sides on the left by \(A^{-1}\): \(\begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 3 & -1 \\ -5 & 2 \end{bmatrix}\begin{bmatrix} 7 \\ 19 \end{bmatrix} = \begin{bmatrix} 21 - 19 \\ -35 + 38 \end{bmatrix}\).
  3. 3
    Check: \(2(2) + 3 = 7\) and \(5(2) + 3(3) = 19\).
Answer: \(x = 2\), \(y = 3\)
Common Mistake 3 · Multiplying on the wrong side

From \(A\vec x = \vec b\), the solution is \(\vec x = A^{-1}\vec b\), with \(A^{-1}\) on the left. \(\vec b A^{-1}\) is not even defined for a column \(\vec b\).

Quick reference

FactFormula
Identity\(AI = IA = A\)
Determinant\(\det\begin{bmatrix} a & b \\ c & d \end{bmatrix} = ad - bc\)
Inverse existsif and only if \(\det A \ne 0\)
Inverse\(\frac{1}{ad - bc}\begin{bmatrix} d & -b \\ -c & a \end{bmatrix}\)
Area\(|\det A|\) = area spanned by the columns
System\(A\vec x = \vec b \Rightarrow \vec x = A^{-1}\vec b\)