For the matrix with rows (a, b) and (c, d), the inverse has the rows (d, −b) and (−c, a), each entry divided by
ad − bc. Entry by entry:
where p is an entry of the inverse and q the matching entry of the swapped matrix:
| Entry of the inverse |
q |
| top left |
d |
| top right |
−b |
| bottom left |
−c |
| bottom right |
a |
Enter a, b, c, d and q in the card above for one entry at a time.
Holds when ad − bc ≠ 0. At 0 the matrix is singular and has no inverse.
Worked example
The matrix with rows (1, 2) and (3, 4) has ad − bc = 4 − 6 = −2. The four entries of the inverse are
4/(−2) = −2, −2/(−2) = 1, −3/(−2) = 1.5 and 1/(−2) = −0.5, so the inverse has rows (−2, 1) and (1.5, −0.5).
Check the first row of A times the first column of the inverse: 1·(−2) + 2·1.5 = 1.
A second example
The matrix with rows (4, 7) and (2, 6) has ad − bc = 24 − 14 = 10, and the inverse has rows (0.6, −0.7) and
(−0.2, 0.4). The matrix with rows (2, 4) and (1, 2) has determinant 0 and no inverse.
Common mistakes
- Keeping a and d in place. They swap places; only b and c change sign.
- Negating the diagonal. The off-diagonal entries get the minus sign.
- Forgetting the division. The swapped matrix is the inverse only when the determinant is 1.
Frequently asked questions
How do I check the answer?
Multiply the matrix by its inverse. The product must be the identity, with rows (1, 0) and (0, 1).
What is the swapped matrix called?
The adjugate (adjoint in some books), and the inverse is the adjugate divided by the
determinant.