Mathematics · INTERACTIVE LAB

Two equations, two unknowns

See where two lines meet and follow elimination by determinants.

Local computationExplained methodNo account

Before you start

Enter a, b and c for each equation ax + by = c.

The answer and the path to it
  1. 01Inputs
  2. 02Model
  3. 03Check
What this model can do

Two linear equations only. Near-parallel lines can make numerical answers sensitive to rounding.

More tools: MathematicsPrepare an AI self-test

Solve two simultaneous equations in two unknowns

Enter both equations with coefficients in the same order: x, y and the constant. A solution must satisfy both equations, rather than just one.

Example: x + y = 5 and x − y = 1

Add the equations: 2x = 6, so x = 3. Substitute into the first equation: y = 2. Check: 3 + 2 = 5 and 3 − 2 = 1.

What does a zero determinant mean?

Distinguish parallel lines from identical lines. x + y = 5 and 2x + 2y = 12 are inconsistent; replacing 12 by 10 gives infinitely many solutions.

Why check coefficient signs?

In 2x − 3y = 7, the y coefficient is −3. Entering 3 changes the equation. Keep enough decimal places when checking rounded solutions.

Understand the method before trying again