Unit 1, lesson 4

The Vector Space of Linear Maps

Why a linear map is fixed by its basis images, how the linear maps between two spaces form a vector space under pointwise addition and scaling, why matrix-unit maps give it dimension mn, and what a rank-one map is.

  • Video 4
  • Bases and Linear Maps

A linear map takes a real polynomial a+bta + bt of degree at most one and returns a vector in R3\mathbb{R}^3. It has infinitely many possible inputs, yet six real numbers describe it completely, three for the image of 11 and three for the image of tt. This lesson explains why basis images decide everything, and then treats the linear maps between two spaces as vectors in their own right. Adding and scaling maps one input at a time makes them a vector space, and when both spaces are finite-dimensional the matrix-unit maps give that space a basis, so its dimension is the product of the two dimensions.

Key terms

Linear extension from basis images

Definition Let VV and WW be vector spaces over the same field F\mathbb{F}, where F\mathbb{F} is R\mathbb{R} or C\mathbb{C}, and let b1,…,bnb_1, \dots, b_n be a basis of the finite-dimensional space VV. For any vectors w1,…,wnw_1, \dots, w_n in WW, chosen freely and not necessarily distinct or independent, there is exactly one linear map T:V→WT: V \to W with T(bj)=wjT(b_j) = w_j for j=1,…,nj = 1, \dots, n. It is given by

T(x1b1+⋯+xnbn)=x1w1+⋯+xnwn.\begin{aligned} &T(x_1 b_1 + \cdots + x_n b_n) \\[0.4em] &\quad = x_1 w_1 + \cdots + x_n w_n. \end{aligned}

The formula is well defined because every vector of VV has unique coordinates x1,…,xnx_1, \dots, x_n in the basis. It is linear because the coordinates of ax+byax + by are aa times those of xx plus bb times those of yy. Any linear map with these basis images agrees with the formula, since linearity forces T(∑jxjbj)=∑jxjT(bj)T(\sum_j x_j b_j) = \sum_j x_j T(b_j). Both halves of the basis hypothesis matter. If the list spans VV but is dependent, prescribed images can contradict each other. If it is independent but does not span, such a map exists, and it is unique only when W={0}W = \{0\}.

In plain words A linear map is completely decided by where it sends one basis, and those images can be anything at all. The output at any vector is the same combination of the chosen images as that vector is of the basis.

Example Work over R\mathbb{R} with V=P1V = \mathcal{P}_1, the real polynomials of degree at most one including the zero polynomial, with basis 1,t1, t, and with W=R3W = \mathbb{R}^3. Choose T(1)=(2,−1,0)T(1) = (2, -1, 0) and T(t)=(1,3,4)T(t) = (1, 3, 4). The theorem gives the single linear map

T(a+bt)=a(2,−1,0)+b(1,3,4)=(2a+b,−a+3b,4b).\begin{aligned} T(a + bt) &= a(2, -1, 0) + b(1, 3, 4) \\[0.4em] &= (2a + b, -a + 3b, 4b). \end{aligned}

For instance T(2−t)=(3,−5,−4)T(2 - t) = (3, -5, -4). Each of the two images has three free coordinates, so six real numbers describe every linear map from P1\mathcal{P}_1 to R3\mathbb{R}^3.

Space of linear maps

Definition Let VV and WW be vector spaces over the same field F\mathbb{F}. The set of all linear maps from VV to WW is written Hom⁡(V,W)\operatorname{Hom}(V, W). For S,T∈Hom⁡(V,W)S, T \in \operatorname{Hom}(V, W) and λ∈F\lambda \in \mathbb{F}, pointwise addition and scaling are defined at every x∈Vx \in V by

(S+T)(x)=S(x)+T(x),(λT)(x)=λ T(x).\begin{gathered} (S + T)(x) = S(x) + T(x), \\[0.4em] (\lambda T)(x) = \lambda\, T(x). \end{gathered}

Both results are again linear. For the sum, linearity of each map and regrouping in WW give

(S+T)(ax+by)=aS(x)+bS(y)+aT(x)+bT(y)=a(S+T)(x)+b(S+T)(y),\begin{aligned} &(S + T)(ax + by) \\[0.4em] &\quad = aS(x) + bS(y) \\[0.4em] &\qquad + aT(x) + bT(y) \\[0.4em] &\quad = a(S + T)(x) \\[0.4em] &\qquad + b(S + T)(y), \end{aligned}

