Unit 4 Topic 4.11

The Inverse and Determinant of a Matrix

see every function move

3 min readfreeNot practiced

Beyond the exam. The AP® Precalculus exam does not test this unit. Many classes teach it, and it prepares you for calculus.

For numbers, every nonzero aa has a reciprocal 1a\frac{1}{a} with a⋅1a=1a \cdot \frac{1}{a} = 1. For matrices the role of 11 is played by the identity II, and the role of "nonzero" is played by one number computed from the entries: the determinant.

The determinant

For a 2×22 \times 2 matrix,

det⁡[abcd]=ad−bc,\det \left[ \begin{matrix} a & b \\ c & d \end{matrix} \right] = ad - bc,

the product down the main diagonal minus the product up the other diagonal. For A=[4322]A = \left[ \begin{matrix} 4 & 3 \\ 2 & 2 \end{matrix} \right], det⁡A\det A=4(2)−3(2)= 4(2) - 3(2)=8−6= 8 - 6=2= 2.

What the determinant measures

Draw the two columns of the matrix as vectors from the origin. They make a parallelogram, and its area is the absolute value of the determinant.

The column vectors <3, 1> and <1, 2> drawn from the origin, and the shaded parallelogram they make, with corners (0, 0), (3, 1), (4, 3) and (1, 2). Its area is 5, the determinant 3 times 2 minus 1 times 1.
Figure 1. Columns ⟨3,1⟩\left\langle 3, 1 \right\rangle and ⟨1,2⟩\left\langle 1, 2 \right\rangle: area |3(2)−1(1)|=5\left| 3(2) - 1(1) \right| = 5. LevlPrep original diagram.

The sign records order: swapping the two columns gives the same parallelogram but changes the sign of the determinant. Doubling one column doubles the area and the determinant; multiplying the whole 2×22 \times 2 matrix by 33 triples both columns, so the determinant is multiplied by 3⋅3=93 \cdot 3 = 9. When the determinant is 00, the columns lie along one line and the "parallelogram" is flat.

The inverse

The inverse of a square matrix AA is the matrix A−1A^{-1} with AA−1=A−1A=IAA^{-1} = A^{-1}A = I. For a 2×22 \times 2 matrix with det⁡A≠0\det A \ne 0:

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

In words: swap the diagonal entries, change the signs of the other two, divide every entry by the determinant.

Worked example 1. Find the inverse of A=[4322]A = \left[ \begin{matrix} 4 & 3 \\ 2 & 2 \end{matrix} \right] and check it.

det⁡A=2\det A = 2. Swap and negate: [2−3−24]\left[ \begin{matrix} 2 & -3 \\ -2 & 4 \end{matrix} \right]. Divide by 22: A−1=[1−32−12]A^{-1} = \left[ \begin{matrix} 1 & -\frac{3}{2} \\ -1 & 2 \end{matrix} \right].

Check one entry of AA−1AA^{-1}: row 1 of AA times column 2 of A−1A^{-1} is 4(−32)+3(2)4\left(-\frac{3}{2}\right) + 3(2)=−6+6= -6 + 6=0= 0, as it should be. The full product is II.

When there is no inverse

If det⁡A=0\det A = 0, the formula would divide by zero, and in fact no inverse exists. Take B=[6342]B = \left[ \begin{matrix} 6 & 3 \\ 4 & 2 \end{matrix} \right], with det⁡B=12−12=0\det B = 12 - 12 = 0. Then B[1−2]=[00]B\left[ \begin{matrix} 1 \\ -2 \end{matrix} \right] = \left[ \begin{matrix} 0 \\ 0 \end{matrix} \right], and also B[00]=[00]B\left[ \begin{matrix} 0 \\ 0 \end{matrix} \right] = \left[ \begin{matrix} 0 \\ 0 \end{matrix} \right]. Two different columns give the same result, so no matrix could send [00]\left[ \begin{matrix} 0 \\ 0 \end{matrix} \right] back to the right one.

Solving a system with the inverse

The system 4x+3y=74x + 3y = 7, 2x+2y=42x + 2y = 4 is the matrix equation AX=BAX = B with X=[xy]X = \left[ \begin{matrix} x \\ y \end{matrix} \right] and B=[74]B = \left[ \begin{matrix} 7 \\ 4 \end{matrix} \right].

Worked example 2. Solve it with A−1A^{-1}.

Multiply both sides on the left by A−1A^{-1}: XX=A−1B= A^{-1}B=[1−32−12][74]= \left[ \begin{matrix} 1 & -\frac{3}{2} \\ -1 & 2 \end{matrix} \right]\left[ \begin{matrix} 7 \\ 4 \end{matrix} \right].

Row 1: 7−6=17 - 6 = 1. Row 2: −7+8=1-7 + 8 = 1. So x=1x = 1, y=1y = 1. Check: 4+3=74 + 3 = 7 and 2+2=42 + 2 = 4.

The order matters: A−1BA^{-1}B, not BA−1BA^{-1}, because AA multiplies XX from the left.

det⁡A\det AColumnsInverseAX=BAX = B
not 00a true parallelogramexistsexactly one solution, A−1BA^{-1}B
00on one linedoes not existno solution or many

Spot a mistake on this page?