2×2 System of Linear Equations Solver (Line Intersection)
Solve two linear equations a₁x + b₁y = c₁ and a₂x + b₂y = c₂ using Cramer’s rule with a live two-line intersection graph.
Input Parameters
ℹ️ Format: Enter a, b, c for ax + by = c in each row · e.g. 2x + 1y = 5 → 2, 1, 5
Equation 1 (a₁x + b₁y = c₁)
Equation 2 (a₂x + b₂y = c₂)
💡 Tip: You can also paste (12, 13, 14) directly into any box.
x
2
y
1
Determinant (D)
-3
Dₓ / Dᵧ
-6 / -3
Formula & Step-by-Step Calculation
D = a₁b₂ − a₂b₁, x = (c₁b₂ − c₂b₁)/D, y = (a₁c₂ − a₂c₁)/D
-
1
Compute main determinant D
D = (2)(-1) − (1)(1) = -3 -
2
Compute Dₓ and Dᵧ
Dₓ = -6, Dᵧ = -3 -
3
Solve x = Dₓ/D and y = Dᵧ/D
x = Dₓ/D = 2, y = Dᵧ/D = 1
Worked Example
Sample inputs and verified result: a₁ = 2, b₁ = 1, c₁ = 5, a₂ = 1, b₂ = -1, c₂ = 1
Intersection (x, y): x = 2, y = 1
Frequently Asked Questions
What happens when determinant D = 0?
The two lines are either parallel (no solution) or identical (infinitely many solutions).