Jump to content

Inner direct sum – "Math for Non-Geeks"

From Wikibooks, open books for an open world

Derivation and definition

[edit | edit source]

We have already learned about sums of two subspaces. If U and W are two subspaces, then the sum of U and W is again a subspace Z=U+W. So for each vector v∈Z we may find two vectors u∈U and w∈W, such that v=u+w. Now the question arises: Are there several ways to write v as such a combination?

The answer is yes, there can be several possibilities. As an example, let's look at the vector space ℝ3. This space can be viewed as the sum of the xy-plane and the yz-plane. This means that if v∈ℝ3, then there are actually several ways to represent v as the sum of vectors from the xy-plane and the yz-plane. For the vector (2,3,5), for example, we have (2,3,5)=(2,2,0)+(0,1,5)=(2,1,0)+(0,2,5).

Such representations are therefore generally not unique. We now want to find a criterion for uniqueness.

Suppose we have two different representations of v, i.e. v=u+w and v=u′+w′ with u≠u′ and w≠w′ (if one of them is the same, then so is the other). In particular, we know that u−u′≠0 and w−w′≠0. If we now rearrange the equation u+w=v=u′+w′, we get u−u′⏟∈U=w′−w⏟∈W. Because the left-hand side is in U and the right-hand side is in W, this is an element in U∩W which is not a zero vector at the same time. So U∩W is not just {0}. (The zero vector is in the intersection because U and W are both subspaces). This means that if the representation is not unique, then the intersection U∩W does not only contain the zero vector.

Conversely, if the intersection is not {0}, we do not have a unique representation: Let v∈U∩W with v≠0. Then there are two representations of v, namely v=v+0=0+v (on the one hand v=u+w with u=v and w=0 and on the other hand v=u′+w′ with u′=0 and w′=v). Because of v≠0, these representations are different from each other.

We can therefore conclude an equivalence: The intersection U∩W is exactly {0} if the representation of all vectors in V is unique.

In this case, we give the sum a special name: We call the sum of U and W, in the case U∩W={0}, the direct sum of U and W and write U⊕W=U+W.

Definition (Direct sum)

Let U and W be two subspaces of a vector space V. We call the sum U+W direct if U∩W={0} holds. The subspace Z=U+W is called the direct sum of U and W and we write Z=U⊕W.

Examples

[edit | edit source]

Sum of two lines in R2

[edit | edit source]
The lines U and W

We consider the following two lines in ℝ2:

U:={(x0)∣x∈ℝ} and W:={(xx)∣x∈ℝ}

So U is the x-axis and W is the line that runs through the origin and the point (1,1). Their sum is U+W=ℝ2

Question: Why do wa have U+W=ℝ2?

By the definition U+W={u+w∣u∈U,w∈W} we can describe the set U+W as

U+W={(x0)∣x∈ℝ}+{(xx)∣x∈ℝ}={(x0)∣x∈ℝ}+{(yy)∣y∈ℝ}={(x0)+(yy)∣x,y∈ℝ}={(x+yy)∣x,y∈ℝ}

We can write each vector in ℝ2 as (x+y,y)T with matching x,y∈ℝ. Specifically, for each vector (a,b)T∈ℝ2 we can find scalars x and y∈ℝ such that (a,b)=(x+y,y), namely x:=a−b and y:=b. We conclude U+W=ℝ2.

Intuitively, you can immediately see that U+W=ℝ2. This is because U+W is a subspace of ℝ2, which contains the lines U and W. The only subspaces of ℝ2 are the null space, lines that run through the origin and ℝ2. As the lines U and W do not coincide but are different, U+W cannot be a line. Therefore, we must have U+W=ℝ2.

Let us now investigate whether this sum is direct. To do so, we need to determine U∩W. If v=(x,y)T∈U∩W, then we know the following: Because v∈U, we have y=0. And because v∈W, we have x=y. Therefore x=y=0 and we get v=0. Because U∩W also contains 0, we get U∩W={0}. This means that the sum of U and W is direct, and we can write U⊕W.

Sum of two lines in R3

[edit | edit source]
The lines U and W

We have the following lines in ℝ3:

U:={(xx2x)∣x∈ℝ} and W:={(3x05x)∣x∈ℝ}

Then U is a line in ℝ3 that runs through the origin and the point (1,1,2), and W is a line that runs through the origin and (3,0,5). The sum U+W is a plane spanned by the vectors (1,1,2)T and (3,0,5)T, i.e.

