Cramer's Rule solves a square system of linear equations using determinants. The whole method rests on one formula: for the variable ,
where is the coefficient matrix and is the matrix formed by replacing the th column of with the constants from . If the system is written as with square and , the system has a unique solution and this formula finds each variable directly.
Why The Formula Holds
The symbols mean: is the determinant of the original coefficient matrix, and each is the determinant after one column has been replaced by the constants column . The condition is essential, because the formula divides by .
This is why the determinant doubles as the test for solvability. If , the system has one unique solution. If , the denominator is zero, so the rule does not apply: there may be no solution or infinitely many. Cramer's Rule is learned precisely because it connects three ideas cleanly: solving linear systems, determinants, and the condition for a unique solution. Use it only when the system has the same number of equations and unknowns, the coefficient matrix is square, and .
Worked Example: A System Step By Step
Solve
First identify the coefficient matrix and the constants column:
Compute the determinant of :
Because , the system has a unique solution, so Cramer's Rule applies.
Find
Replace the first column of with :
Then
Divide by the original determinant:
Find
Replace the second column of with :
Then
Divide by :
So the solution is
That is the full pattern: one determinant for the original matrix, then one more determinant for each variable.
Practice And The Traps To Avoid
Try the same routine on
Compute first; if it is nonzero, replace one column at a time and solve for and . After finishing by hand, compare your setup with a matrix solver to check the determinants as well as the final answer.
Three calculation traps recur:
- Using it when . This is the main check. The method divides by , so a zero determinant means it does not apply for a unique solution.
- Replacing the wrong column. To solve for , replace the -column; for , replace the -column. The constants column replaces one column at a time, it is not appended.
- Treating it as the best method for every system. For larger systems, row reduction or numerical methods are usually more practical.
When Cramer's Rule Is Used
You will see it in algebra and linear algebra courses when the goal is understanding rather than speed, especially when you want to show how each variable depends on the coefficients and constants. It is most comfortable for and sometimes systems. Beyond that, the determinant work grows quickly, so it stops being the default.
Frequently Asked Questions
- What is Cramer’s Rule?
- Cramer’s Rule solves a square system of linear equations using determinants. For each variable, replace the matching column of the coefficient matrix with the constants column, compute that determinant, and divide it by the determinant of the original coefficient matrix. It gives each variable directly without elimination steps.
- When does Cramer’s Rule not work?
- Cramer’s Rule requires the same number of equations and unknowns, a square coefficient matrix, and a nonzero determinant. If the determinant is zero, the denominator in the formula is zero, and the system may have no solution or infinitely many solutions, so the rule cannot produce a unique answer.
- How do you solve a 2x2 system with Cramer’s Rule?
- First compute the determinant of the coefficient matrix and check it is nonzero. Then, for x, replace the first column with the constants and compute that determinant; for y, replace the second column. Divide each new determinant by the original one. The example in this guide gives x equals 2 and y equals 1.
- What does a zero determinant mean for a system of equations?
- A zero determinant of the coefficient matrix means the system does not have a unique solution. It may have no solution at all or infinitely many solutions. In that case, stop using Cramer’s Rule, because dividing by the zero determinant is undefined, and use another method to analyze the system.
Need help with a problem?
Upload your question and get a verified, step-by-step solution in seconds.
Open GPAI Solver →