Calculatorism

2×2 Linear System Solver

Solve two linear equations a₁x+b₁y=c₁, a₂x+b₂y=c₂; output intersection (x,y) with steps.

Input Data

Elimination or substitution.
Eq1 x-coefficient.
Eq1 y-coefficient.
Eq1 constant.
Eq2 x-coefficient.
Eq2 y-coefficient.
Eq2 constant.

Results

Solution x.
2
Solution y.
3
Coefficient determinant D.
-3
Step-by-step working.
Determinant D = a₁b₂ − a₂b₁ = -3 ≠ 0 ⇒ unique solution. By Cramer: x = Dx/D = -6/-3 = 2; y = Dy/D = -9/-3 = 3. Intersection point: (2, 3).

At a glance:Cramer's rule: x=(c1·b2−b1·c2)/D, y=(a1·c2−c1·a2)/D, D=a1·b2−a2·b1. D=0 with Dx,Dy not both zero ⇒ no solution; all zero ⇒ infinitely many.

Formula

D = a1·b2 − a2·b1.

x = (c1·b2 − b1·c2)/D, y = (a1·c2 − c1·a2)/D.

Elimination: scale then subtract to remove a variable.

Substitution: express one variable, plug into the other.

$$D=a_{1}b_{2}-a_{2}b_{1}$$
$$x=\frac{c_{1}b_{2}-c_{2}b_{1}}{D}$$
$$y=\frac{a_{1}c_{2}-a_{2}c_{1}}{D}$$

How to Use

  1. Pick a method (elimination / substitution).
  2. Enter the six coefficients.
  3. The tool returns (x,y), D and the steps.

Outcome by determinant

Outcome by determinant
DDx, DyConclusion
D ≠ 0—unique (intersect)
D = 0not both 0no solution (parallel)
D = 0both 0infinite (coincident)

Dx = c1·b2 − c2·b1, Dy = a1·c2 − c1·a2.

Case Studies

x+y=5, 2x−y=1

D=−3; x=2, y=3; intersection (2,3).

FAQ

What if D = 0?

The lines are parallel or coincident: no unique solution unless all determinants are zero (infinitely many).

Elimination or substitution?

Use elimination when coefficients line up; substitution when one equation easily gives a single variable. Same result.

Related Tools

References

Content review: Calculatorism Science Team. Cramer's rule plus elimination and substitution steps have been verified. Results are for reference only.

Found a problem with the results?

If this calculator's result is wrong, or you have any question about the calculation logic, please let us know. You are viewing:2×2 Linear System Solver(/math/system-2x2)。