U+W={x(112)+y(305)∣x,y∈ℝ}.

Question: Why is this the sum?

U+W={(xx2x)∣x∈ℝ}+{(3y05y)∣y∈ℝ}={(xx2x)+(3y05y)∣x,y∈ℝ}={x(112)+y(305)∣x,y∈ℝ}

So U+W is a plane that is spanned by the vectors (1,1,2)T and (3,0,5)T.

Also here, we want to determine whether the sum is direct. To do so, we consider a vector v=(x,y,z)T∈U∩W. Then, because v∈U, we have x=y=2z. And because v∈W, we obtain y=0. Therefore, x=z=y=0 and the sum is direct. This means that we can write U⊕W.

Sum of a line and a plane in R3

[edit | edit source]
The line U3 and the plane W

We consider the subspaces U3 and W of ℝ3.

U3={(xxx)∣x∈ℝ}=span⁡{(111)}W={(0yz)∣y,z∈ℝ}

The subspace U3 is the line through the origin and the point (1,1,1), while W represents the y-z-plane. Together, U3 and W span the entire ℝ3, i.e. U3+W=ℝ3.

Question: Why is the sum of U3 and W the entire space ℝ3?

Since U3 and W are subspaces of ℝ3, the sum U3+W is also a subspace of ℝ3. We still have to show that ℝ3 is contained in U3+W. To do so, we prove that any vector (a,b,c)T∈ℝ3 lies in U3+W. To accomplish this, we show that there is a u∈U3 and a w∈W with (a,b,c)T=u+w.

We choose u:=(a,a,a)T and w:=(0,b−a,c−a)T. Then u+w=(a,a,a)T+(0,b−a,c−a)T=(a,b,c)T. In addition, u∈U3 and w∈W apply.

Therefore, the entire ℝ3 is contained in U3+W. Thus ℝ3=U3+W.

One may now ask whether the sum U3+W is direct. To check this, we need to analyze the intersection U3∩W. If U3∩W only contains the zero vector (0,0,0)T, then the sum is direct.

Let (a,b,c)T be a vector in U3∩W. Since (a,b,c)T∈U3, we have a=b=c. Consequently, we can write (a,b,c)T as (a,a,a)T. Furthermore, (a,a,a)T∈W, which implies a=0. We have therefore shown that (a,b,c)T=(0,0,0)T.

It follows that U3∩W={(0,0,0)T}. Since the intersection only contains the zero vector, the sum U3+W is direct. Therefore, we can conclude ℝ3=U3⊕W.

Sum of even and odd polynomials

[edit | edit source]

We will now look at an example of a direct sum in the vector space of real polynomials ℝ[x]. Let us consider the following subspaces U and W of ℝ[x]: U consists of all odd polynomials over ℝ, while W is the space of the even polynomials over ℝ. In formulas, this is

U={∑i=0naix2i+1∣n∈ℕ,ai∈ℝ}=span⁡{x,x3,x5,…}W={∑i=0naix2i∣n∈ℕ,ai∈ℝ}=span⁡{1,x2,x4,…}

The odd polynomials ∑i=0naix2i+1 only contain monomials with odd exponents, while the even polynomials ∑i=0naix2i only contain monomials with even exponents. For example, 3x18+19x12−x4+8x2 is an even polynomial, while x10−x is neither even nor odd. We now show that the even and odd polynomials together generate the entire polynomial space ℝ[x]. Expressed in formulas: U+W=ℝ[x].

To show this, we need to prove that every polynomial in ℝ[x] can be written as the sum of an odd and an even polynomial. To do so, we consider any polynomial p=∑i=0naixi from ℝ[x]. We must write p as the sum of an even and an odd polynomial.

p=∑i=0naixi=∑i=0⌊n−12⌋a2i+1x2i+1⏟∈U+∑i=0⌊n2⌋a2ix2i⏟∈W

Therefore, p is contained in the sum U+W.

Now we want to check whether the sum U+W is direct. That is, we need to check whether the intersection of the two subspaces U∩W only contains the zero vector, i.e. the zero polynomial. Let p be a polynomial in the intersection U∩W. Then p lies both in U and in W. We can write p as ∑i=0naixi. Since p lies in U, p only consists of odd monomials. Therefore, the prefactors of the even monomials must be equal to 0. So ai=0 for all even i. Since p lies in W, p only consists of even monomials. So ai=0 for all odd i. This means that all coefficients ai are equal to zero and p is therefore the zero polynomial. Thus U∩W=0, and the sum of U and W is direct.

