We will give here a proof structure that shows how to prove linearity of a map.
We recall that a linear map (or homomorphism) is a structure-preserving map of a
-vector space
into a
-vector space
. That is, for the map
, the following two conditions must hold:
must be additive, i.e., for
we have that: 
must be homogeneous, i.e., for
we have that:
.
So for a linear map it doesn't matter if we first do the addition or scalar multiplication in the vector space
and then map the sum into the vector space
, or first map the vectors
into the vector space
and perform the addition or scalar multiplication there, using the images of the map.
The proof that a map is linear can be done according to the following structure.
First, we assume that a map
is given between vector spaces. That is,
and
are
-vector spaces and
is well-defined.
Then for the linearity of
we have to show:
- additivity:

- homogeneity:

Exercise (Introductory example)
We consider the following map
and show that it is linear.
Proof (Introductory example)
First,
and
are vector spaces over the field
. Moreover, the map
is well-defined.
Proof step: proving additivity
Let
.
Thus we have proved the additivity of
.
Proof step: proving homogeneity
The map to zero is the map which sends every vector to zero. For instance, the map to zero of
to
looks as follows:
Exercise (The map to zero linear)
Show that the map
is linear.
Proof (The map to zero linear)
We already know that
and
are both
-vector spaces and that the map to zero is well-defined.
Proof step: additivity
For all
we have that
Proof step: homogeneity
For all
we have that
Thus, the map to zero is linear.
An example in 
[Bearbeiten]
We consider an example for a linear map of
to
:
with
Exercise (Linearity of
)
Show that the map
is linear.
Proof (Linearity of
)
is an
-vector space. In addition, the map is well-defined.
Thus the map is linear.
A linear map in the vector space of sequences
[Bearbeiten]
Next, we consider the space of all sequences of real numbers. This space is infinite-dimensional, because there are not finitely many sequences generating this sequence space. But it is a vector space, as we have shown in the chapter about sequence spaces.
Exercise (Sequence space)
Let
be the
-vector space of all real-valued sequences. Show that the map
is linear.
How to get to the proof? (Sequence space)
To show linearity, two properties need to be checked:
is additive:
for all 
is homogeneous:
for all
and 
The vectors
and
are sequences of real numbers, i.e. they are of the form
and
with
for all
.
Proof (Sequence space)
Proof step: additivity
Let
and
. Then, we have
It follows that
is additive.
Proof step: homogeneity
Let
and
. Then, we have
So
is homogeneous.
Thus it was proved that
is a
-linear map.
In this chapter, we deal with somewhat more abstract vectors. Let
be arbitrary sets;
a field and
a
-vector space. We now consider the set of all maps/ functions of the set
into the vector space
and denote this set with
. Furthermore, we also consider the set of all maps of the set
into the vector space
and denote this set with
. The addition of two maps is defined for
by
Die scalar multiplication is defined for
via
Analogously, we define addition scalar multiplication for
.
How to get to the proof? (The set
is a
-vector space)
Simply check the vector space axioms.
We now show that the precomposition with a mapping
is a linear map from
to
.
Exercise (The precomposition with a map is linear.)
Let
be a vector space, let
be sets, and let
or
be the vector space of functions from
or
to
. Let
be arbitrary but fixed. We consider the mapping
Show that
is linear.
Proof (The precomposition with a map is linear.)
Let
.
Let
and
.
Now, additivity and homogeneity of
implies that
is a linear map.