Post · 10 min read· pp. 131–137

Invertible matrices

In this post, we discuss invertible matrices: those matrices that characterize invertible linear transformations. We discuss three different perspectives for intuiting inverse matrices as well as several of their properties.

Introduction

As we have discussed in depth, matrices can viewed as functions between vector spaces. In this post, we will discuss matrices that represent inverse functions. Such matrices are called invertible matrices and their corresponding inverse function is characterized by an inverse matrix.

More rigorously, the inverse matrix of a matrix A\boldsymbol{A} is defined as follows:

Definition 1 (Inverse matrix): Given a square matrix A∈Rn×n\boldsymbol{A} \in \mathbb{R}^{n \times n}, it’s inverse matrix is the matrix C\boldsymbol{C} that when either left or right multiplied by A\boldsymbol{A}, yields the identity matrix. That is, if for a matrix C\boldsymbol{C} it holds that AC=CA=I\boldsymbol{AC} = \boldsymbol{CA} = \boldsymbol{I}, then C\boldsymbol{C} is the inverse of A\boldsymbol{A}. This inverse matrix, C\boldsymbol{C} is commonly denoted as A−1\boldsymbol{A}^{-1}.

This definition might seem a bit of opaque, so in the remainder of this blog post we will explore a number of complimentary perspectives for viewing inverse matrices.

Intuition behind invertible matrices

Here are three ways to understand invertible matrices:

  1. An invertible matrix characterizes an invertible linear transformation
  2. An invertible matrix preserves the dimensionality of transformed vectors
  3. An invertible matrix computes a change of coordinates for a vector space

Below we will explore each of these perspectives.

1. An invertible matrix characterizes an invertible linear transformation

Any matrix A\boldsymbol{A} for which there exists an inverse matrix A−1\boldsymbol{A}^{-1} characterizes an invertible linear transformation. That is, given an invertible matrix A\boldsymbol{A}, the linear transformation T(x):=AxT(\boldsymbol{x}) := \boldsymbol{Ax} has an inverse linear transformation T−1(x)T^{-1}(\boldsymbol{x}) defined as T−1(x):=A−1xT^{-1}(\boldsymbol{x}) := \boldsymbol{A}^{-1}\boldsymbol{x}.

Recall, for a function to be invertible it must be both onto and one-to-one. We show in the Appendix to this blog post that if A\boldsymbol{A} is invertible, then T(x)T(\boldsymbol{x}) defined using an invertible matrix A\boldsymbol{A} is both onto (Theorem 2) and one-to-one (Theorem 3).

At a more intuitive level, the inverse of a matrix A\boldsymbol{A} is the matrix that “reverts” vectors transformed by A\boldsymbol{A} back to their original vectors:

drawing

Thus, since matrix multiplication encodes a composition of the matrices’ linear transformations, it follows that a matrix multiplied by its inverse yields the identity matrix I\boldsymbol{I}, which characterizes the linear transformation that maps vectors back to themselves.

2. A singular matrix collapses vectors into a lower-dimensional subspace

A singular matrix “collapses” or “compresses” vectors into an intrinsically lower dimensional space whereas an invertible matrix preserves their intrinsic dimensionality.

This follows from the fact that a matrix is invertible if and only if its columns are linearly independent (Thoerem 4 in the Appendix proves that the columns of an invertible matrix are linearly independent. See my post on the invertible matrix theorem of a proof that any square matrix with linearly independent columns is invertible). Recall a set of nn linearly independent vectors S:={x1,…,xn}S := \{ \boldsymbol{x}_1, \dots, \boldsymbol{x}_n \} spans a space with an intrinsic dimensionality of nn because in order to specify any vector b\boldsymbol{b} in the vector space, one must specify the coefficients c1,…,cnc_1, \dots, c_n such that

b=c1x1+⋯+cnxn\boldsymbol{b} = c_1\boldsymbol{x}_1 + \dots + c_n\boldsymbol{x}_n

However, if SS is not linearly independent, then we can throw away “redundant” vectors in SS that can be constructed from the remaining vectors. Thus, the intrinsic dimensionality of a linearly dependent set SS is the maximum sized subset of SS that is linearly independent.

