Home

Cramer's Rule

Cramer's rule solver. Enter matrix A and vector b to solve each unknown as a ratio of determinants, showing all minors—for linear systems.

展开更多 ▾
xᵢ = det(Aᵢ) / det(A)
space-separated entries, semicolon-separated rows, e.g. 1 2;3 4
space-separated

📖 Tutorial|Cramer's Rule

1. Definition
If det(A)≠0, the unique solution of Ax=b is xᵢ = det(Aᵢ)/det(A), where Aᵢ replaces column i by b.
2. Symbols
SymbolMeaning
AᵢA with column i replaced by b
det(A)coefficient determinant
xᵢi-th unknown
3. How this tool works
  • Cramer's rule requires det A≠0 and a square system;
  • Compute one determinant per column replacement;
  • An n×n system needs n+1 determinants; inefficient for large n.
4. Steps
  1. Enter A and b;
  2. Click Calculate to see det(A) and det(Aᵢ);
  3. Read each xᵢ.
5. Example
Example: A=2 1;1 −1, b=1 2. det=−3, x₁=1, x₂=−1.
6. Pitfalls
Cannot use it when det A=0;
Only for square systems with equal equations and unknowns;
Prefer Gaussian elimination for large n.

❓ FAQ|Cramer's Rule

Cramer's rule formula?
xᵢ = det(Aᵢ)/det(A).
When not usable?
When det A=0 (no or infinite solutions).
What is Aᵢ?
A with column i replaced by b.
Why not for large n?
It needs n+1 determinants, O(n!), versus O(n³) for elimination.
Square only?
Yes, equations equal unknowns.