Determinants give a formula for each unknown of a square system and for each entry of an inverse. These formulas are rarely the fastest way to compute, but they show exactly how the answer depends on the data, which matters in theory and in hand calculations with symbols.
For an $n \times n$ invertible $A$ and a vector $\mathbf{b}$, let $A_i(\mathbf{b})$ be $A$ with column $i$ replaced by $\mathbf{b}$.
Key idea
Why it works
Worked example: Cramer for a 2 × 2 system
- $\det A = \begin{vmatrix} 3 & -2 \\ 5 & 1 \end{vmatrix} = 3 + 10 = 13$.
- $\det A_1(\mathbf{b})$ $= \begin{vmatrix} 4 & -2 \\ 11 & 1 \end{vmatrix}$ $= 4 + 22$ $= 26$, so $x = \frac{26}{13} = 2$.
- $\det A_2(\mathbf{b})$ $= \begin{vmatrix} 3 & 4 \\ 5 & 11 \end{vmatrix}$ $= 33 - 20$ $= 13$, so $y = \frac{13}{13} = 1$.
- Check: $3(2) - 2(1) = 4$ ✓ and $5(2) + 1 = 11$ ✓.
Answer: $(x, y) = (2, 1)$
Worked example: One entry of an inverse
- $\det A$ $= 1\begin{vmatrix} 1 & 3 \\ 0 & 1 \end{vmatrix} - 2\begin{vmatrix} 0 & 3 \\ 2 & 1 \end{vmatrix} + 0$ $= 1 - 2(-6)$ $= 13$.
- Entry $(1, 3)$ of $\operatorname{adj} A$ is the cofactor $C_{31}$ (indices swapped): $C_{31} = (+1)\begin{vmatrix} 2 & 0 \\ 1 & 3 \end{vmatrix} = 6$.
- So $(A^{-1})_{13} = \frac{6}{13}$.
Answer: $\frac{6}{13}$
For a $2 \times 2$ matrix the adjugate is the familiar swap-and-negate: $\operatorname{adj}\begin{bmatrix} a & b \\ c & d \end{bmatrix}$ $= \begin{bmatrix} d & -b \\ -c & a \end{bmatrix}$, which is where the $2 \times 2$ inverse formula comes from.
Common mistake
Cramer's rule also explains how sensitive a solution can be. Every unknown is a ratio with $\det A$ in the denominator. When $\det A$ is tiny compared with the entries, small changes in $\mathbf{b}$ can cause big swings in $\mathbf{x}$: in the picture, the two lines are nearly parallel, and nudging one of them slides the crossing point far along the other.