Post · 6 min read· pp. 88–91

Matrices characterize linear transformations

Linear transformations are functions mapping vectors between two vector spaces that preserve vector addition and scalar multiplication. In this post, we show that there exists a one-to-one corresondence between linear transformations between coordinate vector spaces and matrices. Thus, we can view a matrix as representing a unique linear transformation between coordinate vector spaces.

Introduction

As previously discussed, matrix-vector multiplication enables us to view matrices as functions between vector spaces. It turns out that matrices define a very specific type of function: linear transformations. In fact, any linear transformation between coordinate vector spaces can be characterized by a single, unique matrix. That is, there is a one-to-one mapping between linear transformations and matrices. Thus, in some sense, we can say that a matrix is a linear transformation.

Linear transformations

A linear transformation is a function that maps vectors from one vector space to vectors in another vector space such that it preserves scaler multiplication and vector addition. Specifically, a linear transformation is defined as follows:

Definition 1 (Linear transformation): Given vector spaces (V,F)(\mathcal{V}, \mathcal{F}) and (U,F)(\mathcal{U}, \mathcal{F}), a function T:V→UT : \mathcal{V} \rightarrow \mathcal{U} is a linear transformation, or is simply called linear, if for all u,v∈V\boldsymbol{u}, \boldsymbol{v} \in \mathcal{V} and all scalars c∈Fc \in \mathcal{F},

T(u+v)=T(u)+T(v)T(\boldsymbol{u} + \boldsymbol{v}) = T(\boldsymbol{u}) + T(\boldsymbol{v})

and

T(cu)=cT(u)T(c\boldsymbol{u}) = cT(\boldsymbol{u})

The figure below illustrates a linear transformation TT applied to three vectors (red, blue, and purple). The vectors on the left are in TT’s domain and the vectors on the right are in TT’s range. The dotted lines connect each vector in the domain to its vector in the range as mapped by TT. Notice that the T(red)+T(blue)=T(red+blue)T(\text{red}) + T(\text{blue}) = T(\text{red} + \text{blue}).

drawing

Matrices perform linear transformations

Matrix-vector multiplication has the following two properties:

  1. A(v+u)=Av+Au\boldsymbol{A}(\boldsymbol{v} + \boldsymbol{u}) = \boldsymbol{Av} + \boldsymbol{Au}
  2. A(cv)=cAv\boldsymbol{A}(c\boldsymbol{v}) = c\boldsymbol{Av}

Thus, if we hold some matrix A\boldsymbol{A} as fixed and define a function T(x):=AxT(\boldsymbol{x}) := \boldsymbol{Ax}, then it follows that

  1. T(v+u)=T(v)+T(u)T(\boldsymbol{v} + \boldsymbol{u}) = T(\boldsymbol{v}) + T(\boldsymbol{u})
  2. T(cv)=cT(v)T(c\boldsymbol{v}) = cT(\boldsymbol{v})

That is, TT is a linear transformation. These facts are proven in Theorem 1 in the Appendix to this post.

Every linear transformation is characterized by a matrix

Perhaps more interestingly, it turns out that every linear transformation between finite-dimensional vector spaces is defined by a unique matrix that performs the transformation. That is, if I have two vector spaces in, say Rm\mathbb{R}^m and Rn\mathbb{R}^n, and I have a linear transformation TT mapping vectors between them, then there exists a single unique matrix AT\boldsymbol{A}_T that performs TT’s mapping. That is, where T(x)=ATxT(\boldsymbol{x}) = \boldsymbol{A}_T\boldsymbol{x}. This matrix is called the standard matrix of TT.

Because every matrix performs a linear transformation and every linear transformation is characterized by a matrix, it follows that there is a one-to-one mapping between linear transformations and matrices. Thus, in some sense, we can say that a matrix is is a linear transformation.

Computing the standard matrix of a linear transformation

A natural question is: given a linear transformation TT, how do we compute its standard matrix? In fact, it’s quite simple. ATA_T is computed simply as:

AT=[T(e1)T(e2)…T(em)]A_T = \begin{bmatrix}T(\boldsymbol{e}_1) & T(\boldsymbol{e}_2) & \dots & T(\boldsymbol{e}_m) \end{bmatrix}

where ei\boldsymbol{e}_i is the iith basis vector of Rm\mathbb{R}^m (i.e., the vector with every element equal to zero except for the iith element, which is equal to one).

What this says is that in order to form the standard matrix for a linear transformation TT, you simply compute the vectors that result from transforming the basis vectors under TT. The resultant vectors form the columns of TT’s standard matrix! This is depicted in the figure below where we visualize the basis vectors for R2\mathbb{R}^2 and the two column vectors of the standard matrix for some linear transformation T:R2→R2T: \mathbb{R}^2 \rightarrow \mathbb{R}^2:

drawing

This is proven in Theorem 2 in the Appendix to this post.

Appendix

Theorem 1 (Matrices define linear transformations): The function T(x):=AxT(\boldsymbol{x}) := \boldsymbol{Ax} is a linear transformation.

Proof: We show that for all u,v\boldsymbol{u}, \boldsymbol{v} in the domain of TT and for all scalars cc, the following conditions hold:

  1. A(u+v)=Au+Av\boldsymbol{A}(\boldsymbol{u} + \boldsymbol{v}) = \boldsymbol{A}\boldsymbol{u} + \boldsymbol{A}\boldsymbol{v}
  2. A(cu)=c(Au)\boldsymbol{A}(c\boldsymbol{u}) = c(\boldsymbol{A}\boldsymbol{u})

