System of Equations Solver — 2-Variable Linear System
Solve systems of two linear equations with two variables using Cramer's rule. Get step-by-step solutions with unique, infinite, or no solution cases.
System Solver
Results update instantly as you type
Enter Values
Embed Code
Copy and paste this HTML snippet into any web page to embed this calculator directly.
<iframe src="http://127.0.0.1:54963/embed/math/system-of-equations?ref=embed" title="System of Equations Solver — 2-Variable Linear System" width="100%" style="max-width:600px; border:none; height:500px;" loading="lazy"></iframe>
Direct Link
Share this link to let others open the calculator in their browser.
Linear System — Two Lines
Determinant (D)
-19
Solution
(1.210526, 1.526316)
The Formula
Cramer's rule solves systems of two linear equations in two variables using determinants. Given the system a₁x + b₁y = c₁ and a₂x + b₂y = c₂, the main determinant D = a₁b₂ − a₂b₁ determines solvability. If D ≠ 0, the system has a unique solution: x = Dx/D and y = Dy/D, where Dx and Dy replace the x-column and y-column with constants. If D = 0 and Dx = Dy = 0, there are infinitely many solutions (the equations are dependent). If D = 0 and Dx ≠ 0 or Dy ≠ 0, there is no solution (the equations are inconsistent and represent parallel lines).
Variable Definitions
Main Determinant
D = a₁b₂ − a₂b₁. The determinant determines whether the system has a unique solution (D ≠ 0), infinite solutions (D = 0, Dx = Dy = 0), or no solution (D = 0, Dx or Dy ≠ 0). Geometrically, D ≠ 0 means the two lines intersect at a single point.
X-Determinant
Dx = c₁b₂ − c₂b₁. Replaces the x-coefficient column with the constants. Used with D to compute x = Dx/D when a unique solution exists.
Y-Determinant
Dy = a₁c₂ − a₂c₁. Replaces the y-coefficient column with the constants. Used with D to compute y = Dy/D when a unique solution exists.
Solution Variables
The two unknowns being solved for. Each pair (x, y) represents the intersection point of two lines in 2D space.
How to Use This Calculator
- 1
Enter the coefficients for equation 1 in the form a₁x + b₁y = c₁. The coefficients a₁, b₁, and the constant c₁ are all required.
- 2
Enter the coefficients for equation 2 in the form a₂x + b₂y = c₂. All six values (a₁, b₁, c₁, a₂, b₂, c₂) must be provided.
- 3
The calculator computes the determinant D and reports whether the system has a unique solution, infinite solutions, or no solution.
- 4
If a unique solution exists, the calculator displays x and y with step-by-step work showing Cramer's rule calculations.
- 5
For dependent or inconsistent systems, the calculator explains the geometric meaning — parallel lines or coincident lines.
Quick Reference
| From | To |
|---|---|
| Unique solution | D = a₁b₂ − a₂b₁ ≠ 0 → one intersection point |
| Infinite solutions | D = 0, Dx = Dy = 0 → same line (coincident) |
| No solution | D = 0, Dx ≠ 0 or Dy ≠ 0 → parallel lines |
| Cramer's Rule | x = Dx/D, y = Dy/D for D ≠ 0 |
Common Applications
- Economics: Solve supply and demand equilibrium where two linear equations represent market conditions — find the price and quantity where supply equals demand.
- Engineering: Analyze circuits with two unknowns using Kirchhoff's voltage and current laws, where each loop or node produces a linear equation.
- Chemistry: Balance chemical reactions with two unknowns or solve mixture problems where two substances combine with different concentrations.
- Computer Graphics: Find intersection points of lines for collision detection, ray tracing, and geometric computations in 2D space.
- Education: Learn fundamental linear algebra concepts, practice Cramer's rule, and verify homework solutions for systems of equations.
Cramer's rule uses determinants D, Dx, and Dy to solve 2×2 linear systems. The sign of D determines if the solution is unique, infinite, or nonexistent, corresponding to intersecting, coincident, or parallel lines.
Understanding the Concept
Solving systems of linear equations is a cornerstone of algebra with applications spanning nearly every scientific and engineering discipline. Cramer's rule, named after the Swiss mathematician Gabriel Cramer (1704–1752), provides an elegant method for solving systems using determinants. For a 2×2 system a₁x + b₁y = c₁ and a₂x + b₂y = c₂, the determinant D = a₁b₂ − a₂b₁ serves as a quick test for solvability. If D ≠ 0, the two lines intersect at exactly one point — the unique solution (x, y) = (Dx/D, Dy/D). The geometric interpretation is intuitive: two non-parallel lines in a plane always intersect exactly once. If D = 0, the lines have the same slope: they are either parallel (no intersection, no solution) or coincident (the same line, infinite solutions). The distinction between these two cases is made by checking Dx and Dy. If both are also zero, the equations are multiples of each other, representing the same line. If either Dx or Dy is non-zero, the equations represent distinct parallel lines that never meet. This method extends naturally to larger systems — the same determinant-based logic works for 3×3, 4×4, and n×n systems, though computational complexity grows quickly. Cramer's rule is particularly valuable in theoretical contexts and for small systems because it provides explicit formulas without the need for Gaussian elimination or matrix inversion. In practice, Cramer's rule is most useful for 2×2 and 3×3 systems, while larger systems are typically solved using numerical methods like LU decomposition or iterative techniques.
Frequently Asked Questions
Related Calculators
Reviews
No reviews yet. Be the first to share your experience with System of Equations Solver — 2-Variable Linear System.
Write a Review
