For a square system with , each unknown is a fraction: the determinant of with that unknown's column replaced by , over . No row operations at all.
| Step | On | |
|---|---|---|
| 1 | Write A and b, and compute det(A). Stop if it is ; use elimination instead. | |
| 2 | Replace column 1 with b and take the determinant. All other columns stay where they are. | |
| 3 | Do the same for every other unknown you need. For , replace column . | |
| 4 | Divide by det(A). Cramer's rule: . | |
| 5 | Check in the original equations. | ✓, ✓ |