4x + 5y + 2z = -11, 3x - 3y - 6z = 9, x + y - z = 4

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

Answer

\((-4, 3, -5)\)

Work

$$R_3 \leftrightarrow R_1: \begin{bmatrix} 1 & 1 & -1 & 4 \\ 3 & -3 & -6 & 9 \\ 4 & 5 & 2 & -11 \end{bmatrix} \rightarrow \begin{bmatrix} 1 & 1 & -1 & 4 \\ 0 & -6 & -3 & -3 \\ 0 & 1 & 6 & -27 \end{bmatrix} \rightarrow \begin{bmatrix} 1 & 1 & -1 & 4 \\ 0 & 1 & 6 & -27 \\ 0 & 0 & 33 & -165 \end{bmatrix}$$
$$33z = -165 \implies z = -5$$
$$y + 6(-5) = -27 \implies y = 3$$
$$x + 3 - (-5) = 4 \implies x = -4$$

Step-by-step solution

1. Write the augmented matrix:
$$\begin{bmatrix} 4 & 5 & 2 & | & -11 \\ 3 & -3 & -6 & | & 9 \\ 1 & 1 & -1 & | & 4 \end{bmatrix}$$
2. Swap row 1 and row 3 to get a 1 in the top-left:
$$\begin{bmatrix} 1 & 1 & -1 & | & 4 \\ 3 & -3 & -6 & | & 9 \\ 4 & 5 & 2 & | & -11 \end{bmatrix}$$
3. Eliminate the first column: $R_2 - 3R_1 \rightarrow R_2$ and $R_3 - 4R_1 \rightarrow R_3$:
$$\begin{bmatrix} 1 & 1 & -1 & | & 4 \\ 0 & -6 & -3 & | & -3 \\ 0 & 1 & 6 & | & -27 \end{bmatrix}$$
4. Swap $R_2$ and $R_3$ to simplify:
$$\begin{bmatrix} 1 & 1 & -1 & | & 4 \\ 0 & 1 & 6 & | & -27 \\ 0 & -6 & -3 & | & -3 \end{bmatrix}$$
5. Eliminate the second column: $R_3 + 6R_2 \rightarrow R_3$:
$$\begin{bmatrix} 1 & 1 & -1 & | & 4 \\ 0 & 1 & 6 & | & -27 \\ 0 & 0 & 33 & | & -165 \end{bmatrix}$$
6. Solve for $z$: $33z = -165 \implies z = -5$.
7. Back-substitute into $R_2$: $y + 6(-5) = -27 \implies y = 3$.
8. Back-substitute into $R_1$: $x + 3 - (-5) = 4 \implies x + 8 = 4 \implies x = -4$.