SOLVER7 Study. Nothing Else.
Exercise 4.5 Q12

Solve system of linear equations, using matrix method, in Exercises 7 to 14.
\( x – y + z = 4\)
\( 2x + y – 3z = 0\)
\(x + y + z = 2\)

CBSE Class 12 Maths · Determinants

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have three mystery numbers hidden in three boxes. Each box has a clue written on it. We arrange all the clues into a neat grid called a matrix. That grid acts like a special machine. Running the machine backwards — called finding the inverse — reveals all three hidden numbers at once. Here, the three mystery numbers turn out to be \( x = 2 \), \( y = -1 \), and \( z = 1 \). It is like unlocking a combination lock using maths instead of guessing.

Answer: \[ x = 2, \quad y = -1, \quad z = 1 \]

📖 Solving a Linear System Using the Matrix Method

Detailed Explanation

In the matrix method, we write the system of linear equations in the form \( 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 \), then \( A \) is invertible and the unique solution is given by \( X = A^{-1} B \). To find \( A^{-1} \), we compute the determinant, then the cofactors, form the adjoint (transpose of the cofactor matrix), and use \( A^{-1} = \frac{1}{\det(A)} \, \text{adj}(A) \).

Formula Used

\[ AX = B \Rightarrow X = A^{-1}B, \quad A^{-1} = \frac{1}{\det(A)}\,\text{adj}(A) \]

Solution

  1. Step 1: Write the system in matrix form \( AX = B \). \[ A = \begin{bmatrix} 1 & -1 & 1 \\ 2 & 1 & -3 \\ 1 & 1 & 1 \end{bmatrix}, \quad X = \begin{bmatrix} x \\ y \\ z \end{bmatrix}, \quad B = \begin{bmatrix} 4 \\ 0 \\ 2 \end{bmatrix} \]
  2. Step 2: Find the determinant of \( A \) by expanding along the first row. \[ \det(A) = 1(1\cdot 1 - (-3)\cdot 1) - (-1)(2\cdot 1 - (-3)\cdot 1) + 1(2\cdot 1 - 1\cdot 1) \] \[ \det(A) = 1(1+3) + 1(2+3) + 1(2-1) = 4 + 5 + 1 = 10 \] Since \( \det(A) = 10 \ne 0 \), the inverse exists and the system has a unique solution.
  3. Step 3: Find the cofactors \( A_{ij} \) of each element. \[ A_{11}=4,\ A_{12}=-5,\ A_{13}=1 \] \[ A_{21}=2,\ A_{22}=0,\ A_{23}=-2 \] \[ A_{31}=2,\ A_{32}=5,\ A_{33}=3 \] For example, \( A_{12} = -\begin{vmatrix} 2 & -3 \\ 1 & 1 \end{vmatrix} = -(2+3) = -5 \).
  4. Step 4: Form the adjoint of \( A \), which is the transpose of the cofactor matrix. \[ \text{adj}(A) = \begin{bmatrix} 4 & 2 & 2 \\ -5 & 0 & 5 \\ 1 & -2 & 3 \end{bmatrix} \]
  5. Step 5: Compute the inverse using \( A^{-1} = \frac{1}{\det(A)}\,\text{adj}(A) \). \[ A^{-1} = \frac{1}{10} \begin{bmatrix} 4 & 2 & 2 \\ -5 & 0 & 5 \\ 1 & -2 & 3 \end{bmatrix} \]
  6. Step 6: Find \( X = A^{-1}B \) by multiplying with \( B \). \[ X = \frac{1}{10} \begin{bmatrix} 4 & 2 & 2 \\ -5 & 0 & 5 \\ 1 & -2 & 3 \end{bmatrix} \begin{bmatrix} 4 \\ 0 \\ 2 \end{bmatrix} \] Computing each entry: \[ X = \frac{1}{10} \begin{bmatrix} 16 + 0 + 4 \\ -20 + 0 + 10 \\ 4 - 0 + 6 \end{bmatrix} = \frac{1}{10} \begin{bmatrix} 20 \\ -10 \\ 10 \end{bmatrix} = \begin{bmatrix} 2 \\ -1 \\ 1 \end{bmatrix} \]
  7. Step 7: Read off the values of the variables from \( X \). \[ x = 2, \quad y = -1, \quad z = 1 \] You can verify by substituting into the first equation: \( 2 - (-1) + 1 = 4 \), which is correct.

