mastree

Solving three equations

What this lesson covers

  • Eliminate one variable from two pairs.
  • Solve the resulting two equations.
  • Substitute back and check.
Key idea

The plan

  • Each step removes one unknown, until one equation is left.
  • Then work back up, finding one value at a time.
Three equations reduced to two equations in x and y, then to y equals 2.
Key idea

Try it: three planes

Worked example

x + y + z = 6, 2x − y + z = 3, x + 2y − z = 2

  • Number them (1), (2) and (3).
  1. (1) + (3): 2x + 3y = 8
  2. (2) − (1): x − 2y = −3
  3. so x = 2y − 3
  4. 2(2y − 3) + 3y = 8, so y = 2
  5. x = 1
  6. z = 6 − 1 − 2 = 3
Key idea

Try it: eliminate step by step

Worked example

When one equation is easy

  • x + 2y + z = 8, 2x − y + z = 3, x + y − z = 0. The third gives z straight away.
  1. z = x + yfrom the third
  2. 2x + 3y = 8put into the first
  3. 3x = 3put into the second
  4. x = 1, y = 2
  5. z = 3
Key idea

3D grapher

Common mistakes

  • Eliminating different variables from each pair.
    Remove the same variable both times.
  • Skipping the check.
    Test all three equations.
Key idea

Try it: same letter twice

Your turn

1

x + y + z = 6, x = 1 and y = 2. Find z.

2

Add x + y + z = 6 and x − y − z = 0. What do you get?

3

Does (1, 2, 3) satisfy 2x + y − z = 1?

4

x + y = 5, y + z = 7 and x + z = 6. Find x, y and z.

5

(1) is x + 2y + z = 9 and (2) is 2x − y + z = 3. Find (1) − (2).

6

x + y + z = 12, y = 2x and z = 3x. Find x, y and z.

7

Solving three equations, a student eliminates z from one pair, then y from another pair. Why does this not work?

8

A coffee, muffin and juice cost $15. Two coffees and a muffin cost $14. A coffee and two juices cost $17. Find each price.

Show answer

1. z = 3 2. 2x = 6, so x = 3 3. Yes: 2 + 2 − 3 = 1 4. Adding gives x + y + z = 9, so x = 2, y = 3, z = 4 5. −x + 3y = 6. Subtract term by term: x − 2x = −x, 2y − (−y) = 3y, z − z = 0 and 9 − 3 = 6. 6. x = 2, y = 4, z = 6. Substituting gives x + 2x + 3x = 6x = 12, so x = 2, then y = 4 and z = 6. 7. The two new equations do not share the same two unknowns: one has x and y, the other x and z, so remove the same variable both times. 8. Coffee $5, muffin $4, juice $6. Check all three: 5 + 4 + 6 = 15, 2(5) + 4 = 14 and 5 + 2(6) = 17.

Your turn

Sample question: Achieved

Solve the system x + y + z = 9, 2x − y + z = 5 and x + 2y − z = 4.

Hint

Remove z twice: add equation (3) to equation (1), and add equation (3) to equation (2).

Answer

x = 2, y = 3, z = 4

Step by step
  1. Number the equations (1), (2) and (3). The plan: remove one letter twice, to get two equations in two letters.
  2. z has +z in (1) and (2) and −z in (3), so adding (3) removes z. That makes z the easy letter to remove.
  3. (1) + (3): 2x + 3y = 13. Call it (4).
  4. (2) + (3): 3x + y = 9. Call it (5).
  5. From (5), y = 9 − 3x. Put that into (4): 2x + 3(9 − 3x) = 13.
  6. 2x + 27 − 9x = 13, so −7x = −14 and x = 2.
  7. Then y = 9 − 3 × 2 = 3.
  8. Back to (1): 2 + 3 + z = 9, so z = 4.
  9. Classic mistake: removing z from one pair and y from the other. Remove the same letter both times.
  10. Check in all three: 2 + 3 + 4 = 9, 4 − 3 + 4 = 5, 2 + 6 − 4 = 4. All correct.
Full working
  1. (1) + (3): 2x + 3y = 13z removed
  2. (2) + (3): 3x + y = 9z removed again
  3. y = 9 − 3x, so 2x + 27 − 9x = 13substitute
  4. x = 2, y = 3
  5. z = 9 − 2 − 3 = 4from (1)
  6. x = 2, y = 3, z = 4
