Tutorials › Linear Algebra › Computing a Small Matrix Inverse with the Adjugate

Cramer's Rule, Adjugate and Volume · Tutorial 266 of 1000

Computing a Small Matrix Inverse with the Adjugate

Calculate a small matrix inverse systematically, keep cofactor signs and transposition straight, and check the result by multiplying it back.

Intermediate 10 min read

What You'll Learn

  • Calculate minors and signed cofactors for a \(2\times2\) or \(3\times3\) matrix.
  • Form the adjugate by transposing the cofactor matrix.
  • Use the determinant condition to decide whether the adjugate formula applies.
  • Compute an inverse exactly and verify it by matrix multiplication.
  • Identify why division by a zero determinant cannot produce an inverse.

The Adjugate as a Practical Inverse Method

For a small square matrix, the adjugate formula turns determinant calculations into an explicit inverse. The steps are mechanical, but each has a place where an error can creep in: a minor must be calculated from the correct deleted row and column, its cofactor needs the correct sign, and the cofactor matrix must be transposed before it is used. A final multiplication is an essential check.

All matrices in this tutorial have real entries and are square of size \(2\times2\) or \(3\times3\). For a square matrix \(\mathbf{A}\), the minor \(M_{ij}\) is the determinant of the matrix left after deleting row \(i\) and column \(j\). The cofactor in position \((i,j)\) is \(C_{ij}=(-1)^{i+j}M_{ij}\). In particular, the signs follow a checkerboard pattern, beginning with a positive sign in the upper-left corner.

$$ \begin{bmatrix} +&-&+\\ -&+&-\\ +&-&+ \end{bmatrix} $$

The cofactor matrix has entries \(C_{ij}\) in their original positions. The adjugate, written \(\operatorname{adj}\mathbf{A}\), is the transpose of that cofactor matrix: its entry in position \((i,j)\) is \(C_{ji}\). For a \(2\times2\) matrix, the minor is the single entry remaining after deletion, so these definitions give an especially compact formula.

Definition and formula: If \(\mathbf{A}\) is square, its cofactor matrix is \(\mathbf{C}=[C_{ij}]\), where \(C_{ij}=(-1)^{i+j}M_{ij}\), and \(\operatorname{adj}\mathbf{A}=\mathbf{C}^{\top}\). If \(\det\mathbf{A}\ne0\), then \(\mathbf{A}^{-1}=\dfrac{1}{\det\mathbf{A}}\operatorname{adj}\mathbf{A}\). The adjugate identity, established in the earlier material on the adjugate, is \(\mathbf{A}\operatorname{adj}\mathbf{A}=\operatorname{adj}\mathbf{A}\mathbf{A}=(\det\mathbf{A})\mathbf{I}\).

The determinant condition matters: the formula requires division by \(\det\mathbf{A}\). If this number is zero, the displayed expression is undefined, and the matrix has no inverse. The next result states precisely when the method applies.

Theorem (Adjugate test for invertibility): For a real square matrix \(\mathbf{A}\) of size \(2\times2\) or \(3\times3\), \(\mathbf{A}\) is invertible if and only if \(\det\mathbf{A}\ne0\). When this condition holds, its inverse is \(\dfrac{1}{\det\mathbf{A}}\operatorname{adj}\mathbf{A}\).

Proof. Suppose \(\det\mathbf{A}\ne0\). Define \(\mathbf{B}=\dfrac{1}{\det\mathbf{A}}\operatorname{adj}\mathbf{A}\). By the adjugate identity and scalar multiplication, \(\mathbf{A}\mathbf{B}=\mathbf{I}\) and \(\mathbf{B}\mathbf{A}=\mathbf{I}\), so \(\mathbf{B}\) is an inverse of \(\mathbf{A}\). Conversely, suppose \(\mathbf{A}\) is invertible, with inverse \(\mathbf{B}\). The determinant product rule gives \(\det(\mathbf{A}\mathbf{B})=\det\mathbf{A}\det\mathbf{B}\). Since \(\mathbf{A}\mathbf{B}=\mathbf{I}\) and \(\det\mathbf{I}=1\), we have \(\det\mathbf{A}\det\mathbf{B}=1\), which forces \(\det\mathbf{A}\ne0\). Thus the condition is both necessary and sufficient, and in the nonzero case the inverse is the matrix \(\mathbf{B}\) already constructed. \(\square\)

The \(2\times2\) Formula

Write \(\mathbf{A}=\begin{bmatrix}a&b\\c&d\end{bmatrix}\). Its determinant is \(ad-bc\). The four signed cofactors, in order, are \(d,-c,-b,a\): for example, \(C_{12}=-c\), since deleting row 1 and column 2 leaves \(c\), and the cofactor sign is negative. Transposing the cofactor matrix gives the adjugate below.

