MatrixStep

Guides8 min

Inverse of a Matrix by Cofactors and the Adjugate (2×2 and 3×3)

Elimination is not the only way to find an inverse. There is also the adjugate formula, built from the determinant and the cofactors. For 2×2 matrices it is the fastest method, and for 3×3 it is a regular exam question.

The adjugate and the inverse formula

For a square matrix A, the cofactor Cᵢⱼ in row i, column j is the determinant of the minor obtained by deleting row i and column j, multiplied by (−1)^(i+j). The matrix of all the cofactors is the cofactor matrix, and its transpose is the adjugate adj(A).

A⁻¹ = (1 / det(A)) · adj(A)adj(A) = (cofactor matrix)ᵀ

If det(A) = 0, then 1/det(A) does not exist, so there is no inverse.

For 2×2, one formula does it all

If A = [[a, b], [c, d]], the cofactor matrix is [[d, −c], [−b, a]], and transposing gives the adjugate [[d, −b], [−c, a]]. Swap the diagonal entries and change the sign of the other two.

A =1234det(A) = 1·4 − 2·3 = −2
adj(A) =4−2−31A⁻¹ = −½ ·4−2−31=−2132−12

To check, confirm that AA⁻¹ = I.

1234×−2132−12=1001

Example: a 3×3 matrix

B =210131012

First find the determinant. Expanding along row 1: 2·(3·2 − 1·1) − 1·(1·2 − 1·0) + 0 = 10 − 2 = 8. It is nonzero, so the inverse exists.

Now compute the nine cofactors. For each position, take the determinant of the 2×2 minor left after deleting that row and column, and attach the sign from the pattern (+ − + / − + − / + − +).

C₁₁ = (−1)^0 · det3112= 5
C₁₂ = (−1)^1 · det1102= −2
C₁₃ = (−1)^2 · det1301= 1
C₂₁ = (−1)^1 · det1012= −2
C₂₂ = (−1)^2 · det2002= 4
C₂₃ = (−1)^3 · det2101= −2
C₃₁ = (−1)^2 · det1031= 1
C₃₂ = (−1)^3 · det2011= −2
C₃₃ = (−1)^4 · det2113= 5

Here is the cofactor matrix and its transpose, the adjugate. This particular matrix is symmetric, so transposing leaves it unchanged.

C =5−21−24−21−25adj(B) = Cᵀ =5−21−24−21−25

Finally, multiply the adjugate by 1/det(B) = 1/8.

B⁻¹ =58−1418−1412−1418−1458
210131012×58−1418−1412−1418−1458=100010001

Adjugate or elimination: which is better?

Common mistakes

FAQ

What else is the adjugate called?

It is also known as the classical adjoint. Textbooks write it adj(A).

What is A·adj(A)?

A·adj(A) = det(A)·I. Dividing this identity by det(A) gives the inverse formula.

Is the inverse of an integer matrix always an integer matrix?

No. That is guaranteed only when det(A) is 1 or −1. When the determinant is 8, as in the example above, fractions appear.

Related guides