Solving Systems Using Matrix Inverses

Master matrix inverses: determinants, cofactors, adjugates, and solving linear systems through these 5 detailed exercises.

Matrix Inverse Concepts & Formulas
\(AX = B \Rightarrow X = A^{-1}B\)
Solving Linear Systems
Key Definitions:

Matrix Inverse: For a square matrix \(A\), its inverse \(A^{-1}\) satisfies \(AA^{-1} = A^{-1}A = I\)

Determinant: A scalar value that determines if a matrix has an inverse (non-zero)

Cofactor Matrix: Matrix of cofactors used to find the adjugate

Inverse Formula
\(A^{-1} = \frac{1}{\det(A)} \cdot \text{adj}(A)\)
General inverse calculation
2×2 Inverse
\(\begin{pmatrix} a & b \\ c & d \end{pmatrix}^{-1} = \frac{1}{ad-bc} \begin{pmatrix} d & -b \\ -c & a \end{pmatrix}\)
Special case for 2×2 matrices
Determinant 2×2
\(\det\begin{pmatrix} a & b \\ c & d \end{pmatrix} = ad - bc\)
2×2 determinant calculation
Complete Methodology:
  1. Write system in matrix form: \(AX = B\)
  2. Calculate determinant: Check if \(\det(A) \neq 0\)
  3. Find cofactor matrix: Calculate each cofactor
  4. Find adjugate: Transpose the cofactor matrix
  5. Calculate inverse: \(A^{-1} = \frac{1}{\det(A)} \cdot \text{adj}(A)\)
  6. Solve: \(X = A^{-1}B\)
Tip 1: Always verify that \(\det(A) \neq 0\) before finding the inverse.
Tip 2: For 2×2 matrices, memorize the quick inverse formula.
Tip 3: Verify your solution by substituting back into original equations.
Solution: Exercises 1 to 3
1 2×2 System
Exercise 1
Solve the system:
\(2x + 3y = 7\)
\(x + 4y = 6\)
Matrix Form:

\(A = \begin{pmatrix} 2 & 3 \\ 1 & 4 \end{pmatrix}\), \(X = \begin{pmatrix} x \\ y \end{pmatrix}\), \(B = \begin{pmatrix} 7 \\ 6 \end{pmatrix}\)

Original System
\(AX = B\)
Inverse Needed
\(X = A^{-1}B\)
Step 1: Calculate determinant

\(\det(A) = (2)(4) - (3)(1) = 8 - 3 = 5\)

Step 2: Find the inverse

Using 2×2 formula: \(A^{-1} = \frac{1}{5} \begin{pmatrix} 4 & -3 \\ -1 & 2 \end{pmatrix}\)

Step 3: Multiply to solve

\(X = A^{-1}B = \frac{1}{5} \begin{pmatrix} 4 & -3 \\ -1 & 2 \end{pmatrix} \begin{pmatrix} 7 \\ 6 \end{pmatrix}\)

\(X = \frac{1}{5} \begin{pmatrix} 28 - 18 \\ -7 + 12 \end{pmatrix} = \frac{1}{5} \begin{pmatrix} 10 \\ 5 \end{pmatrix} = \begin{pmatrix} 2 \\ 1 \end{pmatrix}\)

\(x = 2, y = 1\)
Final Answer:

\(x = 2, y = 1\)

Applied Rules:

• Determinant: Check invertibility before proceeding

• Matrix Multiplication: Row × Column rule

• Verification: Substitute back to original equations

2 Another 2×2 System
Exercise 2
Solve the system:
\(5x - 2y = 11\)
\(3x + y = 10\)
Matrix Form:

\(A = \begin{pmatrix} 5 & -2 \\ 3 & 1 \end{pmatrix}\), \(X = \begin{pmatrix} x \\ y \end{pmatrix}\), \(B = \begin{pmatrix} 11 \\ 10 \end{pmatrix}\)

Step 1: Calculate determinant

\(\det(A) = (5)(1) - (-2)(3) = 5 + 6 = 11\)

Step 2: Find the inverse

\(A^{-1} = \frac{1}{11} \begin{pmatrix} 1 & 2 \\ -3 & 5 \end{pmatrix}\)

Step 3: Solve using inverse

\(X = A^{-1}B = \frac{1}{11} \begin{pmatrix} 1 & 2 \\ -3 & 5 \end{pmatrix} \begin{pmatrix} 11 \\ 10 \end{pmatrix}\)

\(X = \frac{1}{11} \begin{pmatrix} 11 + 20 \\ -33 + 50 \end{pmatrix} = \frac{1}{11} \begin{pmatrix} 31 \\ 17 \end{pmatrix}\)

\(x = \frac{31}{11}, y = \frac{17}{11}\)
Final Answer:

\(x = \frac{31}{11}, y = \frac{17}{11}\)

