Solve 2×2 and 3×3 systems of linear equations using Gaussian elimination with full step-by-step row operation breakdowns.
Click "Solve System" to compute variables.
An electrical engineer analyzes Kirchhoff's current loops in a multi-mesh circuit: 3I₁ - I₂ = 12 and -I₁ + 4I₂ = 0. Solving for currents I₁ and I₂ requires evaluating a 2×2 system of linear equations. A chemical engineer mixes three stock solutions to create a target 100-liter blend with specific concentrations of nitrogen, phosphorus, and potassium—a task leading directly to a 3×3 system of linear equations.
A system of linear equations consists of two or more linear equations sharing common variables. A 2×2 system involves two equations with two variables (typically x and y), representing two lines on a Cartesian plane. A 3×3 system involves three equations with three variables (x, y, and z), representing three planes in 3D space.
The solution to a linear system is the set of variable values that simultaneously satisfies every equation in the system. Geometrically, this corresponds to the point or line of intersection. The primary algorithms for solving linear systems are Gaussian elimination (systematically eliminating variables via elementary row operations) and Cramer's rule (using matrix determinants). The following sections detail these algorithms, step-by-step row operations, and real-world STEM applications.
When you initiate a calculation, the engine constructs an augmented matrix [A | B] from your input coefficients and performs Gaussian elimination with partial pivoting.
1. Augmented Matrix Representation:
For a 2×2 system:
a₁x + b₁y = c₁
a₂x + b₂y = c₂
Augmented matrix: [[a₁, b₁ | c₁], [a₂, b₂ | c₂]]
2. Determinant Check (Cramer's Rule):
Coefficient determinant: Det(A) = a₁b₂ - a₂b₁
If Det(A) = 0, the matrix is singular. The system has either no unique solution (inconsistent, parallel lines) or infinitely many solutions (dependent, coincident lines).
3. Gaussian Elimination Steps:
m = a₂ / a₁ and subtract from Row 2 to zero out the first column entry below the pivot.y, then substitute y back into Row 1 to isolate x.Electrical network analysis. Circuit designers solve systems of linear equations derived from Kirchhoff's Voltage Law (KVL) and Nodal Analysis to compute currents and potential differences across multi-loop networks.
Economics and supply-demand equilibrium. Economists set supply functions equal to demand functions (Q_s = a + bP and Q_d = c - dP) to solve for market equilibrium price and quantity.
Civil engineering and structural trusses. Structural engineers calculate internal member forces in bridge trusses by balancing horizontal and vertical force components (ΣF_x = 0, ΣF_y = 0) at each joint.
Chemistry and stoichiometric balancing. Chemists balance complex chemical reaction equations by setting up linear systems matching atomic counts for each element across reactants and products.
Business production and inventory blending. Manufacturing planners allocate factory machine hours and raw material constraints to determine optimal product mix quantities.
Ensure equations are written in standard form: variables on the left side, constants on the right side (ax + by = c).
Check for zero determinants. If Det(A) = 0, the lines are parallel or overlapping. The solver will notify you whether the system is inconsistent (no solution) or dependent (infinitely many solutions).
For standalone matrix operations such as matrix multiplication or finding inverse matrices, use our Matrix Calculator. For quadratic curves, use our Quadratic Solver.
The solver executes locally in JavaScript using partial-pivoting Gaussian elimination and double-precision floats. Systems evaluate in under 1 millisecond.
| Feature | This Tool | Hand Substitution | Graphing Calculator |
|---|---|---|---|
| 2×2 Systems | Instant (<1ms) | 2-4 minutes | Instant |
| 3×3 Systems | Instant (<1ms) | 5-15 minutes | Instant |
| Determinant Det(A) | Automatic check | Manual calculation | det() function |
| Singularity Check | Detects Det(A)=0 | Manual fraction divide | Error screen |
| Privacy | Client-side browser | Paper | Local hardware |
| Cost | Free | Free | Hardware purchase |
An inconsistent system has no solutions because the equations represent parallel lines or non-intersecting planes (e.g., x + y = 2 and x + y = 5).
A dependent system has infinitely many solutions because the equations represent the exact same line or plane (e.g., x + y = 2 and 2x + 2y = 4).
Yes. You can enter negative values, decimals, or whole numbers into any coefficient box.
Partial pivoting swaps rows so that the largest absolute value in the active column becomes the pivot, preventing division by near-zero numbers that causes floating-point rounding errors.
Matrix Calculator — Computes determinants, matrix inverses, and matrix multiplication up to 5×5.
Quadratic Solver — Solves second-degree single-variable polynomial equations.
Scientific Calculator — Evaluates complex expressions, trig functions, and logarithms.