Chapter 9. Linear maps

Up until now we have looked only at individual vector spaces in isolation. We now study how different vector spaces talk to each other.

§9.1 Definition and examples

Definition 9.1 (Linear map). Let 𝑉 and 𝑊 be vector spaces. A linear map is a function 𝑇:𝑉→𝑊 satisfying two axioms:

Other words for “map” include “mapping”, “operator”, “transform”, “transformation”, “function”, and “morphism”; we draw no distinction between them. If 𝑇(𝐯)=𝐰, we can also write 𝐯↦𝐰, particularly if we don’t want to bother naming 𝑇.

Let’s start with some examples in ℝ2.

Examples of linear transformations

The following are all linear transformations from ℝ2 to ℝ2:

  • The constant function where 𝐯↦𝟎.
  • Projection onto the 𝑥-axis: ⟨𝑥,𝑦⟩↦⟨𝑥,0⟩.
  • Rotation by an angle.
  • Reflection across a line.
  • Projection onto the line 𝑦=𝑥.
  • The formula

    (𝑥𝑦)↦(𝑥+2𝑦3𝑥+4𝑦)

    is a linear transformation. (If you’ve seen matrix multiplication before, you may recognize this as multiplication by the matrix (1234).)

Here are some more general ones:

Examples of linear maps
  • ℝ3→ℝ by ⟨𝑎,𝑏,𝑐⟩↦4𝑎+2𝑏+𝑐.
  • ℝ3→ℙ2 by ⟨𝑎,𝑏,𝑐⟩↦𝑎𝑥2+𝑏𝑥+𝑐.
  • ℙ2→ℝ by 𝑎𝑥2+𝑏𝑥+𝑐↦9𝑎+3𝑏+𝑐, that is, “evaluation at 3”.
Exercise 9.2. Show that if 𝑇:𝑉↦𝑊 is a linear map then 𝑇(𝟎)=𝟎 in any linear transformation.

More broadly, pretty much every operator you’ll meet in this book is linear. We won’t have any practical use of maps that aren’t linear.

§9.2 Linear maps are determined by a basis

The important principle to understand is that if you know the values of a transformation 𝑇 at enough points, you can recover the rest.

Here’s an easy example to start:

Question 9.3. If 𝑇:ℝ2→ℝ2 is a linear transform and it’s given that

𝑇((34))=(𝜋9) and 𝑇((100100))=(012)

what are the vectors for 𝑇((103104)) and 𝑇((203204))?

Solution.

𝑇((103104))=(𝜋9)+(012)=(𝜋21)𝑇((203204))=(𝜋9)+2(012)=(𝜋33).

□

Here’s another example.

Question 9.4. If 𝑇:ℝ2→ℝ2 is a linear transform and it’s given that

𝑇((10))=(13) and 𝑇((01))=(24)

what is 𝑇((5070))?

Solution.

𝑇((5070))=50(13)+70(24)=(190430).

□

More generally, the second question shows that if you know 𝑇((10)) and 𝑇((01)) you ought to be able to calculate the output of 𝑇 at any other vector like (5070):

𝑇((𝑎𝑏))=𝑎𝑇((10))+𝑏𝑇((01)).

More generally, from understanding the solution to the above two questions, you should understand the following important statement that we’ll use over and over.

Idea
Let 𝑇:ℝ𝑛→ℝ𝑚 be a linear transformation. If you know the outputs 𝑇 on a basis, then you can deduce the value of 𝑇 at any other input.

Let’s make sure you understand this principle well.

Exercise 9.5. Let 𝑇:ℝ3→ℝ2 be a linear map for which 𝑇(𝐞1)=⟨1,3⟩, 𝑇(𝐞2)=⟨5,7⟩ and 𝑇(𝐞3)=⟨9,11⟩. Find nonzero integers 𝑎, 𝑏, 𝑐 such that 𝑇(⟨𝑎,𝑏,𝑐⟩)=𝟎.

§9.3 Composing linear maps

TODO. write this
Proposition 9.6. If 𝑇:𝑉→𝑊 and 𝑆:𝑊→𝑋 are linear maps, then 𝑆∘𝑇:𝑉→𝑋 is a linear map.

§9.4 Example: repeatedly applying a map 𝑇

TODO. write this

§9.5 Kernels and images

Suppose 𝑇:𝑉→𝑊 is a linear map. There are two important subspaces associated to 𝑇 we’ll define now.

