Solve the system of equations: 3x - y + 3z = -5, 3x + y + 2z = 8, -2x + 2y - 3z = 15

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

Answer

\((8, 2, -9)\)

Work

  1. (3x-y+3z)+(3x+y+2z)=-5+8 => 6x+5z=3
  2. 2(3x-y+3z)+(-2x+2y-3z)=2(-5)+15 => 4x+3z=5
  3. 3(6x+5z)-5(4x+3z)=3(3)-5(5) => -2x=-16 => x=8
  4. 4(8)+3z=5 => 3z=-27 => z=-9
  5. 3(8)+y+2(-9)=8 => y+6=8 => y=2

Step-by-step solution

  1. Add the first two equations to eliminate $y$: $(3x - y + 3z) + (3x + y + 2z) = -5 + 8$, which simplifies to $6x + 5z = 3$.
  2. Multiply the first equation by 2 and add it to the third equation to eliminate $y$: $2(3x - y + 3z) + (-2x + 2y - 3z) = 2(-5) + 15$, which simplifies to $(6x - 2y + 6z) + (-2x + 2y - 3z) = 5$, or $4x + 3z = 5$.
  3. Solve the system of two equations: $6x + 5z = 3$ and $4x + 3z = 5$. Multiply the first by 2 and the second by 3: $12x + 10z = 6$ and $12x + 9z = 15$. Subtract the second from the first to get $z = -9$.
  4. Substitute $z = -9$ into $4x + 3z = 5$: $4x + 3(-9) = 5 \implies 4x - 27 = 5 \implies 4x = 32 \implies x = 8$.
  5. Substitute $x = 8$ and $z = -9$ into the second equation $3x + y + 2z = 8$: $3(8) + y + 2(-9) = 8 \implies 24 + y - 18 = 8 \implies y + 6 = 8 \implies y = 2$.