StatGardenREF. DESK
Calculators/Maths/System of two linear equations
Maths

System of two linear equations calculator

Solves a₁x+b₁y=c₁ and a₂x+b₂y=c₂ for x and y.

What this calculator does

System of two linear equations works out solves a₁x+b₁y=c₁ and a₂x+b₂y=c₂ for x and y. Enter your own figures above and the answer updates as you type: nothing is fixed in the code, so the result reflects exactly the numbers you supply.

The formula this calculator evaluates is printed under the tool and explained below, so you can check the working by hand or reuse it in a spreadsheet.

The formula

FormulaD = a₁b₂ − a₂b₁; x = (c₁b₂ − c₂b₁)/D; y = (a₁c₂ − a₂c₁)/D

The inputs explained

FieldWhat to enter
a₁A number. Starts at 2.
b₁A number. Starts at 3.
c₁A number. Starts at 8.
a₂A number. Starts at 1.
b₂A number. Starts at -1.
c₂A number. Starts at 1.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

How the answer changes with a₁

Every other input is held at the calculator’s starting values while a₁ varies. Select any row to load that scenario into the calculator.

How the answer changes with a₁
a₁xyDeterminant D
12.7501.750-4.000
1.52.4441.444-4.500
22.2001.200-5.000
31.8330.8333-6.000
41.5710.5714-7.000
61.2220.2222-9.000