Theorem (\(2\times2\) inverse formula): If \(\mathbf{A}=\begin{bmatrix}a&b\\c&d\end{bmatrix}\) and \(ad-bc\ne0\), then \(\mathbf{A}^{-1}=\dfrac{1}{ad-bc}\begin{bmatrix}d&-b\\-c&a\end{bmatrix}\).

Proof. Let \(\mathbf{B}=\dfrac{1}{ad-bc}\begin{bmatrix}d&-b\\-c&a\end{bmatrix}\). Multiplying in the first order gives \(\mathbf{A}\mathbf{B}=\dfrac{1}{ad-bc}\begin{bmatrix}ad-bc&-ab+ab\\cd-dc&-bc+ad\end{bmatrix}=\mathbf{I}_2\). Multiplying in the other order gives \(\mathbf{B}\mathbf{A}=\dfrac{1}{ad-bc}\begin{bmatrix}da-bc&db-bd\\-ca+ac&-cb+ad\end{bmatrix}=\mathbf{I}_2\). The denominator is nonzero by hypothesis, and both products are the identity, so \(\mathbf{B}\) is the inverse. \(\square\)

Worked Example: Inverting a \(2\times2\) Matrix

Find the inverse of \(\mathbf{A}=\begin{bmatrix}2&1\\5&3\end{bmatrix}\) by computing its cofactors and adjugate, then verify the result.

First calculate the determinant: \(\det\mathbf{A}=2(3)-1(5)=6-5=1\), which is nonzero. The minors are \(M_{11}=3\), \(M_{12}=5\), \(M_{21}=1\), and \(M_{22}=2\). Applying the signs \(+,-,-,+\), the cofactor matrix and its transpose are

$$ \mathbf{C}= \begin{bmatrix}3&-5\\-1&2\end{bmatrix}, \qquad \operatorname{adj}\mathbf{A}=\mathbf{C}^{\top} = \begin{bmatrix}3&-1\\-5&2\end{bmatrix}. $$

Divide the adjugate by the determinant. Since the determinant is \(1\), the inverse is \(\mathbf{A}^{-1}=\begin{bmatrix}3&-1\\-5&2\end{bmatrix}\). To check, multiply by the original matrix:

$$ \mathbf{A}\mathbf{A}^{-1} = \begin{bmatrix}2&1\\5&3\end{bmatrix} \begin{bmatrix}3&-1\\-5&2\end{bmatrix} = \begin{bmatrix}6-5&-2+2\\15-15&-5+6\end{bmatrix} = \begin{bmatrix}1&0\\0&1\end{bmatrix}. $$

The multiplication gives \(\mathbf{I}_2\), as required.

Computing a \(3\times3\) Adjugate

For a \(3\times3\) matrix, each minor is a \(2\times2\) determinant. Compute all nine signed cofactors in their original positions, then transpose the resulting matrix. The determinant can be found by cofactor expansion along any row or column; here we use the first row, so \(\det\mathbf{A}=a_{11}C_{11}+a_{12}C_{12}+a_{13}C_{13}\). This is a convenient place to check the cofactor signs: the signs in the first row are \(+,-,+\).

Worked Example: Inverting a \(3\times3\) Matrix

Find and verify the inverse of \(\mathbf{A}=\begin{bmatrix}1&2&0\\0&1&1\\2&0&1\end{bmatrix}\).

Compute the minors and apply the checkerboard signs. The calculations by row are

$$ \begin{aligned} M_{11}=1,\quad M_{12}=-2,\quad M_{13}=-2,\\ M_{21}=2,\quad M_{22}=1,\quad M_{23}=-4,\\ M_{31}=2,\quad M_{32}=1,\quad M_{33}=1. \end{aligned} $$

For instance, \(M_{12}=\det\begin{bmatrix}0&1\\2&1\end{bmatrix}=0(1)-1(2)=-2\), and the negative sign for \(C_{12}\) makes \(C_{12}=2\). Applying all nine signs gives

$$ \mathbf{C}= \begin{bmatrix} 1&2&-2\\ -2&1&4\\ 2&-1&1 \end{bmatrix}, \qquad \operatorname{adj}\mathbf{A}= \begin{bmatrix} 1&-2&2\\ 2&1&-1\\ -2&4&1 \end{bmatrix}. $$

Expand the determinant along the first row, using the first row of cofactors: \(\det\mathbf{A}=1(1)+2(2)+0(-2)=5\). Since \(5\ne0\), the adjugate formula applies, giving

$$ \mathbf{A}^{-1} = \frac{1}{5} \begin{bmatrix} 1&-2&2\\ 2&1&-1\\ -2&4&1 \end{bmatrix}. $$

Verify by multiplying \(\mathbf{A}\) by the adjugate first. Each entry is shown so the diagonal and off-diagonal results can be checked:

