Math Core

Lesson 2.3 · Matrix Algebra

The invertible matrix theorem

You now have many ways to describe a square matrix: its pivots, its columns, the solutions of Ax=0A\mathbf{x} = \mathbf{0} and Ax=bA\mathbf{x} = \mathbf{b}, and whether it has an inverse. For a square matrix these descriptions are not independent facts. They all rise or fall together, and the theorem that says so is one of the most useful tools in the course.

The theorem

The Invertible Matrix Theorem

Let AA be an n×nn \times n matrix. The following statements are equivalent: for a given AA, they are either all true or all false.

  1. AA is invertible.
  2. AA is row equivalent to InI_n.
  3. AA has nn pivot positions.
  4. The equation Ax=0A\mathbf{x} = \mathbf{0} has only the trivial solution.
  5. The columns of AA are linearly independent.
  6. The equation Ax=bA\mathbf{x} = \mathbf{b} has at most one solution for each b\mathbf{b} in Rn\mathbb{R}^n.
  7. The equation Ax=bA\mathbf{x} = \mathbf{b} has at least one solution for each b\mathbf{b} in Rn\mathbb{R}^n.
  8. The columns of AA span Rn\mathbb{R}^n.
  9. There is an n×nn \times n matrix CC with CA=ICA = I.
  10. There is an n×nn \times n matrix DD with AD=IAD = I.
  11. ATA^T is invertible.

In the next two lessons you will meet linear transformations. Statement 6 will then read "x↦Ax\mathbf{x} \mapsto A\mathbf{x} is one-to-one" and statement 7 will read "x↦Ax\mathbf{x} \mapsto A\mathbf{x} maps Rn\mathbb{R}^n onto Rn\mathbb{R}^n." In the next unit, "det⁡A≠0\det A \ne 0" joins the list too.

Why it is true

Everything hinges on counting pivots in an n×nn \times n matrix.

Statements 2, 3 and 1. A square matrix with nn pivots has a pivot in every row and every column, so its reduced echelon form is InI_n. Conversely, InI_n has nn pivots. The previous lesson showed that AA is invertible exactly when it row reduces to InI_n.

The "independence" side (3, 4, 5, 6). From the last unit: Ax=0A\mathbf{x} = \mathbf{0} has only the trivial solution exactly when there are no free variables, that is, when every column has a pivot. That is statement 3 for a square matrix. Statement 5 is statement 4 restated, since a nontrivial solution of Ax=0A\mathbf{x} = \mathbf{0} is precisely a dependence relation among the columns. Statement 6 is also equivalent: if Ax=bA\mathbf{x} = \mathbf{b} had two solutions, their difference would be a nontrivial solution of Ax=0A\mathbf{x} = \mathbf{0}.

The "spanning" side (3, 7, 8). Also from the last unit: Ax=bA\mathbf{x} = \mathbf{b} is consistent for every b\mathbf{b} exactly when AA has a pivot in every row, and that is the same as saying the columns span Rn\mathbb{R}^n. With nn rows, a pivot in every row means nn pivots.

This is the heart of the theorem. For a rectangular matrix, "a pivot in every column" and "a pivot in every row" are different conditions. For a square matrix they are both the statement "there are nn pivots," so they coincide.

Statements 9, 10 and 11. If CA=ICA = I, then Ax=0A\mathbf{x} = \mathbf{0} implies x=CAx=C0=0\mathbf{x} = CA\mathbf{x} = C\mathbf{0} = \mathbf{0}, which is statement 4. If AD=IAD = I, then for any b\mathbf{b}, x=Db\mathbf{x} = D\mathbf{b} solves Ax=bA\mathbf{x} = \mathbf{b}, which is statement 7. Invertibility gives both CC and DD (take A−1A^{-1}). Finally, ATA^T is invertible when AA is (with inverse (A−1)T(A^{-1})^T), and applying that fact to ATA^T gives the converse.

A bonus from statements 9 and 10: for square matrices, a one-sided inverse is automatically a two-sided inverse. If CA=ICA = I, then AA is invertible and C=A−1C = A^{-1}.

Common mistake

The Invertible Matrix Theorem applies only to square matrices. A 3×23 \times 2 matrix can have linearly independent columns, but its columns can never span R3\mathbb{R}^3, and it has no inverse. Before you use the theorem, check that the matrix is n×nn \times n.

Using the theorem

The practical power of the theorem is that you can prove any one statement, by whatever method is easiest, and get all the others for free. The same goes for disproving one.

Worked example: Deciding invertibility

