Cramer's rule: how and when to use it
5 min read
Short answer
For a square system with , Cramer's rule gives each unknown as , where is with its -th column replaced by . It is neat for and sometimes systems, but row reduction is faster for anything bigger.
When it works and when it does not
If the rule breaks (division by zero): the system has no solution or infinitely many, and Cramer's rule cannot tell which. For large , computing determinants is far slower than Gaussian elimination. The rule shines when you need a single variable, or a formula that shows how the solution depends on the parameters.
Why it works
Replacing column of by leaves a matrix whose columns repeat every other column. Determinants vanish for repeated columns, so only the term survives, giving .
Worked example
Solve , using Cramer's rule.
.
and .
Check: ✓ and ✓.
Try it yourself
Solve , with Cramer's rule.
Show the answer
. and . Check: ✓ and ✓.
Keep going with practice
Determinants and systems of equations are covered in Vidi's Linear Algebra & Probability course, with a matrix calculator for checking.