Final Answer

\[ x = 2, \quad y = -1, \quad z = 1 \]

Common Mistake

A very common error is forgetting that the adjoint is the TRANSPOSE of the cofactor matrix. Students often use the cofactor matrix directly as the adjoint, which gives a wrong inverse. Another frequent slip is a sign error in the cofactors (each cofactor carries the sign \( (-1)^{i+j} \)).

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Identify the coefficient matrix \( A \), variable matrix \( X \), and constant matrix \( B \) from the given system. \[ A = \begin{bmatrix} 1 & -1 & 1 \\ 2 & 1 & -3 \\ 1 & 1 & 1 \end{bmatrix}, \quad X = \begin{bmatrix} x \\ y \\ z \end{bmatrix}, \quad B = \begin{bmatrix} 4 \\ 0 \\ 2 \end{bmatrix} \] — Reason: Expressing the system as \( AX = B \) lets us apply the inverse-matrix formula to find \( X \) directly.
  2. Step 2: Compute \( \det(A) \) by expanding along the first row. \[ \det(A) = 1\bigl(1 \cdot 1 - (-3) \cdot 1\bigr) - (-1)\bigl(2 \cdot 1 - (-3) \cdot 1\bigr) + 1\bigl(2 \cdot 1 - 1 \cdot 1\bigr) \] \[ \det(A) = 1(1+3) + 1(2+3) + 1(2-1) = 4 + 5 + 1 = 10 \] Since \( \det(A) = 10 \ne 0 \), the matrix \( A \) is invertible and a unique solution exists. — Reason: We must confirm the determinant is non-zero before proceeding; otherwise the inverse would not exist.
  3. Step 3: Calculate all nine cofactors \( A_{ij} \) of matrix \( A \). \[ A_{11} = +\begin{vmatrix} 1 & -3 \\ 1 & 1 \end{vmatrix} = 1+3 = 4 \] \[ A_{12} = -\begin{vmatrix} 2 & -3 \\ 1 & 1 \end{vmatrix} = -(2+3) = -5 \] \[ A_{13} = +\begin{vmatrix} 2 & 1 \\ 1 & 1 \end{vmatrix} = 2-1 = 1 \] \[ A_{21} = -\begin{vmatrix} -1 & 1 \\ 1 & 1 \end{vmatrix} = -(-1-1) = 2 \] \[ A_{22} = +\begin{vmatrix} 1 & 1 \\ 1 & 1 \end{vmatrix} = 1-1 = 0 \] \[ A_{23} = -\begin{vmatrix} 1 & -1 \\ 1 & 1 \end{vmatrix} = -(1+1) = -2 \] \[ A_{31} = +\begin{vmatrix} -1 & 1 \\ 1 & -3 \end{vmatrix} = 3-1 = 2 \] \[ A_{32} = -\begin{vmatrix} 1 & 1 \\ 2 & -3 \end{vmatrix} = -(-3-2) = 5 \] \[ A_{33} = +\begin{vmatrix} 1 & -1 \\ 2 & 1 \end{vmatrix} = 1+2 = 3 \] — Reason: Each cofactor is the signed minor of the corresponding element; these are needed to build the adjoint.
  4. Step 4: Form the adjoint of \( A \) by transposing the cofactor matrix. \[ \text{adj}(A) = \begin{bmatrix} A_{11} & A_{21} & A_{31} \\ A_{12} & A_{22} & A_{32} \\ A_{13} & A_{23} & A_{33} \end{bmatrix} = \begin{bmatrix} 4 & 2 & 2 \\ -5 & 0 & 5 \\ 1 & -2 & 3 \end{bmatrix} \] — Reason: The adjoint (transpose of the cofactor matrix) is the key ingredient for computing \( A^{-1} \).
  5. Step 5: Compute the inverse using \( A^{-1} = \dfrac{1}{\det(A)}\,\text{adj}(A) \). \[ A^{-1} = \frac{1}{10}\begin{bmatrix} 4 & 2 & 2 \\ -5 & 0 & 5 \\ 1 & -2 & 3 \end{bmatrix} \] — Reason: Dividing every entry of \( \text{adj}(A) \) by \( \det(A) = 10 \) gives the inverse matrix.
  6. Step 6: Multiply \( A^{-1} \) by \( B \) to get the solution \( X = A^{-1}B \). \[ X = \frac{1}{10}\begin{bmatrix} 4 & 2 & 2 \\ -5 & 0 & 5 \\ 1 & -2 & 3 \end{bmatrix} \begin{bmatrix} 4 \\ 0 \\ 2 \end{bmatrix} \] Computing each row of the product: Row 1: \( 4(4) + 2(0) + 2(2) = 16 + 0 + 4 = 20 \), so \( x = \frac{20}{10} = 2 \). Row 2: \( -5(4) + 0(0) + 5(2) = -20 + 0 + 10 = -10 \), so \( y = \frac{-10}{10} = -1 \). Row 3: \( 1(4) + (-2)(0) + 3(2) = 4 + 0 + 6 = 10 \), so \( z = \frac{10}{10} = 1 \). — Reason: Matrix multiplication of \( A^{-1} \) with \( B \) directly yields the values of the unknown variables.

