Detailed Explanation
A system of linear equations can be written compactly in matrix form as \( AX = B \), where \( A \) is the coefficient matrix, \( X \) is the column matrix of variables, and \( B \) is the column matrix of constants. If \( \det(A) \ne 0 \), the matrix \( A \) is invertible and the system has a unique solution given by \( X = A^{-1}B \). To find \( A^{-1} \), we use the formula \( A^{-1} = \frac{1}{\det(A)}\,\text{adj}(A) \), where the adjoint is the transpose of the matrix of cofactors. This is a standard application of determinants and inverses.
Formula Used
\[ AX = B \Rightarrow X = A^{-1}B, \qquad A^{-1} = \frac{1}{\det(A)}\,\text{adj}(A) \]
Solution
- Step 1: Write the system in matrix form \( AX = B \): \[ A = \begin{bmatrix} 1 & -1 & 2 \\ 3 & 4 & -5 \\ 2 & -1 & 3 \end{bmatrix}, \quad X = \begin{bmatrix} x \\ y \\ z \end{bmatrix}, \quad B = \begin{bmatrix} 7 \\ -5 \\ 12 \end{bmatrix} \]
- Step 2: Compute \( \det(A) \) by expanding along the first row: \[ \det(A) = 1\,(4\cdot 3 - (-5)(-1)) - (-1)(3\cdot 3 - (-5)(2)) + 2(3\cdot(-1) - 4\cdot 2) \] \[ \det(A) = 1(12 - 5) + 1(9 + 10) + 2(-3 - 8) = 7 + 19 - 22 = 4 \] Since \( \det(A) = 4 \ne 0 \), the inverse exists and the solution is unique.
- Step 3: Find the cofactors \( A_{ij} \) of each element. \[ A_{11} = 7,\; A_{12} = -19,\; A_{13} = -11 \] \[ A_{21} = 1,\; A_{22} = -1,\; A_{23} = -1 \] \[ A_{31} = -3,\; A_{32} = 11,\; A_{33} = 7 \]
- Step 4: The adjoint is the transpose of the cofactor matrix: \[ \text{adj}(A) = \begin{bmatrix} 7 & 1 & -3 \\ -19 & -1 & 11 \\ -11 & -1 & 7 \end{bmatrix} \]
- Step 5: Write the inverse using \( A^{-1} = \frac{1}{\det(A)}\,\text{adj}(A) \): \[ A^{-1} = \frac{1}{4}\begin{bmatrix} 7 & 1 & -3 \\ -19 & -1 & 11 \\ -11 & -1 & 7 \end{bmatrix} \]
- Step 6: Compute \( X = A^{-1}B \): \[ X = \frac{1}{4}\begin{bmatrix} 7 & 1 & -3 \\ -19 & -1 & 11 \\ -11 & -1 & 7 \end{bmatrix}\begin{bmatrix} 7 \\ -5 \\ 12 \end{bmatrix} \] Multiplying: \[ X = \frac{1}{4}\begin{bmatrix} 49 - 5 - 36 \\ -133 + 5 + 132 \\ -77 + 5 + 84 \end{bmatrix} = \frac{1}{4}\begin{bmatrix} 8 \\ 4 \\ 12 \end{bmatrix} = \begin{bmatrix} 2 \\ 1 \\ 3 \end{bmatrix} \]
- Step 7: Reading off the entries of \( X \), we get the values of the variables: \[ x = 2, \quad y = 1, \quad z = 3 \]
Final Answer
\[ x = 2, \quad y = 1, \quad z = 3 \]
Common Mistake
A frequent error is forgetting to take the transpose of the cofactor matrix when forming the adjoint. The adjoint is \( \text{adj}(A) = (\text{cofactor matrix})^{T} \); using the cofactor matrix directly gives a wrong inverse and an incorrect solution.