Euler Hall — free maths guides

Build one entry of the inverse from a cofactor

Compute the entry (A-1)ij as Cji over det A. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

One sentence

The entry in rowii, columnjj ofA−1A^{-1} is the cofactorCjiC_{ji} — note the swapped indices — divided bydet⁡A\det A:

(A−1)ij=Cjidet⁡A.\left(A^{-1}\right)_{ij}=\frac{C_{ji}}{\det A}.

The transpose comes from the cofactor expansion

The cofactor formula for the determinant isdet⁡A=∑jaijCij\det A=\sum_j a_{ij}C_{ij} for any fixed rowii. That sums the entries of rowii against the cofactors of rowii.

Now ask what happens when you sum the entries of rowii against the cofactors of a different rowkk. The result is the determinant of a matrix with rowkk replaced by rowii — a matrix with two equal rows — which is zero.

Put together:

∑jaijCkj={det⁡Ai=k0i≠k\sum_j a_{ij}C_{kj}=\begin{cases}\det A&i=k\\0&i\ne k\end{cases}

which is exactly the statement thatAA times the transpose of the cofactor matrix is(det⁡A)I(\det A)I. HenceA⋅CTdet⁡A=IA\cdot\frac{C^{\mathrm{T}}}{\det A}=I, and the inverse is what we claimed.

Worked, entry by entry

A=[120013201],det⁡A=13.A=\begin{bmatrix}1&2&0\\ 0&1&3\\ 2&0&1\end{bmatrix},\qquad \det A=13.

Take the entry in row 1, column 3 ofA−1A^{-1}: computeC31C_{31}.

Remove row 3 and column 1, leaving[2013]\begin{bmatrix}2&0\\1&3\end{bmatrix}, determinant66. The sign is(−1)3+1=+1(-1)^{3+1}=+1, soC31=6C_{31}=6.

(A−1)13=613.\left(A^{-1}\right)_{13}=\frac{6}{13}.

Cross-check by inverting fully:

A−1=113[1−2661−3−241],\def\arraystretch{1.6}A^{-1}=\frac{1}{13}\begin{bmatrix}1&-2&6\\ 6&1&-3\\ -2&4&1\end{bmatrix},

and the(1,3)(1,3) entry really is613\frac{6}{13}. ✓

By the end you can
  • Compute the entry (A^-1)ij as Cji over det A
  • Apply the checkerboard sign correctly
  • Verify the entry against a full inverse
Test yourself

A=[2135]A=\begin{bmatrix}2&1\\3&5\end{bmatrix}. Find the entry in row 2, column 2 ofA−1A^{-1} by the cofactor formula.

Answer

det⁡A=10−3=7\det A=10-3=7. The needed cofactor isC22=(−1)2+2det⁡[2]=2C_{22}=(-1)^{2+2}\det[2]=2.

So(A−1)22=27\left(A^{-1}\right)_{22}=\frac{2}{7}. Check:A−1=17[5−1−32]\def\arraystretch{1.6}A^{-1}=\frac17\begin{bmatrix}5&-1\\-3&2\end{bmatrix}, and the(2,2)(2,2) entry is27\frac27. ✓

Work out where to start — free, no accountAnswer six real questions — free, no account