algebra calculators

System of Linear Equations Solver (2×2)

Solves a 2×2 system of linear equations (a₁x + b₁y = c₁ and a₂x + b₂y = c₂) using Cramer's Rule. Use it to find the exact point where two straight lines intersect.

About this calculator

A 2×2 linear system consists of two equations: a₁x + b₁y = c₁ and a₂x + b₂y = c₂. Cramer's Rule solves it using determinants. The system determinant is D = a₁b₂ − a₂b₁. If D = 0, the lines are parallel or coincident and no unique solution exists. Otherwise, the solutions are x = (c₁b₂ − c₂b₁) / D and y = (a₁c₂ − a₂c₁) / D. Each numerator replaces the corresponding column of D with the constants c₁ and c₂. This approach is equivalent to the elimination method but is expressed compactly in matrix notation, making it easy to automate and verify.

How to use

Solve the system: 3x + 2y = 12 and x − y = 1. Enter a1 = 3, b1 = 2, c1 = 12, a2 = 1, b2 = −1, c2 = 1. Compute D = (3)(−1) − (1)(2) = −3 − 2 = −5. Then x = (c1×b2 − c2×b1) / D = (12×(−1) − 1×2) / (−5) = (−12 − 2) / (−5) = −14 / −5 = 2.8. And y = (a1×c2 − a2×c1) / D = (3×1 − 1×12) / (−5) = (3 − 12) / (−5) = −9 / −5 = 1.8. Verify: 3(2.8) + 2(1.8) = 8.4 + 3.6 = 12 ✓.

Frequently asked questions

What does it mean when the system of linear equations has no unique solution?

When the determinant D = a₁b₂ − a₂b₁ equals zero, the two lines described by the equations are either parallel (no intersection, no solution) or identical (infinitely many solutions). In either case, Cramer's Rule cannot produce a single (x, y) pair. You can distinguish the two cases by checking whether the ratios of all three corresponding coefficients are equal — if they are, the lines are the same; if only the first two ratios match, the lines are parallel.

How does Cramer's Rule compare to the substitution method for solving 2×2 systems?

Cramer's Rule and substitution always give the same answer when a unique solution exists. Substitution is intuitive for small systems — you isolate one variable and plug it into the other equation. Cramer's Rule is more systematic and scales gracefully into matrix methods for larger systems. For a 2×2 system, both methods require roughly the same arithmetic effort, but Cramer's Rule is easier to program and less prone to algebraic sign errors when coefficients are large or fractional.

Why do two linear equations sometimes have infinitely many solutions?

Two linear equations have infinitely many solutions when they represent the same line — one equation is a scalar multiple of the other. For example, x + 2y = 4 and 2x + 4y = 8 are identical after dividing the second by 2. Every point on that line satisfies both equations simultaneously. The determinant in this case is zero because the coefficient matrix is singular (its rows are linearly dependent), signaling that the system is underdetermined rather than inconsistent.