System of Linear Equations in Three Variables
Three unknowns, shared constraints
A linear equation in three variables has the form below. The coefficients and right-hand side are real numbers; each variable appears only to the first power. There are no products of variables.
A system puts several such equations together. A solution is an ordered triple that makes every equation true at the same time. In this example:
The triple works in all three equations. A triple that works in only one or two equations is not a solution to the system.
Think of intersecting planes
When at least one variable coefficient is nonzero, an equation describes a plane in three-dimensional space. Solving the system means finding the intersection shared by all three planes. Three equations do not automatically guarantee one solution.
One solution
Three independent constraints determine one point. Each variable has a pivot after elimination.
Infinitely many solutions
The equations are consistent but leave at least one variable free. The common set can be a line or a plane.
No solution
Elimination exposes a contradiction. There is no point that satisfies all three equations.
A zero row such as carries no new information; it does not by itself prove inconsistency. A row such as is impossible. If every equation is an identity, the solution set is all of three-dimensional space.
Solve the example by elimination
Elimination combines equations to remove one variable, leaving a simpler system. Call the equations , , and in their original order.
Remove the first variable
Subtract twice the first equation from the second. Subtract the first equation from the third. The first variable disappears from both new equations.
Reduce to one variable
Add the first reduced equation to three times the second reduced equation. Their terms in cancel.
Substitute back and check
Substitute into the reduced equation to find , then use the original first equation to find .
Check against every original equation, including any equation you did not use at the last step.
Keep the work organized with a matrix
An augmented matrix stores the coefficients in the order , with the constants after the divider. Include a zero wherever a variable is missing.
You can swap two rows, multiply a row by a nonzero number, or add a multiple of one row to another. These operations preserve the solution set. Apply each operation to the entire row, including the constant.
A pivot is the leading nonzero entry of a row after reduction. Gaussian elimination makes a staircase of pivots, then uses back-substitution. The explorer continues to reduced row-echelon form: each pivot is one, and its column is zero in every other row, so the answers can be read directly.
Explore a system, one operation at a time
Choose an example or edit the coefficients. Follow the row operations to see why the system has its solution type.
Use integers from to . A zero coefficient leaves that variable out of the equation.
The last column is the right-hand side. If all three variable coefficients vanish, the equation is an identity or a contradiction rather than a plane.
Step 1 of 9
One solution
Every variable has a pivot. The three planes meet at exactly one point.
Results and row operations use exact fractions. Every displayed matrix has the same solutions as the original system.
Read the final rows
Three pivots give a unique solution. If there is no contradiction but fewer than three pivots, at least one variable is free. Give each free variable a real parameter and express the other variables in terms of it.
Here the third equation is the sum of the first two, so it adds no independent constraint. Set . Elimination gives this whole family:
Choosing gives again, but many other choices also work. One successful triple does not prove a solution is unique. If the third right-hand side were instead of , subtracting the first two equations from it would give the contradiction .
Turn a story into three equations
A group buys six tickets for ten currency units. Adult tickets cost three units, student tickets two, and child tickets one. The group buys one more student ticket than adult ticket. Let , , and count adult, student, and child tickets.
The solution is . Check the counts, the cost, and the difference. Counts must also be nonnegative integers; the context can impose restrictions beyond the equations.
Try it yourself
Solve or classify each system before revealing the explanation.
1. Solve by substitution or elimination.
Show explanation
The last equation fixes the third variable. The second makes the first two equal, and the first then gives twice either of them as four.
2. Find a family of solutions, not just one point.
Show explanation
The second equation repeats the first. The third makes the first two variables equal. Choose their common value freely and use the first equation to find the third.
3. Decide whether the system is consistent.
Show explanation
Twice the first equation would give a right-hand side of eight, but the second says nine. That contradiction is enough to rule out every possible solution.