Solve the system: 4x-5y+z=-21, 2x-5y-z=-21, x-2y=-8

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

Answer

\((-2, 3, 2)\)

Work

$$\begin{bmatrix} 1 & -2 & 0 & | & -8 \\ 0 & -1 & -1 & | & -5 \\ 0 & 0 & -2 & | & -4 \end{bmatrix} \implies -2z = -4 \to z=2; -y-2=-5 \to y=3; x-6=-8 \to x=-2$$

Step-by-step solution

  1. Write the system as an augmented matrix: $$\begin{bmatrix} 4 & -5 & 1 & | & -21 \\ 2 & -5 & -1 & | & -21 \\ 1 & -2 & 0 & | & -8 \end{bmatrix}$$ 2. Swap row 1 and row 3 to get a leading 1: $$\begin{bmatrix} 1 & -2 & 0 & | & -8 \\ 2 & -5 & -1 & | & -21 \\ 4 & -5 & 1 & | & -21 \end{bmatrix}$$ 3. Eliminate the first column: $R_2 - 2R_1 \to R_2$ and $R_3 - 4R_1 \to R_3$: $$\begin{bmatrix} 1 & -2 & 0 & | & -8 \\ 0 & -1 & -1 & | & -5 \\ 0 & 3 & 1 & | & 11 \end{bmatrix}$$ 4. Eliminate the second column: $R_3 + 3R_2 \to R_3$: $$\begin{bmatrix} 1 & -2 & 0 & | & -8 \\ 0 & -1 & -1 & | & -5 \\ 0 & 0 & -2 & | & -4 \end{bmatrix}$$ 5. Solve for $z$: $-2z = -4 \implies z = 2$. 6. Solve for $y$: $-y - (2) = -5 \implies -y = -3 \implies y = 3$. 7. Solve for $x$: $x - 2(3) = -8 \implies x - 6 = -8 \implies x = -2$.