SOLVER7 Study. Nothing Else.
Exercise 4.5 Q14

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

CBSE Class 12 Maths · Determinants

Solution

👶 Simple Explanation

Simple Explanation

Imagine three friends each owe you different amounts of money, and you have three clues about their debts. A matrix is like a neat table that organises all those clues together. We use a special reverse-table called the inverse to "undo" the clues and find each friend's exact amount. The reverse-table only exists when a special number called the determinant is not zero. Crunching through the numbers reveals each unknown value clearly.

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

📖 Solving a Linear System by Matrix Method

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

  1. 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} \]
  2. 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.
  3. 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 \]
  4. 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} \]
  5. 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} \]
  6. 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} \]
  7. 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.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Identify the coefficient matrix \( A \), variable column \( X \), and constant column \( B \) from the given system. We write: \[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}\] — Reason: Expressing the system as \( AX = B \) lets us apply matrix inverse methods directly.
  2. Step 2: Expand \( \det(A) \) along the first row. Each element of the first row multiplies its corresponding \( 2 \times 2 \) minor, with appropriate signs: \[\det(A) = 1\,(4 \cdot 3 - (-5)(-1)) - (-1)(3 \cdot 3 - (-5)(2)) + 2(3 \cdot(-1) - 4 \cdot 2)\] Evaluating each bracket: \[= 1(12 - 5) + 1(9 + 10) + 2(-3 - 8) = 7 + 19 - 22 = 4\] Since \( \det(A) = 4 \ne 0 \), the inverse of \( A \) exists and the system has a unique solution. — Reason: A non-zero determinant guarantees invertibility.
  3. Step 3: Compute all nine cofactors \( A_{ij} \) of matrix \( A \). Each cofactor is \( (-1)^{i+j} \) times the determinant of the submatrix formed by deleting row \( i \) and column \( j \): \[A_{11} = 7, \quad A_{12} = -19, \quad A_{13} = -11\] \[A_{21} = 1, \quad A_{22} = -1, \quad A_{23} = -1\] \[A_{31} = -3, \quad A_{32} = 11, \quad A_{33} = 7\] — Reason: Cofactors are the building blocks of the adjoint matrix.
  4. Step 4: Form the adjoint of \( A \) by transposing the cofactor matrix (swapping rows and columns): \[\text{adj}(A) = \begin{bmatrix} 7 & 1 & -3 \\ -19 & -1 & 11 \\ -11 & -1 & 7 \end{bmatrix}\] — Reason: The adjoint is defined as the transpose of the cofactor matrix and is required to compute \( A^{-1} \).
  5. Step 5: Compute \( A^{-1} \) by dividing every entry of \( \text{adj}(A) \) by \( \det(A) = 4 \): \[A^{-1} = \frac{1}{4}\begin{bmatrix} 7 & 1 & -3 \\ -19 & -1 & 11 \\ -11 & -1 & 7 \end{bmatrix}\] — Reason: The formula \( A^{-1} = \dfrac{1}{\det(A)}\,\text{adj}(A) \) scales the adjoint to give the true inverse.
  6. Step 6: Multiply \( A^{-1} \) by \( B \) to obtain \( X \): \[X = A^{-1}B = \frac{1}{4}\begin{bmatrix} 7 & 1 & -3 \\ -19 & -1 & 11 \\ -11 & -1 & 7 \end{bmatrix}\begin{bmatrix} 7 \\ -5 \\ 12 \end{bmatrix}\] Computing each row of the product: Row 1: \( \frac{1}{4}(49 - 5 - 36) = \frac{8}{4} = 2 \), Row 2: \( \frac{1}{4}(-133 + 5 + 132) = \frac{4}{4} = 1 \), Row 3: \( \frac{1}{4}(-77 + 5 + 84) = \frac{12}{4} = 3 \). — Reason: Matrix multiplication of \( A^{-1} \) with \( B \) directly yields the values of the unknowns.

Final Answer

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

Common Mistake

