Linear Algebra

Matrix Inverses

1. The Inverse of a Matrix (A1A^{-1})

In regular math, the inverse of 55 is 15\frac{1}{5}, because 5×15=15 \times \frac{1}{5} = 1. Matrices have a similar concept!

Definition

Let AA be a square matrix. If we can find another matrix BB of the same size such that:

AB=BA=IAB = BA = \mathbb{I}

Then AA is said to be invertible (or non-singular). The matrix BB is called the inverse of AA, and we write it as A1A^{-1}.

Theorem of Uniqueness

If a square matrix AA is invertible, it has exactly one unique inverse.

AA1=A1A=IA A^{-1} = A^{-1} A = \mathbb{I}

2. Properties of Matrix Inverses

If AA and BB are invertible matrices of the same size, and cc is a non-zero scalar, then:

Double Inverse

The inverse of an inverse is the original matrix.

(A1)1=A(A^{-1})^{-1} = A

Scalar Inverse

(cA)1=1cA1(cA)^{-1} = \frac{1}{c} A^{-1}

Watch out! Earlier we learned that a transpose does not flip a scalar: (cA)T=cAT(cA)^T = cA^T. But an inverse does flip the scalar!

Product Inverse (The "Socks and Shoes" Rule)

(AB)1=B1A1(AB)^{-1} = B^{-1} A^{-1}

Notice the order flips in reverse! Just like putting on socks then shoes (AB)(AB), to reverse the process, you must take off your shoes first, then your socks (B1A1)(B^{-1} A^{-1}).

3. Finding the Inverse of a 2x2 Matrix

There is a quick formula to find the inverse of a 2×22 \times 2 matrix without doing Gauss-Jordan elimination!

Let A=[abcd]A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}.

First, calculate the value: adbcad - bc. (This is called the determinant).

The Rule

A 2×22 \times 2 matrix is invertible if and only if adbc0ad - bc \neq 0. If it equals zero, stop—the matrix has no inverse!

The Formula

If adbc0ad - bc \neq 0, you can find the inverse using this formula:

A1=1adbc[dbca]A^{-1} = \frac{1}{ad - bc} \begin{bmatrix} d & -b \\ -c & a \end{bmatrix}

(Swap the items on the main diagonal, and multiply the other two items by -1).

4. Solving Matrix Algebra Equations

When doing algebra with matrices, you must remember two golden rules:

  1. You cannot divide by a matrix. Instead, you multiply by its inverse.
  2. Order matters. If you multiply the left side of an equation by A1A^{-1} on the left, you must multiply the right side of the equation by A1A^{-1} on the left.

Exercise 1: Solve for XX in the equation (XI2)T=A(X - \mathbb{I}_2)^T = A

Step 1: Get rid of the transpose by transposing both sides (since (MT)T=M(M^T)^T = M).

((XI2)T)T=AT((X - \mathbb{I}_2)^T)^T = A^T
XI2=ATX - \mathbb{I}_2 = A^T

Step 2: Add the identity matrix to both sides.

X=AT+I2X = A^T + \mathbb{I}_2

5. Elementary Matrices and the Invertible Matrix Theorem

Elementary Matrix Definition

An elementary matrix (EE) is a matrix obtained by performing a SINGLE elementary row operation on the identity matrix.

Elementary Matrix Theorem

Let EE be an elementary matrix obtained by performing a specific row operation on Im\mathbb{I}_m. If we take any matrix AA and multiply it on the left (EAEA), the resulting matrix is the exact same as if we had performed that row operation directly on AA.

Theorem: Elementary matrices are always invertible, and their inverses are also elementary matrices!

Row Equivalence

Two matrices AA and BB are said to be row equivalent if you can transform one into the other by performing a sequence of elementary row operations.

The Invertible Matrix Theorem

Let AA be a square matrix. The following statements are mathematically equivalent (if one is true, they are all true!):

  1. AA is invertible.
  2. The equation AX=0AX = \mathbf{0} has only the trivial solution (all zeros).
  3. The reduced row echelon form (RREF) of AA is the identity matrix.
  4. AA can be expressed as a product of elementary matrices.

6. Algorithm for Finding A1A^{-1} (Inversion Algorithm)

For matrices larger than 2×22 \times 2, we don't have a simple formula. Instead, we use Gauss-Jordan elimination on a super-sized augmented matrix.

The Algorithm

  1. Set up an augmented matrix with your matrix AA on the left, and the Identity matrix on the right:
[AI]\left[A \mid \mathbb{I}\right]
  1. Perform elementary row operations to reduce the left side (AA) into the Identity matrix.

  2. Whatever operations you perform on the left, you must simultaneously perform on the right side.

  3. When the left side becomes I\mathbb{I}, the right side will have transformed into your inverse matrix, A1A^{-1}:

[IA1]\left[\mathbb{I} \mid A^{-1}\right]
Back to Linear Algebra