Simultaneous Equations Solver (2×2) Formula
Understand the math behind the simultaneous equations solver (2×2). Each variable explained with a worked example.
Formulas Used
Det
det = a1 * b2 - a2 * b1X Val
x_val = (a1 * b2 - a2 * b1) != 0 ? (c1 * b2 - c2 * b1) / (a1 * b2 - a2 * b1) : 0Y Val
y_val = (a1 * b2 - a2 * b1) != 0 ? (a1 * c2 - a2 * c1) / (a1 * b2 - a2 * b1) : 0Variables
| Variable | Description | Default |
|---|---|---|
a1 | a₁ (Eq1 x-coeff) | 2 |
b1 | b₁ (Eq1 y-coeff) | 3 |
c1 | c₁ (Eq1 constant) | 8 |
a2 | a₂ (Eq2 x-coeff) | 4 |
b2 | b₂ (Eq2 y-coeff) | -1 |
c2 | c₂ (Eq2 constant) | 2 |
How It Works
How to Solve Simultaneous Equations
Cramer's Rule for 2×2 Systems
Given:
Determinant D = a₁b₂ - a₂b₁
x = (c₁b₂ - c₂b₁) / D
y = (a₁c₂ - a₂c₁) / D
If D = 0, the system has no unique solution (the lines are parallel or identical).
Worked Example
Solve: 2x + 3y = 8 and 4x - y = 2.
a1 = 2b1 = 3c1 = 8a2 = 4b2 = -1c2 = 2
- 01D = (2)(-1) - (4)(3) = -2 - 12 = -14
- 02x = (8×(-1) - 2×3) / (-14) = (-8 - 6) / (-14) = -14 / -14 = 1
- 03y = (2×2 - 4×8) / (-14) = (4 - 32) / (-14) = -28 / -14 = 2
- 04Solution: x = 1, y = 2
Ready to run the numbers?
Open Simultaneous Equations Solver (2×2)