Educerie

Educerie · AP · Precalculus

Unit 4 Functions Involving Parameters, Vectors, and Matrices · 4.11 The Inverse and Determinant of a Matrix

This unit is not on the AP exam. The exam covers Units 1 to 3 only; Unit 4 is taught here for the course and for what comes after it.

Big ideas: A matrix that undoes another; one number, the determinant, that says whether the undoing is possible and measures an area.

Where it is examined: Not on the AP Precalculus exam. The College Board lists Unit 4 as an additional topic available to schools. If your school teaches it, the work is finding inverses and determinants by hand or with a calculator and using the determinant to decide invertibility.

The question this unit answers: When can a matrix be undone, and what does the number that decides it measure?


AP Precalculus 4.11

The Inverse and Determinant of a Matrix

When can a matrix be undone, and what does the number that decides it measure?

What you will learn

  • Understand the identity matrix and the inverse as the matrix that undoes another
  • Know that a 2 by 2 matrix is invertible exactly when its determinant is not zero
  • Know that the absolute determinant is a parallelogram area and zero means parallel columns

You must be able to

  1. Find the determinant of a 2 by 2 matrix
  2. Build and check the inverse of a 2 by 2 matrix
  3. Solve a pair of linear equations with the inverse
  4. Find values of k that make a matrix non-invertible
  5. Find the area of a parallelogram from a determinant
  6. Explain why parallel columns give no inverse

1The identity matrix

The identity matrix II is a square matrix with 11s on the diagonal from top left to bottom right, and 00s everywhere else.

I=[1001]I = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}

Multiplying a square matrix by the identity matrix of the same size gives back the original matrix:

AI=AAI = AIA=AIA = A

Example: [3112][1001]=[3112]\begin{bmatrix} 3 & 1 \\ 1 & 2 \end{bmatrix}\begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = \begin{bmatrix} 3 & 1 \\ 1 & 2 \end{bmatrix}.

The identity plays the part of the number 11 in multiplication.

2The inverse

The inverse of a square matrix AA, when it exists, is the matrix A−1A^{-1} for which

AA−1=A−1A=IAA^{-1} = A^{-1}A = I

The product of a square matrix and its inverse is the identity matrix of the same size.

For numbers, the inverse of 55 is 15\dfrac{1}{5}, because 5×15=15 \times \dfrac{1}{5} = 1. The matrix inverse does the same job.

Be careful with the notation. A−1A^{-1} is the inverse matrix. It is not 1A\dfrac{1}{A} and it is not the matrix of reciprocals of the entries.

3The determinant

The determinant of the 2×22 \times 2 matrix A=[abcd]A = \begin{bmatrix} a & b \\ c & d \end{bmatrix} is

det⁡(A)=ad−bc\det(A) = ad - bc

Multiply along the main diagonal, then subtract the product along the other diagonal.

Worked example 1. Find det⁡(A)\det(A) for A=[3112]A = \begin{bmatrix} 3 & 1 \\ 1 & 2 \end{bmatrix}.

det⁡(A)=3(2)−1(1)=5\det(A) = 3(2) - 1(1) = 5

A calculator can find a determinant too. Use the determinant command on the stored matrix.

4The inverse of a 2×22 \times 2 matrix

When det⁡(A)≠0\det(A) \ne 0, the inverse of A=[abcd]A = \begin{bmatrix} a & b \\ c & d \end{bmatrix} is

A−1=1ad−bc[d−b−ca]A^{-1} = \frac{1}{ad - bc}\begin{bmatrix} d & -b \\ -c & a \end{bmatrix}

To build it: swap aa and dd, change the signs of bb and cc, and divide every entry by the determinant.

The inverse can also be found with a calculator. The formula is the quick way by hand.

Worked example 2. Find the inverse of A=[3112]A = \begin{bmatrix} 3 & 1 \\ 1 & 2 \end{bmatrix}.

The determinant is 55. Swap 33 and 22, and negate 11 and 11:

A−1=15[2−1−13]A^{-1} = \frac{1}{5}\begin{bmatrix} 2 & -1 \\ -1 & 3 \end{bmatrix}

Check by multiplying:

