Lecture 29 · Week 8· 13:57
Linear maps
Linear maps between vector spaces, kernel and image.
Saved in this browser only. No account needed.
TranscriptThe full text of the lecture. Click any sentence to play the video from there.
Today: maps between vector spaces
Welcome back, and welcome to week eight. In lecture thirteen we met linear transformations from F n to F m: maps that respect sums and scalar multiples. Since then, we have met vector spaces of polynomials, matrices and functions, where sums and scalar multiples make sense too. So the same idea works between any two vector spaces. In lecture twenty five, the coordinate map was already a map of this kind, from a vector space V to F n. Many natural operations behave the same way: taking the derivative of a polynomial, transposing a matrix, or reading off the values of a polynomial at two points.
Today we define linear maps between any two vector spaces, see their first properties, and meet the two subspaces that come with every linear map: its kernel and its image. We compute them in examples, and prove that a linear map is completely fixed by what it does to a basis.
Linear maps
Let V and W be vector spaces over the same field F. A map T from V to W is linear if two rules hold. First, T of u plus v equals T of u plus T of v, for all u and v in V. Second, T of c u equals c times T of u, for every vector u and every scalar c. On the left of each rule, the sum and the scalar multiple are taken in V. On the right, they are taken in W. So a linear map translates the operations of V into the operations of W. In a picture: u and v, and their sum, on the left. A linear map sends the sum to the sum of the images, on the right. For V equal to F n and W equal to F m, this is exactly the definition from lecture thirteen.
Linear maps have some first consequences. Let T be linear. First, T sends the zero vector of V to the zero vector of W. Second, T of minus v is minus T of v. And third, T of any linear combination is the same combination of the images. Here are the proofs. For the first: by lecture twenty one, the zero vector of V is zero times itself. By the second rule, with c equal to zero, T of zero times the zero vector is zero times T of the zero vector, which, by lecture twenty one again, is the zero vector of W. For the second: by lecture twenty one, minus v is minus one times v. So T of minus v is minus one times T of v, which is minus T of v, again by lecture twenty one.
The third is proved by induction on the number of terms. For one term, it is the scaling rule. For more terms, the sum rule splits off the last term, the induction hypothesis handles the rest, and the scaling rule pulls out the last weight. Conversely, if T of c u plus d v always equals c T of u plus d T of v, then T is linear. Take c and d equal to one for the sum rule. For the scaling rule, take d equal to zero, and use lecture twenty one: zero times a vector is the zero vector. The third consequence is the working form of linearity: once we know T on a few vectors, we know it on all their combinations. And the first gives a quick test: a map that does not send zero to zero is not linear.
Examples
Now some examples. The zero map sends every vector to zero, and the identity map of V sends every vector to itself. Both are linear. Every m by n matrix A gives the linear map T A from F n to F m, which multiplies by A. And transposing, from m by n matrices to n by m matrices, is linear: by lecture fifteen, the transpose of a sum is the sum of the transposes, and the transpose of c A is c times A transpose. Differentiation is linear too. Let D send a polynomial of degree at most three to its derivative. So D of a zero, plus a one x, plus a two x squared, plus a three x cubed, is a one, plus two a two x, plus three a three x squared.
Polynomials are added coefficient by coefficient. So D of p plus q has the coefficients a one plus b one, then two times the sum a two plus b two, then three times the sum a three plus b three. Split each one, and we get D of p plus D of q. And D of c p has the coefficients c a one, two c a two and three c a three, which is c times D of p. These are the sum rule and the constant multiple rule of calculus. Here is one more. Let T send a polynomial p of degree at most two to the pair of values, p of zero and p of one. For p equal to a zero, plus a one x, plus a two x squared, this pair is a zero, and a zero plus a one plus a two. For a sum p plus q, each entry is the entry for p plus the entry for q, and for c p, each entry is multiplied by c. So T is linear. And now two maps that are not linear. The map S, which sends p to p plus one, sends the zero polynomial to one. A linear map must send zero to zero, so S is not linear.
The map Q, which sends p to p squared, does send zero to zero. But Q of two times one is four, while two times Q of one is only two. The scaling rule fails, so Q is not linear either.
Kernel and image
Every linear map comes with two important sets. The kernel of T is the set of vectors in V that T sends to zero. It lives in the domain, V. The image of T is the set of all values T of v, as v runs through V. It lives in the codomain, W. A vector w lies in the image exactly when the equation T of v equals w has a solution. For example, take the map T from R two to R two, with T of x, y equal to x plus y, and one half of x plus y. Here is its picture. The violet line is its kernel, crushed to zero. The blue line is its image, everything T reaches. And each vector v goes to T of v, in green.
Here is the first theorem about them. For every linear map T from V to W, the kernel of T is a subspace of V, and the image of T is a subspace of W. For the kernel, we check the three conditions. Zero is in the kernel, because T of zero is zero. If u and v are in the kernel, then T of u plus v is T of u plus T of v, which is zero plus zero. And T of c u is c times T of u, which is c times the zero vector, so the zero vector, by lecture twenty one. So the kernel is closed under sums and scalar multiples. For the image: zero is T of zero, so it is in the image. A sum of two values, T of u plus T of v, is T of u plus v, again a value. And c times T of u is T of c u, again a value.
For a matrix map, these are old friends. The kernel of T A is the set of x with A x equal to zero: the null space of A. And the image of T A is the set of all products A x: the column space of A. So kernel and image extend the null space and the column space to every linear map.
Computing kernels and images
To find an image, we do not need to apply T to every vector. If v one up to v k span V, then the image of T is spanned by their images, T of v one up to T of v k. Here is why. Every v in V is a combination of v one up to v k. So T of v is the same combination of their images, which lies in the span. And conversely, every combination of the images is T of the same combination of the v i, so it is a value of T. Let's compute with the map that sends p to the pair p of zero, p of one. Its kernel first. T of p is zero when a zero is zero, and a zero plus a one plus a two is zero. So a one is minus a two.
Then p is minus a two x, plus a two x squared, which is a two times x squared minus x. So the kernel is the span of x squared minus x: the polynomials of degree at most two with roots zero and one. Now the image. The polynomials one, x and x squared span P two. T of one is (one, one), T of x is (zero, one), and T of x squared is again (zero, one). The first two are not multiples of each other, so they are independent, and by lecture twenty, two independent vectors in R two form a basis. So the image is all of R two. For any two numbers, some polynomial of degree at most two takes those values at zero and at one.
For differentiation, the kernel consists of the polynomials whose derivative is zero. That means a one, two a two and three a three are all zero, so only the constant term is left. The kernel is the span of the polynomial one. And the image is spanned by the derivatives of one, x, x squared and x cubed: zero, one, two x and three x squared. They span all of P two. Every polynomial of degree at most two is a derivative.
A linear map is fixed by a basis
We have seen that the values of a linear map on a spanning list determine its image. In fact they determine the whole map. And on a basis, we may choose the values freely. Here is the theorem. Let v one up to v n be a basis of V, and let w one up to w n be any vectors in W. Then there is exactly one linear map T from V to W that sends each v i to w i. It sends c one v one, plus and so on, up to c n v n, to c one w one, plus and so on, up to c n w n. This proof has two parts, so take it slowly, and pause if you need to. First, uniqueness. Suppose T and S are both linear, with the values w i on the basis. Every v is a combination of the basis vectors, so T of v and S of v are both the same combination of the w i. So T equals S.
Now existence. Call the basis B. By lecture twenty three, every v in V has exactly one list of coordinates in B, c one up to c n. So the formula, T of v equals c one w one, plus and so on, up to c n w n, defines a map with no choices to make. And v j has the coordinates e j, so T of v j is w j. It remains to check that this T is linear. Let u have the coordinates d one up to d n. By lecture twenty five, the coordinates of u plus v are the coordinates of u plus the coordinates of v. So T of u plus v is the sum of d i plus c i, times w i, which splits into T of u plus T of v. And the coordinates of c v are c times the coordinates of v. So T of c v is the sum of c c i times w i, which is c times T of v. This proves the theorem.
Let's use it in the plane. Take v one equal to (one, one), and v two equal to (one, minus one). They are not multiples of each other, so by lecture twenty they form a basis of R two. Prescribe that T sends v one to w one, which is (one, two), and v two to w two, which is (one, zero). By the theorem, exactly one linear map does this. Where does it send the vector (three, one)? First, we write it in the basis. The equation c one v one plus c two v two equals (three, one), gives two equations: c one plus c two equals three, and c one minus c two equals one. Adding the two equations gives two c one equal to four, so c one is two, and c two is one. So the vector (three, one), is two v one plus v two. And T of it is two w one plus w two, which is (two, four), plus (one, zero). That is the vector (three, four).
Every other vector is found the same way. On the picture, the whole grid of v one and v two moves onto the grid of w one and w two. Notice what this means. A linear map on an n dimensional space is stored in just n vectors, the values on a basis. Two linear maps that agree on a basis are the same map.
Summary
Why does this matter? Since a linear map on an n dimensional space is fixed by n vectors, writing those vectors in a basis of W turns the map into a matrix. That is the subject of lecture thirty two. And in lecture thirty, we relate the sizes of the kernel and the image. Let's summarise. A linear map between two vector spaces respects sums and scalar multiples. It sends zero to zero, and combinations to the same combinations of the images. Its kernel, the vectors sent to zero, is a subspace of the domain. Its image, everything it reaches, is a subspace of the codomain. For a matrix, they are the null space and the column space, and the image is spanned by the images of any spanning list.
And a linear map is fixed by its values on a basis: any choice of values on a basis gives exactly one linear map. Before the next lecture, read section six point one of the course book, try the problems on sheet eight about linear maps, and do the lecture check on this lecture's page at Open Semester dot com. Next time: the rank nullity theorem, and which linear maps are one to one, and which are onto. See you there.
In this lecture
Materials
Check yourself
3 questions, from warm-up to stretch
Work each one out on paper, type your answer and press Check. Stuck? Open a hint; the worked solution is there when you need it.
- Question 1 of 3 Warm-up
Which of these maps are linear? , ; , ; , . Also find .
Hint 1 of 2
First test : a linear map sends to (Proposition 6.1.2(a)). A map that passes this test can still break a rule of Definition 6.1.1: try a vector and the scalar .
Hint 2 of 2
: compare with . For , use and , as in Example 6.1.3(e).
Worked solution
- , so is not linear (Proposition 6.1.2(a)).
- For and a scalar : , and . So is linear.
- , but and differ. Rule (ii) fails, so is not linear, just like in Example 6.1.4(b).
- For : and , so .
- Question 2 of 3 Core
Let , , where is the derivative of ; is linear. Its kernel is : find and . Is ? Find and with .
Hint 1 of 2
For , , so . Set both entries to and solve for and in terms of , as in Example 6.1.9.
Hint 2 of 2
For the image, apply to the spanning list (Proposition 6.1.8). For : and .
Worked solution
- For : and .
- Kernel: gives , and then gives . So and : , . Check: and its derivative are both at .
- Image: by Proposition 6.1.8 it is spanned by , and . The first two are not multiples of each other, so they are independent (Proposition 2.6.5(c)) and form a basis of (Theorem 4.2.16(a)). So .
- gives and . Check: has and .
- Question 3 of 3 Stretch
In the vectors and form a basis. Let be the linear map with and . Find and . Is there a linear map with these two values that also has ?
Hint 1 of 2
By Theorem 6.1.12, first write the input in the basis: means and . Then .
Hint 2 of 2
In the same way, and . A linear map has no choice about (Proposition 6.1.2(c)).
Worked solution
- means and . Subtracting, , so : .
- By Theorem 6.1.12, .
- means and , so and . Then .
- Check with the standard matrix: gives . So , and .
- Finally, , so every linear map with the two given values has : no such map exists.
How did it go?