Your turn

Sample questions: Merit

1

Solve the system 2x + 3y − z = 0, 3x − 2y + 2z = −2 and 4x + y − 3z = −20.

Hint

No letter cancels by just adding, so multiply first. z is easiest: double (1) to match (2), and triple (1) to match (3).

Answer

x = −2, y = 3, z = 5

Step by step
  1. Number the equations (1), (2) and (3). Choose a letter to remove. z has coefficients −1, 2 and −3, so (1) can be scaled to match each one.
  2. 2 × (1): 4x + 6y − 2z = 0. Add (2): 7x + 4y = −2. Call it (4).
  3. 3 × (1): 6x + 9y − 3z = 0. Subtract it from (3): −2x − 8y = −20, so x + 4y = 10. Call it (5).
  4. Now (4) and (5) both have +4y. Subtract: (4) − (5) gives 6x = −12, so x = −2.
  5. Put x = −2 into (5): −2 + 4y = 10, so y = 3.
  6. From (1), z = 2x + 3y = −4 + 9 = 5.
  7. Classic mistake: when subtracting a whole equation, forgetting to change the sign of every term, including the right-hand side.
  8. Check (2): −6 − 6 + 10 = −2. Check (3): −8 + 3 − 15 = −20. Both correct.
Full working
  1. 2(1) + (2): 7x + 4y = −2remove z
  2. (3) − 3(1): −2x − 8y = −20, so x + 4y = 10remove z again
  3. 6x = −12, x = −2subtract the two
  4. y = 3from x + 4y = 10
  5. z = 2x + 3y = 5from (1)
  6. x = −2, y = 3, z = 5
2

Solve the system 6x + 4z = 7, 2x − y = 4 and 4y + 3z = −9, giving exact values.

Hint

Each equation has only two letters. Make y the subject of the second equation and substitute it into the third.

Answer

x = 12, y = −3, z = 1

Step by step
  1. Each equation is missing a letter, so substitution is quicker than elimination here.
  2. The second equation gives y easily: y = 2x − 4.
  3. Put it into the third: 4(2x − 4) + 3z = −9, so 8x − 16 + 3z = −9 and 8x + 3z = 7.
  4. Now there are two equations in x and z: 6x + 4z = 7 and 8x + 3z = 7.
  5. Remove x: 4 × the first gives 24x + 16z = 28, and 3 × the second gives 24x + 9z = 21.
  6. Subtract: 7z = 7, so z = 1.
  7. Then 6x + 4 = 7, so 6x = 3 and x = 12. Leave it as a fraction, as the question asks for exact values.
  8. y = 2 × 12 − 4 = −3.
  9. Check: 6 × 12 + 4 = 7, 1 + 3 = 4, −12 + 3 = −9. All correct.
Full working
  1. y = 2x − 4from the second equation
  2. 4(2x − 4) + 3z = −9, so 8x + 3z = 7substitute into the third
  3. 24x + 16z = 28 and 24x + 9z = 21match the x terms
  4. 7z = 7, z = 1
  5. 6x = 3, x = 12
  6. y = 1 − 4 = −3
  7. x = 12, y = −3, z = 1
Your turn

Sample questions: Excellence

1

Solve 1x + 1y + 1z = 4, 2x + 1y − 1z = 0 and 1x − 2y + 3z = 13.

Hint

Let u = 1x, v = 1y and w = 1z. Then the system is linear in u, v and w.

Answer

x = 12, y = −1, z = 13

Step by step
  1. These are not linear in x, y and z, because x, y and z are in the denominators. But they are linear in 1x, 1y and 1z.
  2. Let u = 1x, v = 1y, w = 1z. The system becomes u + v + w = 4, 2u + v − w = 0, u − 2v + 3w = 13.
  3. Remove w. (1) + (2): 3u + 2v = 4. Call it (4).
  4. 3 × (2) + (3): 6u + 3v − 3w + u − 2v + 3w = 13, so 7u + v = 13. Call it (5).
  5. From (5), v = 13 − 7u. Into (4): 3u + 26 − 14u = 4, so −11u = −22 and u = 2.
  6. v = 13 − 14 = −1, and w = 4 − u − v = 4 − 2 + 1 = 3.
  7. Now undo the substitution: x = 1u = 12, y = 1v = −1, z = 1w = 13.
  8. Classic mistake: stopping at u, v and w. The question asks for x, y and z.
  9. Why it works: none of u, v, w is zero, so each one has a reciprocal. If one had been 0, there would be no solution.
  10. Check (3): 1x − 2y + 3z = 2 + 2 + 9 = 13. Correct.
