Jump to content

Exercises Linear Maps – "Math for Non-Geeks"

From Wikibooks, open books for an open world

We have compiled some tasks on linear maps here. The proof structures can help you to solve other similar tasks. As a reminder, here is the definition of a linear map:

Definition (Linear map)

Let f:V→W be a mapping between the two vector spaces V and W. We call f a linear map from V to W if the following two properties are satisfied:

  1. Additivity: For all v1,v2∈V we have f(v1+v2)=f(v1)+f(v2)
  2. Homogeneity: For all v∈V and λ∈K we have f(λ⋅v)=λ⋅f(v)

Proving linearity of a mapping

[edit | edit source]

Linear maps from ℝn to ℝm

[edit | edit source]
Exercise (Linear map into a field)

Let f:ℝ3→ℝ be defined by f((x,y,z)T):=5x+y−3z. Show that the map f is linear.

How to get to the proof? (Linear map into a field)

First you have to show the additivity and then homogeneity of the map.

Solution (Linear map into a field)

Proof step: Additivity

For this step, let v=(v1v2v3)∈ℝ3 and w=(w1w2w3)∈ℝ3.

f(v+w)== f((v1v2v3)+(w1w2w3))=f(v1+w1v2+w2v3+w3)↓ definition of f= 5(v1+w1)+(v2+w2)−3(v3+w3)↓ distributivity in ℝ= 5v1+5w1+v2+w2−3v3−3w3↓ commutativity and associativity in ℝ= (5v1+v2−3v3)+(5w1+w2−3w3)↓ definition of f= f(v1v2v3)+f(w1w2w3)=f(v)+f(w)

Thus f is additive.

Proof step: Homogeneity

Let v=(v1v2v3)∈ℝ3 and λ∈ℝ.

f(λ⋅v)=f(λ⋅(v1v2v3))=f(λv1λv2λv3)↓ definition of f= 5(λv1)+(λv2)−3(λv3)↓ associativity of the multiplication in ℝ= λ⋅(5v1)+λ⋅(v2)−λ⋅(3v3)↓ distributivity in ℝ= λ⋅(5v1+v2−3v3)↓ definition of f= λ⋅f(v1v2v3)=λ⋅f(v)

Thus f is homogeneous and f is linear.

Exercise (Linear map from ℝ3 to ℝ2)

Show that the map L:ℝ3→ℝ2 with L(v1v2v3):=(v2−v33v1+5v3) is linear.

How to get to the proof? (Linear map from ℝ3 to ℝ2)

You have to show that for v=(v1,v2,v3)T and w=(w1,w2,w3)T it holds true that

L((v1v2v3)+(w1w2w3))=L(v1v2v3)+L(w1w2w3)

And you have to show that for ρ∈ℝ, it holds true that

L(ρ⋅(v1v2v3))=ρ⋅L(v1v2v3)

Solution (Linear map from ℝ3 to ℝ2)

Aktuelles Ziel: Additivity

L((v1v2v3)+(w1w2w3))=L(v1+w1v2+w2v3+w3)↓ definition of L= ((v2+w2)−(v3+w3)3(v1+w1)+5(v3+w3))↓ commutative, associative, distributive in ℝ= ((v2−v3)+(w2−w3)(3v1−5v3)+(3w1−5w3))= ((v2−v3)(3v1−5v3))+((w2−w3)(3w1−5w3))↓ definition of L= L(v1v2v3)+L(w1w2w3)

Aktuelles Ziel: Scaling

