Inverse of a 2×2 matrix
Swap, negate, divide by the determinant.
The inverse of A = [a, b; c, d] is (1/det)·[d, −b; −c, a], where det = ad − bc: swap the diagonal entries, negate the other two, and divide everything by the determinant. If det = 0, the matrix has no inverse.
Example: [4, 7; 2, 6]
- det = 24 − 14 = 10
- (1/10)[6, −7; −2, 4] — Swap, negate, divide
Why it works: The inverse must undo the matrix. Swapping, negating and dividing by the determinant builds exactly the matrix that does that.
Tip: Check: A times its inverse should give the identity matrix [1, 0; 0, 1].