Solve a system of three linear equations in three unknowns. Use elimination
pairwise to reduce to two equations in two unknowns, solve those, then
back-substitute to find all three variables. Check all three originals.
Example
Use elimination to solve for y and z, then back-substitute for x.
highlighted = computed this step
Step 1 — Set up
Set up the expression.
x+y+z=6,x−y+z=2,x+y−z=0
Step 2 — Eliminate x and z
Subtract the first equation from the second; the right side is -4.
−2y=-4
Step 3 — Solve y
Solve y: -4 / negative 2 = 2.
y=−4/−2=2
Step 4 — Eliminate x and y
Subtract the first equation from the third; the right side is -6.
−2z=-6
Step 5 — Solve z
Solve z: -6 / negative 2 = 3.
z=−6/−2=3
Step 6 — Back-substitute
Back-substitute: 6 - 2 - 3 = 1.
x=6−2−3=1
Step 7 — Solution
Read the final result.
(1,2,3)
three-variableThree-variable elimination: pair equations to eliminate one variable at a time. Two rounds of elimination yield each variable. Back-substitute from the last variable found to recover the rest. Verify all three.