L(ρ⋅(v1v2v3))=L(ρv1ρv2ρv3)↓ definition of L= (ρv2−ρv33(ρv1)+5(ρv3))↓ commutative, associative, distributive in ℝ= (ρ(v2−v3)(ρ(3v1+5v3))= ρ⋅((v2−v3)(3v1+5v3))↓ definition of L= ρ⋅L(v1v2v3)

Exercise (Linearity of the embedding)

Show that for m≥n, the map f:ℝn→ℝm:(x1,x2,…,xn)T↦(x1,x2,…,xn,0,…,0⏟(m−n) times)T is linear.

Solution (Linearity of the embedding)

Let v=(v1,…,vn)T∈ℝn and w=(w1,…,wn)T∈ℝn, as well as λ,μ∈ℝ. By definition of the map f, we have that

f(λv+μw)=f((λv1+μw1⋮λvn+μwn))=(λv1+μw1⋮λvn+μwn0⋮0)=λ⋅(v1⋮vn0⋮0)+μ⋅(w1⋮wn0⋮0)=λf(v)+μf(w).

So f is linear.


We consider an example for a linear map of ℝ2 to ℝ2:

f:ℝ2→ℝ2 with f(x1x2)=(x1+x2x1−5x2)

Exercise (Linearity of f)

Show that the map f:ℝ2→ℝ2,(x1x2)↦(x1+x2x1−5x2) is linear.

Proof (Linearity of f)

ℝ2 is an ℝ-vector space. In addition, the map is well-defined.

Proof step: additivity

Let (x1,x2)T and (y1,y2)T be any vectors from the plane ℝ2. Then, we have:

f((x1x2)+(y1y2))=f(x1+y1x2+y2)↓ definition of f=((x1+y1)+(x2+y2)(x1+y1)−5⋅(x2+y2))↓ distributive law=((x1+x2)+(y1+y2)(x1−5x2)+(y1−5y2))↓ separate vectors=(x1+x2x1−5x2)+(y1+y2y1−5y2)↓ definition of f=f(x1x2)+f(y1y2)


Proof step: homogeneity

Let λ∈ℝ and (x1,x2)T∈ℝ2. Then:

f(λ⋅(x1x2))=f(λ⋅x1λ⋅x2)↓ definition of f=(λx1+λx2λx1−5λx2)↓ distributive law=(λ(x1+x2)λ(x1−5x2))↓ scalar multiplication=λ⋅((x1+x2)(x1−5x2))↓ definition of f=λ⋅f(x1x2)

Thus, the map is linear.


Important special cases

[edit | edit source]
Exercise (The identity is a linear map)

Let V be a K-vector space. Prove that the identity id⁡:V→V with id⁡(v)=v is a linear map.

Proof (The identity is a linear map)

The identity is additive: Let v,w∈V, then.

id⁡(v+w)=v+w=id⁡(v)+id⁡(w)

The identity is homogeneous: Let λ∈K and v∈V, then

id⁡(λ⋅v)=λ⋅v=λ⋅id⁡(v)


Exercise (The map to zero is a linear map)

Let V,W be two K-vector spaces. Show that the map to zero f:V→W, which maps all vectors v∈V to the zero vector 0W, is linear.

Proof (The map to zero is a linear map)

f is additive: let v1,v2 be vectors in V. Then

f(v1+v2)=0W=0W+0W=f(v1)+f(v2)

f is homogeneous: Let v∈V and let λ∈K. Then

f(λ⋅v)=0W=λ⋅0W=λ⋅f(v)

Thus, the map to zero is linear


Linear maps between function spaces

[edit | edit source]
Exercise (Mapping on a function space)

Consider the function space Fun⁡([0,1],ℝ) of all functions from ℝ to ℝ, as well as the map

ϕ:Fun⁡([0,1],ℝ)→ℝ,f↦f(0).

Show that ϕ is linear.

Solution (Mapping on a function space)

The operations on the function space are defined element-wise in each case. That means: for f,g∈Fun⁡([0,1],ℝ), λ∈ℝ and x∈[0,1] we have that (f+g)(x)=f(x)+g(x) and (λf)(x)=λf(x). In particular, this is true for x=0, which implies

ϕ(f+g)=(f+g)(0)=f(0)+g(0)=ϕ(f)+ϕ(g)

and

ϕ(λf)=(λf)(0)=λf(0)=λϕ(f)

Thus, we have established linearity.

Exercise (The composition with a map is linear.)

Let V be a vector space, let M,N be sets, and let Fun(M,V) or Fun(N,V) be the vector space of functions from M or N to V. Let t∈Fun(N,M) be arbitrary but fixed. We consider the mapping

Θ:Fun(M,V)→Fun(N,V)g↦g∘t

Show that Θ is linear.

It is important that you exactly follow the definitions. Note that Θ is a map that assigns to every map of M to V a map of N to V. These maps, which are elements of Fun(M,V) and Fun(N,V) respectively, need not themselves be linear, since there is no vector space structure on the sets M and N.

Summary of proof (The composition with a map is linear.)

In order to prove the linearity of Θ, we need to check the two properties again:

  1. Θ is additive: Θ(g+h)=Θ(g)+Θ(h) for all g,h∈Fun(M,V)
  2. Θ is homogeneous: Θ(λ⋅g)=λ⋅Θ(g) for all g∈Fun(M,V) and λ∈K

So at both points an equivalence of maps N→V is to be shown. For this, we evaluate the maps at every m element y∈N.

Proof (The composition with a map is linear.)

Let g,h∈Fun(M,V).

Proof step: additivity

For all n∈N we have that

Θ(g+h)(n)=↓ definition of Θ= ((g+h)∘t)(n)= (g+h)(t(n))↓ vector addition on Fun(M,V)= g(t(n))+h(t(n))= (g∘t)(n)+(h∘t)(n)↓ definition of Θ= Θ(g)(n)+Θ(h)(n)↓ vector addition on Fun(N,V)= (Θ(g)+Θ(h))(n)

Thus, we have shown Θ(g+h)=Θ(g)+Θ(h), i.e., Θ is additive.

Let g∈Fun(M,V) and λ∈K.

Proof step: homogeneity

For all n∈N we have that

Θ(λ⋅g)(n)=↓ definition of Θ= ((λ⋅g)∘t)(n)= (λ⋅g)(t(n))↓ scalar multiplication on Fun(M,V)= λ⋅g(t(n))= λ⋅(g∘t)(n)↓ definition of Θ= λ⋅Θ(g)(n)↓ scalar multiplication on Fun(N,V)= (λ⋅Θ(g))(n)

Thus, we have shown Θ(λ⋅g)=λ⋅Θ(g), i.e., Θ is homogeneous.

Now, additivity and homogeneity of Θ implies that Θ is a linear map.


Exercise (Sequence space)

Let V be the ℝ-vector space of all real-valued sequences. Show that the map

f:V→V(a0,a1,a2,…)↦(a1,a2,a3,…)

is linear.

How to get to the proof? (Sequence space)

To show linearity, two properties need to be checked:

  1. f is additive: f(v+w)=f(v)+f(w) for all v,w∈V
  2. f is homogeneous: f(λ⋅v)=λ⋅f(v) for all v∈V and λ∈ℝ

The vectors v and w are sequences of real numbers, i.e. they are of the form v=(a0,a1,a2,…) and w=(b0,b1,b2,…) with ak,bk∈ℝ for all k∈ℕ0.

Proof (Sequence space)

Proof step: additivity

Let v=(a0,a1,a2,…)∈V and w=(b0,b1,b2,…)∈V. Then, we have

f(v+w)=f((a0,a1,a2,…)+(b0,b1,b2,…))= f(a0+b0,a1+b1,a2+b2,…)= (a1+b1,a2+b2,a3+b3,…)= (a1,a2,a3,…)+(b1,b2,b3,…)= f(a0,a1,a2,…)+f(b0,b1,b2,…)= f(v)+f(w)

It follows that f is additive.

Proof step: homogeneity

Let v=(a0,a1,a2,…)∈V and λ∈ℝ. Then, we have

f(λ⋅v)=f(λ⋅(a0,a1,a2,…))= f(λa0,λa1,λa2,…)= (λa1,λa2,λa3,…)= λ⋅(a1,a2,a3,…)= λ⋅f(a0,a1,a2,…)= λ⋅f(v)

So f is homogeneous.

Thus, it was proved that f is a ℝ-linear map.


Construction of a linear map from given values

[edit | edit source]
Exercise (Construction of a linear map)

Let a1=(1,0,0)T,a2=(0,1,0)T,a3=(1,1,0)T,a4=(0,0,1)T∈ℝ3.

Further, consider b1=(1,5)T,b2=(5,3)T,b3=(6,8)T,b4=(0,1)T∈ℝ2.

Find a linear map f:ℝ3→ℝ2 with f(ai)=bi for all i∈{1,2,3,4}.

How to get to the proof? (Construction of a linear map)

Hint: Use the principle of linear continuation.

Solution (Construction of a linear map)

We see that (a1,a2,a4) is a basis of ℝ3, namely the standard basis.

According to the theorem of linear continuation, we can construct a linear map

f:ℝ3→ℝ2 defined by f(a1):=b1,f(a2):=b2,f(a4):=b4

Now we only have to check if f(a3)=b3 is satisfied. It is true that a3=a1+a2, so

f(a3)=f(a1+a2)=f(a1)+f(a2)=b1+b2=(1,5)T+(5,3)T=(6,8)T=b3

Thus, the condition f(ai)=bi is satisfied for each i∈{1,2,3,4}. The mapping f is linear by definition, so we are done.

Exercise (Linear maps under some conditions)

Let u=(1,0,−1)T,v=(0,1,2)T and w=(1,2,3)T. Is there an ℝ-linear map f:ℝ3ℝ2 that satisfies f(u)=(0,1)T,f(v)=(1,−1)T,f(w)=(2,1)T?

How to get to the proof? (Linear maps under some conditions)

First you should check if the vectors u,v,w are linearly independent. If this is the case, {u,v,w} is a basis of ℝ3 because of dim⁡(ℝ3)=3. Using the principle of linear continuation, the existence of such a linear map would follow f. Let thus λ1,λ2,λ3∈ℝ:

λ1u+λ2v+λ3w=(λ1+λ3λ2+2λ3−λ1+2λ2+3λ3)=(000).

But then also λ1=−λ3,λ2=−2λ3 and so 2λ1=λ2 must be fulfilled. However, this equation has not only the "trivial" solution λ1=λ2=λ3=0. In fact, the upper equation is satisfied for λ1=1,λ2=2,λ3=−1. Thus, one obtains

u+2v=w.

For such a map f, the relation f(u)+2f(v)=f(w) would then have to hold, which is a contradiction to

f(u)+2f(v)=(2,−1)T,f(w)=(2,1)T

Solution (Linear maps under some conditions)

Let us first assume that such a linear map f would exist. By the following calculation

u+2v=(10−1)+(024)=(123)=w

we see that f(u)+2f(v)=f(w) should hold. But this is a contradiction to the other conditions, because those would imply

f(u)+2f(v)=(0,1)T+2(1,−1)T=(2,−1)T≠(2,1)T=f(w)

So there is no such f.


Linear independence of two preimages

[edit | edit source]
Exercise

Let L:V→W be a linear map and let v1 and v2 be two distinct vectors from V, both mapped to a vector w∈W with w≠0W. Prove that v1 and v2 are linearly independent.

How to get to the proof?

We show that the two vectors cannot be linearly dependent. So assume that v1,v2 were linearly dependent. Then there would be a ρ∈K such that v1=ρ⋅v2. We now map these two dependent vectors into the vector space W using the linear map L. This yields

w=ρ⋅w

Since by premise, w≠0, this is a contradiction and our assumption of linear dependence must be false.

Solution

Assume that v1 and v2 were linearly dependent. Then there would be a ρ∈K with v1=ρ⋅v2 and ρ≠1. Since the map L is linear, it follows that

w=L(v2)=L(v1)=L(ρ⋅v2)=ρ⋅L(v2)=ρ⋅w

Thus

w=ρ⋅w⇒w−ρ⋅w=(1K−ρ)⋅w=0W⇒1K−ρ=0K∨w=0W

Since by assumption w≠0W, we must have 1K−ρ=0K. But this contradicts our assumption ρ≠1K. Thus, we get a contradiction to our assumption of linear dependence. So the vectors v1,v2∈V are linearly independent.

Exercises: Isomorphisms

[edit | edit source]
Exercise (complex ℝ-vector spaces)

Let V be a finite-dimensional ℂ-vector space. Show that V≅ℝ2dimℂ(V) (interpreted as ℝ-vector spaces).

Solution (complex ℝ-vector spaces)

Set n:=dimℂ(V). We choose a ℂ basis ℬ={b1,…,bn} of V. Define cj:=i⋅bj for all 1≤j≤n.

We have to show that {b1,…,bn,c1,…,cn} is an ℝ-basis of V. Then, dimℝ(V)=2n=dimℝ(ℝ2n). According to a theorem above, we have V≅ℝ2n as ℝ-vector spaces.

We now show ℝ-linear independence.

Proof step: {b1,…,bn,c1,…,cn} is ℝ-linearly independent

Let β1,…,βn,γ1,…,γn∈ℝ and assume that ∑j=1nβj⋅bj+∑j=1nγj⋅cj=0. We substitute the definition for cj, conclude the sums and obtain ∑j=1n(βj+i⋅γj)⋅bj=0. By ℂ-linear independence of bj we obtain βj+i⋅γj=0 for all j∈{1,…,n}. Thus, βj=γj=0 for all j∈{1,…,n}. This establishes the ℝ-linear independence.

Now only one step is missing:

Proof step: {b1,…,bn,c1,…,cn} is a generator with respect to ℝ

Let v∈V be arbitrary.

Since ℬ is a ℂ-basis of V , we can find some λ1,…,λn∈ℂ, such that v=∑j=1nλj⋅bj . We write λj=βj+γji with βj,γj∈ℝ for all j. Then we obtain

v=∑j=1nλj⋅bj=∑j=1n(βj+γji)⋅bj=∑j=1n(βj⋅bj+γj⋅(i⋅bj))=∑j=1n(βj⋅bj+γj⋅cj)=∑j=1nβj⋅bj+∑j=1nγj⋅cj.

So v is inside the ℝ-span of {b1,…,bn,c1,…,cn}. This establishes the assertion.


Exercise (Isomorphic coordinate spaces)

Let K be a field and consider n,m∈ℕ0. Prove that Kn≅Km holds if and only if m=n.

Solution (Isomorphic coordinate spaces)

We know that dim⁡(Kk)=k for all k∈ℕ0. We use the theorem above, which states that finite-dimensional vector spaces are isomorphic exactly if their dimensions coincide. So Kn≅Km holds if and only if n=dim⁡(Kn)=dim⁡(Km)=m .

Exercise (Isomorphism criteria for endomorphisms)

Let K be a field, V a finite-dimensional K-vector space and f:V→V a K-linear map. Prove that the following three statements are equivalent:

(i) f is an isomorphism.

(ii) f is injective.

(iii) f is surjective.

(Note: For this task, it may be helpful to know the terms kernel and image of a linear map. Using the dimension theorem, this exercise becomes much easier. However, we give a solution here, which works without the dimension theorem).

Solution (Isomorphism criteria for endomorphisms)

(i)⟹(ii) and (iii): According to the definition of an isomorphism, f is bijective, i.e. injective and surjective. Therefore (ii) and (iii) hold.

(ii)⟹(i): Let f be an injective mapping. We need to show that f is also surjective. The image im(f):={f(v)|v∈V} of f is a subspace of V. This can be verified by calculation. We now define a mapping f′ that does the same thing as f, except that it will be surjective by definition. This mapping is defined as follows:

f′:V→im(f)v↦f(v)

The surjectivity comes from the fact that every element w∈im(f) can be written as w=f(v′), for a suitable v′∈V. Moreover, the mapping f′ is injective and linear. This is because f already has these two properties. So V and im(f) are isomorphic. Therefore, V and im(f) have the same finite dimension. Since im(f) is a subspace of V, im(f)=V holds. This can be seen by choosing a basis in im(f), for instance the basis given by the vectors v1,…,vn∈im(f). These v1,…,vn are also linearly independent in V, since im(f)⊆V. And since V and im(f) have the same dimension, the v1,…,vn are also a basis in V. So the two vector spaces V and im(f) must now be the same, because all elements from them are K-linear combinations formed with the v1,…,vn. Thus, we have shown that f is surjective.

(iii)⟹(i): Now suppose f is surjective. We need to show that f is also injective. Let ker(f):={v∈V|f(v)=0} be the kernel of the mapping f. You may convince yourself by calculation, that this kernel is a subspace of V. Let v1,…,vk be a basis of ker(f). We can complete this (small) basis to a (large) basis of V, by including the additional vectors vk+1,…,vn. We will now show that f(vk+1),…,f(vn) are linearly independent. So let coefficients λk+1,…,λn∈K be given such that

λk+1f(vk+1)+…+λnf(vn)=0.

By linearity of f we conclude: f(λk+1vk+1+…λnvn)=0. This means that the linear combination

λk+1vk+1+…+λnvn

is in the kernel of f. But we already know a basis of ker(f). Therefore, there are coefficients λ1,…,λk∈K, such that

λk+1vk+1+…+λnvn=λ1v1+…+λkvk.

Because of the linear independence of v1,…,vn it now follows that λ1,…,λn=0. Therefore, the f(vk+1),…,f(vn) are linearly independent. Next, we will show that these vectors also form a basis of V. To do this, we show that each vector in V can be written as a linear combination of the f(vk+1),…,f(vn). Let w∈V. Because of the surjectivity of f, there is a v∈V, with w=f(v). Since the v1,…,vn form a basis of V, there are coefficients λ1,…,λn∈K such that

v=λ1v1+…+λnvn

If we now apply f to this equation, we get:

w=f(v)=λ1f(v1)⏟=0+…+λkf(vk)⏟=0+λk+1f(vk+1)+…+λnf(vn).

Here we used the linearity of f. Since the first k elements of our basis are in the kernel, their images are 0. So we get the desired representation of w:

w=f(v)=λk+1f(vk+1)+…+λnf(vn).

Thus, we have shown that f(vk+1),…,f(vn) forms a linearly independent generator of V. So these vectors form a basis of V. Now, if k were not 0, two finite bases in V would not contain equally many elements. This cannot be the case. Therefore, k=0, so ker(f) is the trivial vector space and f is indeed injective.

Exercise (Function spaces)

Let X be a finite set with n∈ℕ elements and let K be a field. We have seen that the set of functions from X to K forms a K-vector space, denoted by Fun⁡(X,K). Show that Fun⁡(X,K)≅Kn.

Solution (Function spaces)

We already know according to a theorem above that two finite dimensional vector spaces are isomorphic exactly if they have the same dimension. So we just need to show that dim⁡(fun⁡(X,K))=n=dim⁡(Kn) holds.

To show this, we first need a basis of Fun⁡(X,K). For this, let x1,…,xn be the elements of the set X. We define f1,…,fn∈Fun⁡(X,K) by

fj(xi):=δi,j={1, for i=j0, for i≠j.

We now show that the functions f1,…,fn indeed form a basis of Fun⁡(X,K).

Proof step: f1,…,fn are linearly independent

Let α1,…,αn∈K with ∑k=1nαk⋅fk=0 being the zero function. If we apply this function to any xj with j∈{1,…,n}, then we obtain: ∑k=1nαk⋅fk(xj)=0. By definition of f1,…,fn it follows that

0=∑k=1nαkfk(xj)=αj⋅fj(xj)=αj⋅1=αj.

Since j was arbitrary and ∑k=1nαk⋅fk(xj)=0 must hold for all xj∈X, it follows that α1=…=αn=0. So we have shown that f1,…,fn are linearly independent.

Proof step: f1,…,fn generate Fun⁡(X,K)

Let g∈Fun⁡(X,K) be arbitrary. We now want to write g as a linear combination of f1,…,fn. For this we show g=∑j=1ng(xj)⋅fj, i.e., g is a linear combination of f1,…,fn with coefficients g(x1),…,g(xn)∈K. We now verify that g(xi)=∑j=1ng(xj)⋅fj(xi) for all i∈{1,…,n}. Let i∈{1,…,n} be arbitrary. By definition of f1,…,fn we obtain:

∑j=1ng(xj)⋅fj(xi)=g(xi)⋅fi(xi)=g(xi)⋅1=g(xi).

Since equality holds for all i, the functions agree at every point and are therefore identical. So we have shown that f1,…,fn generate Fun⁡(X,K).

Thus, we have proved that f1,…,fn is a basis of Fun⁡(X,K). Since we have n basis elements of Fun⁡(X,K), it follows that dim⁡(Fun⁡(X,K))=n=dim⁡(Kn).

Exercises: Images

[edit | edit source]
Exercise (Associating image spaces to figures)

We consider the following four subspaces from the vector space ℝ2, given as images of the linear maps

  1. f:ℝ2→ℝ2, (x,y)T↦(2(x+y),x−3y)T
  2. g:ℝ2→ℝ2, (x,y)T↦(x,2x)T
  3. h:ℝ2→ℝ2, (x,y)T↦(−3(x−y),(x−y))T
  4. k:ℝ2→ℝ2, (x,y)T↦(x,0)T


Match these four subspaces to the subspaces U1,U2,U3,U4 shown in the figures below.

Solution (Associating image spaces to figures)

First we look for the image of f: To find im⁡(f), we can apply a theorem from above: If E is a generator of ℝ2, then im⁡(f)=span⁡(f(E)) holds. We take the standard basis {(1,0)T,(0,1)T} as the generator of ℝ2. Then

im⁡(f)=span⁡(f(10),f(01)).

Now we apply f to the standard basis

f(10)=(21)f(01)=(2−3)

The vectors (2,1)T,(2,−3)T generate the image of f. Moreover, they are linearly independent and thus a basis of ℝ2. Therefore im⁡(f)=ℝ2. So im⁡(f)=U3.

Next, we want to find the image of g. However, it is also possible to compute the image im⁡(g) directly by definition, which we will demonstrate here.

im⁡(g)={g(xy)∣(xy)∈ℝ2}={(x2x)∣(xy)∈ℝ2}={x(12)∣(xy)∈ℝ2}↓ The left side does not depend on y={x(12)∣x∈ℝ}=span⁡((12))

So the image of g is spanned by the vector (1,2)T. Thus im⁡(g)=U1.


Now we determine the image of h using, for example, the same method as for f. That means we apply h to the standard basis:

h(10)=(−31)h(01)=(3−1)

Both vectors are linearly dependent. So it follows that im⁡(h)=span⁡((−3,1)T) and thus im⁡(h)=U2.


Finally, we determine the image of k. For this we proceed for example as with g.

im⁡(k)={k(xy)∣(xy)∈ℝ2}={(x0)∣(xy)∈ℝ2}={x(10)∣(xy)∈ℝ2}↓ The left side does not depend on y={x(10)∣x∈ℝ}=span⁡((10))

So the image of k is spanned by the vector (1,0)T. Thus im⁡(k) is the x-axis, so im⁡(k)=U4.

Exercise (Image of a matrix)
  1. Consider the matrix (1,2)∈ℝ1×2 and the mapping f:ℝ2→ℝ,x↦(1,2)x induced by it. What is the image im⁡(f)?
  2. Now let A=(a1,…,am)∈Kn×m be any matrix over a field K, where a1,…,am∈Kn denote the columns of A. Consider the mapping fA:Km→Kn,x↦Ax induced by A. Show that im⁡(fA)=span⁡{a1,…,am} holds. So the image of a matrix is the span of its columns.
Solution (Image of a matrix)

Solution sub-exercise 1:

We know that the image im⁡(f) of the linear map f is a subspace of ℝ. Since the ℝ-vector space ℝ has dimension 1, a subspace can only have dimension 0 or 1. In the first case the subspace is the null vector space, in the second case it is already all of ℝ. So ℝ has only the two subspaces {0} and ℝ. Since (1,2)(1,0)T=1≠0 holds, we have that im⁡(f)≠{0}. Thus, im⁡(f)=ℝ.

Solution sub-exercise 2:

Proof step: "⊆"

Let y∈im⁡(fA). Then, there is some x=(x1,…,xm)T∈Km with Ax=y. We can write x as x=∑i=1mxiei. Plugging this into the equation Ax=y, we get

y=Ax↓ x=∑i=1mxiei=A(∑i=1mxiei)↓ application of A is linear=∑i=1mxiAei↓ Aei=ai, the i-th column of A=∑i=1mxiai.

Since ∑i=1mxiai∈span⁡{a1,…,an}, we obtain y∈span⁡{a1,…,an}.

Proof step: "⊇"

Let y=∑i=1myi⋅ai∈span⁡(fA) with yi∈K for i=1,…,m. We want to find x∈Km with Ax=y. So let us define x:=∑i=1myiei. The same calculation as in the first step of the proof then shows

Ax=A(∑i=1myiei)=∑i=1myiAei=∑i=1myiai=y.

Exercise (Surjectivity and dimension of V and W)

Let V and W be two finite-dimensional vector spaces. Show that there exists a surjective linear map f:V→W if and only if dim⁡(V)≥dim⁡(W).

How to get to the proof? (Surjectivity and dimension of V and W)

We want to estimate the dimensions of V and W against each other. The dimension is defined as the cardinality of a basis. That is, if b1,…,bn is a basis of V and c1,…,cm is a basis of W, we must show that n≥m holds if and only if there exists a surjective linear map. "if and only if" means that we need to establish two directions (⇒,⇐).

Given a surjective linear map f:V→W, we must show that the dimension of V is at least m. Now bases are maximal linearly independent subsets. That is, to estimate the dimension from below, we need to construct a linearly independent subset with m elements. In the figure, we have already a linearly independent subset with m elements, which is the basis c1,…,cm. Because f is surjective, we can lift these to vectors ĉ1,…,ĉm∈V with f(ĉi)=ci. Now we need to verify that ĉ1,…,ĉm are linearly independent in V. We see this, by converting a linear combination λ1ĉ1+…λmĉm=0 via f into a linear combination 0=f(λ1ĉ1+…λmĉm)=λ1c1+…λmcm and exploiting the linear independence of c1,…,cm.

Conversely, if n≥m holds, we must construct a surjective linear map f:V→W. Following the principle of linear continuation, we can construct the linear map f by specifying how f acts on a basis of V. For this we need elements of W on which we can send b1,…,bn. We have already chosen a basis of W above. Therefore, it is convenient to define f as follows:

f(bi)={cii≤m0i>m

Then the image of f is spanned by the vectors f(b1)=c1,…,f(bm)=cm,f(bm+1)=0,…,f(bm)=0. However, these vectors also span all of W and thus f is surjective.

Solution (Surjectivity and dimension of V and W)

Proof step: "⇒"

Suppose there is a suitable surjective mapping f. We show that the dimension of im⁡(f)=f(V) cannot be larger than the dimension of V (this is true for any linear map). Because of the surjectivity of f, it follows that dim⁡(V)≥dim⁡(im⁡(f))=dim⁡(W).

So let w1,…,wn∈im⁡(f) be linearly independent. There exists v1,…,vn∈V with f(vi)=wi for i∈{1,…,n}. We show that v1,…,vn are also linearly independent: Let λ1,…,λn∈K with ∑i=1nλivi=0. Then we also have that

0=f(∑i=1nλivi)=∑i=1nλif(vi)=∑i=1nλiwi,

By linear independence of w1,…,wn, it follows that λ1=…=λn=0. So v1,…,vn are also linearly independent. Overall, we have shown that

w1,…,wn∈im⁡(f) linearly independent ⟹v1,…,vn linearly independent for any choice of preimages vi∈f−1(wi).

In particular, it holds that a basis of V (a maximal linearly independent subset of V) must contain at least as many elements as a basis of im⁡(f), that is, dim⁡(V)≥dim⁡(im⁡(f)).

Proof step: "⇐"

Assume that dim⁡(V)≥dim⁡(W). We use that a linear map is already uniquely determined by the images of the basis vectors. Let {v1,…,vm} be a basis of V and {w1,…,wn} be a basis of W. Define the surjective linear map f:V→W by

f(vi)={wi if i≤n0 else.

This works, since by assumption, m≥n holds. The mapping constructed in this way is surjective, since by construction, {w1,…,wn}⊆im⁡(f). As the image of f is a subspace of W, the subspace generated by these vectors, i.e., W, also lies in the image of f. Accordingly, W⊆im⁡(f)⊆W holds and f is surjective.

Exercises: Kernel

[edit | edit source]
Exercise

We consider the linear map f:ℝ2→ℝ2, (x,y)T↦(−3(x−y),x−y)T. Determine the kernel of f.

Solution

We are looking for vectors (x,y)T∈ℝ2 such that f((xy))=(00). Let (x,y)T be any vector in ℝ2 for which f((xy))=(00) is true. We now examine what properties this vector must have. It holds that

(00)=f(xy)=(−3(x−y)x−y)

So −3(x−y)=0 and x−y=0. From this we conclude x=y. So any vector (x,y)T in the kernel of f satisfies the condition x=y. Now take a vector (x,x)T with x∈ℝ. Then

f(xx)=(−3(x−x)x−x)=(00)

We see that (x,x)T∈ker⁡(f). In total

ker⁡(f)={(xx)|x∈ℝ}

Check your understanding: Can you visualize ker⁡(f) in the plane? What does the image of f look like? How do the kernel and the image relate to each other?
The kernel of f

We have already seen that

ker⁡(f)={(xx)∣x∈ℝ}=span⁡((11))

Now we determine the image of f by applying f to the canonical basis.

f(10)=(−31)f(01)=(3−1)

So im⁡(f)=span⁡(f((1,0)T),f((0,1)T)) holds. We see that the two vectors are linearly dependent. That is, we can generate the image with only one vector: im⁡(f)=span⁡((−3,1)T).

In our example, the image and the kernel of the linear map f are straight lines through the origin. The two straight lines intersect only at the zero and together span the whole ℝ2.

Exercise

Let V be a vector space, V≠{0}, and f:V→V be a nilpotent linear map, i.e., there is some n∈ℕ such that

fn=f∘⋯∘f⏟n times=0

is the zero mapping. Show that ker⁡(f)≠{0} holds.

Does the converse also hold, that is, is any linear map f:V→V with ker⁡(f)≠{0} nilpotent?

Solution

Proof step: f nilpotent ⟹ker⁡(f)≠{0}

We prove the statement by contraposition. That is we show: If ker⁡(f)={0}, then f is not nilpotent.

Let ker⁡(f)={0}. Then f is injective, and as a concatenation of injective functions, f∘f is also injective. By induction, it follows that for all n∈ℕ the function fn=f∘⋯∘f⏟n times is injective. But then also ker⁡(fn)={0} for all n∈ℕ. Since the kernel of the zero mapping would be all of V≠{0}, the map fn could not be the zero mapping for any n∈ℕ. Consequently, f is not nilpotent.

Proof step: The converse implication

The converse implication does not hold. There are mappings that are neither injective nor nilpotent. For example, we can define

f:ℝ2→ℝ2,(xy)↦(x0)

This mapping is not injective, because (0,1)T∈ker⁡(f). But it is also not nilpotent, because we have fn((1,0)T)=(1,0)≠0 for all n∈ℕ.

Exercise (Injectivity and dimension of V and W)

Let V and W be two finite-dimensional vector spaces. Show that there exists an injective linear map f:V→W if and only if dim⁡(V)≤dim⁡(W).

How to get to the proof? (Injectivity and dimension of V and W)

To prove equivalence, we need to show two implications. For the execution, we use that every monomorphism f:V→W preserves linear independence: If {b1,…,bn}⊆V is a basis of V, then the n vectors f(b1),…,f(bn)∈W are linearly independent. For the converse direction, we need to construct a monomorphism from V to W using the assumption dim⁡V≤dim⁡W. To do this, we choose bases in V and W and then use the principle of linear continuation to define a monomorphism by the images of the basis vectors.

Solution (Injectivity and dimension of V and W)

Proof step: There is a monomorphism ⟹dim⁡(V)≤dim⁡(W)

Let f:V→W be a monomorphism and {v1,...,vn} a basis of V. Then {v1,...,vn} is in particular linearly independent and therefore {f(v1),...,f(vn)} is linearly independent. Thus, it follows that dim⁡(W)≥n=dim⁡(V). So dim⁡(W)≥dim⁡(V) is a necessary criterion for the existence of a monomorphism from V to W.

Proof step: dim⁡(V)≤dim⁡(W)⟹ there is a monomorphism

Conversely, in the case dim⁡(V)≤dim⁡(W) we can construct a monomorphism: Let {v1,…,vn} be a basis of V and {w1,…,wm} be a basis of W. Then n=dim⁡(V)≤dim⁡(W)=m. We define a linear map f:V→W by setting

f(vi)=wi

for all i=1,…,n. According to the principle of linear continuation, such a linear map exists and is uniquely determined. We now show that f is injective by proving that ker⁡(f)={0V} holds. Let x∈ker⁡(f). Because {v1,…,vn} is a basis of V, there exist some λ1,…,λn∈K with

x=∑i=1nλivi.

Thus, we get 0V=f(x)=f(∑i=1nλivi) ↓ f is linear=∑i=1nλif(vi) ↓ f(vi)=wi=∑i=1nλiwi ↓ λi=0 for i>n=∑i=1mλiwi

Since {w1,…,wm} are linearly independent, λi=0K must hold for all i=1,…,n. So it follows for x that

x=∑i=1nλivi=∑i=1n0K⋅vi=0V.

We have shown that ker⁡(f)={0V} holds and thus f is a monomorphism.