We have seen that ℝ[x]=U⊕W. In other words, the polynomial space ℝ[x] can be written as the direct sum of the subspaces U and W, where U is the subspace of odd polynomials and W is the subspace of even polynomials.

Counterexamples

[edit | edit source]

Two planes in R3

[edit | edit source]
The planes U and W

We consider the following two planes:

U={(2xxy)∣x,y∈ℝ} and W={(02x−y)∣x,y∈ℝ}

The two planes together span all of ℝ3. However, the sum is not direct, as the intersection is a line and therefore does not only contain the zero vector. That is, U∩W≠{(0,0,0)T}.

We want to check this mathematically. This requires looking for a vector in the intersection of U and W which is not zero. We consider a vector (a,b,c)T that lies in the intersection U∩W. Because this vector lies in U, we have x,y∈ℝ so (a,b,c)T=(2x,x,y)T. In addition, there must be v,w∈ℝ so (a,b,c)T=(0,2v,−w)T, since (a,b,c)T∈W.

We now look for suitable values for x,y,v,w to fulfill both conditions. From a=2x and a=0, we get x=0. Because 2v=b=x, we also have v=0. Furthermore, b=0 results from b=x. Finally, we conclude y=c=−w.

One possible solution is x=v=0, y=1 and w=−1. The vector (a,b,c)T=(0,0,1)T therefore lies in the intersection of U and W. Hence, U∩W≠{(0,0,0)T}.

Various polynomials in polynomial space

[edit | edit source]

Let K be a field. We consider two subspaces in the polynomial space K[X]: Let U={f∈K[X]∣deg⁡f≤2} be the space of polynomials of degree less or equal to two, and let V={f=a0+a1X+…anXn∣a0+…+an=0} be the space of polynomials whose sum of coefficients is 0. We want to investigate whether the sum U+V is direct. To find this out, we need to decide whether U∩V=0.

An element f∈U∩V is a polynomial f=a0+a1X+…+anXn, which has a maximum degree of 2 and for which a0+…,an=0 applies. Because the polynomial has degree two, we have a3=…=an=0. Therefore, we get a0+a1+a2=0. This means U∩V consists of all polynomials f=a0+a1X+a2X2 for which a0+a1+a2=0. Thus, we can find a non-zero element of U∩V if we use the equation a0+a1+a2=0 with non-trivial a0,a1,a2. One possibility for this is a0=1,a1=−1,a2=0, i.e. f=1−X∈U∩V. So the intersection of U and V is not zero, and the sum U+V is therefore not direct.

Unique decomposition of vectors

[edit | edit source]

We have already considered in the derivation that the decomposition of vectors is unique for the direct sum. We will prove this result here rigorously.

Theorem (Equivalent characterizations of the direct sum)

Let U1,U2 be subspaces of V. Then the following statements are equivalent:

  1. The sum of U1 and U2 is direct (that is, U1+U2=U1⊕U2).
  2. U1 and U2 have trivial intersection (that is, U1∩U2={0} is the trivial subspace).
  3. The representation of all elements of U1+U2 is unique (that is, if u=u1+u2=u1′+u2′ with u1,u1′∈U1 and u2,u2′∈U2, then we already have u1=u1′ and u2=u2′).
  4. The representation of the zero is unique (that is, if u1+u2=0 with u1∈U1 and u2∈U2, then we already have 0=u1=u2).
Proof (Equivalent characterizations of the direct sum)

The definition of the inner direct sum is just 1⟺2. We now show the implications 2⟹3⟹4⟹2. The statement then readily follows.

Proof step: 2⟹3

Let u∈U1+U2. We must prove that u can be written uniquely as the sum of two elements of U1 and U2.

Let u1,u1′∈U1 and u2,u2′∈U2 with the property that u1+u2=u=u1′+u2′. In order to prove uniqueness, we must show that these two representations of u are equal. "Equal" means that u1=u1′ and u2=u2′.

Because u1+u2=u1′+u2′, we have u1−u1′=u2′−u2. This element lies in U1 (because of the representation on the left of "=") and in U2 (because of the representation on the right of "="). So u1+u2=u1′+u2′ lies in the intersection U1∩U2. According to the prerequisite, U1∩U2={0}. This means 0=u1−u1′=u2′−u2. So u1=u1′ and u2=u2′. This is exactly what we wanted to show.

Proof step: 3⟹4

