girgit.org

Matrices

Undoing a matrix: invertible matrices

The big ideaA square matrix A is invertible if some matrix B undoes it from both sides, AB = BA = I; that B is unique, is written \( A^{-1} \), and the inverse of a product reverses the order: \( (AB)^{-1} = B^{-1}A^{-1} \).

In simple words

For numbers, multiplying by 4 is undone by multiplying by one quarter, and together they leave you where you started. Some grids have an "undo" grid in the same way: multiply by both, in either order, and nothing has changed. A grid with an undo is a good grid to have, because you can always get back. Some grids have no undo at all, the way 0 has no number that undoes it.

The inverse of a matrix

Suppose A is an m × m matrix and you can find another m × m matrix B such that

\[ AB = BA = I, \]

then B is called the inverse of A, written \( A^{-1} \) (read "A inverse"), and A is said to be invertible. Here I is the identity matrix of order m, which acts like the number 1.

Worked example: checking an inverse

\( A = \begin{bmatrix} 3 & 5 \\ 1 & 2 \end{bmatrix} \), \( B = \begin{bmatrix} 2 & -5 \\ -1 & 3 \end{bmatrix} \).

  1. \( AB = \begin{bmatrix} 6 - 5 & -15 + 15 \\ 2 - 2 & -5 + 6 \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = I \).
  2. \( BA = \begin{bmatrix} 6 - 5 & 10 - 10 \\ -3 + 3 & -5 + 6 \end{bmatrix} = I \).

Both products are I, so \( B = A^{-1} \), and equally \( A = B^{-1} \).

Two points follow straight from the definition:

  1. Only square matrices can have inverses. If A is m × n with m ≠ n, then AB and BA cannot both be defined and of the same order, so AB = BA = I is impossible.
  2. Inverses come in pairs. The definition reads the same with A and B swapped, so when B undoes A, A also undoes B.

There is only one inverse

Theorem 3 (uniqueness). A square matrix has at most one inverse.

Suppose B and C were both inverses of A, so AB = BA = I and AC = CA = I. Then, using the associative law,

\[ B = BI = B(AC) = (BA)C = IC = C. \]

So B and C are the same matrix. That is why we may speak of the inverse and give it one name, \( A^{-1} \).

The inverse of a product

Theorem 4. If A and B are invertible matrices of the same order, then AB is invertible and

\[ (AB)^{-1} = B^{-1}A^{-1}. \]

The quickest check is to multiply: \( (AB)(B^{-1}A^{-1}) = A(BB^{-1})A^{-1} = AIA^{-1} = AA^{-1} = I \), and in the same way \( (B^{-1}A^{-1})(AB) = I \). (NCERT instead starts from \( (AB)(AB)^{-1} = I \), pre-multiplies by \( A^{-1} \) and then by \( B^{-1} \).) The order reverses for the same reason as in (AB)′ = B′A′: to undo "A after B" you must undo A first.

With \( A = \begin{bmatrix} 3 & 5 \\ 1 & 2 \end{bmatrix} \) and \( B = \begin{bmatrix} 2 & 1 \\ 5 & 3 \end{bmatrix} \), the product rule gives \( (AB)^{-1} = \begin{bmatrix} 7 & -18 \\ -12 & 31 \end{bmatrix} \), while \( A^{-1}B^{-1} = \begin{bmatrix} 31 & -12 \\ -18 & 7 \end{bmatrix} \), which is not the same.

Guess first: is every non-zero square matrix invertible?

Take \( A = \begin{bmatrix} 1 & 2 \\ 2 & 4 \end{bmatrix} \). It is not O. Guess: does it have an inverse?

See what happens
No. Row 2 of A is twice row 1. For any B, row 2 of AB is row 2 of A times B, which is twice row 1 of AB. But in I, row 2 is [0 1] and row 1 is [1 0], and [0 1] is not twice [1 0]. So AB = I is impossible. Another warning sign: whenever A ≠ O but AB = O for some B ≠ O, A cannot be invertible, because multiplying AB = O on the left by \( A^{-1} \) would force B = O.