Full working
  1. u = 1x, v = 1y, w = 1zmake it linear
  2. u + v + w = 4, 2u + v − w = 0, u − 2v + 3w = 13
  3. (1) + (2): 3u + 2v = 4remove w
  4. 3(2) + (3): 7u + v = 13remove w again
  5. u = 2, v = −1, w = 3
  6. x = 12, y = −1, z = 13take reciprocals
  7. x = 12, y = −1, z = 13
2

Show that the system x + y = a, y + z = b, x + z = c has exactly one solution for any numbers a, b and c, and find it in terms of a, b and c. Hence solve x + y = 11, y + z = 15, x + z = 14.

Hint

Add all three equations to get x + y + z. Then take each original equation away from that total.

Answer

x = a − b + c2, y = a + b − c2, z = b + c − a2; hence x = 5, y = 6, z = 9

Step by step
  1. Look at the shape: each letter appears in exactly two equations. Adding all three counts each letter twice.
  2. Add them: 2x + 2y + 2z = a + b + c, so x + y + z = a + b + c2.
  3. To get z, take away x + y = a: z = a + b + c2 − a = b + c − a2.
  4. To get x, take away y + z = b: x = a + b + c2 − b = a − b + c2.
  5. To get y, take away x + z = c: y = a + b + c2 − c = a + b − c2.
  6. These formulas work for any a, b and c, and every step was forced, so there is always exactly one solution.
  7. Hence: a = 11, b = 15, c = 14. x = 11 − 15 + 142 = 5.
  8. y = 11 + 15 − 142 = 6 and z = 15 + 14 − 112 = 9.
  9. Check the general answer: x + y = 2a2 = a. The other two work the same way.
  10. Check the numbers: 5 + 6 = 11, 6 + 9 = 15, 5 + 9 = 14. All correct.
Full working
  1. 2x + 2y + 2z = a + b + cadd all three
  2. x + y + z = a + b + c2
  3. z = b + c − a2subtract x + y = a
  4. x = a − b + c2subtract y + z = b
  5. y = a + b − c2subtract x + z = c
  6. a = 11, b = 15, c = 14: x = 5, y = 6, z = 9
  7. x = a − b + c2, y = a + b − c2, z = b + c − a2; x = 5, y = 6, z = 9
Summary

What to take away

  • Three equations down to two, then to one.
  • Check in all three.

Challenge

1

Solve the system 2^x × 4^y × 8^z = 2048, 25^x ÷ (5^y × 5^z) = 125 and 27^x ÷ 9^z = 3^(y + 4).

Hint

Write every number as a power of one prime: 2 in the first equation, 5 in the second, 3 in the third. Equal powers of the same base have equal indices.

Answer

x = 3, y = 1, z = 2

Step by step
  1. First equation: 4^y = 2^(2y), 8^z = 2^(3z) and 2048 = 2^11, so x + 2y + 3z = 11.
  2. Second: 25^x = 5^(2x) and 125 = 5^3, so 2x − y − z = 3.
  3. Third: 27^x = 3^(3x) and 9^z = 3^(2z), so 3x − 2z = y + 4, which is 3x − y − 2z = 4.
  4. Third minus second: x − z = 1. Twice the second plus the first: 5x + z = 17.
  5. Add these two: 6x = 18, so x = 3 and z = 2. Then y = 2x − z − 3 = 1.
  6. Check: 2^3 × 4^1 × 8^2 = 8 × 4 × 64 = 2048. Correct.
