Determinant of a 2×2 matrix
ad − bc.
For a 2×2 matrix [[a, b], [c, d]], the determinant is ad − bc: multiply down the main diagonal, then subtract the other diagonal. If it’s 0, the matrix has no inverse.
Example: [[4, 2], [5, 3]]
- 4 × 3 − 2 × 5 — ad − bc
- 12 − 10
- 2 — The determinant is 2
Why it works: The determinant is the area scale factor of the matrix. If it is zero, the matrix flattens everything onto a line.
Tip: Main diagonal (top-left to bottom-right) first, then subtract.