System of Equations Calculator
Solve 2×2 and 3×3 simultaneous linear equation systems using substitution, elimination, or matrix determinants (Cramer's Rule), verify geometric intersections with an interactive 2D Cartesian plot, and view full mathematical derivations.
Enter Equations in Standard Form
Step-by-Step Mathematical Solution Breakdown
How to Solve a System of Linear Equations
To solve a 2x2 system of linear equations (a₁x + b₁y = c₁ and a₂x + b₂y = c₂), compute the coefficient determinant D = a₁b₂ − a₂b₁. If D ≠ 0, solve for x = (c₁b₂ − c₂b₁) / D and y = (a₁c₂ − a₂c₁) / D. Alternatively, isolate one variable via substitution or multiply equations to cancel a variable via elimination.
System of Linear Equations: Standard Form & Matrix Notation
A system of linear equations is a collection of two or more linear equations containing the same set of unknown variables. In two dimensions, every linear equation represents a straight line on the Cartesian plane, and the solution to the system corresponds to the point where the lines intersect.
Where a₁, b₁, a₂, b₂ are real coefficients and c₁, c₂ are constant terms.
[a₂ b₂] [y] [c₂]
Matrix multiplication allows large systems to be solved using linear algebra transformations.
The Three Primary Solution Methods
Method A: Elimination (Addition / Linear Combination)
Multiply one or both equations by non-zero constants so that the coefficients of one variable become exact opposites. Adding the two equations cancels that variable, yielding a single-variable linear equation.
Method B: Substitution
Isolate one variable in terms of the other (e.g. x = (c₁ − b₁y) / a₁) and substitute this algebraic expression into the second equation to solve for y, then back-substitute to find x.
Method C: Cramer’s Rule (Determinant Method)
Computes determinants directly:
Classifying Linear Systems (Unique, No Solution, Infinitely Many)
One Unique Solution
The two lines have different slopes (m₁ ≠ m₂, D ≠ 0) and intersect at exactly one coordinate (x, y).
No Solution (Parallel)
The two lines have identical slopes but different y-intercepts (D = 0, Dx ≠ 0). They never intersect.
Infinitely Many Solutions
Both equations describe the identical line (D = 0, Dx = 0, Dy = 0). Every point on the line is a valid solution.
Solving 3×3 Systems with Three Variables (x, y, z)
In three-dimensional space, each linear equation represents a flat plane. A 3×3 system seeks the single 3D point (x, y, z) where all three planes intersect simultaneously.
Where each 3×3 determinant is evaluated via cofactor expansion along the top row: det(A) = a₁(b₂c₃ − b₃c₂) − b₁(a₂c₃ − a₃c₂) + c₁(a₂b₃ − a₃b₂).
Real-World Applications of Linear Systems
Economics & Market Equilibrium
Economists solve linear supply and demand equations simultaneously to determine market-clearing equilibrium price and quantity.
Electrical Circuit Analysis (Kirchhoff's Laws)
Electrical engineers solve multiloop mesh current and nodal voltage systems using Kirchhoff’s Current (KCL) and Voltage (KVL) linear equations.
Chemistry & Reaction Balancing
Chemists balance stoichiometric chemical equations by setting up conservation-of-mass linear equation systems across all atomic species.
Step-by-Step Worked Numerical Solutions
Problem: Solve the system 3x + 2y = 16 and 2x − y = 6.
Common Pitfalls & Mistakes to Avoid
Sign Errors in Cramer's Determinant
Remember the minus sign in D = a₁b₂ − a₂b₁. If a₂b₁ is negative, subtracting a negative yields addition (a₁b₂ − (−k) = a₁b₂ + k).
Misaligning Variable Terms
Always write both equations in strict standard form (Ax + By = C) before extracting coefficients. Mixing up x and y positions produces incorrect determinants.
Failing to Back-Substitute Both Roots
After solving for x, students frequently forget to solve for y or check their (x, y) coordinate pair in both original equations.
Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.
Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.