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.
The entry in rowi, columnj ofA−1 is the cofactorCji — note the swapped indices — divided bydetA:
(A−1)ij=detACji.
The transpose comes from the cofactor expansion
The cofactor formula for the determinant isdetA=∑jaijCij for any fixed rowi. That sums the entries of rowi against the cofactors of rowi.
Now ask what happens when you sum the entries of rowi against the cofactors of a different rowk. The result is the determinant of a matrix with rowk replaced by rowi — a matrix with two equal rows — which is zero.
Put together:
j∑aijCkj={detA0i=ki=k
which is exactly the statement thatA times the transpose of the cofactor matrix is(detA)I. HenceA⋅detACT=I, and the inverse is what we claimed.
Worked, entry by entry
A=102210031,detA=13.
Take the entry in row 1, column 3 ofA−1: computeC31.
Remove row 3 and column 1, leaving[2103], determinant6. The sign is(−1)3+1=+1, soC31=6.
(A−1)13=136.
Cross-check by inverting fully:
A−1=13116−2−2146−31,
and the(1,3) entry really is136. ✓
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=[2315]. Find the entry in row 2, column 2 ofA−1 by the cofactor formula.
Answer
detA=10−3=7. The needed cofactor isC22=(−1)2+2det[2]=2.
So(A−1)22=72. Check:A−1=715−3−12, and the(2,2) entry is72. ✓