$$ \mathbf{A}\operatorname{adj}\mathbf{A} = \begin{bmatrix} 1&2&0\\0&1&1\\2&0&1 \end{bmatrix} \begin{bmatrix} 1&-2&2\\2&1&-1\\-2&4&1 \end{bmatrix} = \begin{bmatrix} 1+4&-2+2&2-2\\ 2-2&1+4&-1+1\\ 2-2&-4+4&4+1 \end{bmatrix} = \begin{bmatrix} 5&0&0\\0&5&0\\0&0&5 \end{bmatrix}. $$

Dividing this product by \(5\) confirms \(\mathbf{A}\mathbf{A}^{-1}=\mathbf{I}_3\). This also checks the determinant and the computed adjugate together.

Why the Computation Works

The calculation is an algorithm, not just a list of manipulations. The adjugate identity ensures that the product of the original matrix and its adjugate is the determinant times the identity. If the determinant is nonzero, dividing by it changes that product to the identity on both sides. This explains why every stage matters: cofactors form the adjugate only after transposition, and the determinant is the scale factor that must be divided out.

The \(2\times2\) case shows the same principle by direct multiplication. For any \(a,b,c,d\) with \(ad-bc\ne0\), the two off-diagonal entries in either product cancel, while both diagonal entries equal \(ad-bc\) before division. The formula is therefore not a memorized pattern detached from the definition of inverse; it constructs a matrix whose products with \(\mathbf{A}\) are exactly the identity.

When the Determinant Is Zero

Worked Example: Detecting a Matrix with No Inverse

Consider \(\mathbf{A}=\begin{bmatrix}1&2\\2&4\end{bmatrix}\). Its determinant is \(1(4)-2(2)=0\). The cofactors are \(C_{11}=4\), \(C_{12}=-2\), \(C_{21}=-2\), and \(C_{22}=1\), so \(\operatorname{adj}\mathbf{A}=\begin{bmatrix}4&-2\\-2&1\end{bmatrix}\). The expression \((1/\det\mathbf{A})\operatorname{adj}\mathbf{A}\) is undefined: division by zero is not permitted.

To check directly that no inverse exists, take the nonzero vector \(\mathbf{x}=\begin{bmatrix}2\\-1\end{bmatrix}\). Then \(\mathbf{A}\mathbf{x}=\begin{bmatrix}2-2\\4-4\end{bmatrix}=\mathbf{0}\). If an inverse existed, multiplication by \(\mathbf{A}^{-1}\) would give \(\mathbf{x}=\mathbf{A}^{-1}\mathbf{A}\mathbf{x}=\mathbf{A}^{-1}\mathbf{0}=\mathbf{0}\), contradicting \(\mathbf{x}\ne\mathbf{0}\). Thus this matrix genuinely has no inverse.

Common Mistake: Forgetting the Transpose

In the first worked example, the cofactor matrix is \(\begin{bmatrix}3&-5\\-1&2\end{bmatrix}\). A tempting wrong calculation is to use that matrix directly as the adjugate, without transposing it. That would give the candidate \(\begin{bmatrix}3&-5\\-1&2\end{bmatrix}\), since the determinant is \(1\). Multiplying this candidate by the original matrix gives

$$ \begin{bmatrix}2&1\\5&3\end{bmatrix} \begin{bmatrix}3&-5\\-1&2\end{bmatrix} = \begin{bmatrix}5&-8\\12&-19\end{bmatrix} \ne\mathbf{I}_2. $$

The correction is to transpose the cofactor matrix first, producing \(\operatorname{adj}\mathbf{A}=\begin{bmatrix}3&-1\\-5&2\end{bmatrix}\), and then divide by the determinant. A second useful check is to confirm that the computed product equals \((\det\mathbf{A})\mathbf{I}\) before dividing. If it does not, revisit the minors, signs, and transpose.

For an exact small-matrix calculation, use this order:

1
Find the determinant.
If it is zero, stop: the matrix has no inverse. If it is nonzero, continue.
2
Calculate each minor and cofactor.
Delete the indexed row and column to form each minor, then apply the sign \((-1)^{i+j}\).
3
Transpose the cofactor matrix.
The resulting matrix is \(\operatorname{adj}\mathbf{A}\).
4
Divide by the determinant and verify.
Multiply the original matrix by the proposed inverse and check that the result is the identity.

Check Your Understanding

Use exact arithmetic, keep the cofactors in their original positions until the transpose step, and verify each proposed inverse by multiplication.

  1. For \(\begin{bmatrix}3&1\\2&1\end{bmatrix}\), calculate the cofactors, adjugate, determinant, and inverse.
  2. Compute the inverse of \(\begin{bmatrix}1&0&1\\0&1&1\\1&1&0\end{bmatrix}\) using cofactors and the adjugate.
  3. For \(\begin{bmatrix}2&4\\1&2\end{bmatrix}\), calculate the determinant and explain why the adjugate formula cannot produce an inverse.
  4. In a \(3\times3\) cofactor matrix, what operation produces the adjugate, and what goes wrong if that operation is omitted?
  5. State the identity used to verify the adjugate formula when \(\det\mathbf{A}\ne0\).

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon