Matrices: Determinant and Inverse, Step by Step
Two 2×2 matrix skills that unlock linear algebra — determinant with ad − bc and inverse with the swap-and-negate trick, with worked examples.
By Muddassar Ali · · 5 min read
A matrix is a grid of numbers, and two operations on 2×2 matrices unlock most of linear algebra: the determinant (one number that summarizes the matrix) and the inverse (the matrix that undoes it). Both have short, reliable methods.
The determinant:
For the matrix , the determinant is:
Worked example: for :
The full formula with more examples is on the determinant of a 2×2 matrix page. One fact worth remembering: if the determinant is zero, the matrix has no inverse.
The inverse: swap, negate, divide
For the same matrix, the inverse is:
In words: swap and , negate and , then divide everything by the determinant.
Worked example: for with :
Check by multiplying : the result is the identity matrix , which confirms the inverse is right. The inverse of a 2×2 matrix page shows the same method with more examples.
Common mistakes
- Subtracting the wrong way round in the determinant — it is , not .
- Forgetting to divide by the determinant after swapping and negating.
- Negating the wrong entries — negate and (the off-diagonal), never and .
- Trying to invert a matrix with determinant zero. It has no inverse; stop and check the determinant first.
Practice it
Want to check your work? Try the Matrix Calculator — determinant, inverse, transpose and more, all with steps. Then try similar problems on the practice page.