For a system of three linear equations in x,y, and z, a solution is a point (x,y,z) that makes all three equations true at once.
1
Equations as Planes in 3D Space
In two variables, an equation like x+y=5 leaves one free choice. Picking x fixes y=5−x, so its solutions form a line with slope −1. With three variables, an equation like x+y+z=6 leaves two free choices: we can pick both x and y freely on the flat floor, and the equation fixes the height z, creating a flat surface in 3D space called a plane.
Equations as Planes in 3D Space
Because the equation fixes a single z-coordinate, z=6−x−y, for every point (x,y) on the x-y floor, all the solutions together form a flat, tilted plane.
For every point on the floor, the equation fixes one z-coordinate. Together, the solution points form a flat, tilted plane.
In the single-solution configuration shown below, the second plane crosses the first in a line, and the third plane cuts that line at one point.
1 equation: a plane
(2 free choices)
2 equations: a line
(1 free choice)
3 equations: a single point
(0 free choices)
2
The Strategy: Eliminate One Variable Twice
To find that single intersection point (x,y,z) with algebra, our goal is to turn a three-variable system into a two-variable system we already know how to solve.
It is easy to go in circles if we cancel one variable from the first pair of equations and a different variable from the second pair, because we still end up with all three variables. Instead, we pick one target variable and eliminate it twice using two different pairs of equations.
The Strategy: Eliminate One Variable Twice
Once we reduce the system to a staircase where one variable is solved at the bottom, we work back up one equation at a time to find the other two:
x+2yy+−zzz===921
Text solution:
Plug z=1 into the two-variable equation to find y: With z already given by the bottom equation, substituting it into the middle equation leaves only y.
y−1y=2=3
Plug y=3 and z=1 into the top equation to find x: Substituting both known values into the three-variable equation gives the last unknown.
x+2(3)+1x+7x=9=9=2
So all three planes meet at the single point (2,3,1).
For this staircase system, eliminating z from the first and second equations and from the first and third equations projects their two intersection lines straight down onto the x-y floor. The point (x,y) where those floor lines cross sits right below the 3D intersection point.
Removing the height flattens two 3D crossing lines into two shadow lines on the floor that meet right under the 3D solution.
3
Solving a Three-Variable System Step by Step
Now let's solve a full system where all three variables appear in every equation:
(1)(2)(3)x2x3x+−+2yyy++−zz2z===927
Before doing any algebra, look across the three columns to pick the easiest target variable to eliminate twice, and write that target at the top of your work so you don't switch variables halfway through.
Solving a Three-Variable System Step by Step
(1)2x+2y+2z=99
(2)2x−2y+2z=29
(3)3x+2y−2z=79
(x,y,z)=?
Text solution:
Add (2) and (3) to eliminate y the first time: Because −y and +y already have opposite signs, adding these two equations cancels y right away to give Equation A.
(2x−y+z)+(3x+y−2z)A:5x−z=2+7=9
Double (2) and add it to (1) to eliminate y a second time: Now we use the remaining equation, (1). Multiply every term of (2), including the 2 on the right side, by 2 so −2y cancels +2y, giving Equation B.
Subtract Equation A from Equation B to eliminate x and find z: Both two-variable equations start with 5x, so subtracting them cancels x and leaves z.
(5x+3z)−(5x−z)4zz=13−9=4=1
Plug z=1 into Equation A to find x: Substituting z=1 into the simpler two-variable equation gives x.
5x−15xx=9=10=2
Plug x=2 and z=1 into (1) to find y: Going back to one of the original three-variable equations gives the target variable we eliminated at the start.
2+2y+12y+32yy=9=9=6=3
So the three planes cross at the single point (2,3,1). Taking five seconds to plug (2,3,1) into (3) gives 3(2)+3−2(1)=7, which checks the result in Equation (3).
4
Shortcuts for Missing or Isolated Variables
We don't always have to eliminate a variable twice. When one of the original equations is already missing a variable, or already has a variable by itself on one side, part of the work is already done for us:
(1)(2)(3)x2xx++−yyy++z+z2z===1018
Shortcuts for Missing or Isolated Variables
(1)2x+2y+2z=1010
(2)2x−2y+2x=110
(3)2x+2y+2z=810
Text solution:
When an equation is already missing a variable, make that missing variable your target: Because Equation (2) already has no z, we can use it right away as Equation A, so we only need to eliminate z once using (1) and (3).
A (from 2):2x−y2×(1)−(3):(2x+2y+2z)−(y+2z)B:2x+y=1=20−8=12
When a variable is already isolated, substitute it directly into the other two equations: If Equation (2) is x=2y, replacing x with 2y in (1) and keeping (3) reduces the system to two variables in a single step.
In (1):(2y)+y+z⟹3y+zIn (3):(2y)+y+2z=10=10=8
We stop at two variables on purpose: this example only shows the reduction step, not the full solution.
5
No Solution and Infinitely Many Solutions
Sometimes, when we combine Equation A and Equation B, both remaining variables cancel out at once. What that tells us depends on whether the remaining numbers give a false or true statement. Let's compare two systems that differ only in the last number on the right:
Subtract (1) from (2) to eliminate z the first time: The +z terms cancel right away to give Equation A.
(2x+2y+z)−(x+y+z)A:x+y=7−4=3
When (3) equals 10, eliminating z a second time gives a contradiction (0=1): Subtracting 2×(1) from (3) gives an Equation B that cannot be true at the same time as Equation A.
When (3) equals 11, eliminating z a second time gives an identity (0=0): Here Equation (3) is just (1)+(2), so Equation B matches Equation A and we only need the first two equations.
(3x+3y+2z)−(2x+2y+2z)B:x+yA−B:0=11−8=3=0
Write the shared line of solutions using x as the one free choice: Solving Equation A for y in terms of x and substituting x+y=3 into (1) fixes z.
yIn (1):3(x+y)+zz=3−x=4=1
So the first system has no solution, while the second has infinitely many solutions along the line (x,3−x,1). Notice that 0=0 does not mean every point in 3D space works. For example, (0,0,0) does not work in Equation (1). Only points on the line (x,3−x,1) work, such as (0,3,1) and (5,−2,1).
No common point
(0=1)
seen along the lines
Shared line of solutions
(0=0)
seen along the line
When two planes already meet along a line, a third plane either cuts across that line at a single point, runs parallel to that line so all three never meet, or passes right through the entire line.
When two planes already meet in a line, a third plane cuts that line at one point unless it runs parallel to the line or passes right through it.
6
Modeling Real Situations with Three Variables
Whenever a word problem asks for three unknown quantities, look for three separate clues in the problem so each clue gives one equation.
A movie theater sells Small ($4), Medium ($6), and Large ($7) bags of popcorn. After one show, they sold 20 bags in total, brought in $108 in sales, and sold twice as many Small bags as Large bags. We want to find the number of Small (S), Medium (M), and Large (L) bags sold.
Modeling Real Situations with Three Variables
Text solution:
Write an equation for each of the three clues: Write one equation for the total number of bags, one for the total money brought in, and one relating Small and Large bags.
Substitute S=2L into the first two equations to eliminate S: Because the third equation already has S by itself, replacing S with 2L right away reduces the system to M and L.
(2L)+M+L⟹M+3L4(2L)+6M+7L⟹6M+15L=20=20=108=108
Multiply the first two-variable equation by −6 and add to find L: Multiplying M+3L=20 by −6 gives −6M, which cancels +6M in the other equation when we add.
Plug L=4 back in to find S and M: Use S=2L to get S, then S+M+L=20 to get M.
S8+M+4M=2(4)=8=20=8
So the theater sold 8 Small bags, 8 Medium bags, and 4 Large bags of popcorn.
Key concepts
Eliminate one target variable twice (standard system)
When all three variables appear in all three equations, look down the columns for coefficients that already match or have opposite signs (like −y and +y in 2x−y+z=2 and 3x+y−2z=7). Eliminate that same variable from two different pairs of equations so Equations A and B have the exact same two variables, solve for those two, and plug them back in to find the third.
When not to eliminate twice
Missing variable: If an equation is already missing a variable, like 2x−y=1 (no z), don't eliminate twice. Keep 2x−y=1 as Equation A and eliminate z just once from the other two equations.
Isolated variable: If an equation already has one variable by itself, like S=2L or x=2y, skip elimination at the start and substitute that expression straight into the other two equations.
When all variables cancel out
Contradiction (0=1): Equations A and B disagree (such as x+y=3 and x+y=2), meaning the three planes have no solution.
Identity (0=0): One equation is a combination of the other two. In this example, the first two planes intersect along a line of solutions with one free choice x: solve Equation A for y in terms of x(x+y=3⟹y=3−x), substitute into an original equation to find z(z=1), and write the line as (x,3−x,1).
7
Practice
1
Solve the system:
(1)(2)(3)x+y+z2x−y+z3x+2y−z=7=0=9
Watch out: when multiplying Equation B by 3, forgetting to multiply the 9 on the right side by 3 leaves 15x+3y=9, which gives 11x=−7 and the wrong answer (−117,11134,−1150).
Look for a column where one equation has −1 and the other two have +1, so you can eliminate that same variable twice just by adding, without multiplying first.
(Watch out: don't add (1)+(2) to cancel y and then (2)+(3) to cancel z. That leaves 3x+2z=7 and 5x+y=9, which still has all three variables.)
Multiply Equation B by 3 to match +3y and subtract Equation A:
3×B:15x+3y(15x+3y)−(4x+3y)11xx=27=27−16=11=1
(Watch out: when multiplying Equation B by 3, forgetting to multiply the 9 on the right side by 3 leaves 15x+3y=9, which gives 11x=−7 and the wrong answer (−117,11134,−1150).)
Plug x=1 into Equation B to get 5(1)+y=9⟹y=4, and plug x=1,y=4 into (1) to get 1+4+z=7⟹z=2.
Answer(1,4,2)
2
Solve the system:
(1)(2)(3)x+2y+z3x−y2x−2y+3z=13=3=13
Watch out: when subtracting (2x−2y+3z), distribute the minus sign to −2y so 6y−(−2y)=+8y. Subtracting 2y instead gives x+4y=26, which leads to the wrong answer (1338,1375,−1319).
One equation is already missing a variable. Which variable is missing, and which pair of equations must you combine to eliminate that same variable?
Equation (2) is already missing z, so keep it as A: 3x−y=3 and eliminate z once using (1) and (3):
(Watch out: when subtracting (2x−2y+3z), distribute the minus sign to −2y so 6y−(−2y)=+8y. Subtracting 2y instead gives x+4y=26, which leads to the wrong answer (1338,1375,−1319).)
Multiply Equation A by 8 and add to Equation B to cancel y:
8×A:24x−8y(24x−8y)+(x+8y)25xx=24=24+26=50=2
Plug x=2 into Equation A to get 3(2)−y=3⟹y=3, and plug x=2,y=3 into (1) to get 2+2(3)+z=13⟹z=5.
Answer(2,3,5)
3
Solve the system:
(1)(2)(3)x+2y+z2x−y+z4x+3y+3z=5=4=12
Equations (1) and (2) both have +z. After subtracting them to eliminate z once, multiply (1) by 3 so you can eliminate +3z in (3).
Subtract (1) from (2) to eliminate z the first time:
(2)−(1):(2x−y+z)−(x+2y+z)A:x−3y=4−5=−1
(Watch out: distribute the minus sign to +2y in (1) so −y−2y=−3y. Writing −y+2y=+y gives x+y=−1, which crosses Equation B at the wrong answer (−23,21,211).)
Multiply (1) by 3 and subtract from (3) to eliminate z a second time:
Subtracting Equation B from Equation A gives 0=0, so the three planes meet along a single line with one free choice x. Solving Equation A for y gives y=4−x, and substituting into (1) gives z:
x+(4−x)+z4+zz=6=6=2
(Watch out: when substituting y=4−x into x+y+z=6, don't drop the first x and write (4−x)+z=6, which gives the wrong line (x,4−x,x+2).)
Answer(x,4−x,2)
5
A bakery sells three sizes of cookie boxes: Small for $5, Medium for $8, and Large for $10. In one afternoon, they sold 30 boxes in total, brought in $205 in sales, and sold 3 times as many Small boxes as Large boxes. How many of each size did they sell?
Watch out: "3 times as many Small boxes as Large boxes" means there are more Small boxes, so S=3L. Writing L=3S reverses the sizes and leads to the impossible counts −335 Small, 3230 Medium, and −35 Large.
Write one equation for the total number of boxes, one for the total sales in dollars, and one for the relationship between Small (S) and Large (L) boxes. Then use that third equation to substitute for S right away.
Write an equation for each of the three clues:
S+M+L5S+8M+10LS=30=205=3L
(Watch out: "3 times as many Small boxes as Large boxes" means there are more Small boxes, so S=3L. Writing L=3S reverses the sizes and leads to the impossible counts −335 Small, 3230 Medium, and −35 Large.)
Substitute S=3L into the first two equations:
(3L)+M+L=305(3L)+8M+10L=205⟹M+4L=30⟹8M+25L=205
Multiply M+4L=30 by −8 and add to 8M+25L=205:
(−8M−32L)+(8M+25L)−7LL=−240+205=−35=5
Plug L=5 back in to get S=3(5)=15 and 15+M+5=30⟹M=10.
Answer15 Small boxes, 10 Medium boxes, and 5 Large boxes