Cramer's rule – step by step
Solving linear systems of equations with determinants
A linear system of equations with two or three unknowns often comes up in school, university and engineering — for example in mixture problems, motion problems, or when solving equilibrium conditions in physics. Cramer's rule solves such systems using determinants: x_i = D_i / D. Here D is the determinant of the coefficient matrix and D_i is the determinant in which the i-th column has been replaced by the right-hand side.
The decisive special case is D = 0: here there is no unique solution. To distinguish whether the system has infinitely many solutions (the lines or planes coincide) or no solution at all (the lines or planes are parallel but distinct), you check the numerator determinants Dx, Dy (and, for three unknowns, Dz): if these are all also 0, the system is underdetermined. If at least one of them is nonzero, the system is inconsistent.