Solve the system of equations: x + 2y + 3z = 18, x - 3y + z = 20, 3x - 3y + z = 18

Check the final answer first, then review the worked steps.

Answer

\((-1, -4, 9)\)

Work

Eq3 - Eq2: 2x = -2 => x = -1
Eq1: -1 + 2y + 3z = 18 => 2y + 3z = 19
Eq2: -1 - 3y + z = 20 => -3y + z = 21
-3y + z = 21 => z = 3y + 21
2y + 3(3y + 21) = 19 => 11y = -44 => y = -4
z = 3(-4) + 21 = 9

Step-by-step solution

  1. Subtract the second equation from the third to eliminate $y$ and $z$: $(3x - 3y + z) - (x - 3y + z) = 18 - 20$, which simplifies to $2x = -2$, so $x = -1$.
  2. Substitute $x = -1$ into the second and third equations: $-1 - 3y + z = 20 \implies -3y + z = 21$ and $3(-1) - 3y + z = 18 \implies -3y + z = 21$. These are identical, so we use the first equation: $-1 + 2y + 3z = 18 \implies 2y + 3z = 19$.
  3. Solve the system $\begin{cases} -3y + z = 21 \\ 2y + 3z = 19 \end{cases}$. Multiply the first by 3: $-9y + 3z = 63$. Subtract this from the second: $(2y + 3z) - (-9y + 3z) = 19 - 63 \implies 11y = -44 \implies y = -4$.
  4. Plug $y = -4$ into $-3y + z = 21$: $-3(-4) + z = 21 \implies 12 + z = 21 \implies z = 9$.