How the Elimination Method works
The elimination method solves a system of two linear equations in two unknowns, written in standard form as a₁x + b₁y = c₁ and a₂x + b₂y = c₂. The idea is to multiply one or both equations by a constant so that the coefficients of one variable become equal (or opposite), then add or subtract the equations so that variable cancels out — leaving one equation in one unknown that you can solve directly. This calculator carries out that process for you and reports x, y, the determinant, and the solution type.
Formula and method
Doing the scaling and subtracting by hand is equivalent to the closed-form solution below, which this calculator uses directly. Let D = a₁b₂ − a₂b₁ (the determinant of the coefficient matrix). Then, when D ≠ 0:
- x = (c₁b₂ − c₂b₁) / D
- y = (a₁c₂ − a₂c₁) / D
To see why this matches hand elimination: multiplying equation 1 by b₂ and equation 2 by b₁, then subtracting, cancels y and leaves (a₁b₂ − a₂b₁)x = c₁b₂ − c₂b₁, which is exactly x = (c₁b₂ − c₂b₁)/D. The same trick with a₁ and a₂ isolates y.
Special cases when D = 0
If D = 0, the two lines have identical slopes, so you cannot divide to get a unique x and y. Check the numerators: if c₁b₂ − c₂b₁ = 0 and a₁c₂ − a₂c₁ = 0 as well, both equations describe the same line, so there are infinitely many solutions. If either numerator is nonzero, the lines are parallel but distinct, so the system has no solution.
Common sources of error
- Sign mistakes: subtracting a negative coefficient (or a whole equation) flips signs — track them carefully or use addition with a negated multiple instead.
- Forgetting the constant: when you multiply an equation by a scale factor, multiply the constant term (c) too, not just a and b.
- Assuming a unique answer: always check whether D = 0 before dividing; skipping this step can produce a meaningless or undefined result.
Checking your result
Substitute the computed x and y back into both original equations. Each should balance: a₁x + b₁y should equal c₁, and a₂x + b₂y should equal c₂. If either check fails, re-enter the coefficients and recompute.
Applications
Systems of two linear equations show up whenever two quantities are linked by two independent conditions: mixture and concentration problems, break-even analysis (cost versus revenue lines), rate/time/distance problems with two legs, supply-and-demand equilibrium, and balancing two-ingredient recipes or two-resource budgets.