Question:medium

Solve the system of linear equations by matrix method:
\( -x + 3y - 2z = 3 \)
\( 3x + 2y + 3z = 5 \)
\( -2x + y + z = -4 \)

Show Hint

Write \(AX = B\), find \(|A| = -40\), then \(X = A^{-1}B\) gives \((2, 1, -1)\).
Updated On: Nov 19, 2026
Show Solution

Solution and Explanation

Step 1: Choose the method:
We write the equations as an augmented matrix $[A \mid B]$ and use row operations to reach a triangular form, then solve from the bottom up. This is the same matrix idea as $X = A^{-1}B$ but it avoids computing cofactors.
\[ \left[\begin{array}{ccc|c} -1 & 3 & -2 & 3 \\ 3 & 2 & 3 & 5 \\ -2 & 1 & 1 & -4 \end{array}\right] \]

Step 2: Make the first pivot equal to 1:
Apply $R_1 \to -R_1$. The first row becomes $[\,1 \;\; -3 \;\; 2 \mid -3\,]$.

Step 3: Clear the first column below the pivot:
Apply $R_2 \to R_2 - 3R_1$: $[\,3 - 3 \;\; 2 + 9 \;\; 3 - 6 \mid 5 + 9\,] = [\,0 \;\; 11 \;\; -3 \mid 14\,]$.
Apply $R_3 \to R_3 + 2R_1$: $[\,-2 + 2 \;\; 1 - 6 \;\; 1 + 4 \mid -4 - 6\,] = [\,0 \;\; -5 \;\; 5 \mid -10\,]$.
Divide the third row by $-5$: $R_3 \to R_3 / (-5)$ gives $[\,0 \;\; 1 \;\; -1 \mid 2\,]$.

Step 4: Clear the second column:
Swap $R_2$ and $R_3$ so the new second row is $[\,0 \;\; 1 \;\; -1 \mid 2\,]$ and the third row is $[\,0 \;\; 11 \;\; -3 \mid 14\,]$.
Apply $R_3 \to R_3 - 11R_2$: $[\,0 \;\; 0 \;\; -3 + 11 \mid 14 - 22\,] = [\,0 \;\; 0 \;\; 8 \mid -8\,]$.

Step 5: Back substitute:
From the last row, $8z = -8$, so $z = -1$.
From the second row, $y - z = 2$, so $y = 2 + z = 1$.
From the first row, $x - 3y + 2z = -3$, so $x = -3 + 3(1) - 2(-1) = -3 + 3 + 2 = 2$.

Step 6: Confirm the answer:
The determinant of the coefficient matrix is $-40 \ne 0$, which matches the fact that we found one unique solution.
As an independent test, use Cramer's rule. Replacing the columns of $A$ by $B$ one at a time gives determinants $-80$, $-40$ and $40$. Dividing each by $-40$ gives $x = 2$, $y = 1$, $z = -1$, the same values as the row reduction.
Each row operation used above only rewrites the same equations in a simpler form, so the final triangular system has exactly the same solution as the original one.
Putting $(2, 1, -1)$ back: $-2 + 3 + 2 = 3$, $6 + 2 - 3 = 5$, $-4 + 1 - 1 = -4$. All correct.

Final Answer:
The unique solution is $x = 2$, $y = 1$, $z = -1$. \[ \boxed{(x, y, z) = (2, 1, -1)} \]
Was this answer helpful?
0