AA−1=15[3(2)+1(−1)3(−1)+1(3)1(2)+2(−1)1(−1)+2(3)]=15[5005]=IAA^{-1} = \frac{1}{5}\begin{bmatrix} 3(2) + 1(-1) & 3(-1) + 1(3) \\ 1(2) + 2(-1) & 1(-1) + 2(3) \end{bmatrix} = \frac{1}{5}\begin{bmatrix} 5 & 0 \\ 0 & 5 \end{bmatrix} = I

Always check an inverse by multiplying. It takes a minute and catches sign errors.

Using an inverse to solve. The system 3x+y=113x + y = 11 and x+2y=7x + 2y = 7 is A[xy]=[117]A\begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 11 \\ 7 \end{bmatrix}. Multiply both sides on the left by A−1A^{-1}:

[xy]=15[2−1−13][117]=15[1510]=[32]\begin{bmatrix} x \\ y \end{bmatrix} = \frac{1}{5}\begin{bmatrix} 2 & -1 \\ -1 & 3 \end{bmatrix}\begin{bmatrix} 11 \\ 7 \end{bmatrix} = \frac{1}{5}\begin{bmatrix} 15 \\ 10 \end{bmatrix} = \begin{bmatrix} 3 \\ 2 \end{bmatrix}

Check: 3(3)+2=113(3) + 2 = 11 and 3+2(2)=73 + 2(2) = 7.

5When there is no inverse

If det⁡(A)=0\det(A) = 0, the formula would divide by zero, and there is no inverse.

Worked example 3. B=[2412]B = \begin{bmatrix} 2 & 4 \\ 1 & 2 \end{bmatrix} has det⁡(B)=2(2)−4(1)=0\det(B) = 2(2) - 4(1) = 0. So BB has no inverse.

A square matrix AA has an inverse if and only if det⁡(A)≠0\det(A) \ne 0.

Worked example 4. For which values of kk does [k41k]\begin{bmatrix} k & 4 \\ 1 & k \end{bmatrix} have no inverse?

det⁡=k2−4=0\det = k^2 - 4 = 0k=2 or k=−2k = 2 \ \text{or}\ k = -2

For every other kk, the matrix has an inverse.

6The determinant as an area

Take the two columns of a 2×22 \times 2 matrix as vectors from the origin. They span a parallelogram.

The absolute value of the determinant equals the area of that parallelogram. The same is true for the rows.

Figure 1 shows A=[3112]A = \begin{bmatrix} 3 & 1 \\ 1 & 2 \end{bmatrix}. Read it in this order:

  • The teal arrow is the first column, ⟨3,1⟩\langle 3, 1\rangle. The amber arrow is the second, ⟨1,2⟩\langle 1, 2\rangle.
  • The shaded parallelogram has these two vectors as sides. Its fourth vertex is (4,3)(4, 3).
  • Its area is 55, which is ∣det⁡(A)∣\lvert\det(A)\rvert.
Figure 1. The columns <3, 1> and <1, 2> span a parallelogram of area 5, which is the absolute value of the determinant 1 2 3 4 1 2 3 0 y x area 5 <3, 1> <1, 2> (4, 3)
Figure 1 · The columns ⟨3, 1⟩ and ⟨1, 2⟩ span a parallelogram of area 5, which is the absolute value of the determinant

A check by another route: the vertices (0,0)(0,0), (3,1)(3,1), (4,3)(4,3), (1,2)(1,2) give area 12∣0+5+5+0∣=5\dfrac{1}{2}\lvert 0 + 5 + 5 + 0\rvert = 5 by the shoelace formula.

If the determinant is zero, the parallelogram has no area. The two vectors lie along one line: they are parallel.

Example: for B=[2412]B = \begin{bmatrix} 2 & 4 \\ 1 & 2 \end{bmatrix}, the columns ⟨2,1⟩\langle 2, 1\rangle and ⟨4,2⟩\langle 4, 2\rangle are multiples of each other, so they are parallel. A flat "parallelogram" has area zero.

This gives the reason for the rule in section 6. A matrix with parallel columns squashes the whole plane onto a line, and you cannot recover the original vector from the squashed one. So there is no inverse.

The sign of the determinant tells you about orientation. The area is the absolute value.