Question:

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
collegedunia
Verified By Collegedunia

Solution and Explanation

Step 1: Write the system as AX = B:
Collect the coefficients into a matrix.
\[ \begin{pmatrix} -1 & 3 & -2 \\ 3 & 2 & 3 \\ -2 & 1 & 1 \end{pmatrix} \begin{pmatrix} x \\ y \\ z \end{pmatrix} = \begin{pmatrix} 3 \\ 5 \\ -4 \end{pmatrix} \]
So \(A = \begin{pmatrix} -1 & 3 & -2 \\ 3 & 2 & 3 \\ -2 & 1 & 1 \end{pmatrix}\), \(X = \begin{pmatrix} x \\ y \\ z \end{pmatrix}\), \(B = \begin{pmatrix} 3 \\ 5 \\ -4 \end{pmatrix}\). If \(|A| \ne 0\), the unique solution is \(X = A^{-1}B\) with \(A^{-1} = \dfrac{\text{adj} A}{|A|}\).

Step 2: Find the determinant of A:
Expand along the first row.
\[ |A| = -1(2 \cdot 1 - 3 \cdot 1) - 3(3 \cdot 1 - 3 \cdot (-2)) + (-2)(3 \cdot 1 - 2 \cdot (-2)) \]
\[ |A| = -1(-1) - 3(9) - 2(7) = 1 - 27 - 14 = -40 \]
Since \(|A| = -40 \ne 0\), \(A\) is invertible and the system has exactly one solution.

Step 3: Find the cofactors:
\(C_{11} = 2 \cdot 1 - 3 \cdot 1 = -1\), \(C_{12} = -(3 \cdot 1 - 3 \cdot (-2)) = -9\), \(C_{13} = 3 \cdot 1 - 2 \cdot (-2) = 7\).
\(C_{21} = -(3 \cdot 1 - (-2) \cdot 1) = -5\), \(C_{22} = (-1)(1) - (-2)(-2) = -5\), \(C_{23} = -((-1)(1) - 3 \cdot (-2)) = -5\).
\(C_{31} = 3 \cdot 3 - (-2) \cdot 2 = 13\), \(C_{32} = -((-1)(3) - (-2)(3)) = -3\), \(C_{33} = (-1)(2) - 3 \cdot 3 = -11\).

Step 4: Form the adjoint and the inverse:
The adjoint is the transpose of the cofactor matrix.
\[ \text{adj} A = \begin{pmatrix} -1 & -5 & 13 \\ -9 & -5 & -3 \\ 7 & -5 & -11 \end{pmatrix} \]
\[ A^{-1} = \dfrac{1}{-40} \begin{pmatrix} -1 & -5 & 13 \\ -9 & -5 & -3 \\ 7 & -5 & -11 \end{pmatrix} = \dfrac{1}{40} \begin{pmatrix} 1 & 5 & -13 \\ 9 & 5 & 3 \\ -7 & 5 & 11 \end{pmatrix} \]

Step 5: Multiply A inverse by B:
\[ X = A^{-1}B = \dfrac{1}{40} \begin{pmatrix} 1 & 5 & -13 \\ 9 & 5 & 3 \\ -7 & 5 & 11 \end{pmatrix} \begin{pmatrix} 3 \\ 5 \\ -4 \end{pmatrix} \]
First row: \(3 + 25 + 52 = 80\). Second row: \(27 + 25 - 12 = 40\). Third row: \(-21 + 25 - 44 = -40\).
\[ \begin{pmatrix} x \\ y \\ z \end{pmatrix} = \dfrac{1}{40} \begin{pmatrix} 80 \\ 40 \\ -40 \end{pmatrix} = \begin{pmatrix} 2 \\ 1 \\ -1 \end{pmatrix} \]

Step 6: Check in the original equations:
\(-2 + 3 + 2 = 3\), \(6 + 2 - 3 = 5\), \(-4 + 1 - 1 = -4\). All three hold.

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