Linear system solver, free with step-by-step solutions
Two-variable linear systems are the building block of more advanced linear algebra. This solver handles any 2×2 system: integer, fractional, or decimal coefficients, positive or negative, with a unique solution or one of the degenerate cases. Each solve shows the determinant, applies Cramer's rule, and gives a quick verification.
Cramer's rule explained
For a system [a₁x + b₁y = c₁; a₂x + b₂y = c₂], Cramer's rule gives x = (c₁b₂ − c₂b₁) / det and y = (a₁c₂ − a₂c₁) / det, where det = a₁b₂ − a₂b₁. It's a direct formula that works whenever the determinant is nonzero. When det = 0, the system has either zero solutions or infinitely many.
Substitution and elimination methods
Substitution: solve one equation for one variable, plug into the other. Elimination: scale equations so a variable cancels when you add or subtract them. Both produce the same answer as Cramer's rule but show different aspects of the structure. Most algebra courses cover all three.
Interpreting no solution vs infinite solutions
When the determinant is zero, the two lines are parallel or identical. If their constant terms aren't proportional to the same ratio as their coefficients, the lines are distinct and parallel: no solution. If everything is proportional, they're the same line drawn twice: infinitely many solutions, all points on that line.
Practical applications
Linear systems appear everywhere: balancing chemical reactions, computing equilibrium prices in economics, fitting lines to data, computer graphics transformations, robotic arm kinematics. Mastering 2×2 systems is the gateway to higher-dimensional systems and matrix methods used throughout science and engineering.