One common mistake: Students forget to transpose the cofactor matrix when forming the adjoint — they use the cofactor matrix itself instead of its transpose, which gives wrong values of \( A^{-1} \) and hence wrong final answers.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Matrix Form: \[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}\]
  2. Step 2: Determinant: \[\det(A) = 1(12 - 5) + 1(9 + 10) + 2(-3 - 8) = 7 + 19 - 22 = 4\]
  3. Step 3: Adjoint and Inverse: \[\text{adj}(A) = \begin{bmatrix} 7 & 1 & -3 \\ -19 & -1 & 11 \\ -11 & -1 & 7 \end{bmatrix}, \qquad A^{-1} = \frac{1}{4}\begin{bmatrix} 7 & 1 & -3 \\ -19 & -1 & 11 \\ -11 & -1 & 7 \end{bmatrix}\]
  4. Step 4: Solution: \[X = A^{-1}B = \frac{1}{4}\begin{bmatrix} 7 & 1 & -3 \\ -19 & -1 & 11 \\ -11 & -1 & 7 \end{bmatrix}\begin{bmatrix} 7 \\ -5 \\ 12 \end{bmatrix} = \frac{1}{4}\begin{bmatrix} 8 \\ 4 \\ 12 \end{bmatrix} = \begin{bmatrix} 2 \\ 1 \\ 3 \end{bmatrix}\]

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

➕ 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 + 2y + z = 8\]

Solution: Write the system as AX = B where \[A = \begin{bmatrix} 2 & 1 & -1 \\ 1 & -3 & 2 \\ 3 & 2 & 1 \end{bmatrix}, \quad X = \begin{bmatrix} x \\ y \\ z \end{bmatrix}, \quad B = \begin{bmatrix} 3 \\ 1 \\ 8 \end{bmatrix}\] Step 1: Find |A|. \[|A| = 2[(-3)(1) - (2)(2)] - 1[(1)(1) - (2)(3)] + (-1)[(1)(2) - (-3)(3)]\] \[= 2[-3 - 4] - 1[1 - 6] + (-1)[2 + 9]\] \[= 2(-7) - 1(-5) + (-1)(11)\] \[= -14 + 5 - 11 = -20\] Since \(|A| = -20 \ne 0\), the system has a unique solution. Step 2: Find the cofactors of A. \(C_{11} = (-3)(1) - (2)(2) = -3 - 4 = -7\) \(C_{12} = -[(1)(1) - (2)(3)] = -[1 - 6] = 5\) \(C_{13} = (1)(2) - (-3)(3) = 2 + 9 = 11\) \(C_{21} = -[(1)(1) - (-1)(2)] = -[1 + 2] = -3\) \(C_{22} = (2)(1) - (-1)(3) = 2 + 3 = 5\) \(C_{23} = -[(2)(2) - (1)(3)] = -[4 - 3] = -1\) \(C_{31} = (1)(2) - (-1)(-3) = 2 - 3 = -1\) \(C_{32} = -[(2)(2) - (-1)(1)] = -[4 + 1] = -5\) \(C_{33} = (2)(-3) - (1)(1) = -6 - 1 = -7\) Step 3: Find adj(A) (transpose of cofactor matrix). \[\text{adj}(A) = \begin{bmatrix} -7 & -3 & -1 \\ 5 & 5 & -5 \\ 11 & -1 & -7 \end{bmatrix}\] Step 4: Find \(A^{-1}\). \[A^{-1} = \frac{1}{-20} \begin{bmatrix} -7 & -3 & -1 \\ 5 & 5 & -5 \\ 11 & -1 & -7 \end{bmatrix}\] Step 5: Find X = A⁻¹B. \[X = \frac{1}{-20} \begin{bmatrix} -7 & -3 & -1 \\ 5 & 5 & -5 \\ 11 & -1 & -7 \end{bmatrix} \begin{bmatrix} 3 \\ 1 \\ 8 \end{bmatrix}\] Compute each row of the product: Row 1: \((-7)(3) + (-3)(1) + (-1)(8) = -21 - 3 - 8 = -32\) Row 2: \((5)(3) + (5)(1) + (-5)(8) = 15 + 5 - 40 = -20\) Row 3: \((11)(3) + (-1)(1) + (-7)(8) = 33 - 1 - 56 = -24\) So \[X = \frac{1}{-20} \begin{bmatrix} -32 \\ -20 \\ -24 \end{bmatrix} = \begin{bmatrix} \frac{-32}{-20} \\ \frac{-20}{-20} \\ \frac{-24}{-20} \end{bmatrix} = \begin{bmatrix} \frac{8}{5} \\ 1 \\ \frac{6}{5} \end{bmatrix}\] Therefore \(x = \dfrac{8}{5}\), \(y = 1\), \(z = \dfrac{6}{5}\). Verification using equation 1: \(2 \cdot \dfrac{8}{5} + 1 - \dfrac{6}{5} = \dfrac{16}{5} + 1 - \dfrac{6}{5} = \dfrac{10}{5} + 1 = 2 + 1 = 3\) ✓