Which matrices are invertible is settled in the next chapter, Determinants: a square matrix is invertible exactly when its determinant is not 0.

Try it: a 2 × 2 matrix moves the whole plane. Play A and then its inverse, and find the settings where there is no way back.

Finding an inverse

Worked example: by solving equations

Find the inverse of \( A = \begin{bmatrix} 2 & 1 \\ 5 & 3 \end{bmatrix} \). Let \( B = \begin{bmatrix} a & b \\ c & d \end{bmatrix} \) with AB = I.

  1. \( AB = \begin{bmatrix} 2a + c & 2b + d \\ 5a + 3c & 5b + 3d \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} \).
  2. First column: 2a + c = 1 and 5a + 3c = 0. So c = 1 − 2a, then 5a + 3 − 6a = 0, giving a = 3, c = −5.
  3. Second column: 2b + d = 0 and 5b + 3d = 1. So d = −2b, then 5b − 6b = 1, giving b = −1, d = 2.
  4. \( B = \begin{bmatrix} 3 & -1 \\ -5 & 2 \end{bmatrix} \). Check BA = I as well: it is.

From a matrix equation. Earlier we saw \( A = \begin{bmatrix} 2 & 1 \\ 1 & 3 \end{bmatrix} \) satisfies \( A^2 - 5A + 5I = O \). Rearranged: \( A(5I - A) = 5I \), so \( A \cdot \tfrac{1}{5}(5I - A) = I \), and the same holds with the factors swapped. Hence \( A^{-1} = \frac{1}{5}(5I - A) = \frac{1}{5}\begin{bmatrix} 3 & -1 \\ -1 & 2 \end{bmatrix} \). JEE uses this trick a lot.

Not in the current textbook, but JEE asks it: for a 2 × 2 matrix, \( \begin{bmatrix} a & b \\ c & d \end{bmatrix}^{-1} = \frac{1}{ad - bc}\begin{bmatrix} d & -b \\ -c & a \end{bmatrix} \) when \( ad - bc \neq 0 \): swap the diagonal, negate the other two, divide by ad − bc. The general method (the adjoint) is in Chapter 4. Also \( (A^{-1})^{-1} = A \), \( (A')^{-1} = (A^{-1})' \) and \( (kA)^{-1} = \frac{1}{k}A^{-1} \) for k ≠ 0.

Don't mix these up

  • \( (AB)^{-1} = B^{-1}A^{-1} \), not \( A^{-1}B^{-1} \).
  • \( A^{-1} \) is not "1 divided by each entry". There is no matrix division.
  • Non-zero does not mean invertible.

Words to know

Inverse \( A^{-1} \)
The matrix with \( AA^{-1} = A^{-1}A = I \).
Invertible matrix
A square matrix that has an inverse.
Uniqueness of inverse
A matrix cannot have two different inverses.
Pre-multiply
Multiply on the left, as in \( A^{-1}(AB) \).

A and B are inverses of each other exactly when:

  1. AB = BA
  2. AB = BA = O
  3. AB = BA = I

If \( A^{-1} = \begin{bmatrix} 1 & 2 \\ 0 & 1 \end{bmatrix} \) and \( B^{-1} = \begin{bmatrix} 1 & 0 \\ 3 & 1 \end{bmatrix} \), which is \( (AB)^{-1} \)?

  1. \( \begin{bmatrix} 1 & 2 \\ 3 & 7 \end{bmatrix} \)
  2. \( \begin{bmatrix} 7 & 2 \\ 3 & 1 \end{bmatrix} \)
  3. \( \begin{bmatrix} 2 & 2 \\ 3 & 2 \end{bmatrix} \)

Can a 2 × 3 matrix have an inverse?

  1. Yes, a 3 × 2 matrix
  2. No, only square matrices can
  3. Only if its entries are non-zero