3 3×3 System (Simplified)
Exercise 3
Solve the system:
\(x + y + z = 6\)
\(2x - y + z = 3\)
\(x + 2y - z = 1\)
Matrix Form:

\(A = \begin{pmatrix} 1 & 1 & 1 \\ 2 & -1 & 1 \\ 1 & 2 & -1 \end{pmatrix}\), \(X = \begin{pmatrix} x \\ y \\ z \end{pmatrix}\), \(B = \begin{pmatrix} 6 \\ 3 \\ 1 \end{pmatrix}\)

Step 1: Calculate determinant (using cofactor expansion)

\(\det(A) = 1\begin{vmatrix} -1 & 1 \\ 2 & -1 \end{vmatrix} - 1\begin{vmatrix} 2 & 1 \\ 1 & -1 \end{vmatrix} + 1\begin{vmatrix} 2 & -1 \\ 1 & 2 \end{vmatrix}\)

\(= 1((-1)(-1) - (1)(2)) - 1((2)(-1) - (1)(1)) + 1((2)(2) - (-1)(1))\)

\(= 1(1 - 2) - 1(-2 - 1) + 1(4 + 1) = -1 + 3 + 5 = 7\)

Step 2: Find cofactor matrix

After calculating all cofactors: \(\text{cof}(A) = \begin{pmatrix} -1 & 3 & 5 \\ 3 & -2 & 1 \\ 2 & 1 & -3 \end{pmatrix}\)

Step 3: Find adjugate (transpose of cofactor matrix)

\(\text{adj}(A) = \begin{pmatrix} -1 & 3 & 2 \\ 3 & -2 & 1 \\ 5 & 1 & -3 \end{pmatrix}\)

Step 4: Calculate inverse

\(A^{-1} = \frac{1}{7} \begin{pmatrix} -1 & 3 & 2 \\ 3 & -2 & 1 \\ 5 & 1 & -3 \end{pmatrix}\)

Step 5: Solve the system

\(X = A^{-1}B = \frac{1}{7} \begin{pmatrix} -1 & 3 & 2 \\ 3 & -2 & 1 \\ 5 & 1 & -3 \end{pmatrix} \begin{pmatrix} 6 \\ 3 \\ 1 \end{pmatrix}\)

\(X = \frac{1}{7} \begin{pmatrix} -6 + 9 + 2 \\ 18 - 6 + 1 \\ 30 + 3 - 3 \end{pmatrix} = \frac{1}{7} \begin{pmatrix} 5 \\ 13 \\ 30 \end{pmatrix}\)

\(x = \frac{5}{7}, y = \frac{13}{7}, z = \frac{30}{7}\)
Final Answer:

\(x = \frac{5}{7}, y = \frac{13}{7}, z = \frac{30}{7}\)

Solution: Exercises 4 to 5
4 Word Problem
Exercise 4
A store sells apples, bananas, and oranges. Three customers bought different quantities:
Customer 1: 2 apples, 1 banana, 1 orange for $8
Customer 2: 1 apple, 3 bananas, 2 oranges for $13
Customer 3: 3 apples, 1 banana, 1 orange for $10
Find the price of each fruit.
Let variables represent prices:

Let \(x\) = price of apple, \(y\) = price of banana, \(z\) = price of orange

Step 1: Set up the system

\(2x + y + z = 8\)
\(x + 3y + 2z = 13\)
\(3x + y + z = 10\)

Step 2: Write in matrix form

\(A = \begin{pmatrix} 2 & 1 & 1 \\ 1 & 3 & 2 \\ 3 & 1 & 1 \end{pmatrix}\), \(X = \begin{pmatrix} x \\ y \\ z \end{pmatrix}\), \(B = \begin{pmatrix} 8 \\ 13 \\ 10 \end{pmatrix}\)

Step 3: Calculate determinant

\(\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 - 2) - 1(1 - 6) + 1(1 - 9) = 2(1) - 1(-5) + 1(-8) = 2 + 5 - 8 = -1\)

Step 4: Find cofactor matrix

After calculations: \(\text{cof}(A) = \begin{pmatrix} 1 & 5 & -8 \\ 0 & -1 & 1 \\ -1 & -3 & 5 \end{pmatrix}\)

Step 5: Find adjugate and inverse

\(\text{adj}(A) = \begin{pmatrix} 1 & 0 & -1 \\ 5 & -1 & -3 \\ -8 & 1 & 5 \end{pmatrix}\)

\(A^{-1} = \frac{1}{-1} \begin{pmatrix} 1 & 0 & -1 \\ 5 & -1 & -3 \\ -8 & 1 & 5 \end{pmatrix} = \begin{pmatrix} -1 & 0 & 1 \\ -5 & 1 & 3 \\ 8 & -1 & -5 \end{pmatrix}\)

Step 6: Solve for prices

