Serlo: EN: Linear map

Aus testwiki
Version vom 10. Juni 2022, 18:43 Uhr von imported>Sascha Lill 95
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

{{#invoke:Mathe für Nicht-Freaks/Seite|oben}}

Linear maps are special maps between vector spaces that are compatible with the vector space structure. They are one of the most important concepts of linear algebra and have numerous applications in science and technology.

Motivation

What makes linear maps special

We have learned about the structure of vector spaces and studied various properties of them. Now we want to consider not only isolated vector spaces, but also maps between them. Some of these maps fit well with the underlying vector space structure and are therefore called linear maps or vector space homomorphisms. They are a generalization of linear functions through the origin in one dimension, whose graphs are lines (hence the name).

It is a typical approach in algebra to study maps that preserve the structure of an algebraic object, such as a vector space. For many algebraic objects such as groups, rings or fields, one often studies the corresponding structure-preserving maps between the respective algebraic structures - group homomorphisms, ring homomorphisms and field homomorphisms. For vector spaces, the structure-preserving maps are the linear maps (= vector space homomorphisms).

So let V and W be two vector spaces. When is a map f:VW structure-preserving or well compatible with the underlying vector space structures in V and W? For this, let's repeat what the vector space structure is all about: They basically allow for two operations:

  • Addition of vectors: two vectors can be added, in a similar way to how numbers are added.
  • Scalar multiplication: vectors with a scaling factor (which is an element of the field) can be scaled. That means: compressed, stretched or mirrored.

Compatibility with addition

Let's start with of addition of vectors: when is a function f:VW compatible with the additions +V and +W on the respective vector spaces V and W? The most natural definition is the following:

Vorlage:Important

Thus, a map compatible with addition satisfies for all v1,v2,v3V the implication:

Vorlage:Einrücken

This implication can be summarized in one equation by substituting the premise v3=v1+Vv2 into the second equation. It thus suffices to require for all v1,v2V that:

Vorlage:Einrücken

This equation describes the first characteristic property of the linear map, namely "being compatible with vector addition". We can visualize it well for maps 22. A map is compatible with addition if and only if the triangle given by the vectors v1, v2 and v3=v1+Vv2 is preserved under applying the map. That means, also the three vectors f(v1), f(v2) and f(v3)=f(v1+Vv2) hive to form a triangle:

maps are compatible with addition, if triangles are preserved by them
maps are compatible with addition, if triangles are preserved by them

If f is not compatible with addition, there are vectors v1 and v2 with f(v1+Vv2)f(v1)+Wf(v2). The triangle generated by v1, v2 and v3=v1+Vv2 is then not preserved, because the triangle side v1+Vv2 of the initial triangle is not mapped to the triangle side f(v1)+Wf(v2) in the target space:

If maps are not compatible with addition, at least one triangle is not preserved by the map.
If maps are not compatible with addition, at least one triangle is not preserved by the map.

Compatibility with scalar multiplication

Analogously, we can naturally define that a map f:VW is compatible with scalar multiplication if and only if it is preserved by the map. So it should hold for all w,vV and for all scalars λK that

Vorlage:Einrücken

Note that λ is a scalar and not a vector and thus is not changed by the map under consideration. In other words, it can be "pulled out of the bracket". This move is only allowed if both vector spaces have the same underlying field. Both the domain of definition V and the range of values W must be vector spaces over the same K.

Linear maps thus preserve scalings. From w=λv one may conclude f(w)=λf(v). For the case where f(v)0, straight lines of the form {λv:λ} are mapped to the straight line {λf(v):λ}. The above implication can be summarized in an equation. For all vV and λK, we require that:

Vorlage:Einrücken

For maps 22 this means that a scaled vector λVv is mapped to the correspondingly scaled version λWf(w) of the image vector:

Linear maps preserve scalings.
Linear maps preserve scalings.

If a map is not compatible with scalar multiplication, there is a vector v and a scaling factor λ such that f(λVv)λWf(w):

A map where scaling is not preserved. This is an example of a non-linear map.
A map where scaling is not preserved. This is an example of a non-linear map.

Recap

A linear map is a special map between vector spaces that is compatible with the structure of the underlying vector spaces. In particular, this means that a linear map f:VW has the following two characteristic properties:

  • compatibility with addition: v1,v2V:f(v1+Vv2)=f(v1)+Wf(v2).
  • compatibility with scalar multiplication: vV,λK:f(λVv)=λWf(v)

The compatibility with addition is called additivity and the compatibility with scalar multiplication is called homogeneity.

Definition

Mathe für Nicht-Freaks: Vorlage:Definition

Mathe für Nicht-Freaks: Vorlage:Hinweis

Mathe für Nicht-Freaks: Vorlage:Hinweis

Explanation of the definition

The characteristic equations of the linear map are f(v1+v2)=f(v1)+f(v2) and f(λv)=λf(v). What do these two properties intuitively mean? According to the additivity property, it doesn't matter whether you first add v1 and v2 and then map them, or whether you first map both vectors and then add them. Both ways lead to the same result:

Vorlage:Einrücken

What does the homogeneity property mean? Regardless of whether you first scale v by λ and then map it or first map the vector and then scale it by λ, the result is the same:

Vorlage:Einrücken

The characteristic properties of linear maps mean that the orders of function mapping and vector space operations do not matter.

Charakterization: linear combinations are mapped to linear combinations

Besides the defining property that linear maps get along well with the underlying vector space structure, linear maps can also be characterized by the following property:

Vorlage:Important.

This is an important property because linear combinations are used to define important structures on vector spaces such as the linear independence or having generators. Also the definition of the basis relies on the notion of linear combination. The connection to linear combinations can be seen by looking at the two characteristic equations of linear maps:

Vorlage:Einrücken

We can apply the two formulas above step-by-step to a linear combination like 3u+5w2z for vectors u,w and z from V . This allows us to "get the linear combination out of the bracket":

Vorlage:Einrücken

The linear combination 3u+5w2z is mapped by f to 3f(u)+5f(w)2f(z) and thus keeps its structure. The situation is similar for other linear combinations. For by the property f(v1+v2)=f(v1)+f(v2) sums "can be pulled out of the bracket" and by the property f(λv)=λf(v) scalar multiplications "can be pulled out of the bracket". We thus obtain the following alternative characterization of the linear map: linear combinations are mapped to linear combinations.

Examples

Stretch in x-direction

Our first example is a stretch by the factor β in x-direction in the plane 2. Here, every vector a=(ax,ay)T2 is mapped to f(a)=(βax,ay)T. The following figure shows this map for β=2. The y-coordinate remains the same and the x-coordinate is doubled:

stretching a vector
stretching a vector

Now let's see if this map is compatible with addition. So let's take two vectors a and b, sum them a+b and then stretch them in x-direction. The result is the same as if we first stretch both vectors in x-direction and then add them:

stretching the sum of two vectors
stretching the sum of two vectors

This can also be shown mathematically. Our map is the function f:22, f((x,y)T)=(βx,y)T. We can now check the property f(a+b)=f(a)+f(b):

Vorlage:Einrücken

Now let's check the compatibility with scalar multiplication. The following figure shows that it doesn't matter if the vector a is first scaled by a factor of λ and then stretched in x-direction or first stretched in x-direction and then scaled by λ:

stretching and scaling a vector
stretching and scaling a vector

This can also be shown formally: For a2 and λ we have that

Vorlage:Einrücken So our f is a linear map.

Rotations

In the following, we consider a rotation Dα of the plane by the angle α (measured counter-clockwise) with the origin as center of rotation. Thus, it is a map Dα:22 that assigns to every vector v2 the vector α rotated by the angle Dα(v)2:

Datei:Mfnf-linear-rotation.webm

Let us now convince ourselves that Dα is indeed a linear map. To do this, we need to show that:

  1. Dα is additive: for all v,w2, we have Dα(v+w)=Dα(v)+Dα(w).
  2. Dα is homogeneous: For all vλ2 and λ we have Dα(λv)=λDα(v).

First, we check additivity, that is, the equation Dα(v+w)=Dα(v)+Dα(w). If we add two vectors v,w2 and then rotate their sum v+w by the angle α, the same vector should come out, as if we first rotate the vectors by the angle α and then add the rotated vectors Dα(v) and Dα(w). This can be visualized by the following two videos:


Now we come to homogeneity: Dα(λv)=λDα(v). If we first stretch a vector vλ2 by a factor λ and then rotate the result λv by the angle α, we should get the same vector as if we first rotate the by an angle α and then scale the result Dα(v) by the factor λ. This is again visualized by two videos:

Thus, rotations in 2 are indeed linear maps.

Linear maps between vector spaces of different dimension

An example of a linear map between two vector spaces with different dimensions is the following projection of the space 3 onto the plane 2:

Vorlage:Einrücken

We now check whether the vector addition is preserved. That means, for vectors a,b3 we need that

Vorlage:Einrücken

This can be verified directly:

Vorlage:Einrücken

Now we check homogeneity. For all λ and a2 we need:

Vorlage:Einrücken

We have that

Vorlage:Einrücken

So the projection f is a linear map.

A non-linear map

Next, we investigate some examples for non-linear maps. It is easy to come up with such maps: basically any function on whose graph is not a line is a non-linear map. So "most maps are non-linear".

Of course, there are also examples for non-linear maps on 2. For instance, consider the norm mapping on the plane which assigns the length to every vector:

Vorlage:Einrücken

This map is not a linear map, because it does not preserve either vector addition or scalar multiplication. We show this by a counterexample:

Consider the two vectors (1,0)T and (0,1)T2. If we add the vectors first and map them (determine their length) afterwards, we get

Vorlage:Einrücken

Now we determine the lengths of the vectors first and then add the results:

Vorlage:Einrücken

Thus we have that

Vorlage:Einrücken

This shows that the norm mapping is not additive. Finding a contradiction to one property (either additivity or homogeneity) already proves that the normal mapping is not linear.

Alternatively, we could have shown that the norm mapping is not homogeneous:

Vorlage:Einrücken

Applied examples

Linear maps are used in almost all technological fields. Here is just a very tiny collection of some examples:

  1. In order to make predictions or control machines, complicated functions are often approximated by linear ones (regression). Mainly because linear maps are easy to handle.
  2. The best known case where linear maps make our lives easier are computer graphics. Any scaling of a photo or graphic is a linear map. Even different screen resolutions ended up being linear maps.
  3. Search engines use page ranks of a website to sort their search results. our "Serlo-page", also gets a ranking this way. To determine the page rank, a so-called Markov chain is used, which is a somewhat more sophisticated linear map.

Linear maps preserve structure

Mathe für Nicht-Freaks: Vorlage:Hauptartikel {{#lst:Serlo: EN: Properties of linear maps|Overview}}

Relation to linear functions and affine maps

Linear functions in one dimension take the form f(x)=mx+t with m,t. They are only linear maps in some cases, namely for t=0. As an example, for m=1 and t=2:

Vorlage:Einrücken

Maps are in fact linear, if and only if t=0, i.e., the map takes the form f(x)=mx with m. The functions of the form f(x)=mx+t are called affine-linear maps or simply affine maps: They are the sum of a linear map and a constant translational term t. Every linear map is affine-linear, but not the other way round!

However, affine maps still map straight lines to straight lines and preserve parallel lines and ratios of distances.

We can always decompose an affine map xA(x) into a linear map xL(x) and a translation xx+t. We have that also A(x)=L(x)+t. Because the translations xx+t are easy to describe, the linear part is usually more interesting. In the theory we therefore only look at the linear part.

Exercises

The identity is a linear map

<section begin=aufgabe_identität_linear /> Mathe für Nicht-Freaks: Vorlage:Aufgabe <section end=aufgabe_identität_linear />

The map to zero is a linear map

<section begin=aufgabe_nullabbildung_linear /> Mathe für Nicht-Freaks: Vorlage:Aufgabe <section end=aufgabe_nullabbildung_linear />

Linear maps on the real numbers

Mathe für Nicht-Freaks: Vorlage:Aufgabe

{{#invoke:Mathe für Nicht-Freaks/Seite|unten}}