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.
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.
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.