Solves three equations such as a₁x + b₁y + c₁z = d₁ for x, y and z with Cramer's rule: the determinant with one column replaced by the right-hand side, over the determinant of the coefficients. When that determinant is zero there is no unique solution.
Three unknowns, , and , need three equations. Cramer's rule builds the determinant of the coefficients and compares it with the determinant obtained by replacing one column with the right-hand side.
is the determinant of the coefficients. replaces the first column with the right-hand side, and and replace the second and third columns in the same way.
Solve , and . The determinant of the coefficients is . Replacing the first column with 6, 3 and 2 gives , so . In the same way and , giving and . Putting these into all three equations confirms them.
A determinant of 0 means the solution is not unique. One of the three equations can be built from the other two, so there are really only two equations worth of information. Either infinitely many solutions exist, or none at all.
Substitution and elimination give the same answer. Cramer's rule follows a fixed procedure, which suits a machine.
Enter each equation as , , and then the right-hand side .