Answer: \(x = \dfrac{8}{5},\ y = 1,\ z = \dfrac{6}{5}\)

Example 2

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

Solution: Write the system as AX = B where \[A = \begin{bmatrix} 1 & 2 & 3 \\ 2 & -1 & 1 \\ 3 & 1 & -1 \end{bmatrix}, \quad X = \begin{bmatrix} x \\ y \\ z \end{bmatrix}, \quad B = \begin{bmatrix} 6 \\ 3 \\ 4 \end{bmatrix}\] Step 1: Find |A|. \[|A| = 1[(-1)(-1) - (1)(1)] - 2[(2)(-1) - (1)(3)] + 3[(2)(1) - (-1)(3)]\] \[= 1[1 - 1] - 2[-2 - 3] + 3[2 + 3]\] \[= 1(0) - 2(-5) + 3(5)\] \[= 0 + 10 + 15 = 25\] Since \(|A| = 25 \ne 0\), the system has a unique solution. Step 2: Find the cofactors of A. \(C_{11} = (-1)(-1) - (1)(1) = 1 - 1 = 0\) \(C_{12} = -[(2)(-1) - (1)(3)] = -[-2 - 3] = 5\) \(C_{13} = (2)(1) - (-1)(3) = 2 + 3 = 5\) \(C_{21} = -[(2)(-1) - (3)(1)] = -[-2 - 3] = 5\) \(C_{22} = (1)(-1) - (3)(3) = -1 - 9 = -10\) \(C_{23} = -[(1)(1) - (2)(3)] = -[1 - 6] = 5\) \(C_{31} = (2)(1) - (3)(-1) = 2 + 3 = 5\) \(C_{32} = -[(1)(1) - (3)(2)] = -[1 - 6] = 5\) \(C_{33} = (1)(-1) - (2)(2) = -1 - 4 = -5\) Step 3: Find adj(A) (transpose of cofactor matrix). \[\text{adj}(A) = \begin{bmatrix} 0 & 5 & 5 \\ 5 & -10 & 5 \\ 5 & 5 & -5 \end{bmatrix}\] Step 4: Find \(A^{-1}\). \[A^{-1} = \frac{1}{25} \begin{bmatrix} 0 & 5 & 5 \\ 5 & -10 & 5 \\ 5 & 5 & -5 \end{bmatrix}\] Step 5: Find X = A⁻¹B. \[X = \frac{1}{25} \begin{bmatrix} 0 & 5 & 5 \\ 5 & -10 & 5 \\ 5 & 5 & -5 \end{bmatrix} \begin{bmatrix} 6 \\ 3 \\ 4 \end{bmatrix}\] Compute each row of the product: Row 1: \((0)(6) + (5)(3) + (5)(4) = 0 + 15 + 20 = 35\) Row 2: \((5)(6) + (-10)(3) + (5)(4) = 30 - 30 + 20 = 20\) Row 3: \((5)(6) + (5)(3) + (-5)(4) = 30 + 15 - 20 = 25\) So \[X = \frac{1}{25} \begin{bmatrix} 35 \\ 20 \\ 25 \end{bmatrix} = \begin{bmatrix} \frac{35}{25} \\ \frac{20}{25} \\ \frac{25}{25} \end{bmatrix} = \begin{bmatrix} \frac{7}{5} \\ \frac{4}{5} \\ 1 \end{bmatrix}\] Therefore \(x = \dfrac{7}{5}\), \(y = \dfrac{4}{5}\), \(z = 1\). Verification using equation 1: \(\dfrac{7}{5} + 2 \cdot \dfrac{4}{5} + 3(1) = \dfrac{7}{5} + \dfrac{8}{5} + 3 = \dfrac{15}{5} + 3 = 3 + 3 = 6\) ✓

Answer: \(x = \dfrac{7}{5},\ y = \dfrac{4}{5},\ z = 1\)

🎯 Try a Similar Question

Try a Similar Question

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