Definition 9.7 (Kernel). Let 𝑇:𝑉→𝑊 be a linear map.

Exercise 9.8. Verify that these are indeed subspaces.
TODO. write a LOT of examples

The theorem Theorem 9.9 gives a picture Figure 13 that shows how you can think about how this.

Theorem 9.9 (Picking a basis for linear maps). Let 𝑇:𝑉→𝑊 be a map of finite-dimensional vector spaces, with 𝑛=dim𝑉, 𝑚=dim𝑊. Then there exists a basis 𝐯1, …, 𝐯𝑛 of 𝑉 and a basis 𝐰1, …, 𝐰𝑚 of 𝑊, as well as an integer 0≤𝑘≤min(𝑚,𝑛), such that

𝑇(𝐯𝑖)={𝐰𝑖if𝑖≤𝑘𝟎if𝑖>𝑘.

In particular, dimker𝑇=𝑛−𝑘 and dimim𝑇=𝑘.

Theorem 9.9 is ultra important and forms the foundation for our study of 𝑇. I’ll even draw a cartoon of it to make sure you remember.

Figure 13: The picture of a linear map 𝑇:𝑉→𝑊 in a convenient basis.

Proof of Theorem 9.9. Let ker𝑇 have dimension 𝑛−𝑘. We can pick 𝐯𝑘+1, …, 𝐯𝑛 a basis of ker𝑇. Then extend it to a basis 𝐯1, …, 𝐯𝑛 of 𝑉.

I claim that 𝐰1=𝑇(𝐯1), 𝐰2=𝑇(𝐯2), …, 𝐰𝑘=𝑇(𝐯𝑘) are linearly dependent. Indeed, if there was some linear dependence between them, we would get

𝟎=∑𝑖=1𝑘𝑎𝑖𝑇(𝐯𝑖)=𝑇(∑𝑖=1𝑘𝑎𝑖𝐯𝑖)

which would mean that the vector ∑𝑖=1𝑘𝑎𝑖𝐯𝑖 was in ker𝑇. But we chose ker𝑇 is the span of the other basis vectors 𝐯𝑘+1, …, 𝐯𝑛 so this could only happen if all 𝑎𝑖 were 0.

Hence, 𝐰𝑖 are linearly independent in 𝑉. By definition, they also span the subspace im𝑇 of 𝑊, and we can complete it to a basis of 𝑊.□

§9.6 Rank

In Phase I, you probably figured out the most important number to know about each vector space was its dimension. Similarly, the most important number about a linear map is its rank: that’s the number 𝑘 in Theorem 9.9 and Figure 13.

Definition 9.10 (Rank). Let 𝑇:𝑉→𝑊 be a linear map between finite-dimensional vector spaces. The rank of 𝑇 is defined as

rank(𝑇)≔dimim𝑇.

Using this term, we could rephrase the conclusion dimker𝑇=𝑛−𝑘 in Theorem 9.9 as the following corollary:

Corollary 9.11 (Rank-nullity theorem). Let 𝑉 and 𝑊 be finite-dimensional vector spaces. If 𝑇:𝑉→𝑊, then

dim𝑉=dimker𝑇+rank(𝑇).

(Some other textbooks use the word nullity to refer to dimker𝑇, but we won’t do so.)

TODO. examples

§9.7 Full rank

From Theorem 9.9, we know

rank(𝑇)≤min(dim𝑉,dim𝑊).

We use the words “full rank” to mean “largest possible rank under Theorem 9.9”, that is:

Definition 9.12 (Full rank). Let 𝑇:𝑉→𝑊 be a linear map between finite-dimensional vector spaces. We say 𝑇 has full rank if

rank(𝑇)=min(dim𝑉,dim𝑊).

There are special words for particular cases of “full rank”. However, they may not be obviously related at first:

Definition 9.13 (Injectivity and surjectivity). Let 𝑇:𝑉→𝑊 be a linear map.

Exercise 9.14. Show that 𝑇 is injective if and only if ker𝑇={𝟎}.

Depending on your prior education, you may recognize the words “injective”, “surjective”, “bijective” from many other contexts. They aren’t specific to linear algebra; you can use these words for any sort of function. Also, the words one-to-one and onto are older synonyms for “injective” and “surjective”, but we won’t use these words because they are too easy to confuse with each other.

What does this have to do with rank? Because of this:

Theorem 9.15 (Injectivity and surjectivity are special cases of full rank). Let 𝑇:𝑉→𝑊 be a linear map, with 𝑉 and 𝑊 finite-dimensional. Then:

  1. 𝑇 is injective if and only if rank(𝑇)=dim𝑉.
  2. 𝑇 is surjective if and only if rank(𝑇)=dim𝑊.
  3. 𝑇 is an isomorphism if and only if rank(𝑇)=dim𝑉=dim𝑊.
Proof. The first item is just Exercise 9.14 restated. The second item is by definition. The third item follows by putting the other two together.□
TODO. examples

§9.8 Example: Lagrange interpolation

In a lot of situations, you might already know that dim𝑉=dim𝑊 In that case, Theorem 9.15 plays a similar role to Proposition 3.17 as a “50% off” result: if you want 𝑇 to be an isomorphism, you only need one of injective or surjective.

Here’s an example application of this situation that might look at first like it comes out of your high school algebra class, since it doesn’t reference linear algebra at all. Don’t worry, it’s related.

Theorem 9.16 (Lagrange interpolation). Suppose (𝑥1,𝑦1), (𝑥2,𝑦2), …, (𝑥𝑛+1,𝑦𝑛+1) are 𝑛 points with different 𝑥-coordinates. Then there exists a unique polynomial 𝑃∈ℙ𝑛 such that 𝑃(𝑥𝑖)=𝑦𝑖 for all 𝑖.

When 𝑛=1 for example, this loosely says there is a unique line joining two points.

TODO. draw an illustration for 𝑛=2

Proof. Consider the linear map

𝑇:ℙ𝑛→ℝ𝑛+1 defined by 𝑃↦(𝑃(𝑥1)𝑃(𝑥2)⋮𝑃(𝑥𝑛+1)).

This is indeed a linear map because, well, 𝑇(𝑃+𝑄)=𝑇(𝑃)+𝑇(𝑄) and 𝑇(𝑐𝑃)=𝑐𝑇(𝑃). The problem is to show that 𝑇 is an isomorphism

Since dimℙ𝑛=𝑛+1=dimℝ𝑛+1, by Theorem 9.15, we only need to prove 𝑇 is injective to obtain that it is bijective. Equivalently, we need to show that dimker𝑇=0.

But suppose 𝑃∈ker𝑇, meaning 𝑃(𝑥1)=⋯=𝑃(𝑥𝑛+1)=0. Then 𝑃 has roots at 𝑛+1 different inputs, yet deg𝑃≤𝑛. So 𝑃 must be exactly the zero polynomial, as desired.□

§9.9 Exercises

TODO. these exercises are probably still too abstract right now and should be concretized a bit
TODO. eigen exercise here might be good
Exercise 9.17. Let 𝑉 and 𝑊 be finite-dimensional vector spaces, with 𝑛=dim𝑉 and 𝑚=dim𝑊. Show that the set of all linear maps from 𝑉 to 𝑊 is itself a vector space, and calculate its dimension in terms of 𝑚 and 𝑛.

Exercise 9.18. Let 𝑉 and 𝑊 be finite-dimensional vector spaces with nonzero dimension, and consider linear maps 𝑇:𝑉→𝑊. Complete the following table by writing “sometimes”, “always”, or “never” for each entry.

𝑇 injective𝑇 surjective𝑇 isomorphism
If dim𝑉>dim𝑊…
If dim𝑉=dim𝑊…
If dim𝑉<dim𝑊…

Exercise 9.19 (*) (TSTST 2014). Let 𝑃(𝑥) and 𝑄(𝑥) be arbitrary polynomials with real coefficients, and let 𝑑 be the degree of 𝑃(𝑥). Assume that 𝑃(𝑥) is not the zero polynomial. Prove that there exist polynomials 𝐴(𝑥) and 𝐵(𝑥) such that

  1. Both 𝐴 and 𝐵 have degree at most 𝑑2,
  2. At most one of 𝐴 and 𝐵 is the zero polynomial,
  3. 𝑃 divides 𝐴+𝑄⋅𝐵.

Exercise 9.20. Let 𝑉 be a finite-dimensional vector space. Let 𝑇:𝑉→𝑉 be a linear map which is idempotent, meaning 𝑇(𝑇(𝐯))=𝑇(𝐯) for each 𝐯∈𝑉. Prove that

𝑉=ker𝑇⊕im𝑇.