Proof of 1:

A(u+v)=a∗,1(u1+v1)+a∗,2(u2+v2)+⋯+a∗,n(un+vn)=a∗,1u1+a∗,1v1+a∗,2u2+a∗,2v2+⋯+a∗,nun+a∗,nvn=(a∗,1u1+a∗,2u2+⋯+a∗,nun)+(a∗,1v1+a∗,2v2+⋯+a∗,nvn)=Au+Av\begin{align*}\boldsymbol{A}(\boldsymbol{u} + \boldsymbol{v}) &= \boldsymbol{a}_{*,1}(u_1 + v_1) + \boldsymbol{a}_{*,2}(u_2 + v_2) + \dots + \boldsymbol{a}_{*,n}(u_n + v_n) \\ &= \boldsymbol{a}_{*,1}u_1 + \boldsymbol{a}_{*,1}v_1 + \boldsymbol{a}_{*,2}u_2 + \boldsymbol{a}_{*,2}v_2 + \dots + \boldsymbol{a}_{*,n}u_n + \boldsymbol{a}_{*,n}v_n \\ &= (\boldsymbol{a}_{*,1}u_1 + \boldsymbol{a}_{*,2}u_2 + \dots + \boldsymbol{a}_{*,n}u_n) + (\boldsymbol{a}_{*,1}v_1 + \boldsymbol{a}_{*,2}v_2 + \dots + \boldsymbol{a}_{*,n}v_n) \\ &= \boldsymbol{Au} + \boldsymbol{Av}\end{align*}

Proof of 2:

A(cu)=a∗,1(cu1)+a∗,2(cu2)+⋯+a∗,n(cun)=ca∗,1(u1)+ca∗,2(u2)+⋯+ca∗,n(un)=c(a∗,1u1+a∗,2u2+⋯+a∗,nun)=c(Au)\begin{align*}\boldsymbol{A}(c\boldsymbol{u}) &= \boldsymbol{a}_{*,1}(cu_1) + \boldsymbol{a}_{*,2}(cu_2) + \dots + \boldsymbol{a}_{*,n}(cu_n) \\ &= c\boldsymbol{a}_{*,1}(u_1) + c\boldsymbol{a}_{*,2}(u_2) + \dots + c\boldsymbol{a}_{*,n}(u_n) \\ &= c(\boldsymbol{a}_{*,1}u_1 + \boldsymbol{a}_{*,2}u_2 + \dots + \boldsymbol{a}_{*,n}u_n) \\ &= c(\boldsymbol{Au})\end{align*}

Now, we see that

T(u+v)=A(u+v)=Au+Av=T(u)+T(v)\begin{align*}T(\boldsymbol{u} + \boldsymbol{v}) &= \boldsymbol{A}(\boldsymbol{u} + \boldsymbol{v}) \\ &= \boldsymbol{Au} + \boldsymbol{Av} \\ &= T(\boldsymbol{u}) + T(\boldsymbol{v})\end{align*}

and

T(cu)=A(cu)=cAu=cT(u)\begin{align*}T(c\boldsymbol{u}) &= \boldsymbol{A}(c\boldsymbol{u}) \\ &= c\boldsymbol{Au} \\ &= cT(\boldsymbol{u})\end{align*}

□\square

Theorem 2 (Standard matrix of a linear transformations): Given a linear transformation T:Rm→RnT: \mathbb{R}^m \rightarrow \mathbb{R}^n, it holds that

T(x)=ATxT(\boldsymbol{x}) = \boldsymbol{A}_T\boldsymbol{x}

where AT\boldsymbol{A}_T is defined as

AT:=[T(e1)T(e2)…T(em)]A_T := \begin{bmatrix}T(\boldsymbol{e}_1) & T(\boldsymbol{e}_2) & \dots & T(\boldsymbol{e}_m) \end{bmatrix}

where ei\boldsymbol{e}_i is the iith basis vector of Rm\mathbb{R}^m.

Proof:

x=Ix=e1x1,+e2x2+⋯+emxm  ⟹  T(x)=T(e1x1+e2x2+⋯+emxm)=T(e1x1)+T(e2x2)+⋯+T(emxm)T is linear=T(e1)x1+T(e2)x2+⋯+T(em)xmT is linear=[T(e1)T(e2)…T(em)]x=ATx\begin{align*} \boldsymbol{x} &= \boldsymbol{Ix} \\ &= \boldsymbol{e}_1x_1, + \boldsymbol{e}_2x_2 + \dots + \boldsymbol{e}_mx_m \\ \implies T(\boldsymbol{x}) &= T(\boldsymbol{e}_1x_1 + \boldsymbol{e}_2x_2 + \dots + \boldsymbol{e}_mx_m) \\ &= T(\boldsymbol{e}_1x_1) + T( \boldsymbol{e}_2x_2) + \dots + T(\boldsymbol{e}_mx_m) && \text{$T$ is linear} \\ &= T(\boldsymbol{e}_1)x_1 + T( \boldsymbol{e}_2)x_2 + \dots + T(\boldsymbol{e}_m)x_m && \text{$T$ is linear} \\ &= \begin{bmatrix} T(\boldsymbol{e}_1) & T(\boldsymbol{e}_2) & \dots & T(\boldsymbol{e}_m) \end{bmatrix} \boldsymbol{x} \\ &= \boldsymbol{A}_T\boldsymbol{x} \end{align*}

□\square