Algebra 2 · Grades 10, 11

Systems of Three Equations in Three Variables

Quick answer

A linear equation in three variables, such as x + y + z = 6, describes a plane, and a system of three such equations asks where three planes meet. Usually that is a single point. To find it, eliminate the same variable twice, leaving two equations in two unknowns; solve those, then substitute back for the third variable. If elimination produces a false statement such as 0 = 1, there is no solution; if it produces 0 = 0, there are infinitely many.

What you'll learn

  • Solve a system of three linear equations by elimination
  • Recognize systems with no solution or infinitely many
  • Set up three-variable systems from word problems
  • Find a parabola through three points

One more variable

Two unknowns need two equations; three unknowns need three:

x+y+z=6(1)2x−y+z=3(2)x+2y−z=2(3)\begin{aligned} x + y + z &= 6 && (1)\\ 2x - y + z &= 3 && (2)\\ x + 2y - z &= 2 && (3) \end{aligned}

The plan extends elimination from two variables. Eliminate one variable twice, using two different pairs of equations, to get two equations in the same two unknowns. Solve that smaller system, then substitute back.

Why elimination keeps the solutions

If (x,y,z)(x, y, z) makes two equations true, it makes their sum true, and any multiple of either. So every equation built by adding and scaling the originals has the same solutions, and choosing combinations that cancel a variable shrinks the problem without losing or adding any. Elimination trades three equations in three unknowns for two in two, then one in one, keeping the solutions every step of the way.

Geometrically, each equation is a plane in space. Two planes usually meet in a line, and a third plane usually cuts that line at one point: the solution. If the planes miss one another, there is no solution; if they share a line, there are infinitely many.

Worked examples

Common mistakes

Practice problems

  1. Solve x+y+z=9x + y + z = 9, x−y+z=3x - y + z = 3, 2x+y−z=32x + y - z = 3.

    Answer

    (2,3,4)(2, 3, 4)

    Full solution

    Subtracting the second from the first: 2y=62y = 6, so y=3y = 3. Then x+z=6x + z = 6 and 2x−z=02x - z = 0. Adding: 3x=63x = 6, so x=2x = 2 and z=4z = 4.

  2. Solve 2x+y−z=52x + y - z = 5, x−2y+3z=2x - 2y + 3z = 2, 3x+y+z=113x + y + z = 11.

    Answer

    (2,3,2)(2, 3, 2)

    Full solution

    Eliminate zz: the first plus the third gives 5x+2y=165x + 2y = 16; three times the first plus the second gives 7x+y=177x + y = 17. Then y=17−7xy = 17 - 7x and 5x+34−14x=165x + 34 - 14x = 16, so x=2x = 2, y=3y = 3, and z=2x+y−5=2z = 2x + y - 5 = 2.

  3. Solve x+2y+3z=14x + 2y + 3z = 14, 2x−y+z=32x - y + z = 3, 3x+y−2z=−13x + y - 2z = -1.

    Answer

    (1,2,3)(1, 2, 3)

    Full solution

    Eliminate yy: the first plus twice the second gives 5x+5z=205x + 5z = 20, so x+z=4x + z = 4; the second plus the third gives 5x−z=25x - z = 2. Adding: 6x=66x = 6, so x=1x = 1, z=3z = 3, and y=2x+z−3=2y = 2x + z - 3 = 2.

  4. Solve x+y=5x + y = 5, y+z=7y + z = 7, x+z=6x + z = 6.

    Answer

    (2,3,4)(2, 3, 4)

    Full solution

    Adding all three: 2(x+y+z)=182(x + y + z) = 18, so x+y+z=9x + y + z = 9. Subtract each equation from this: z=4z = 4, x=2x = 2, y=3y = 3.

  5. Solve x+y+z=1x + y + z = 1, x+y+z=3x + y + z = 3, x−y=0x - y = 0.

    Answer

    No solution

    Full solution

    Subtracting the first two gives 0=20 = 2. The first two planes are parallel.

  6. How many solutions does x+y+z=2x + y + z = 2, 2x+2y+2z=42x + 2y + 2z = 4, x−y=1x - y = 1 have?

    Answer

    Infinitely many

    Full solution

    The second equation is twice the first: the same plane. The two remaining planes meet in a line, and every point on it is a solution.

  7. A jar holds 3030 coins, nickels, dimes and quarters, worth 475475 cents. There are twice as many nickels as dimes. How many of each coin?

    Answer

    1010 nickels, 55 dimes, 1515 quarters

    Full solution

    n+d+q=30n + d + q = 30, 5n+10d+25q=4755n + 10d + 25q = 475, n=2dn = 2d. Then 3d+q=303d + q = 30 and 20d+25q=47520d + 25q = 475. With q=30−3dq = 30 - 3d: 20d+750−75d=47520d + 750 - 75d = 475, so d=5d = 5, n=10n = 10, q=15q = 15.

  8. Find the parabola y=ax2+bx+cy = ax^2 + bx + c through (−1,6)(-1, 6), (0,1)(0, 1) and (2,3)(2, 3).

    Answer

    y=2x2−3x+1y = 2x^2 - 3x + 1

    Full solution

    (0,1)(0, 1) gives c=1c = 1. Then a−b=5a - b = 5 and 4a+2b=24a + 2b = 2, so 2a+b=12a + b = 1. Adding: 3a=63a = 6, a=2a = 2, b=−3b = -3.

  9. Three numbers add to 2424. The first is twice the second, and the third is 44 more than the first. Find them.

    Answer

    88, 44 and 1212

    Full solution

    With x=2yx = 2y and z=x+4=2y+4z = x + 4 = 2y + 4: 2y+y+2y+4=242y + y + 2y + 4 = 24, so y=4y = 4.

  10. A student eliminates zz from equations (1)(1) and (2)(2), then eliminates yy from equations (1)(1) and (3)(3), and is stuck with two equations that cannot be solved together. What went wrong?

    Hint

    Which variables are left in each new equation?

    Answer

    The student eliminated different variables. Both eliminations must remove the same one.

    Full solution

    The first new equation has xx and yy; the second has xx and zz. Together they have three unknowns. Eliminating zz from a second pair, such as (2)(2) and (3)(3), would give two equations in xx and yy alone.

Frequently asked questions

How do you solve a system of three equations in three variables?

Use two pairs of equations to eliminate the same variable, which leaves two equations in two variables. Solve those, then substitute into an original equation for the third.

What does a three-variable equation look like as a graph?

A plane in three-dimensional space. The solution of a system is the set of points on all three planes.

How can a three-variable system have no solution?

When the planes have no point in common, for example when two of them are parallel. Elimination then produces a false statement like 0 = 1.

How can it have infinitely many solutions?

When the planes share a whole line, or are the same plane. Elimination then produces 0 = 0.

Why must I eliminate the same variable twice?

To end with two equations in the same two unknowns. Eliminating different variables leaves equations that still cannot be solved together.

What to learn next

Standards alignment

This lesson covers the following Common Core State Standards for Mathematics.

  • CCSS.MATH.CONTENT.HSA.CED.A.3Creating EquationsRepresent constraints by equations or inequalities, and by systems of equations and/or inequalities, and interpret solutions as viable or nonviable options in a modeling context.
  • CCSS.MATH.CONTENT.HSA.REI.C.6Reasoning with Equations and InequalitiesSolve systems of linear equations exactly and approximately (e.g., with graphs), focusing on pairs of linear equations in two variables.