Skip to content
SPM Tuition
Additional Mathematics · Systems of equations

Three linear equations, three unknowns

Two unknowns feel fine, but a third variable turns your working into a tangle.

To solve three linear equations in x, y and z, eliminate the same variable from two different pairs, solve the resulting two equations, then substitute back.

This lesson is part of systems of equations. If two-unknown elimination still slips, read choosing substitution or elimination first.

What is the routine?

Number the equations (1), (2), (3) and follow the same steps each time.

  1. Choose a variable to eliminate, for example z.
  2. Combine (1) with (2) to remove z, and combine (1) with (3) to remove z.
  3. Solve the two new equations for x and y.
  4. Substitute x and y into one original equation to find z.
  5. Check all three originals.

Worked example 1: a clean reduction

Solve: x + y + z = 6 (1); 2x − y + z = 3 (2); x + 2y − z = 2 (3).

Step 1. Add (1) and (3) to remove z: 2x + 3y = 8 (4).

Step 2. Add (2) and (3) to remove z: 3x + y = 5 (5).

Step 3. From (5), y = 5 − 3x. Substitute into (4): 2x + 3(5 − 3x) = 8, so 2x + 15 − 9x = 8, giving −7x = −7 and x = 1. Then y = 2.

Step 4. From (1): z = 6 − 1 − 2 = 3.

Check. (2): 2 − 2 + 3 = 3. (3): 1 + 4 − 3 = 2. The solution is x = 1, y = 2, z = 3.

Worked example 2: a smarter first move

Solve: 3x + y − z = 8 (A); x − 2y + z = −3 (B); 2x + y + 2z = 9 (C).

Add (A) and (B): 4x − y = 5 (D). For the second pair, take (C) − 2 × (B): (2x + y + 2z) − (2x − 4y + 2z) = 5y = 15, so y = 3 straight away.

Then (D) gives 4x − 3 = 5, so x = 2. From (A): 6 + 3 − z = 8, so z = 1. Check (B): 2 − 6 + 1 = −3. Check (C): 4 + 3 + 2 = 9.

Look for a combination that removes two variables at once, as C − 2 × B did here. It saves a whole step.

The mistake that costs marks

The common slip is to eliminate z from one pair and x from another. The two new equations then have different unknowns, so you cannot solve them together.

Step Wrong Right
Pair (1) and (2) Remove z Remove z
Pair (1) and (3) Remove x Remove z
Result Equations in (x, y) and (y, z) Both equations in (x, y)

Write the eliminated variable beside each new equation, such as “(4) z removed”, so the pairing stays visible.

Check yourself

Solve: x + y + z = 9; 2x − y + z = 5; x + 2y − z = 4.

Answer

Label them (1), (2), (3). Add (1) and (3): 2x + 3y = 13 (4). Add (2) and (3): 3x + y = 9 (5).

From (5), y = 9 − 3x. Then 2x + 3(9 − 3x) = 13 gives 2x + 27 − 9x = 13, so −7x = −14 and x = 2, y = 3.

From (1): z = 9 − 2 − 3 = 4. Check (2): 4 − 3 + 4 = 5. Check (3): 2 + 6 − 4 = 4. The answer is x = 2, y = 3, z = 4.

What to study next

Next, see how a squared equation changes the method in solving one linear and one nonlinear equation. Then test the whole chapter with the systems of equations practice set.

If you want a teacher to work through three-unknown questions with you, see online one-to-one Additional Mathematics tuition.

Common questions

How do I start three equations with three unknowns?

Pick one variable and eliminate it from two different pairs of equations. That leaves two equations in two unknowns, which you then solve in the usual way before finding the third variable.

Which variable should I eliminate first?

Choose the variable whose coefficients are easiest to match, for example one with coefficients of 1 or opposite signs. The same variable must be eliminated from both pairs.

What if I get a false statement such as 0 = 5?

That means the equations have no common solution. Check your arithmetic first, and if it holds, state that the system has no solution.

How do I check my answer?

Substitute x, y and z into all three original equations, including the one you did not use last. A check in only one equation cannot catch every slip.

If the third variable always derails your working, one-to-one Add Maths lessons let a teacher watch each elimination and fix the exact step that slips.

  • Online one-to-one lessons for your child with an experienced teacher.
  • Your first class is a one-hour trial, from RM50. The fee is agreed before you book.
  • Happy with the teacher? Continue with lessons of about 1.5 hours. If not, ask for another teacher.