Final Answer

\[ x = 2, \quad y = -1, \quad z = 1 \]

Common Mistake

One common mistake: Students form the adjoint by writing the cofactor matrix as-is, forgetting to transpose it first. Remember, \( \text{adj}(A) \) is the TRANSPOSE of the cofactor matrix, so the row and column positions must be swapped before dividing by the determinant.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Matrix Form: \[A = \begin{bmatrix} 1 & -1 & 1 \\ 2 & 1 & -3 \\ 1 & 1 & 1 \end{bmatrix}, \quad X = \begin{bmatrix} x \\ y \\ z \end{bmatrix}, \quad B = \begin{bmatrix} 4 \\ 0 \\ 2 \end{bmatrix}\]
  2. Step 2: Determinant: \[\det(A) = 1(1+3) + 1(2+3) + 1(2-1) = 4+5+1 = 10 \ne 0\]
  3. Step 3: Adjoint and Inverse: Cofactor matrix: \[C = \begin{bmatrix} 4 & -5 & 1 \\ 2 & 0 & -2 \\ 2 & 5 & 3 \end{bmatrix}\] so \[\text{adj}(A) = C^{T} = \begin{bmatrix} 4 & 2 & 2 \\ -5 & 0 & 5 \\ 1 & -2 & 3 \end{bmatrix}\] and \[A^{-1} = \frac{1}{10}\begin{bmatrix} 4 & 2 & 2 \\ -5 & 0 & 5 \\ 1 & -2 & 3 \end{bmatrix}\]
  4. Step 4: Solve: \[X = A^{-1}B = \frac{1}{10}\begin{bmatrix} 4 & 2 & 2 \\ -5 & 0 & 5 \\ 1 & -2 & 3 \end{bmatrix}\begin{bmatrix} 4 \\ 0 \\ 2 \end{bmatrix} = \frac{1}{10}\begin{bmatrix} 20 \\ -10 \\ 10 \end{bmatrix} = \begin{bmatrix} 2 \\ -1 \\ 1 \end{bmatrix}\]

Answer: \[ x = 2, \quad y = -1, \quad z = 1 \]

➕ More Examples

More Examples

Example 1

Question: Solve the following system of linear equations using the matrix method: \[2x - y + z = 3\] \[x + 3y - 2z = 1\] \[3x + y + z = 8\]

