How the System of Equations Calculator works
A system of two linear equations in two unknowns has the general form a₁x + b₁y = c₁ and a₂x + b₂y = c₂, where a₁, b₁, c₁, a₂, b₂, and c₂ are known numbers and x and y are the unknowns you are solving for. Geometrically, each equation is a straight line, and solving the system means finding the point (x, y) where the two lines meet. This calculator uses Cramer's Rule, a determinant-based method, to solve for x and y directly without manual substitution or elimination.
Formula and method (Cramer's Rule)
First compute the main determinant of the coefficient matrix: D = a₁b₂ - a₂b₁. Then compute two more determinants by swapping in the constants: Dx = c₁b₂ - c₂b₁ (replace the a-column with c₁, c₂) and Dy = a₁c₂ - a₂c₁ (replace the b-column with c₁, c₂). As long as D ≠ 0, the unique solution is x = Dx / D and y = Dy / D. This is algebraically equivalent to solving the system by substitution or elimination, but it is easier to automate and to reason about.
Interpreting a zero determinant
If D = 0, the two lines have identical slopes (a₁/b₁ = a₂/b₂), so they are parallel and there is no unique intersection point. In that case, check Dx and Dy: if both are also zero, the two equations describe the exact same line, so there are infinitely many solutions (every point on the line satisfies both equations). If D = 0 but Dx or Dy is nonzero, the lines are parallel but distinct, so the system has no solution.
Common sources of error
- Wrong equation form: both equations must be rearranged into a x + b y = c before entering coefficients — for example, y = 2x - 5 becomes -2x + y = -5 (a = -2, b = 1, c = -5).
- Sign errors: a missing negative sign on a coefficient or constant flips the answer; double-check each term's sign as you move it across the equals sign.
- Mixing up rows: keep equation 1's coefficients (a₁, b₁, c₁) and equation 2's coefficients (a₂, b₂, c₂) in their own row — swapping a single value between rows changes the system entirely.
Checking your result
Once you have x and y, substitute them back into both original equations. If a₁x + b₁y equals c₁ and a₂x + b₂y equals c₂ (within rounding), the solution checks out. This back-substitution step catches almost all data-entry and sign mistakes.
Applications
- Break-even analysis: find the quantity and price where two cost or revenue lines intersect.
- Mixture and rate problems: solve for two unknown quantities (e.g., liters of two solutions, or two speeds) given two linear relationships.
- Circuit analysis: solve simultaneous loop or node equations from Kirchhoff's laws for two unknown currents or voltages.
- Supply-and-demand intersection: find the equilibrium price and quantity where a linear supply curve meets a linear demand curve.