Let u1∈U1 and u2∈U2 with u1+u2=0∈U1+U2. This is a representation of 0∈U1+U2.

On the other hand, 0=0+0∈U1+U2 is also a representation of 0.

Since representations are unique according to the requirements, we conclude u1=0 and u2=0.

Proof step: 4⟹2

Let u∈U1∩U2. Then, of course, u∈U1 and u∈U2. Since U2 is a subspace, for each element x∈U2 also its additive inverse element must be in this space, i.e., −x∈U2. Therefore, −u∈U2.

This gives us u⏟∈U1+(−u)⏟∈U2=0=0⏟∈U1+0⏟∈U2. From the uniqueness of the representation of the zero, we conclude u=0. The intersection is therefore trivial, i.e. U1∩U2={0}.

Inner direct sum and disjoint union of sets

[edit | edit source]

We can imagine the sum of two subspaces as a structure-preserving union: Forming the sum is "structure-preserving" because the result is again a subspace. This means that the vector space structure is preserved when forming the sum. We can also think of this construction as a union because the sum contains both subspaces. The subspaces U and W are subsets of the sum U+W. The sum U+W is the smallest subspace that contains the two subspaces U and W. Just as you can form unions with sets, the sums of subspaces also work in the same way.

The direct sum is a special case of the sum of subspaces. This means that every direct sum is also a structure-preserving union. "Being direct" is a property of a sum of subspaces. We now want to see whether there is a property of the union of sets that corresponds to the directness of a sum.

Direct sums are characterized by the fact that the decomposition of the vectors in the sum is unique. If we have a vector v∈U⊕W with v=u+w, where u∈U and w∈W, then the vectors u and w are unique. For a union X∪Y of sets X and Y, each element a∈X∪Y lies in X or in Y. The element can also lie in both, which means that we generally do not clearly know where they lie. We cannot assign a unambiguously if a∈X∩Y, i.e. in the intersection. This means that the assignment of elements a∈X∪Y is unique if X∩Y is empty. In fact, this criterion corresponds exactly to the criterion for a sum to be direct: We want U∩W={0}, which is the smallest possible vector space, so the intersection contains nothing more from U and W (except the zero, which it must contain anyway as a vector space). This is exactly the definition of a disjoint union. In other words, the direct sum of subspaces intuitively corresponds to the disjoint union of sets.

Basis and dimension

[edit | edit source]

We have seen that the direct sum is a special case of a sum of subspaces. So we can transfer everything we know about the vector space sum to the direct sum. We have already seen that the union of bases of U and W is a generating system of U+W. This means if BU is a basis of U and if BW is a basis of W, then BU∪BW is a generating system of U+W. If U and W are finite dimensional, we can use the dimension formula. dim⁡(U+W)=dim⁡(U)+dim⁡(W)−dim⁡(U∩W).

If the sum U+W is direct, i.e. if U+W=U⊕W, then we even have U∩W={0}. Since dim⁡({0})=0, the following sum formula applies in the finite-dimensional case: dim⁡(U+W)=dim⁡(U)+dim⁡(W)−dim⁡(U∩W)⏟=0=dim⁡(U)+dim⁡(W). So the dimension of the sum space U+W is exactly the sum of the dimensions dim⁡(U) and dim⁡(W). If BU is a basis of U and if BW is a basis of W, then we can conclude dim⁡(U+W)=dim⁡(U)+dim⁡(W)=|BU|+|BW|. Since U∩W={0}, the union of the bases of U and W is disjoint, i.e. BU⊎BW. Therefore, we get |BU|+|BW|=|BU∪BW|. Because BU∪BW is a generating system of U+W and because dim⁡(U+W)=|BU∪BW|, we conclude that BU∪BW is a basis of U+W.

We have thus seen that in finite dimensions, the union of the bases of U and W is a basis of U⊕W. This also applies in general:

Theorem (Basis of the direct sum)

Let U and W be two subspaces of a K-vector space V. Assume that the sum of U and W is direct, that is, we can write U⊕W. Let BU be a basis of U and BW a basis of W. Then the union of BU and BW is disjoint and BU∪BW is a basis of U⊕W.

Proof (Basis of the direct sum)

We have already seen that BU∪BW is a generating system of U+W. Therefore, we only have to show that the union BU⊎BW is disjoint and linearly independent.

Proof step: BU⊎BW

Suppose we have v∈BU∩BW. Then v∈U∩W={0}, so v=0. However, this is a contradiction to v∈BU and v∈BW, as a basis cannot contain the zero vector. Therefore, there can be no v∈BU∩BW, i.e. BU∩BW=∅.

