Facebook Pixel
Mathos AI logo

Matrix Inverses and Linear Systems

Matrix Inverses and Linear Systems

In matrix algebra, the inverse of a matrix allows us to perform an operation similar to division. The inverse of a matrix AA, denoted as A1A^{-1}, is a matrix such that when multiplied by AA, it yields the Identity matrix II: AA1=A1A=IAA^{-1} = A^{-1}A = I

Finding the Inverse of a 2×22 \times 2 Matrix

For a 2×22 \times 2 matrix A=[abcd]A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}, the inverse exists if and only if its determinant is not zero.

The determinant is calculated as: det(A)=adbc\det(A) = ad - bc

If det(A)0\det(A) \neq 0, the inverse is given by the formula: A1=1adbc[dbca]A^{-1} = \frac{1}{ad - bc} \begin{bmatrix} d & -b \\ -c & a \end{bmatrix} Notice that we swap the positions of aa and dd, change the signs of bb and cc, and multiply everything by 11 over the determinant.

Example 1: Finding an Inverse

Find the inverse of A=[3152]A = \begin{bmatrix} 3 & 1 \\ 5 & 2 \end{bmatrix}.

  1. Find the determinant: det(A)=(3)(2)(1)(5)=65=1\det(A) = (3)(2) - (1)(5) = 6 - 5 = 1.
  2. Apply the inverse formula: A1=11[2153]=[2153]A^{-1} = \frac{1}{1} \begin{bmatrix} 2 & -1 \\ -5 & 3 \end{bmatrix} = \begin{bmatrix} 2 & -1 \\ -5 & 3 \end{bmatrix}

Solving Linear Systems Using Matrices

We can write a system of linear equations as a single matrix equation AX=BAX = B, where:

  • AA is the coefficient matrix.
  • XX is the variable matrix.
  • BB is the constant matrix.

To solve for XX, we multiply both sides by A1A^{-1} (on the left): X=A1BX = A^{-1}B

Example 2: Solving a System

Solve the system 2x+3y=72x + 3y = 7 and xy=1x - y = 1 using matrices.

  1. Set up the matrix equation AX=BAX = B: [2311][xy]=[71]\begin{bmatrix} 2 & 3 \\ 1 & -1 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 7 \\ 1 \end{bmatrix}

  2. Find the inverse of AA: The determinant is (2)(1)(3)(1)=23=5(2)(-1) - (3)(1) = -2 - 3 = -5. A1=15[1312]A^{-1} = \frac{1}{-5} \begin{bmatrix} -1 & -3 \\ -1 & 2 \end{bmatrix}

  3. Multiply A1BA^{-1}B to find XX: X=15[1312][71]X = \frac{1}{-5} \begin{bmatrix} -1 & -3 \\ -1 & 2 \end{bmatrix} \begin{bmatrix} 7 \\ 1 \end{bmatrix} X=15[(1)(7)+(3)(1)(1)(7)+(2)(1)]=15[105]=[21]X = -\frac{1}{5} \begin{bmatrix} (-1)(7) + (-3)(1) \\ (-1)(7) + (2)(1) \end{bmatrix} = -\frac{1}{5} \begin{bmatrix} -10 \\ -5 \end{bmatrix} = \begin{bmatrix} 2 \\ 1 \end{bmatrix}

The solution is x=2x = 2 and y=1y = 1.