Skip to content

When a matrix is invertible

Decide whether a square matrix is invertible from its determinant, its rank, its null space or its columns, and see why these tests all say the same thing.

It opens on

Two matrices differ in only a few entries. One sends the unit square to a fat parallelogram, the other flattens it onto a line. How could the numbers in the matrix have told you in advance?

Why it matters

Every solver, regression and change of coordinates in data work needs A⁻¹ to exist, and one quick test tells you before you compute anything whether a system has exactly one answer.

Good to know first

  • The inverse matrix: A⁻¹A = I and the 2 × 2 formula with the divisor ad − bc
  • rank: the number of pivots, equal to the number of independent columns

Step by step

  1. The determinant scales area

    Read det A as the factor that A multiplies areas by, with its sign recording a flip, and see that det A ≠ 0 keeps the plane from being squashed.

    For A = [[2, 1], [1, 3]] the corner (1, 0) goes to the first column (2, 1) and (0, 1) goes to the second column (1, 3).

    A common mix-up

    A negative determinant means the matrix is not invertible.

    In fact: Only det = 0 is a problem; the sign only records a flip.

  2. When the square collapses

    Show that det B = 0 flattens the plane onto a line, so Bx = b has no solution for some b and many for others, and the null space is not just {0}.

    For B = [[2, 1], [4, 2]], det B = 2·2 − 1·4 = 0, and the columns are (2, 4) and (1, 2) = half of the first, both on the line y = 2x.

    A common mix-up

    Det A = 0 means Ax = b has no solution.

    In fact: It has none for some b and infinitely many for the others.

  3. One theorem, many tests

    State the invertible matrix theorem for an n × n matrix and use it on a 3 × 3 example whose columns lie in a plane.

    For an n × n matrix these statements are equivalent: A is invertible; det A ≠ 0; rank A = n; the columns are independent; N(A) = {0}; Ax = b has exactly one solution for every b.

    A common mix-up

    A square matrix with no zero entries is invertible.

    In fact: C has no zero in its third column and still fails; only the tests above decide.

Try it

The unit square is sent by [[3, 1], [2, 4]]. What is the area of its image?Answer

10

Hint: |3·4 − 1·2|

The matrix [[1, 3], [2, 6]] has det 0. Name an output it can never reach and a nonzero vector it sends to 0.Answer

For example (1, 0) is unreachable; (3, −1) is sent to 0

Hint: The outputs are multiples of (1, 2)

A 3 × 3 matrix has columns (1, 2, 3), (2, 4, 6) and (0, 0, 1). Is it invertible?Answer

No; the second column is twice the first, so the columns are dependent

Hint: Compare columns before computing a determinant

Its area is |2·3 − 1·1|; what is that, and what is det A?Answer

5 and 5: the determinant is the area of the image of the unit square.

Can Bx = (1, 4) be solved, and why?Answer

No; every output lies on y = 2x and (1, 4) does not.

When a matrix is invertible

30 minutes every month. No card.