\(X = A^{-1}B = \begin{pmatrix} -1 & 0 & 1 \\ -5 & 1 & 3 \\ 8 & -1 & -5 \end{pmatrix} \begin{pmatrix} 8 \\ 13 \\ 10 \end{pmatrix}\)

\(X = \begin{pmatrix} -8 + 0 + 10 \\ -40 + 13 + 30 \\ 64 - 13 - 50 \end{pmatrix} = \begin{pmatrix} 2 \\ 3 \\ 1 \end{pmatrix}\)

Apple: $2, Banana: $3, Orange: $1
Final Answer:

Apple costs $2, Banana costs $3, Orange costs $1

5 Parameter System
Exercise 5
For what values of parameter \(k\) does the system have a unique solution?
\(x + ky = 1\)
\(kx + y = k\)
Matrix Form:

\(A = \begin{pmatrix} 1 & k \\ k & 1 \end{pmatrix}\), \(X = \begin{pmatrix} x \\ y \end{pmatrix}\), \(B = \begin{pmatrix} 1 \\ k \end{pmatrix}\)

Step 1: Calculate determinant

\(\det(A) = (1)(1) - (k)(k) = 1 - k^2\)

Step 2: Determine when system has unique solution

System has unique solution when \(\det(A) \neq 0\)

\(1 - k^2 \neq 0 \Rightarrow k^2 \neq 1 \Rightarrow k \neq \pm 1\)

Step 3: Find solution when \(k \neq \pm 1\)

\(A^{-1} = \frac{1}{1-k^2} \begin{pmatrix} 1 & -k \\ -k & 1 \end{pmatrix}\)

\(X = A^{-1}B = \frac{1}{1-k^2} \begin{pmatrix} 1 & -k \\ -k & 1 \end{pmatrix} \begin{pmatrix} 1 \\ k \end{pmatrix}\)

\(X = \frac{1}{1-k^2} \begin{pmatrix} 1 - k^2 \\ -k + k \end{pmatrix} = \frac{1}{1-k^2} \begin{pmatrix} 1 - k^2 \\ 0 \end{pmatrix} = \begin{pmatrix} 1 \\ 0 \end{pmatrix}\)

Step 4: Analyze special cases

When \(k = 1\): System becomes \(x + y = 1\) and \(x + y = 1\) (infinite solutions)

When \(k = -1\): System becomes \(x - y = 1\) and \(-x + y = -1\) (same equation, infinite solutions)

Unique solution exists when \(k \neq \pm 1\)
Final Answer:

The system has a unique solution for all values of \(k\) except \(k = 1\) and \(k = -1\).

Key Insight:

• Determinant Test: \(\det(A) \neq 0\) ensures unique solution

• Parameter Analysis: Critical values occur when determinant equals zero

• Special Cases: When determinant is zero, system may have no solution or infinite solutions

Matrix Inverse Workflow
Step-by-Step Process
1
Write System as AX = B
2
Calculate det(A)
3
Find Cofactor Matrix
4
Compute Adjugate
5
Calculate A⁻¹
6
Solve X = A⁻¹B
Important Notes

• Only square matrices can have inverses

• Matrix must have non-zero determinant

• Verify solution by substitution

• For large systems, consider other methods

Quick Formulas
2×2: \(\begin{pmatrix} a & b \\ c & d \end{pmatrix}^{-1} = \frac{1}{ad-bc}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix}\)
General: \(A^{-1} = \frac{1}{\det(A)}\text{adj}(A)\)

Questions & Answers

Question: When is it better to use matrix inverses vs other methods like elimination or substitution?

Answer: Matrix inverses are most efficient for:

  • Small systems (2×2 or 3×3) where you need to solve multiple systems with the same coefficient matrix
  • When you specifically need the inverse matrix for other purposes
  • Computer applications where matrix operations are optimized

However, Gaussian elimination is often more efficient for single systems because:

  • You don't need to calculate the full inverse
  • It works even when the matrix is singular
  • It's more numerically stable

Question: How do I verify that I calculated the matrix inverse correctly?

Answer: The most reliable verification is to multiply the original matrix by its inverse:

  • Compute \(AA^{-1}\) and \(A^{-1}A\)
  • Both products should equal the identity matrix \(I\)
  • For a 2×2: \(I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}\)
  • For a 3×3: \(I = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix}\)

If the product isn't the identity matrix, there was an error in calculating the inverse.

Question: What happens when the determinant is zero? Why can't we use matrix inverses then?

Answer: When \(\det(A) = 0\), the matrix is called "singular" and has no inverse. This happens because:

  • The rows/columns of the matrix are linearly dependent
  • The system of equations either has no solution or infinitely many solutions
  • In the formula \(A^{-1} = \frac{1}{\det(A)}\text{adj}(A)\), division by zero is undefined

When the determinant is zero, you need to use other methods like Gaussian elimination to determine if the system has no solution (inconsistent) or infinitely many solutions (dependent).