Solution

  1. Step 1: Write the system in matrix form AX = B: We identify the coefficient matrix A, variable matrix X, and constant matrix B as follows: \[ A = \begin{bmatrix} 2 & 1 & -1 \\ 1 & -1 & 2 \\ 3 & 2 & -1 \end{bmatrix}, \quad X = \begin{bmatrix} x \\ y \\ z \end{bmatrix}, \quad B = \begin{bmatrix} 3 \\ 6 \\ 2 \end{bmatrix} \]
  2. Step 2: Compute det(A): Expanding along the first row: \[ \det(A) = 2 \begin{vmatrix} -1 & 2 \\ 2 & -1 \end{vmatrix} - 1 \begin{vmatrix} 1 & 2 \\ 3 & -1 \end{vmatrix} + (-1) \begin{vmatrix} 1 & -1 \\ 3 & 2 \end{vmatrix} \] Computing each 2x2 determinant: \[ \begin{vmatrix} -1 & 2 \\ 2 & -1 \end{vmatrix} = (-1)(-1) - (2)(2) = 1 - 4 = -3 \] \[ \begin{vmatrix} 1 & 2 \\ 3 & -1 \end{vmatrix} = (1)(-1) - (2)(3) = -1 - 6 = -7 \] \[ \begin{vmatrix} 1 & -1 \\ 3 & 2 \end{vmatrix} = (1)(2) - (-1)(3) = 2 + 3 = 5 \] Therefore: \[ \det(A) = 2(-3) - 1(-7) + (-1)(5) = -6 + 7 - 5 = -4 \] Since \( \det(A) = -4 \ne 0 \), the matrix A is invertible.
  3. Step 3: Find the cofactor matrix: Compute each cofactor \( C_{ij} = (-1)^{i+j} M_{ij} \) where \( M_{ij} \) is the minor. \[ C_{11} = +\begin{vmatrix} -1 & 2 \\ 2 & -1 \end{vmatrix} = 1 - 4 = -3 \] \[ C_{12} = -\begin{vmatrix} 1 & 2 \\ 3 & -1 \end{vmatrix} = -(-1-6) = 7 \] \[ 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) = -1 \] \[ C_{22} = +\begin{vmatrix} 2 & -1 \\ 3 & -1 \end{vmatrix} = (-2+3) = 1 \] \[ C_{23} = -\begin{vmatrix} 2 & 1 \\ 3 & 2 \end{vmatrix} = -(4-3) = -1 \] \[ C_{31} = +\begin{vmatrix} 1 & -1 \\ -1 & 2 \end{vmatrix} = (2-1) = 1 \] \[ C_{32} = -\begin{vmatrix} 2 & -1 \\ 1 & 2 \end{vmatrix} = -(4+1) = -5 \] \[ 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} -3 & -1 & 1 \\ 7 & 1 & -5 \\ 5 & -1 & -3 \end{bmatrix} \] Therefore: \[ A^{-1} = \frac{1}{\det(A)} \cdot \text{adj}(A) = \frac{1}{-4} \begin{bmatrix} -3 & -1 & 1 \\ 7 & 1 & -5 \\ 5 & -1 & -3 \end{bmatrix} \]
  5. Step 5: Compute X = A⁻¹B: Multiply \( A^{-1} \) by B: \[ X = \frac{1}{-4} \begin{bmatrix} -3 & -1 & 1 \\ 7 & 1 & -5 \\ 5 & -1 & -3 \end{bmatrix} \begin{bmatrix} 3 \\ 6 \\ 2 \end{bmatrix} \] Computing each row of the product: Row 1: \( (-3)(3) + (-1)(6) + (1)(2) = -9 - 6 + 2 = -13 \) Row 2: \( (7)(3) + (1)(6) + (-5)(2) = 21 + 6 - 10 = 17 \) Row 3: \( (5)(3) + (-1)(6) + (-3)(2) = 15 - 6 - 6 = 3 \) So: \[ X = \frac{1}{-4} \begin{bmatrix} -13 \\ 17 \\ 3 \end{bmatrix} = \begin{bmatrix} \frac{13}{4} \\ -\frac{17}{4} \\ -\frac{3}{4} \end{bmatrix} \]
  6. Step 6: State the solution: Reading off the values: \[ x = \frac{13}{4}, \quad y = -\frac{17}{4}, \quad z = -\frac{3}{4} \] Verification with equation 1: \( 2 \cdot \frac{13}{4} + \left(-\frac{17}{4}\right) - \left(-\frac{3}{4}\right) = \frac{26 - 17 + 3}{4} = \frac{12}{4} = 3 \) ✓

Answer: \[ x = \frac{13}{4}, \quad y = -\frac{17}{4}, \quad z = -\frac{3}{4} \]

Everything you get with Solver7

More questions in Determinants