Solve systems of two linear equations using the substitution method. Step-by-step solution, intersection graph, verification, and comparison with elimination method.
The substitution method is one of the most fundamental techniques for solving systems of two linear equations. The idea is simple: solve one equation for one variable, then substitute that expression into the other equation to get a single equation in one variable. Solve it, and back-substitute to find the other variable.
This calculator automates the entire process for any system of the form a₁x + b₁y = c₁ and a₂x + b₂y = c₂. It intelligently chooses which variable to isolate first (or lets you override the choice), shows the complete step-by-step solution, verifies the answer by substituting back into both equations, and graphs the two lines with their intersection point.
The tool also handles special cases — parallel lines (no solution) and dependent systems (infinitely many solutions) — and explains what is happening in each case. It is ideal for students learning algebra, teachers demonstrating the method, or anyone who needs a quick system solver with full work shown.
Systems of linear equations appear throughout mathematics, science, and engineering. Whether you are balancing chemical equations, analyzing circuits, optimizing resources, or solving geometry problems, you often end up with two (or more) equations and two unknowns.
The substitution method is the most intuitive approach and is often the first method students learn. This calculator reinforces understanding by showing every step, letting you choose the isolation strategy, and providing both algebraic and graphical verification.
System: a₁x + b₁y = c₁, a₂x + b₂y = c₂ Substitution: Solve Eq1 for x → x = (c₁ − b₁y)/a₁ Substitute into Eq2 → solve for y → back-substitute for x Determinant: det = a₁b₂ − a₂b₁ (if det = 0, no unique solution)
Result: x = 2, y = 1
From Eq2: x = 1 + y. Substitute into Eq1: 2(1+y) + 3y = 7 → 2 + 5y = 7 → y = 1. Back-substitute: x = 1 + 1 = 2. Verify: 2(2) + 3(1) = 7 ✓ and 2 − 1 = 1 ✓.
The method has four simple steps: (1) Solve one equation for one variable in terms of the other. (2) Substitute this expression into the second equation. (3) Solve the resulting single-variable equation. (4) Back-substitute to find the other variable. The key insight is that substitution reduces a two-variable system to a single-variable equation, which is straightforward to solve.
When the determinant (a₁b₂ − a₂b₁) equals zero, the system does not have a unique solution. If the two equations are inconsistent (they represent parallel lines), there is no solution at all — the substitution leads to a contradiction like 0 = 5. If the equations are dependent (same line), the substitution leads to an identity like 0 = 0, indicating infinitely many solutions parameterized by one variable.
Elimination adds or subtracts equations to cancel a variable, which can be faster when coefficients align. Cramer's Rule uses determinants for a direct formula. Matrix inversion and Gaussian elimination generalize to systems of any size. For 2×2 systems, all methods give the same answer — substitution is valued for its transparency and pedagogical clarity.
Substitution is easiest when one variable already has a coefficient of ±1 (e.g., x − y = 1). Elimination is better when coefficients align for easy cancellation.
If the determinant is 0 and the lines are parallel (different constants), there is no solution. This means the two equations are contradictory.
A dependent system means both equations describe the same line, so there are infinitely many solutions. Any point on the line satisfies both equations.
No, you will get the same answer either way. However, choosing the equation and variable that yield simpler fractions makes the arithmetic easier.
Yes. The calculator handles any real-number coefficients and produces decimal solutions with up to 6 decimal places.
The calculator substitutes the solution (x, y) back into both original equations and confirms that both sides are equal, providing a check on the answer. Use this as a practical reminder before finalizing the result.