Home Math System of Equations Calculator

System of Equations Calculator

Solve two linear equations with two unknowns, x and y, step by step.

Advertisement

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.

Advertisement

Formula

Determinant D = a1 × b2 − b1 × a2.
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.

Advertisement

Related calculators

Percentage Calculator

Find a percent of a number, what percent one number is of another, and percent change, all at once.

Fraction Calculator

Add, subtract, multiply and divide fractions, with the answer simplified.

Scientific Calculator

Online scientific calculator with trig, logs, powers, roots, factorial and degree or radian mode.

Quadratic Formula Calculator

Solve ax² + bx + c = 0, with the discriminant and the vertex.