Three equations in three unknowns
Solve the system
\[ \begin{cases} x + y + z = 5 \\ 2x + 3y - z = -3 \\ 3x - y + 2z = 15 \end{cases} \]
What is the value of \(z\)?
Show a hint
Eliminate the same variable twice, using two different pairs of equations, to get a system of two equations in two unknowns.
Show the step-by-step solution
- Add the first two equations to eliminate \(z\): \(3x + 4y = 2\).
- Multiply the second equation by 2 and add the third: \((4x + 6y - 2z) + (3x - y + 2z) = -6 + 15\), so \(7x + 5y = 9\).
- Solve \(3x + 4y = 2\) and \(7x + 5y = 9\). Multiply the first by 5 and the second by 4: \(15x + 20y = 10\) and \(28x + 20y = 36\).
- Subtract: \(13x = 26\), so \(x = 2\). Then \(3 \cdot 2 + 4y = 2\) gives \(4y = -4\), so \(y = -1\).
- From the first equation: \(z = 5 - 2 - (-1) = 4\).
- Check the third equation: \(3 \cdot 2 - (-1) + 2 \cdot 4 = 6 + 1 + 8 = 15\). Correct.
Answer: \(z = 4\).
All 10 systems of linear equations problems and the topic guide
Learn the method: Systems of Equations — Substitution, Elimination and Graphing