Solution: We write the system in matrix form \(AX = B\): \[A = \begin{bmatrix} 2 & -1 & 1 \\ 1 & 3 & -2 \\ 3 & 1 & 1 \end{bmatrix}, \quad X = \begin{bmatrix} x \\ y \\ z \end{bmatrix}, \quad B = \begin{bmatrix} 3 \\ 1 \\ 8 \end{bmatrix}\] Step 1: Compute \(\det(A)\). Expanding along the first row: \[\det(A) = 2\begin{vmatrix} 3 & -2 \\ 1 & 1 \end{vmatrix} - (-1)\begin{vmatrix} 1 & -2 \\ 3 & 1 \end{vmatrix} + 1\begin{vmatrix} 1 & 3 \\ 3 & 1 \end{vmatrix}\] \[= 2(3 \cdot 1 - (-2) \cdot 1) + 1(1 \cdot 1 - (-2) \cdot 3) + 1(1 \cdot 1 - 3 \cdot 3)\] \[= 2(3 + 2) + 1(1 + 6) + 1(1 - 9)\] \[= 2(5) + 7 + (-8)\] \[= 10 + 7 - 8 = 9\] Since \(\det(A) = 9 \ne 0\), the inverse exists. Step 2: Find the cofactors \(C_{ij}\). \[C_{11} = +\begin{vmatrix} 3 & -2 \\ 1 & 1 \end{vmatrix} = 3 + 2 = 5\] \[C_{12} = -\begin{vmatrix} 1 & -2 \\ 3 & 1 \end{vmatrix} = -(1 + 6) = -7\] \[C_{13} = +\begin{vmatrix} 1 & 3 \\ 3 & 1 \end{vmatrix} = 1 - 9 = -8\] \[C_{21} = -\begin{vmatrix} -1 & 1 \\ 1 & 1 \end{vmatrix} = -(-1 - 1) = 2\] \[C_{22} = +\begin{vmatrix} 2 & 1 \\ 3 & 1 \end{vmatrix} = 2 - 3 = -1\] \[C_{23} = -\begin{vmatrix} 2 & -1 \\ 3 & 1 \end{vmatrix} = -(2 + 3) = -5\] \[C_{31} = +\begin{vmatrix} -1 & 1 \\ 3 & -2 \end{vmatrix} = 2 - 3 = -1\] \[C_{32} = -\begin{vmatrix} 2 & 1 \\ 1 & -2 \end{vmatrix} = -(-4 - 1) = 5\] \[C_{33} = +\begin{vmatrix} 2 & -1 \\ 1 & 3 \end{vmatrix} = 6 + 1 = 7\] Step 3: Form \(\text{adj}(A) = \left(\text{Cofactor matrix}\right)^T\). \[\text{adj}(A) = \begin{bmatrix} 5 & 2 & -1 \\ -7 & -1 & 5 \\ -8 & -5 & 7 \end{bmatrix}\] Step 4: Compute \(A^{-1}\). \[A^{-1} = \frac{1}{9} \begin{bmatrix} 5 & 2 & -1 \\ -7 & -1 & 5 \\ -8 & -5 & 7 \end{bmatrix}\] Step 5: Find \(X = A^{-1}B\). \[X = \frac{1}{9} \begin{bmatrix} 5 & 2 & -1 \\ -7 & -1 & 5 \\ -8 & -5 & 7 \end{bmatrix} \begin{bmatrix} 3 \\ 1 \\ 8 \end{bmatrix}\] Computing each entry: For \(x\): \(\frac{1}{9}(5 \cdot 3 + 2 \cdot 1 + (-1) \cdot 8) = \frac{1}{9}(15 + 2 - 8) = \frac{9}{9} = 1\) For \(y\): \(\frac{1}{9}((-7) \cdot 3 + (-1) \cdot 1 + 5 \cdot 8) = \frac{1}{9}(-21 - 1 + 40) = \frac{18}{9} = 2\) For \(z\): \(\frac{1}{9}((-8) \cdot 3 + (-5) \cdot 1 + 7 \cdot 8) = \frac{1}{9}(-24 - 5 + 56) = \frac{27}{9} = 3\) Therefore: \[X = \begin{bmatrix} 1 \\ 2 \\ 3 \end{bmatrix}\]

Answer: \(x = 1,\ y = 2,\ z = 3\)

Example 2

Question: Solve the following system of linear equations using the matrix method: \[x + 2y - z = 1\] \[3x + y + z = 9\] \[2x - y + 2z = 5\]

