Cramer's Rule

Given a system of linear equations, Cramer's Rule is a handy way to solve for just one of the variables without having to solve the whole system of equations. They don't usually teach Cramer's Rule this way, but this is supposed to be the point of the Rule: instead of solving the entire system of equations, you can use Cramer's to solve for just one single variable.

Let's use the following system of equations:

We have the left-hand side of the system with the variables (the "coefficient matrix") and the right-hand side with the answer values. Let D be the determinant of the coefficient matrix of the above system, and let Dx be the determinant formed by replacing the x-column values with the answer-column values:

system of

equations

2x + 1y + 1z = 3

 1x – 1y – 1z = 0

1x + 2y + 1z = 0

coefficient

matrix's

determinant

answer

column

Dx: coefficient determinant

with answer-column

values in x-column

Similarly, Dy and Dz would then be:

Cramer's Rule says that x = Dx ÷ D, y = Dy ÷ D, and z = Dz ÷ D. That is:

 (See matrix section for method of finding determinant of a matrix)

That's all there is to Cramer's Rule. To find whichever variable you want (call it "ß" or "beta"), just evaluate the determinant quotient Dß ÷ D.

The point of Cramer's Rule is that you don't have to solve the whole system to get the one value you need. Don't let all the subscripts and stuff confuse you: the Rule is really pretty simple, you just pick the variable you want to solve for, replace that variable's column of values in the coefficient determinant with the answer-column's values, evaluate that determinant, and divide by the coefficient determinant. That's all there is to it.

Almost.

What if the coefficient determinant is zero? You can't divide by zero, so what does this mean? I can't go into the technicalities here, but "D = 0" means that the system of equations has no unique solution. The system may be inconsistent (no solution at all) or dependent (an infinite solution, which may be expressed as a parametric solution such as "(a, a + 3, a – 4)"). In terms of Cramer's Rule, "D = 0" means that you'll have to use some other method (such as matrix row of operations) to solve the system. If D = 0, you can't use Cramer's Rule.