Cramer's Rule Formula – xᵢ = Dᵢ / D Reference

Complete Cramer's Rule formula reference: variable definitions, step-by-step usage, determinant computation, and three fully worked examples for 2×2 and 3×3 systems.

Formula
For a square n×n system Ax = b with det(A) ≠ 0, each variable xᵢ equals the determinant of the matrix Aᵢ (A with column i replaced by b) divided by the determinant of A.
Variables
SymbolNameDescriptionUnit
xᵢi-th variableThe unknown to solve for (x₁, x₂, ..., xₙ)
DMain determinantdet(A), the determinant of the coefficient matrix A
Dᵢi-th sub-determinantdet(Aᵢ), where Aᵢ is A with column i replaced by the constants b
ACoefficient matrixn×n matrix of equation coefficients
bConstants vectorColumn vector of right-hand side constants
AᵢModified matrixMatrix A with its i-th column replaced by b
How to Use
  1. Arrange the system as Ax = b and identify A and b.
  2. Compute D = det(A). If D = 0, the system has no unique solution.
  3. For each i from 1 to n, form Aᵢ by replacing column i of A with b.
  4. Compute Dᵢ = det(Aᵢ) for each i.
  5. Calculate xᵢ = Dᵢ / D for each variable.
Examples
1. 2×2 system: 2x₁ + x₂ = 5, x₁ − x₂ = 1
Verify: 2(2)+1 = 5 ✓, 2−1 = 1 ✓
2. 3×3 system: x₁ + x₂ + x₃ = 6, 2x₁ − x₂ + x₃ = 3, x₁ + 2x₂ − x₃ = 2

D₁ = D₂ = D₃ = 7 by symmetry of this system, giving x₁ = x₂ = x₃ = 7/7 = 1.

Solution: x₁ = 1, x₂ = 1, x₃ = 1. Verify: 1+1+1 = 6 ✓, 2−1+1 = 2 ✓, 1+2−1 = 2 ✓. Use the calculator to verify all Dᵢ step by step.
3. No-solution case: x₁ + x₂ = 3, 2x₁ + 2x₂ = 8
D = 0 and D₁ ≠ 0 → no solution (the lines are parallel).