Cramer's Rule for Solving Linear Systems
Problem
Solve the system 3x + 2y = 5, x + 4y = 7 using Cramer's rule. Show the ratios of determinants.
Explanation
What is Cramer's rule?
For a square linear system with , each variable is a ratio of determinants:
where is the matrix obtained by replacing column of with the right-hand side .
Step-by-step
Setup: , .
Step 1 — :
Since , Cramer's rule applies.
Step 2 — : replace column 1 with .
Step 3 — : replace column 2 with .
Verification
- Eq 1: ✓
- Eq 2: ✓
Why it works
From , replacing column of with gives a matrix whose determinant expands as (the other terms vanish because they'd create repeated columns). So , yielding Cramer's formula.
When to use it
- Small systems (, ). Beautiful closed form, easy to verify.
- Symbolic work with few unknowns where you want a clean expression in terms of the coefficients.
- Theoretical arguments about how solutions depend on parameters.
Not the fastest computational method for large systems. Gaussian elimination runs in ; Cramer's rule via cofactor expansion is — exponential. For , prefer row reduction or matrix inversion.
When it FAILS
If , the system is either inconsistent (no solution) or dependent (infinitely many solutions). Cramer's rule doesn't distinguish between these — you need to fall back to row reduction to diagnose which case you're in.
Common mistakes
- Replacing the wrong column. uses column , not row .
- Skipping the determinant check. Always confirm first.
- Wrong sign on cofactor sub-determinants (in or larger cases).
Try it in the visualization
Slide and watch update as ratios. The three matrices are shown side by side, with the replaced columns highlighted in gold.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.