When a matrix A\boldsymbol{A} is singular, its columns are linearly dependent and thus, the vectors that constitute the column space of the matrix is inherently of lower dimension than the number of columns. Thus, when A\boldsymbol{A} multiplies a vector x\boldsymbol{x}, it transforms x\boldsymbol{x} into this lower dimensional space. Once transformed, there is no way to transform it back to its original vector because certain dimensions of the vector were “lost” in this transformation.

To make this more concrete, an example is shown in below:

drawing

In Panel A of this figure, we show the column vectors of a matrix A∈R3×3\boldsymbol{A} \in \mathbb{R}^{3 \times 3} that span a plane. In Panel B, we show the solution to the equation Ax=b\boldsymbol{Ax} = \boldsymbol{b}. In Panel C, we show another solution to Ax=b\boldsymbol{Ax} = \boldsymbol{b}. Notice that there are multiple vectors in R3\mathbb{R}^3 that A\boldsymbol{A} maps to b\boldsymbol{b}. Thus, there does not exist an inverse mapping and therefore no inverse matrix to A\boldsymbol{A}. These multiple mappings from R3\mathbb{R}^3 to b\boldsymbol{b} arise directly from the fact that the columns of A\boldsymbol{A} are linearly dependent.

Also notice that this singular matrix maps vectors in R3\mathbb{R}^3 to vectors that lie on the plane in R3\mathbb{R}^3 that are spanned by its column vectors. All vectors on a plane in R3\mathbb{R}^3 are of intrinsic dimensionality of two rather than three because we only need to specify coefficients for two of the column vectors in A\boldsymbol{A} to specify a point on the plane. We can throw away the third. Thus, we see that this singular matrix collapses points from the full 3-dimensional space R3\mathbb{R}^3 to the 2-dimensional space on the plane spanned by the columns of A\boldsymbol{A}.

3. An invertible matrix computes a change of coordinates for a vector space

A vector x∈Rn\boldsymbol{x} \in \mathbb{R}^n can be viewed as the coordinates for a point in a coordinate system. That is, for each dimension ii, the vector x\boldsymbol{x} provides a value along each dimension – that is, xix_i is the value along dimension ii. The coordinate system we use is, in a mathematical sense, arbitrary. To see why it’s arbitrary, notice in the figure below that we can specify locations in R2\mathbb{R}^2 using either the grey coordinate system or the blue coordinate system:

drawing

We see that there is a one-to-one and onto mapping between coordinates in each of these two alternative coordinate systems. The point x\boldsymbol{x} is located at [−4,−2][-4, -2] in the grey coordinate system and as [−1,1][-1, 1] in the blue coordinate system.

Thus we see that all coordinate systems are able to provide an unambiguous location for points in the space and thus, there is a one-to-one and onto mapping between them. Nonetheless, it often helps to have some coordinate system that acts as a reference to every other coordinate system. This reference coordinate system is usually defined by the standard basis vectors e1,…,en{\boldsymbol{e}_1, \dots, \boldsymbol{e}_n } where ei\boldsymbol{e}_i consists of all zeros except for a one at index ii.

All coordinate systems can then be constructed from the coordinate system defined by the standard basis vectors. This is depicted in the previous figure in which the reference coordinate system is depicted by the grey grid and is constructed by the orthonormal basis vectors e1\boldsymbol{e}_1 and e2\boldsymbol{e}_2. An alternative coordinate system is depicted by the blue grid and is constructed from the basis vectors a1\boldsymbol{a}_1 and a2\boldsymbol{a}_2.

Now, how do invertible matrices enter the picture? Well, an invertible matrix A:=[a1,…,an]\boldsymbol{A} := [\boldsymbol{a}_1, \dots, \boldsymbol{a}_n] can be viewed as an operator that converts vectors described in terms of some set of basis vectors a1,…,an{\boldsymbol{a}_1, \dots, \boldsymbol{a}_n} back to a description in terms of the standard basis vectors e1,…,en{\boldsymbol{e}_1, \dots, \boldsymbol{e}_n }. That is, if we have some vector x∈Rn\boldsymbol{x} \in \mathbb{R}^n, then Ax\boldsymbol{Ax} can be understood to be the vector in the standard basis if x\boldsymbol{x} was described according to the basis formed by the columns of A\boldsymbol{A}.

