How it works
A system of linear equations (Linear System) has two equations in the form a·x + b·y = c. This calculator solves it with Cramer's rule, which uses the determinant a1·b2 − b1·a2. When the determinant is not zero there is exactly one solution. When it is zero, the two lines are parallel or the same line, so no single answer exists. You can check the answer by putting x and y back into both equations.
Formula
x = (c1 × b2 − b1 × c2) ÷ D.
y = (a1 × c2 − c1 × a2) ÷ D.
Example
Example in plain words. 2x + 3y = 13 and x − y = −1.
D = 2 × (−1) − 3 × 1 = −5.
x = (13 × (−1) − 3 × (−1)) ÷ (−5) = 2.
y = (2 × (−1) − 13 × 1) ÷ (−5) = 3.
Check: 2 × 2 + 3 × 3 = 13 and 2 − 3 = −1.
Frequently asked questions
What if the determinant is zero?
The lines are parallel or identical, so there is no single solution. Change a coefficient and try again.
Can I enter negative numbers?
Yes. Every coefficient can be negative, positive or zero.