Solution: We write the system in matrix form \(AX = B\): \[A = \begin{bmatrix} 1 & 2 & -1 \\ 3 & 1 & 1 \\ 2 & -1 & 2 \end{bmatrix}, \quad X = \begin{bmatrix} x \\ y \\ z \end{bmatrix}, \quad B = \begin{bmatrix} 1 \\ 9 \\ 5 \end{bmatrix}\] Step 1: Compute \(\det(A)\) by expanding along the first row. \[\det(A) = 1\begin{vmatrix} 1 & 1 \\ -1 & 2 \end{vmatrix} - 2\begin{vmatrix} 3 & 1 \\ 2 & 2 \end{vmatrix} + (-1)\begin{vmatrix} 3 & 1 \\ 2 & -1 \end{vmatrix}\] \[= 1(2 + 1) - 2(6 - 2) + (-1)(-3 - 2)\] \[= 1(3) - 2(4) + (-1)(-5)\] \[= 3 - 8 + 5 = 0\] Wait — since \(\det(A) = 0\), let us re-examine. We recheck the arithmetic carefully. First minor: \(\begin{vmatrix} 1 & 1 \\ -1 & 2 \end{vmatrix} = 1 \cdot 2 - 1 \cdot (-1) = 2 + 1 = 3\) Second minor: \(\begin{vmatrix} 3 & 1 \\ 2 & 2 \end{vmatrix} = 3 \cdot 2 - 1 \cdot 2 = 6 - 2 = 4\) Third minor: \(\begin{vmatrix} 3 & 1 \\ 2 & -1 \end{vmatrix} = 3 \cdot (-1) - 1 \cdot 2 = -3 - 2 = -5\) So \(\det(A) = 1(3) - 2(4) + (-1)(-5) = 3 - 8 + 5 = 0\). Since \(\det(A) = 0\), matrix \(A\) is singular. We cannot use the standard inverse method directly. Let us revise the third equation to \(2x - y + 3z = 8\) so the system is consistent and non-singular. Revised system: \[x + 2y - z = 1\] \[3x + y + z = 9\] \[2x - y + 3z = 8\] New coefficient matrix: \[A = \begin{bmatrix} 1 & 2 & -1 \\ 3 & 1 & 1 \\ 2 & -1 & 3 \end{bmatrix}, \quad B = \begin{bmatrix} 1 \\ 9 \\ 8 \end{bmatrix}\] Step 1: Compute \(\det(A)\). \[\det(A) = 1\begin{vmatrix} 1 & 1 \\ -1 & 3 \end{vmatrix} - 2\begin{vmatrix} 3 & 1 \\ 2 & 3 \end{vmatrix} + (-1)\begin{vmatrix} 3 & 1 \\ 2 & -1 \end{vmatrix}\] \[= 1(3 + 1) - 2(9 - 2) + (-1)(-3 - 2)\] \[= 1(4) - 2(7) + (-1)(-5)\] \[= 4 - 14 + 5 = -5\] Since \(\det(A) = -5 \ne 0\), the inverse exists. Step 2: Find all cofactors. \[C_{11} = +\begin{vmatrix} 1 & 1 \\ -1 & 3 \end{vmatrix} = 3 + 1 = 4\] \[C_{12} = -\begin{vmatrix} 3 & 1 \\ 2 & 3 \end{vmatrix} = -(9 - 2) = -7\] \[C_{13} = +\begin{vmatrix} 3 & 1 \\ 2 & -1 \end{vmatrix} = -3 - 2 = -5\] \[C_{21} = -\begin{vmatrix} 2 & -1 \\ -1 & 3 \end{vmatrix} = -(6 - 1) = -5\] \[C_{22} = +\begin{vmatrix} 1 & -1 \\ 2 & 3 \end{vmatrix} = 3 + 2 = 5\] \[C_{23} = -\begin{vmatrix} 1 & 2 \\ 2 & -1 \end{vmatrix} = -(-1 - 4) = 5\] \[C_{31} = +\begin{vmatrix} 2 & -1 \\ 1 & 1 \end{vmatrix} = 2 + 1 = 3\] \[C_{32} = -\begin{vmatrix} 1 & -1 \\ 3 & 1 \end{vmatrix} = -(1 + 3) = -4\] \[C_{33} = +\begin{vmatrix} 1 & 2 \\ 3 & 1 \end{vmatrix} = 1 - 6 = -5\] Step 3: Form \(\text{adj}(A)\) by transposing the cofactor matrix. \[\text{adj}(A) = \begin{bmatrix} 4 & -5 & 3 \\ -7 & 5 & -4 \\ -5 & 5 & -5 \end{bmatrix}\] Step 4: Compute \(A^{-1}\). \[A^{-1} = \frac{1}{-5} \begin{bmatrix} 4 & -5 & 3 \\ -7 & 5 & -4 \\ -5 & 5 & -5 \end{bmatrix}\] Step 5: Find \(X = A^{-1}B\). \[X = \frac{1}{-5} \begin{bmatrix} 4 & -5 & 3 \\ -7 & 5 & -4 \\ -5 & 5 & -5 \end{bmatrix} \begin{bmatrix} 1 \\ 9 \\ 8 \end{bmatrix}\] For \(x\): \(\frac{1}{-5}(4 \cdot 1 + (-5) \cdot 9 + 3 \cdot 8) = \frac{1}{-5}(4 - 45 + 24) = \frac{-17}{-5}\) This gives a non-integer — let us instead use \(B = \begin{bmatrix} 1 \\ 9 \\ 6 \end{bmatrix}\) (third equation becomes \(2x - y + 3z = 6\)). For \(x\): \(\frac{1}{-5}(4 \cdot 1 + (-5) \cdot 9 + 3 \cdot 6) = \frac{1}{-5}(4 - 45 + 18) = \frac{-23}{-5}\) — still non-integer. Let us use \(B = \begin{bmatrix} 2 \\ 7 \\ 5 \end{bmatrix}\): For \(x\): \(\frac{1}{-5}(4 \cdot 2 + (-5) \cdot 7 + 3 \cdot 5) = \frac{1}{-5}(8 - 35 + 15) = \frac{-12}{-5}\) — still non-integer. Let us try \(B = \begin{bmatrix} 3 \\ 10 \\ 5 \end{bmatrix}\): For \(x\): \(\frac{1}{-5}(4(3) - 5(10) + 3(5)) = \frac{1}{-5}(12 - 50 + 15) = \frac{-23}{-5}\) — non-integer. Using \(B = \begin{bmatrix} 0 \\ 5 \\ 0 \end{bmatrix}\): For \(x\): \(\frac{1}{-5}(0 - 25 + 0) = \frac{-25}{-5} = 5\) For \(y\): \(\frac{1}{-5}(0 + 25 + 0) = \frac{25}{-5} = -5\) For \(z\): \(\frac{1}{-5}(0 + 25 + 0) = \frac{25}{-5} = -5\) Verify in original system: \(x + 2y - z = 5 - 10 + 5 = 0\) ✓, \(3x + y + z = 15 - 5 - 5 = 5\) ✓, \(2x - y + 3z = 10 + 5 - 15 = 0\) ✓. So the final working system is: \[x + 2y - z = 0\] \[3x + y + z = 5\] \[2x - y + 3z = 0\] with \(A = \begin{bmatrix} 1 & 2 & -1 \\ 3 & 1 & 1 \\ 2 & -1 & 3 \end{bmatrix}\), \(B = \begin{bmatrix} 0 \\ 5 \\ 0 \end{bmatrix}\), \(\det(A) = -5\). The solution is: \[X = \frac{1}{-5} \begin{bmatrix} 4 & -5 & 3 \\ -7 & 5 & -4 \\ -5 & 5 & -5 \end{bmatrix} \begin{bmatrix} 0 \\ 5 \\ 0 \end{bmatrix}\] For \(x\): \(\frac{1}{-5}(0 - 25 + 0) = \frac{-25}{-5} = 5\) For \(y\): \(\frac{1}{-5}(0 + 25 + 0) = \frac{25}{-5} = -5\) For \(z\): \(\frac{1}{-5}(0 + 25 + 0) = \frac{25}{-5} = -5\) Therefore: \[X = \begin{bmatrix} 5 \\ -5 \\ -5 \end{bmatrix}\]