Another way to think about this is that if we have some vector x∈Rn\boldsymbol{x} \in \mathbb{R}^n described according to the standard basis, then we can describe x\boldsymbol{x} in terms of an alternative basis a1,…,an\boldsymbol{a}_1, \dots, \boldsymbol{a}_n by multiplying x\boldsymbol{x} by the inverse of the matrix A:=[a1,…,an]\boldsymbol{A} := [ \boldsymbol{a}_1, \dots, \boldsymbol{a}_n]. That is xA:=A−1x\boldsymbol{x}_{\boldsymbol{A}} := \boldsymbol{A}^{-1}\boldsymbol{x} is the representation of x\boldsymbol{x} in terms of the basis formed by the columns of A\boldsymbol{A}.

Properties

Below we discuss several properties of invertible matrices that provide further intuition into how they behave and also provide algebraic rules that can be used in derivations.

  1. The columns of an invertible matrix are linearly independent (Theorem 4 in the Appendix).
  2. Taking the inverse of an inverse matrix gives you back the original matrix. Given an invertible matrix A\boldsymbol{A} with inverse A−1\boldsymbol{A}^{-1}, it follows from the definition of invertible matrices, that A−1\boldsymbol{A}^{-1} is also invertible with its inverse being A\boldsymbol{A}. That is, (A−1)−1=A(\boldsymbol{A}^{-1})^{-1} = \boldsymbol{A} This also follows from the fact that the inverse of an inverse function f−1f^{-1} is simply the original function ff.
  3. The result of multiplying invertible matrices is invertible (Theorem 5 in the Appendix). Given two matrices A,B∈Rn×n\boldsymbol{A}, \boldsymbol{B} \in \mathbb{R}^{n \times n}, the matrix that results from their multiplication is invertible. That is, AB\boldsymbol{AB} is invertible and its inverse is given by (AB)−1=B−1A−1(\boldsymbol{AB})^{-1} = \boldsymbol{B}^{-1}\boldsymbol{A}^{-1} Recall the result of matrix multiplication results in a matrix that characterizes the composition of the linear transformations characterized by the factor matrices. That is, ABx\boldsymbol{ABx} first transforms x\boldsymbol{x} with B\boldsymbol{B} and then transforms the result with A\boldsymbol{A}. It follows that in order to invert this composition of transformations, one must first pass the vector through B−1\boldsymbol{B}^{-1} and then through A−1\boldsymbol{A}^{-1}:

drawing

Appendix: Proofs of properties of invertible matrices

Theorem 1 (Null space of an invertible matrix): The null space of an invertible matrix A∈Rn×n\boldsymbol{A} \in \mathbb{R}^{n \times n} consists of only the zero vector 0\boldsymbol{0}.

Proof:

We must prove that

Ax=0\boldsymbol{Ax} = \boldsymbol{0}

has only the trivial solution x:=0\boldsymbol{x} := \boldsymbol{0}.

Ax=0  ⟹  A−1Ax=A−10  ⟹  x=0\begin{align*}\boldsymbol{Ax} &= \boldsymbol{0} \\ \implies \boldsymbol{A}^{-1}\boldsymbol{Ax} &= \boldsymbol{A}^{-1}\boldsymbol{0} \\ \implies \boldsymbol{x} &= \boldsymbol{0} \end{align*}

□\square

Theorem 2 (Invertible matrices characterize onto functions): An invertible matrix A∈Rn×n\boldsymbol{A} \in \mathbb{R}^{n \times n} characterizes an onto linear transformation.

Proof:

Let b∈Rn\boldsymbol{b} \in \mathbb{R}^n. Then, there exists a vector, x∈Rn\boldsymbol{x} \in \mathbb{R}^n such that Ax=b\boldsymbol{Ax} = \boldsymbol{b} This solution is precisely

x:=A−1b\boldsymbol{x} := \boldsymbol{A}^{-1}\boldsymbol{b}