Proof step: BU∪BW is linearly independent

Let 0=∑i=1nαiui+∑j=1mβjwj for any n,m∈ℕ, ui∈BU and wj∈BW pairwise different, as well as αi,βj∈K. We must show that all αi and βj are equal to 0. This corresponds exactly to the definition of the linear independence of BU∪BW.

From 0=∑i=1nαiui+∑j=1mβiwi we conclude ∑i=1nαiui=∑j=1m−βjwj. This term is in U (as a linear combination of elements in BU) as well as in W (as a linear combination of elements in BW). Since U⊕W is a direct sum, we obtain ∑i=1nαiui=0=∑j=1m−βjwj. From the linear independence of BU we conclude αi=0 for all i and from the linear independence of BW we conclude βj=0 for all j.

From this theorem, we may immediately conclude that dim⁡(U⊕W)=dim⁡(U)+dim⁡(W).

Exercises

[edit | edit source]
Exercise

Let K=ℤ/3ℤ and let V=K3. Consider the two subspaces U=span⁡{(1,1,0)} and W=span⁡{(0,2,2),(0,0,1)}. Show that U⊕W=V and determine u∈U and w∈W so that (2,0,2)=u+w holds.

Solution

To show U⊕W=V, we need to prove two things: First, that the sum of U and W is direct, i.e. U∩W={0}. Secondly, we must show that the sum of U and W equals V, i.e. U+W=V.

Proof step: U∩W={0}

Because U and W contain the zero vector as subspaces, {0}⊆U∩W is obvious. For the proof of the reverse inclusion, let v∈U∩W be arbitrary. Then

v=λ(110)=μ1(022)+μ2(001)

for certain λ,μ1,μ2∈K. From the first line of the vectors we get λ⋅1=μ1⋅0+μ2⋅0=0. So λ=0 and therefore v=0.

Proof step: U+W=V

By definition, U+W⊆V. The two vectors that span W are obviously linearly independent, so dim⁡(W)=2. Furthermore, dim⁡(U)=1 and dim⁡(V)=dim⁡(K3)=3. The dimension formula for subspaces then renders

dim⁡(U+W)=dim⁡(U)+dim⁡(W)−dim⁡(U∩W)=1+2−0=3=dim⁡(V).

The dimensions of the subspaces are therefore equal and U+W⊆V follows from U+W=V.

Alternatively, you could prove the equality by showing that every v∈V can be written as the sum of a u∈U and a w∈W.

We want to write v=(2,0,2) as the sum of a vector in U and a vector in W. That means, we are looking for λ1,λ2,λ3∈K=ℤ/3ℤ with

(202)=λ1(110)+λ2(022)+λ3(001).

We may write this as a linear system:

2=λ10=λ1+2λ22=2λ2+λ3

From the first line we conclude λ1=2∈ℤ/3ℤ. Plugging this into the second line gives λ2=−2=2∈ℤ/3ℤ. Again plugging this into the third line finally yields λ3=1∈ℤ/3ℤ. Therefore, v=u+w holds with

u=2⋅(110)=(220)∈Uandw=2⋅(022)+(001)=(012)∈W.

For the following two exercises, you should know what a linear map is.

Exercise (Self-inverse linear maps and subspaces)

Let V be a ℝ-vector space and f:V→V a linear map.

  1. Show that the subsets U={v∈V∣v=f(v)} and W={v∈V∣f(v)=−v} are subspaces of V.
  2. Let additionally f∘f=idV, where idV denotes the identity map on V. (A linear mapping with this property is called self-inverse.) Show that then V=U⊕W holds for the two subspaces from the first exercise part.
Solution (Self-inverse linear maps and subspaces)

Solution sub-exercise 1:

We use the subspace criterion and show that U and W are non-empty subsets of V that are closed under linear combinations. We only provide the proof for W. The proof for U works in the same way, you just have to replace all equations of the form "f(v)=−v" with "f(v)=v".

Proof step: W⊆V

This holds by definition of W.

Proof step: W is nonempty.

Since f(0V)=0V=−0V we have 0V∈W. So W is nonempty.

Proof step: W is closed under linear combinations.

Let u,v∈W and λ,mu∈ℝ be arbitrary. Then

f(λ⋅u+μ⋅v)↓ linearity of f=λ⋅f(u)+μ⋅f(v)↓ u,v∈Wand definition of W=λ⋅(−u)+μ⋅(−v)↓ distributive law=−(λ⋅u+μ⋅v),