and a similar computation works for λT\lambda T. With these operations Hom⁡(V,W)\operatorname{Hom}(V, W) is a vector space over F\mathbb{F}. Its zero vector is the zero map, which sends every input to 00, the negative of TT is the map x↦−T(x)x \mapsto -T(x), and every other axiom holds because it holds in WW at each input. Two maps are equal when they agree at every input. No finite-dimensional hypothesis is needed. Composition is a different operation. It applies one map after another, needs the output space of the first map to be the input space of the second, and is not the addition of Hom⁡(V,W)\operatorname{Hom}(V, W).

In plain words Two maps with the same input and output spaces are added by feeding both the same input and adding the outputs. Maps then behave like vectors, so linear combinations, bases and dimension make sense for maps too.

Example On R2\mathbb{R}^2 let S(x,y)=(x+y,y)S(x, y) = (x + y, y) and T(x,y)=(x,−y)T(x, y) = (x, -y). Then (S+T)(x,y)=(2x+y,0)(S + T)(x, y) = (2x + y, 0) and (3T)(x,y)=(3x,−3y)(3T)(x, y) = (3x, -3y), and the standard matrices add and scale entry by entry. The composition is something else, since (S∘T)(x,y)=S(x,−y)=(x−y,−y)(S \circ T)(x, y) = S(x, -y) = (x - y, -y), which differs from S+TS + T.

Matrix-unit maps

Definition Let VV and WW be finite-dimensional vector spaces over F\mathbb{F} with bases B=(b1,…,bn)\mathcal{B} = (b_1, \dots, b_n) of VV and C=(c1,…,cm)\mathcal{C} = (c_1, \dots, c_m) of WW. For 1≤i≤m1 \le i \le m and 1≤j≤n1 \le j \le n, the matrix-unit map Eij∈Hom⁡(V,W)E_{ij} \in \operatorname{Hom}(V, W) is the unique linear map with

Eij(bk)=δjk ci(k=1,…,n),E_{ij}(b_k) = \delta_{jk}\, c_i \qquad (k = 1, \dots, n),

where δjk\delta_{jk} is 11 when j=kj = k and 00 otherwise. So EijE_{ij} sends bjb_j to cic_i and every other basis vector of VV to 00. On a vector with coordinates x1,…,xnx_1, \dots, x_n it gives

Eij(x1b1+⋯+xnbn)=xj ci,E_{ij}(x_1 b_1 + \cdots + x_n b_n) = x_j\, c_i,

and its matrix [Eij]C←B[E_{ij}]_{\mathcal{C} \leftarrow \mathcal{B}} has a single entry 11, in row ii and column jj, with zeros elsewhere. The maps depend on both chosen bases.

In plain words The map EijE_{ij} reads one input coordinate, the jjth, and writes it as the coefficient of one output basis vector, cic_i. Everything else is ignored.

Example Take V=P1V = \mathcal{P}_1 with basis 1,t1, t and W=R3W = \mathbb{R}^3 with the standard basis e1,e2,e3e_1, e_2, e_3. There are six matrix-unit maps. Three of them read the constant coefficient, for example E21(a+bt)=ae2=(0,a,0)E_{21}(a + bt) = a e_2 = (0, a, 0), and three read the coefficient of tt, for example E32(a+bt)=be3=(0,0,b)E_{32}(a + bt) = b e_3 = (0, 0, b). The matrix of E32E_{32} is

[000001].\begin{bmatrix} 0 & 0 \\ 0 & 0 \\ 0 & 1 \end{bmatrix}.

Dimension of the space of linear maps

Definition Let VV and WW be finite-dimensional vector spaces over F\mathbb{F} with dim⁡V=n\dim V = n and dim⁡W=m\dim W = m. The mnmn matrix-unit maps EijE_{ij} built from bases b1,…,bnb_1, \dots, b_n of VV and c1,…,cmc_1, \dots, c_m of WW form a basis of Hom⁡(V,W)\operatorname{Hom}(V, W), so