Is A=[130−2−51047]A = \begin{bmatrix} 1 & 3 & 0 \\ -2 & -5 & 1 \\ 0 & 4 & 7 \end{bmatrix} invertible?

You don't need A−1A^{-1}; you only need the number of pivots. Add 22 times row 1 to row 2, then subtract 44 times the new row 2 from row 3:

[130−2−51047]∼[130011047]∼[130011003].\begin{bmatrix} 1 & 3 & 0 \\ -2 & -5 & 1 \\ 0 & 4 & 7 \end{bmatrix} \sim \begin{bmatrix} 1 & 3 & 0 \\ 0 & 1 & 1 \\ 0 & 4 & 7 \end{bmatrix} \sim \begin{bmatrix} 1 & 3 & 0 \\ 0 & 1 & 1 \\ 0 & 0 & 3 \end{bmatrix}.

There are 33 pivots, so AA is invertible. Without further work you also know the columns of AA are independent and span R3\mathbb{R}^3, and Ax=bA\mathbf{x} = \mathbf{b} has exactly one solution for every b\mathbf{b}.

Worked example: Spotting a dependence

Is B=[1234−13055]B = \begin{bmatrix} 1 & 2 & 3 \\ 4 & -1 & 3 \\ 0 & 5 & 5 \end{bmatrix} invertible?

Look at the columns before reducing anything. Column 3 is column 1 plus column 2: 1+2=31 + 2 = 3, 4−1=34 - 1 = 3 and 0+5=50 + 5 = 5. So the columns are linearly dependent, statement 5 fails, and BB is not invertible.

The theorem then tells you more: some b\mathbf{b} in R3\mathbb{R}^3 makes Bx=bB\mathbf{x} = \mathbf{b} inconsistent, and Bx=0B\mathbf{x} = \mathbf{0} has a nontrivial solution. Indeed, x=(1,1,−1)\mathbf{x} = (1, 1, -1) works.

Worked example: Reasoning without numbers

AA is a 4×44 \times 4 matrix, and the equation Ax=bA\mathbf{x} = \mathbf{b} has a solution for every b\mathbf{b} in R4\mathbb{R}^4. Can Ax=cA\mathbf{x} = \mathbf{c} have two different solutions for some c\mathbf{c}?

No. AA is square and statement 7 holds, so AA is invertible, and then statement 6 holds as well. Every equation Ax=cA\mathbf{x} = \mathbf{c} has exactly one solution, x=A−1c\mathbf{x} = A^{-1}\mathbf{c}.

The contrapositive view

It often helps to read the theorem in the negative. For an n×nn \times n matrix AA, the following are all equivalent to "AA is singular": AA has fewer than nn pivots; Ax=0A\mathbf{x} = \mathbf{0} has a nontrivial solution; the columns are dependent; the columns fail to span Rn\mathbb{R}^n; some equation Ax=bA\mathbf{x} = \mathbf{b} has no solution. A singular square matrix fails in both directions at once: it loses uniqueness and existence.

Tip

Quick singularity checks for a square matrix: a zero row or zero column, two equal (or proportional) rows or columns, or one column that is an obvious combination of others. Any of these means the matrix is not invertible. A triangular matrix is invertible exactly when all of its diagonal entries are nonzero, because those entries are its pivots.

Practice

Practice 1

Is [123045006]\begin{bmatrix} 1 & 2 & 3 \\ 0 & 4 & 5 \\ 0 & 0 & 6 \end{bmatrix} invertible?

Practice 2

Is [24−213037−2]\begin{bmatrix} 2 & 4 & -2 \\ 1 & 3 & 0 \\ 3 & 7 & -2 \end{bmatrix} invertible?

Practice 3

AA is a 4×44 \times 4 matrix, and Ax=0A\mathbf{x} = \mathbf{0} has a nontrivial solution. Which statement must be true?

Practice 4

AA is a 5×55 \times 5 matrix whose columns span R5\mathbb{R}^5. How many solutions does Ax=bA\mathbf{x} = \mathbf{b} have when b=(1,0,2,0,3)\mathbf{b} = (1, 0, 2, 0, 3)?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

For what value of hh is [12125h134]\begin{bmatrix} 1 & 2 & 1 \\ 2 & 5 & h \\ 1 & 3 & 4 \end{bmatrix} not invertible?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

AA is a 3×33 \times 3 matrix, and for one particular vector b\mathbf{b} the equation Ax=bA\mathbf{x} = \mathbf{b} has infinitely many solutions. What can you say about Ax=cA\mathbf{x} = \mathbf{c} for a different vector c\mathbf{c}?

Practice 7

For an n×nn \times n matrix AA, which statement is not equivalent to "AA is invertible"?