So the linear combination λ⋅u+μ⋅v also lies in W.

Solution sub-exercise 2:

In order to show U⊕W=V, we need to prove two things: First, that the sum of U and W is direct, i.e. U∩W={0}. Secondly, we must show that the sum of U and W equals V, i.e. that every vector v∈V can be written as the sum of a vector u∈U and a vector w∈W.

Proof step: U∩W={0}

Because U and W contain the zero vector as subspaces, {0}⊆U∩W is obvious. For the proof of the reverse inclusion, let v∈U∩W be arbitrary. Then

v=v∈Uf(v)=v∈W−v,

i.e., 2⋅v=0, so v=0. Because v∈U∩W was arbitrary, we have thus shown that U∩W={0}.

Proof step: U+W=V

Because U and W are subsets of V, U+W⊆V is obvious. For the reverse inclusion, let v∈V be arbitrary. Then the following then applies:

v=12v+12v+12f(v)−12f(v)=12(v+f(v))⏟=:u+12(−f(v)+v)⏟=:w=u+w.

Because f∘f=idV, it follows from the linearity of f that

f(u)=f(12(v+f(v)))=12(f(v)+f(f(v)))=12(f(v)+idV(v))=12(f(v)+v)=u.

So u∈U. Analogously, one shows 12w∈W:

f(w)=f(12(v−f(v)))=12(f(v)−f(f(v)))=12(f(v)−v)=−w.

So v is a sum of a vector from U and a vector from W. Since v∈V was arbitrary, we conclude V⊆U+W .

For this exercise, you need to know what the kernel and the image of a linear map are.

Exercise (Idempotent mappings)

Let f:V→V be a linear map with f∘f=f. (A linear map with this property is called idempotent or a projection). Show: V=im⁡(f)⊕ker⁡(f).

Solution (Idempotent mappings)

We show that V=im⁡(f)+ker⁡(f) und {0}=im⁡(f)∩ker⁡(f). By definition of the direct sum , the sum of ker⁡(f)+im⁡(f) is therefore indeed direct.

Proof step: V=im⁡(f)+ker⁡(f)

Since both the kernel and the image of f are subspaces of V, we immediately get ker⁡(f)+im⁡(f)⊆V. Let us now show the reverse inclusion V⊆ker⁡(f)+im⁡(f).

Let v∈V be arbitrary. From the condition f=f∘f, we get f(v)=f(f(v)), or in other words f(v)−f(f(v))=0. Due to the linearity of f, we conclude f(v−f(v))=0. Therefore, the element v−f(v) lies in the kernel of f. Furthermore, f(v) lies in the image of f by definition. Thus

v=v−f(v)+f(v)=(v−f(v))⏟∈ker⁡(f)+f(v)⏟∈im⁡(f)

is the sum of an element from ker⁡(f) and an element from im⁡(f). So v is in im⁡(f)+ker⁡(f). Because v∈V was arbitrary, we have shown V⊆ker⁡(f)+im⁡(f).

Proof step: ker⁡(f)∩im⁡(f)={0}

Because U and W contain the zero vector as subspaces, {0}⊆U∩W is obvious. For the proof of the reverse inclusion, let v∈ker⁡(f)∩im⁡(f) be arbitrary. Then v is an element of the kernel of f and f(v)=0 applies. Because v is also in the image of f, there is a w∈V so that v=f(w). Because f=f∘f, we have

0=f(v)=f(f(w))=f(w)=v.

Since v∈ker⁡(f)∩im⁡(f) was arbitrary, we have thus shown ker⁡(f)∩im⁡(f)={0}.

In ℝ2 we can illustrate the statement from the previous exercise:

Example (Projektions in ℝ2)

Let f:ℝ2→ℝ2 be (x,y)↦(x,x). Then f is linear. In addition, f∘f=f applies: For each vector (x,y)∈ℝ2, we have

f(f(x,y))=f(x,x)=(x,x)=f(x,y).

The map f is therefore a projection. Clearly, f projects vectors in ℝ2 along the y-axis onto the first angle bisector span⁡{(1,1)}. In particular, im⁡(f)=span⁡{(1,1)}. Further, f maps the y-axis to the zero vector, i.e. ker⁡(f)=span⁡{(0,1)}. Therefore, we indeed have ℝ2=im⁡(f)⊕ker⁡(f) as proven in the exercise.