Skip to content

The inverse matrix

Define A⁻¹ by A A⁻¹ = I, find it for a 2 × 2 matrix by the formula and by Gauss-Jordan elimination on [A | I], and use (AB)⁻¹ = B⁻¹A⁻¹.

It opens on

A matrix moves the unit square to a parallelogram; is there a matrix that moves every point back, and how would you find it?

Why it matters

An inverse undoes a transformation, which is how a coordinate change, an encoding or a camera transform is reversed, and knowing when it exists tells you whether information was lost.

Good to know first

  • Rank: pivots, full rank, columns on one line mean rank 1
  • LU factorization: row operations are matrix multiplications
  • Multiplication as composition: AB means apply B, then A

Step by step

  1. What undoing means

    State A A⁻¹ = I, check a candidate inverse, and see A⁻¹ carry the image of the unit square back.

    Test the candidate A⁻¹ = [[1, −1], [−1, 2]]: row 1 of A times the columns gives 2 − 1 = 1 and −2 + 2 = 0, and row 2 gives 1 − 1 = 0 and −1 + 2 = 1, so A A⁻¹ = I.

    A common mix-up

    A⁻¹ is the matrix of reciprocals of the entries.

    In fact: A⁻¹ is defined by A A⁻¹ = I; here A⁻¹ has −1s that are not reciprocals.

  2. The 2 × 2 formula and when it fails

    Use the formula with the determinant ad − bc, link the determinant to area scaling, and see why a zero determinant means no inverse.

    For A = [[2, 1], [1, 1]], ad − bc = 2 − 1 = 1, so A⁻¹ = [[1, −1], [−1, 2]], the matrix of the last segment.

    A common mix-up

    Every square matrix has an inverse.

    In fact: Only those with a nonzero determinant (full rank); a singular matrix loses information.

  3. Gauss-Jordan and products

    Compute an inverse by reducing [A | I] to [I | A⁻¹] and use (AB)⁻¹ = B⁻¹A⁻¹.

    [A | I] has rows (2, 1 | 1, 0) and (1, 1 | 0, 1); swap them to put a 1 in the corner: (1, 1 | 0, 1) and (2, 1 | 1, 0).

    A common mix-up

    (AB)⁻¹ = A⁻¹B⁻¹.

    In fact: The order reverses, as with socks and shoes: (AB)⁻¹ = B⁻¹A⁻¹.

Try it

Check that [[3, 1], [5, 2]] and [[2, −1], [−5, 3]] are inverses.Answer

3 · 2 + 1 · (−5) = 1, 3 · (−1) + 1 · 3 = 0, 5 · 2 + 2 · (−5) = 0, 5 · (−1) + 2 · 3 = 1, so the product is I

Hint: Multiply row by column

Find the inverse of [[3, 1], [5, 2]] by the formula.Answer

[[2, −1], [−5, 3]]

Hint: Ad − bc = 6 − 5 = 1

Use Gauss-Jordan to invert [[1, 2], [3, 7]].Answer

[[7, −2], [−3, 1]]

Hint: Row 2 − 3 · row 1, then row 1 − 2 · row 2

What is A⁻¹ applied to e₁ = (1, 0)?Answer

(1, −1), the first column of A⁻¹.

By what factor does B scale area, and by what factor does B⁻¹ scale it?Answer

B doubles areas; B⁻¹ halves them, since the determinants are 2 and 1/2.

The inverse matrix

30 minutes every month. No card.