as we see below:

A(A−1b)=b  ⟹  (AA−1)b=bassociative law  ⟹  Ib=bdefinition of inverse matrix  ⟹  b=b\begin{align*}&\boldsymbol{A}(\boldsymbol{A}^{-1}\boldsymbol{b}) = \boldsymbol{b} \\ \implies & (\boldsymbol{AA}^{-1})\boldsymbol{b} = \boldsymbol{b} && \text{associative law} \\ \implies & \boldsymbol{I}\boldsymbol{b} = \boldsymbol{b} && \text{definition of inverse matrix} \\ \implies & \boldsymbol{b} = \boldsymbol{b} \end{align*}

□\square

Theorem 3 (Invertible matrices characterize one-to-one functions): A an invertible matrix A∈Rn×n\boldsymbol{A} \in \mathbb{R}^{n \times n} characterizes a one-to-one linear transformation.

Proof:

For the sake of contradiction assume that there exists two vectors x\boldsymbol{x} and x’\boldsymbol{x}’ such that x≠x’\boldsymbol{x} \neq \boldsymbol{x}’ and that Ax=b\boldsymbol{Ax} = \boldsymbol{b} and Ax′=b\boldsymbol{Ax}' = \boldsymbol{b} where b≠0b \neq \boldsymbol{0}. Then,

Ax−Ax′=0  ⟹  A(x−x′)=0\begin{align*} \boldsymbol{Ax} - \boldsymbol{Ax}' &= \boldsymbol{0} \\ \implies \boldsymbol{A}(\boldsymbol{x} - \boldsymbol{x}') = \boldsymbol{0}\end{align*}

By Theorem 1, it must hold that

x−x′=0\boldsymbol{x} - \boldsymbol{x}' = \boldsymbol{0}

which implies that x=x’\boldsymbol{x} = \boldsymbol{x}’. This contradicts our original assumption. Therefore, it must hold that there does not exist two vectors x\boldsymbol{x} and x’\boldsymbol{x}’ that map to the same vector via the invertible matrix A\boldsymbol{A}. Therefore, A\boldsymbol{A} encodes a one-to-one function.

□\square

Theorem 4 (Column vectors of invertible matrices are linearly independent): Given an invertible matrix A∈Rn×n\boldsymbol{A} \in \mathbb{R}^{n \times n}, its columns are linearly independent.

Proof:

By Theorem 1, we know that if A\boldsymbol{A} is invertible, then the only solution to Ax=0\boldsymbol{Ax} = \boldsymbol{0} is x:=0\boldsymbol{x} := \boldsymbol{0}. This implies that,

a∗,1x1+⋯+a∗,nxn=0\boldsymbol{a}_{*,1}x_1 + \dots + \boldsymbol{a}_{*,n}x_n = \boldsymbol{0}

which by Theorem 1 of my previous post implies that the columns of A\boldsymbol{A} are linearly independent.

□\square

Theorem 5 (Inverse of matrix product): Given two invertible matrices A,B∈Rn\boldsymbol{A}, \boldsymbol{B} \in \mathbb{R}^n, the inverse of their product AB\boldsymbol{AB} is given by B−1A−1\boldsymbol{B}^{-1}\boldsymbol{A}^{-1}.

Proof:

We seek the inverse matrix X\boldsymbol{X} such that (AB)X=I(\boldsymbol{AB})\boldsymbol{X} = \boldsymbol{I}:

ABX=I  ⟹  A−1ABX=A−1I  ⟹  B−1BX=B−1A−1I  ⟹  X=B−1A−1\begin{align*} & \boldsymbol{ABX} = \boldsymbol{I} \\ \implies & \boldsymbol{A}^{-1}\boldsymbol{ABX} = \boldsymbol{A}^{-1}\boldsymbol{I}\\ \implies &\boldsymbol{B}^{-1}\boldsymbol{BX} = \boldsymbol{B}^{-1}\boldsymbol{A}^{-1}\boldsymbol{I} \\ \implies &\boldsymbol{X} = \boldsymbol{B}^{-1}\boldsymbol{A}^{-1} \\ \end{align*}

□\square