In discrete mathematics and linear algebra, systems of simultaneous linear equations can be solved using several methods. One important and systematic method is Cramer’s Rule.
Cramer’s Rule uses determinants to find the values of unknown variables. It is especially useful for small systems (2×2 and 3×3).
Cramer’s Rule is applicable only when:
det(A) ≠ 0
✔ The coefficient matrix must be non-singular ✔ The system must have a unique solution
Consider:
a1x + b1y = c1
a2x + b2y = c2
D = | a1 b1 |
| a2 b2 |
Dx = | c1 b1 |
| c2 b2 |
Dy = | a1 c1 |
| a2 c2 |
x = Dx / D
y = Dy / D
Solve:
2x + 3y = 8
x + 2y = 5
D = | 2 3 |
| 1 2 | = (2×2 − 3×1) = 4 − 3 = 1
Dx = | 8 3 |
| 5 2 | = (8×2 − 3×5) = 16 − 15 = 1
Dy = | 2 8 |
| 1 5 | = (2×5 − 8×1) = 10 − 8 = 2
x = 1/1 = 1
y = 2/1 = 2
Consider:
a1x + b1y + c1z = d1
a2x + b2y + c2z = d2
a3x + b3y + c3z = d3
D = determinant of coefficient matrix
DxDyDzx = Dx / D
y = Dy / D
z = Dz / D
If D = 0:
If D ≠ 0:
Cramer’s Rule solves linear equations using determinants
For 2 variables:
x = Dx / D, y = Dy / DApplicable only when:
det(A) ≠ 0Best suited for 2×2 and 3×3 systems