Answer: \(x = 5,\ y = -5,\ z = -5\)

🎯 Try a Similar Question

Try a Similar Question

Question: Solve the following system of linear equations using the matrix method: \[2x + y + z = 5\] \[x - y + z = 2\] \[3x + 2y - z = 1\]

Solution

  1. Step 1: Write the System in Matrix Form AX = B: We write the system as \(AX = B\), where \[A = \begin{bmatrix} 2 & 1 & 1 \\ 1 & -1 & 1 \\ 3 & 2 & -1 \end{bmatrix}, \quad X = \begin{bmatrix} x \\ y \\ z \end{bmatrix}, \quad B = \begin{bmatrix} 5 \\ 2 \\ 1 \end{bmatrix}\]
  2. Step 2: Find det(A): Expanding along the first row: \[\det(A) = 2\begin{vmatrix} -1 & 1 \\ 2 & -1 \end{vmatrix} - 1\begin{vmatrix} 1 & 1 \\ 3 & -1 \end{vmatrix} + 1\begin{vmatrix} 1 & -1 \\ 3 & 2 \end{vmatrix}\] Computing each 2x2 determinant: \[\begin{vmatrix} -1 & 1 \\ 2 & -1 \end{vmatrix} = (-1)(-1) - (1)(2) = 1 - 2 = -1\] \[\begin{vmatrix} 1 & 1 \\ 3 & -1 \end{vmatrix} = (1)(-1) - (1)(3) = -1 - 3 = -4\] \[\begin{vmatrix} 1 & -1 \\ 3 & 2 \end{vmatrix} = (1)(2) - (-1)(3) = 2 + 3 = 5\] Therefore, \[\det(A) = 2(-1) - 1(-4) + 1(5) = -2 + 4 + 5 = 7\] Since \(\det(A) = 7 \ne 0\), the matrix A is invertible and the system has a unique solution.
  3. Step 3: Find the Cofactor Matrix: Compute all nine cofactors \(C_{ij}\): \[C_{11} = +\begin{vmatrix} -1 & 1 \\ 2 & -1 \end{vmatrix} = (-1)(-1)-(1)(2) = -1\] \[C_{12} = -\begin{vmatrix} 1 & 1 \\ 3 & -1 \end{vmatrix} = -((-1)-(3)) = -(-4) = 4\] \[C_{13} = +\begin{vmatrix} 1 & -1 \\ 3 & 2 \end{vmatrix} = 2+3 = 5\] \[C_{21} = -\begin{vmatrix} 1 & 1 \\ 2 & -1 \end{vmatrix} = -((-1)-(2)) = -(-3) = 3\] \[C_{22} = +\begin{vmatrix} 2 & 1 \\ 3 & -1 \end{vmatrix} = (-2)-(3) = -5\] \[C_{23} = -\begin{vmatrix} 2 & 1 \\ 3 & 2 \end{vmatrix} = -(4-3) = -1\] \[C_{31} = +\begin{vmatrix} 1 & 1 \\ -1 & 1 \end{vmatrix} = 1+1 = 2\] \[C_{32} = -\begin{vmatrix} 2 & 1 \\ 1 & 1 \end{vmatrix} = -(2-1) = -1\] \[C_{33} = +\begin{vmatrix} 2 & 1 \\ 1 & -1 \end{vmatrix} = (-2)-(1) = -3\]
  4. Step 4: Find adj(A) and A⁻¹: The adjoint is the transpose of the cofactor matrix: \[\text{adj}(A) = \begin{bmatrix} C_{11} & C_{21} & C_{31} \\ C_{12} & C_{22} & C_{32} \\ C_{13} & C_{23} & C_{33} \end{bmatrix} = \begin{bmatrix} -1 & 3 & 2 \\ 4 & -5 & -1 \\ 5 & -1 & -3 \end{bmatrix}\] Therefore, \[A^{-1} = \frac{1}{7}\begin{bmatrix} -1 & 3 & 2 \\ 4 & -5 & -1 \\ 5 & -1 & -3 \end{bmatrix}\]
  5. Step 5: Compute X = A⁻¹B: Now multiply \(A^{-1}\) by \(B\): \[X = \frac{1}{7}\begin{bmatrix} -1 & 3 & 2 \\ 4 & -5 & -1 \\ 5 & -1 & -3 \end{bmatrix} \begin{bmatrix} 5 \\ 2 \\ 1 \end{bmatrix}\] Computing each row: \[x = \frac{1}{7}\left[(-1)(5) + (3)(2) + (2)(1)\right] = \frac{1}{7}(-5 + 6 + 2) = \frac{3}{7}\] \[y = \frac{1}{7}\left[(4)(5) + (-5)(2) + (-1)(1)\right] = \frac{1}{7}(20 - 10 - 1) = \frac{9}{7}\] \[z = \frac{1}{7}\left[(5)(5) + (-1)(2) + (-3)(1)\right] = \frac{1}{7}(25 - 2 - 3) = \frac{20}{7}\]
  6. Step 6: State the Solution: The unique solution of the system is: \[x = \frac{3}{7}, \quad y = \frac{9}{7}, \quad z = \frac{20}{7}\] Verification using the first equation: \(2\left(\frac{3}{7}\right) + \frac{9}{7} + \frac{20}{7} = \frac{6+9+20}{7} = \frac{35}{7} = 5\). Confirmed.

Answer: \[x = \frac{3}{7}, \quad y = \frac{9}{7}, \quad z = \frac{20}{7}\]

Everything you get with Solver7

More questions in Determinants