dim⁡Hom⁡(V,W)=mn.\dim \operatorname{Hom}(V, W) = mn.

The coordinates of a map TT in this basis are the entries of its matrix. If T(bj)=∑iaijciT(b_j) = \sum_{i} a_{ij} c_i for each jj, then

T=∑i=1m∑j=1naijEij.T = \sum_{i=1}^{m} \sum_{j=1}^{n} a_{ij} E_{ij}.

To see that the maps span, apply both sides to x=∑jxjbjx = \sum_j x_j b_j. Linearity gives T(x)=∑i,jaijxjciT(x) = \sum_{i,j} a_{ij} x_j c_i, and the right side gives the same sum, so the two maps agree at every input. For independence, suppose ∑i,jaijEij\sum_{i,j} a_{ij} E_{ij} is the zero map and evaluate it at bkb_k. Every term with j≠kj \ne k vanishes, leaving ∑iaikci=0\sum_i a_{ik} c_i = 0, and independence of the cic_i forces a1k=⋯=amk=0a_{1k} = \cdots = a_{mk} = 0. Doing this for each kk shows that every coefficient is zero. If n=0n = 0 or m=0m = 0, the only linear map is the zero map, and the formula correctly gives 00.

In plain words A linear map from an nn-dimensional space to an mm-dimensional space is fixed by nn basis images, each with mm free coordinates. That makes mnmn independent numbers, the entries of its matrix.

Example The map T(a+bt)=(2a+b,−a+3b,4b)T(a + bt) = (2a + b, -a + 3b, 4b) from P1\mathcal{P}_1 to R3\mathbb{R}^3 has matrix columns (2,−1,0)(2, -1, 0) and (1,3,4)(1, 3, 4), so

T=2E11−E21+E12+3E22+4E32,\begin{aligned} T &= 2E_{11} - E_{21} + E_{12} \\[0.4em] &\quad + 3E_{22} + 4E_{32}, \end{aligned}

with coefficient 00 on E31E_{31}. At the input 2−t2 - t both sides give (3,−5,−4)(3, -5, -4). The space Hom⁡(P1,R3)\operatorname{Hom}(\mathcal{P}_1, \mathbb{R}^3) has dimension 3⋅2=63 \cdot 2 = 6, which accounts for the six numbers in the opening.

Rank-one map

Definition The rank of a linear map T:V→WT: V \to W is the dimension of its image im⁡T={T(x):x∈V}\operatorname{im} T = \{T(x) : x \in V\}. A rank-one map is a linear map whose image is one-dimensional. Over F\mathbb{F}, a linear map TT has rank one exactly when

T(x)=φ(x) wfor all x∈V,T(x) = \varphi(x)\, w \quad \text{for all } x \in V,

for some nonzero vector w∈Ww \in W and some linear map φ:V→F\varphi: V \to \mathbb{F} that is not the zero map. If the image is the line spanned by ww, each T(x)T(x) equals φ(x)w\varphi(x) w for exactly one scalar φ(x)\varphi(x), and linearity of TT makes φ\varphi linear. Conversely, a nonzero φ\varphi takes every value in F\mathbb{F}, so the image of such a map is the whole line spanned by ww. In coordinates, an m×nm \times n matrix over F\mathbb{F} has rank one exactly when it equals a nonzero column u∈Fmu \in \mathbb{F}^{m} times a nonzero row r∈F1×nr \in \mathbb{F}^{1 \times n}. Each matrix-unit map EijE_{ij} has rank one, since its image is the line spanned by cic_i, and so does every nonzero multiple of it. Rank-one maps do not form a subspace, since the zero map has rank zero, and a sum can also raise the rank, as E11+E22E_{11} + E_{22} on F2\mathbb{F}^2 has rank two.

In plain words A rank-one map measures its input with a single number and returns that number times one fixed vector. All of its outputs lie on one line through the origin.

Example Over R\mathbb{R}, the matrix

A=[12−1][21]=[2142−2−1]\begin{aligned} A &= \begin{bmatrix} 1 \\ 2 \\ -1 \end{bmatrix} \begin{bmatrix} 2 & 1 \end{bmatrix} \\[0.4em] &= \begin{bmatrix} 2 & 1 \\ 4 & 2 \\ -2 & -1 \end{bmatrix} \end{aligned}

