Inverting a 3×3 Matrix
Cofactors, the adjugate, and one final division by the determinant — a longer process than the 2×2 case, but built from exactly the same ideas.
Cofactors and the adjugate matrix
The cofactor $C_{ij}$ of entry $a_{ij}$ is $C_{ij}=(-1)^{i+j}M_{ij}$, where $M_{ij}$ is the minor — the determinant of the $2\times2$ matrix left after deleting row $i$ and column $j$. The matrix of all cofactors is the cofactor matrix $C$.
The adjugate of $A$ is the transpose of the cofactor matrix: $\text{adj}(A)=C^T$. The inverse is then $$A^{-1}=\frac{1}{\det(A)}\text{adj}(A)$$
1. Find $\det(A)$ by expanding along a row or column. 2. Form the matrix of minors $M$: replace every entry with the determinant left after deleting its row and column. 3. Turn $M$ into the matrix of cofactors $C$ by applying the checkerboard of signs $\begin{pmatrix}+&-&+\\-&+&-\\+&-&+\end{pmatrix}$. 4. Transpose $C$ to get $\text{adj}(A)=C^T$. 5. Divide every entry of $\text{adj}(A)$ by $\det(A)$.
Step 1 — the determinant. Expanding along the top row:
$\det(A)=3\begin{vmatrix}2&1\\0&2\end{vmatrix}-1\begin{vmatrix}0&1\\1&2\end{vmatrix}+2\begin{vmatrix}0&2\\1&0\end{vmatrix}=3(4-0)-1(0-1)+2(0-2)=12+1-4=9$.
Step 2 — the matrix of minors. Cover the row and column through each entry in turn and take the determinant of the $2\times2$ block left behind:
Step 3 — the matrix of cofactors. Multiply each entry of $M$ by the sign in the matching position of $\begin{pmatrix}+&-&+\\-&+&-\\+&-&+\end{pmatrix}$:
Step 4 — transpose. Rows become columns to give the adjugate:
Step 5 — divide by the determinant.
Forgetting to transpose the matrix of cofactors before dividing by the determinant is the single most common error — $C$ on its own is not the adjugate, except in the rare case where it happens to be symmetric, which can mask the mistake.
Step 1 — the determinant.
$\det(B)=1\begin{vmatrix}1&0\\1&3\end{vmatrix}-2\begin{vmatrix}2&0\\0&3\end{vmatrix}+2\begin{vmatrix}2&1\\0&1\end{vmatrix}=1(3-0)-2(6-0)+2(2-0)=3-12+4=-5$.
Step 2 — the matrix of minors. Working through each position as in Example 1:
Step 3 — the matrix of cofactors. Apply the same checkerboard of signs to $M$:
Step 4 — transpose. Notice the off-diagonal entries swap places — $C^T$ is not the same matrix as $C$ here:
Step 5 — divide by the determinant. Since $\det(B)=-5$ is negative, every entry is divided by $-5$:
Row 1 of $B$ is $(1,2,2)$; column 1 of $B^{-1}$ is $\dfrac{1}{-5}(3,-6,2)$.
Dot product: $\dfrac{1}{-5}\big[1(3)+2(-6)+2(2)\big]=\dfrac{1}{-5}(3-12+4)=\dfrac{-5}{-5}=1$ ✓
$\det(D)=1(4-6)-2(2-0)+3(2-0)=-2-4+6=0$.
Since $\det(D)=0$, $D$ is singular and has no inverse (note also that row 2 is exactly twice row 1, which is another way to spot singularity by inspection).
Exam-style questions
Question 1 9 marks
Find $A^{-1}$ for $A=\begin{pmatrix}1&0&2\\0&1&1\\1&1&0\end{pmatrix}$.
$\det(A)=1(0-1)-0(0-1)+2(0-1)=-1-0-2=-3$ (M1, A1)
Cofactors: $C_{11}=-1$, $C_{12}=1$, $C_{13}=-1$, $C_{21}=2$, $C_{22}=-2$, $C_{23}=-1$, $C_{31}=-2$, $C_{32}=-1$, $C_{33}=1$ (M1, A1, A1)
$\text{adj}(A)=\begin{pmatrix}-1&2&-2\\1&-2&-1\\-1&-1&1\end{pmatrix}$ (M1, A1)
$A^{-1}=\dfrac{1}{-3}\begin{pmatrix}-1&2&-2\\1&-2&-1\\-1&-1&1\end{pmatrix}$ (A1, A1)
Question 2 4 marks
Show that $B=\begin{pmatrix}2&1&3\\4&2&6\\1&0&1\end{pmatrix}$ has no inverse.
$\det(B)=2(2-0)-1(4-6)+3(0-2)=4+2-6=0$ (M1, A1, A1)
Since $\det(B)=0$, $B$ has no inverse. (A1)
Question 3 4 marks
Given a $3\times3$ matrix $A$ with $\det(A)=5$, state the value of $\det(A^{-1})$ and the value of $\det(2A)$, giving reasons.
$\det(A^{-1})=\dfrac{1}{\det(A)}=\dfrac15$ (B1, B1)
For an $n\times n$ matrix, $\det(kA)=k^n\det(A)$; here $n=3$, so $\det(2A)=2^3(5)=40$ (B1, B1)