Full working
  1. 2^(x + 2y + 3z) = 2^11, so x + 2y + 3z = 11 (1)powers of 2
  2. 5^(2x − y − z) = 5^3, so 2x − y − z = 3 (2)powers of 5
  3. 3^(3x − 2z) = 3^(y + 4), so 3x − y − 2z = 4 (3)powers of 3
  4. (3) − (2): x − z = 1; 2(2) + (1): 5x + z = 17y removed twice
  5. 6x = 18, x = 3, z = 2
  6. y = 2(3) − 2 − 3 = 1from (2)
  7. x = 3, y = 1, z = 2
2

Find how many real solutions (x, y, z) the system x² + y² + z² = 14, 2x² − y² + z² = 7, x² + 2y² − z² = 0 has. Then find every solution with x + y + z = 0.

Hint

The system is linear in x², y² and z². Solve for those first, then think about signs: each square comes from two square roots.

Answer

8 real solutions, x = ±1, y = ±2, z = ±3 with any signs; those with x + y + z = 0 are (1, 2, −3) and (−1, −2, 3)

Step by step
  1. Let X = x², Y = y² and Z = z². Then X + Y + Z = 14, 2X − Y + Z = 7 and X + 2Y − Z = 0.
  2. Remove Z: the first plus the third gives 2X + 3Y = 14, and the second plus the third gives 3X + Y = 7.
  3. Y = 7 − 3X, so 2X + 21 − 9X = 14 and X = 1. Then Y = 4 and Z = 9. All three are positive, so real roots exist.
  4. x = ±1, y = ±2 and z = ±3, and the signs are free: 2 × 2 × 2 = 8 solutions.
  5. For x + y + z = 0 the two smaller sizes must add to the largest with the opposite sign: 1 + 2 − 3 = 0 or −1 − 2 + 3 = 0. No other sign choice gives 0.
Full working
  1. X + Y + Z = 14, 2X − Y + Z = 7, X + 2Y − Z = 0X = x², Y = y², Z = z²
  2. 2X + 3Y = 14 and 3X + Y = 7Z removed twice
  3. 2X + 3(7 − 3X) = 14, X = 1
  4. Y = 4, Z = 9all positive
  5. x = ±1, y = ±2, z = ±3: 2³ = 8 solutions
  6. x + y + z = 0: 1 + 2 − 3 = 0, −1 − 2 + 3 = 0
  7. 8 solutions; (1, 2, −3) and (−1, −2, 3)
3

Four equations are given: x + y + z = 4, 2x − y + z = 8, x + 3y − 2z = −7 and kx + y + k²z = 4, where k is a constant. Find every value of k for which all four equations are true at the same time. For one of your values the fourth equation is nothing new: explain why.

Hint

Three equations with no k already fix x, y and z. The fourth must then be true at that point, which gives an equation for k.

Answer

k = 1 or k = −53. When k = 1 the fourth equation is x + y + z = 4, the same as the first.

Step by step
  1. Solve the first three. Remove y: the first plus the second gives 3x + 2z = 12, and 3 × the first minus the third gives 2x + 5z = 19.
  2. Then 2 × (3x + 2z = 12) is 6x + 4z = 24 and 3 × (2x + 5z = 19) is 6x + 15z = 57. Subtract: 11z = 33, so z = 3, x = 2 and y = −1.
  3. All four are true together only if the fourth holds at (2, −1, 3): 2k − 1 + 3k² = 4, so 3k² + 2k − 5 = 0.
  4. (3k + 5)(k − 1) = 0, so k = 1 or k = −53.
  5. With k = 1 the fourth equation is x + y + z = 4, a copy of the first, so it adds nothing. With k = −53 it is a different plane that also passes through (2, −1, 3).
Full working
  1. (1) + (2): 3x + 2z = 12; 3(1) − (3): 2x + 5z = 19y removed twice
  2. 6x + 15z − (6x + 4z) = 57 − 24, 11z = 33, z = 3
  3. x = (12 − 6) ÷ 3 = 2, y = 4 − 2 − 3 = −1
  4. k(2) + (−1) + k²(3) = 4fourth equation at (2, −1, 3)
  5. 3k² + 2k − 5 = 0, (3k + 5)(k − 1) = 0
  6. k = 1 gives x + y + z = 4, the first equation again
  7. k = 1 or k = −53

More challenge problems

Science

Where science uses this

Practice

Practise this

Worksheet with answersWithout answersDownload PDF
Report a mistake

More in AS 91587