defines the map x↦(2x1+x2)(1,2,−1)x \mapsto (2x_1 + x_2)(1, 2, -1) from R2\mathbb{R}^2 to R3\mathbb{R}^3. Both columns are multiples of (1,2,−1)(1, 2, -1), so the image is the line through that vector, and Ax=0Ax = 0 exactly when 2x1+x2=02x_1 + x_2 = 0. At x=(1,3)x = (1, 3) the output is 5(1,2,−1)=(5,10,−5)5(1, 2, -1) = (5, 10, -5).

Check yourself

  1. A linear map T:R2→RT: \mathbb{R}^2 \to \mathbb{R} satisfies T(1,1)=3T(1, 1) = 3 and T(1,−1)=1T(1, -1) = 1. Find a formula for T(x,y)T(x, y) and explain why these two values determine TT.
Show the answer

The vectors (1,1)(1, 1) and (1,−1)(1, -1) form a basis of R2\mathbb{R}^2, because the matrix with these columns has determinant −2≠0-2 \ne 0. By linear extension exactly one linear map has the two given values. Every linear map from R2\mathbb{R}^2 to R\mathbb{R} has the form T(x,y)=ax+byT(x, y) = ax + by with a=T(1,0)a = T(1, 0) and b=T(0,1)b = T(0, 1). The conditions read a+b=3a + b = 3 and a−b=1a - b = 1. Adding gives 2a=42a = 4, so a=2a = 2 and b=1b = 1, and

T(x,y)=2x+y.T(x, y) = 2x + y.
  1. Is there a linear map T:R2→RT: \mathbb{R}^2 \to \mathbb{R} with T(1,0)=1T(1, 0) = 1, T(0,1)=1T(0, 1) = 1 and T(1,1)=3T(1, 1) = 3? And if two linear maps from R2\mathbb{R}^2 to R2\mathbb{R}^2 agree at the single input (1,2)(1, 2), must they be equal?
Show the answer

No such map exists. The three vectors span R2\mathbb{R}^2 but are dependent, since (1,1)=(1,0)+(0,1)(1, 1) = (1, 0) + (0, 1). Linearity forces T(1,1)=T(1,0)+T(0,1)=2T(1, 1) = T(1, 0) + T(0, 1) = 2, which contradicts the prescribed value 33. Images can be prescribed freely on an independent list. On a dependent list they must satisfy every linear relation among its vectors, and on a basis they also determine the map.

The second answer is also no. The zero map and the map (x,y)↦(2x−y,0)(x, y) \mapsto (2x - y, 0) both send (1,2)(1, 2) to (0,0)(0, 0), yet they differ at (1,0)(1, 0), where the second gives (2,0)(2, 0). Agreement on a whole basis is what forces two linear maps to be equal.

  1. Find dim⁡Hom⁡(P2,P1)\dim \operatorname{Hom}(\mathcal{P}_2, \mathcal{P}_1) over R\mathbb{R}, and write the derivative map D(p)=p′D(p) = p' in terms of the matrix-unit maps for the bases B=(1,t,t2)\mathcal{B} = (1, t, t^2) and C=(1,t)\mathcal{C} = (1, t).
Show the answer

The spaces have dimensions 33 and 22, so dim⁡Hom⁡(P2,P1)=2⋅3=6\dim \operatorname{Hom}(\mathcal{P}_2, \mathcal{P}_1) = 2 \cdot 3 = 6. The basis images are D(1)=0D(1) = 0, D(t)=1D(t) = 1 and D(t2)=2tD(t^2) = 2t. In the basis C\mathcal{C} their coordinates are (0,0)(0, 0), (1,0)(1, 0) and (0,2)(0, 2), which are the columns of

[D]C←B=[010002].[D]_{\mathcal{C} \leftarrow \mathcal{B}} = \begin{bmatrix} 0 & 1 & 0 \\ 0 & 0 & 2 \end{bmatrix}.

Hence D=E12+2E23D = E_{12} + 2E_{23}. As a check, the map E12+2E23E_{12} + 2E_{23} sends a0+a1t+a2t2a_0 + a_1 t + a_2 t^2 to a1+2a2ta_1 + 2a_2 t, which is its derivative.

How this lesson connects