Linear System Solver (3 Variables)
Solve three-variable systems in x, y, and z with exact RREF row-operation matrices, 3x3 Cramer determinants, interactive 3D plane projection, and full equation verification.
System of 3 Linear Equations
Standard form: ax + by + cz = d
3D Coordinate Projection & Planes
Drag to rotate the 3D bounding box showing plane normals and solution point (x, y, z)
Step-by-Step Derivation
How 3-Variable Linear Systems Are Solved
A 3x3 linear system of three planes a₁x + b₁y + c₁z = d₁, a₂x + b₂y + c₂z = d₂, and a₃x + b₃y + c₃z = d₃ intersects at a unique point (x, y, z) whenever its 3x3 determinant D = det(A) != 0. Gaussian elimination reduces [A | d] to the identity matrix in exact steps, while Cramer’s Rule evaluates x = Dx/D, y = Dy/D, and z = Dz/D.
Algebraic Form and 3D Geometry of Three Planes
Each linear equation in three unknowns defines a flat geometric plane in three-dimensional Euclidean space , oriented perpendicular to the normal vector . Solving a simultaneous system of three linear equations locates every spatial point shared by all three planes at once:
Whereas two lines in a 2D plane (handled by our 2-variable linear system solver) can only intersect, run parallel, or coincide, adding a third dimension expands the structural possibilities dramatically. Two non-parallel planes meet along an infinite straight line; intersecting that line with a third plane typically pierces it at one unique coordinate , unless the third plane runs parallel to or contains the entire hinge line.
Gaussian Elimination and Reduced Row Echelon Form
The most dependable and scalable algorithm for solving linear systems is Gauss–Jordan elimination. First assemble the augmented matrix , then apply the three reversible elementary row operations—swapping two rows, scaling a row by a nonzero scalar, and subtracting a multiple of one row from another—which leave the geometric intersection of the planes completely unchanged.
When is invertible, row reduction marches systematically down the leading pivots until the left block becomes the identity matrix , allowing you to read directly from the final column. If you want to practice textbook elimination without matrix notation or inspect larger dimensions, explore our Gaussian elimination solver, row echelon form calculator, and elimination method calculator.
Cramer’s Rule and 3×3 Determinant Expansion
Using cofactor expansion along Row 1 (or the Rule of Sarrus), the determinant of the coefficient matrix represents the signed volume of the parallelepiped spanned by its column vectors:
Geometrically, holds if and only if the three plane normal vectors are linearly independent (do not lie flat inside a common plane). Substituting the constant column into column 1, 2, or 3 gives , and Cramer’s Rule yields , , and . You can verify determinant values independently with our system determinant calculator or invert explicitly using the matrix inverse calculator.
All Singular Cases: Triangular Prisms, Hinges, and Ranks
When , the planes exhibit linear dependence and fall into one of several distinct geometric arrangements governed by and :
| rank(A) | rank([A|d]) | Solution Set | 3D Geometric Interpretation |
|---|---|---|---|
| 3 | 3 | Unique Point (x, y, z) | Three planes meet cleanly at one vertex point |
| 2 | 2 | Infinite Line (1 param t) | Three planes share one hinge line (like open book pages) or two match |
| 1 | 1 | Infinite Plane (2 params s, t) | All three equations describe the exact same plane |
| 2 | 3 | Empty (No Solution) | Triangular prism (pairwise parallel intersections) or 2 parallel planes cut by 1 |
| 1 | 2 | Empty (No Solution) | Parallel separated planes with identical normal vector |
You can construct explicit family equations for the rank-2 or rank-1 cases inside our parametric solution finder or diagnose consistency thresholds directly with the system of equations consistency checker.
Circuit Meshes, 3D Statics, Curve Fitting, and Chemistry
Three-Node Electrical Networks
Applying Kirchhoff’s Current Law at three independent circuit nodes yields three linear conductance equations solving directly for node voltages .
3D Force & Truss Equilibrium
Balancing static forces determines cable tensions in three support struts carrying a suspended load.
Quadratic Curve & Circle Fitting
Finding the unique parabola through three non-collinear points forms a Vandermonde system in .
Stoichiometry & Multi-Asset Portfolios
Balancing atom counts across chemical reactions or allocating capital across three bond maturities to match duration and yield targets solves a linear system directly.
Step-by-Step Worked 3×3 Numerical Examples
Example 1: Unique Integer Intersection
Solve , , and .
- Add Equation 1 and Equation 3 to eliminate directly: .
- Double Equation 1 () and add Equation 2 to eliminate a second time: .
- Subtract from to obtain , giving and .
Example 2: Quadratic Interpolation Through 3 Points
Find passing through , , and . Substituting each point forms , , and . Solving yields , or . For straight-line 2-point estimation instead of quadratic fitting, see our linear interpolation calculator.
Common Elimination Errors and Best Practices
- Eliminating two different variables across pairs: When reducing from 3 equations to 2, always eliminate the same variable (say ) from both Equation Pairs and ; eliminating once and once leaves all three unknowns coupled.
- Sign drift in 3×3 cofactors: Remember the checkerboard sign pattern on Row 1 when computing —forgetting the minus sign on the middle term is the number-one error in hand Cramer calculations.
- Omitting zeros for missing terms: Realign columns strictly in order before building the augmented matrix so coefficients never shift columns.
Computational Engine and Interactive 3D Visualization
All matrix row operations, determinant expansions , and 3D isometric projections run instantaneously inside your browser. Drag anywhere inside the visualization box to inspect how the three planes intersect or separate in space, toggle full step-by-step RREF transformation tables, and verify residual error across all three input equations. For overdetermined datasets with more equations than unknowns, compare with our least-squares overdetermined solver.
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.