Serlo: EN: Matrix of a linear map

Aus testwiki
Zur Navigation springen Zur Suche springen

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

In this article, we will learn how to describe linear maps between arbitrary finite-dimensional vector spaces using matrices. The matrix representing such a linear mapping f:VW depends on the choice of bases in V and in W. Their columns are the coordinates of the images of the base vectors of V.

Generalization to abstract vector spaces

In the article on introduction to matrices, we saw how we can describe a linear mapping KnKm using a matrix. In this way, we can specify and classify linear mappings between Kn and Km quite easily. Can we also find such a description for linear mappings between general vector spaces?

Formally speaking, we care asking: Given two finite-dimensional K vector spaces V and W, how can we completely describe a linear mapping f:VW?

To answer this question, we can try to trace it back to the case of Kn and Km. In the article on isomorphisms we have seen that every finite-dimensional vector space is isomorphic to Kn. This means VKn and WKm, where we set n=dim(V) and m=dim(W). This isomorphism works as follows: We choose an ordered basis B=(b1,,bn) from V. By representing a vector in V with respect to B, we obtain the coordinate mapping kB:VKn, which maps v=λ1b1++λnbnV to (λ1,,λn)TKn. In the same way, we obtain the isomorphism kC:WKm after choosing a basis C of W. It is important here that B and C are ordered bases, as we would get a different mapping for different arrangements of the basis vectors.

Using these isomorphisms, we can turn our mapping f:VW into a mapping f:KnKm: We set f=kCfkB1

Shifting a linear map in coordinate space
Shifting a linear map in coordinate space

We can assign a matrix M to this mapping f as described in the article Introduction to matrices.

Have we achieved our goal? If so, we can reconstruct the mapping f from M. From the article introduction to matrices, we already know that we can reconstruct the mapping f:KnKm from M using the induced mapping. Now kB and kC are isomorphisms. This means that we can reconstruct f from f via kC1fkB=kC1kCfkB1kB=f.

We can therefore call M the matrix assigned to f. However, we have to be careful with this name: the matrix depends on the choice of the two ordered bases B of V and C of W. This means we have actually found several ways to construct a matrix from f. Only after fixing the bases B and C have we found a unique way to get a matrix for f. Thus, the matrix M constructed above should actually be called “the matrix assigned to f with respect to the bases B and C”. Appropriately, we can denote M by MCB(f). By construction, this matrix fills exactly the bottom row in the following diagram:

Diagram characterizing the transformation matrix
Diagram characterizing the transformation matrix

Definition

Mathe für Nicht-Freaks: Vorlage:Definition Mathe für Nicht-Freaks: Vorlage:Warnung Mathe für Nicht-Freaks: Vorlage:Hinweis

Calculating with matrices of linear maps

Computing the matrix of a linear map

Relationship between the elements bj,ej,f(bj) and a_j=(a1j,,amj)T.

How can we find the corresponding matrix for f:VW? That is, how can we specifically calculate the entries of the matrix MCB(f)?

The j-th column vector of the matrix MCB(f) is given by (kCfkB1)(ej). We therefore want to determine this vector. Now, (kCfkB1)(ej)=kC(f(kB1(ej))). The defining property of the coordinate mapping kB is that it maps the basis vector bj to ej. Therefore, kB1(ej)=bj. Thus, the j-th column of MCB(f) is the vector (kC(f(bj)). To find out how kC represents the vector f(bj), we need to represent this vector in the basis C. There are scalars a1j,a2j,,amjK, so that f(vj)=i=0maijci. Then, Vorlage:Einrücken This means that the ij-th entry of MCB(f) is given by the entry aij from the basic representation f(bj)=i=0maijci.

Mathe für Nicht-Freaks: Vorlage:Definition

Mathe für Nicht-Freaks: Vorlage:Hinweis Mathe für Nicht-Freaks: Vorlage:Beispiel

Using the matrix of a linear map

Now we know how to calculate the matrix of f with respect to the bases B={b1,,bn} and C={c1,,cm}. What can we use this matrix for?

This matrix can be used to calculate the image vector f(v) of each vV. To do so, we first represent v with respect to the basis B of V, i.e., v=λ1b1+λ2b2++λnbn. We denote the entries of the mapping matrix with MCB(f)=(aij). Then we have Vorlage:Einrücken We therefore obtain a representation of the vector f(v)=i=1mμici as a linear combination of the basis vectors of C, with coordinates Vorlage:Einrücken Using the matrix multiplication with a vector (“row times column”) we can also express this as follows: Vorlage:Einrücken Using the matrix of f, we therefore obtain the coordinate vector kB(v)=(λ1,,λn) of v from the coordinate vector kC(f(v)) of f(v): We multiply kB(v) from the left by the matrix MCB(f). Vorlage:Einrücken The equation states that, starting from a vector vV, the red and blue paths in the diagram for the matrix to be displayed provide the same result.

The defining diagram for a matrix of a linear map
The defining diagram for a matrix of a linear map

Instead of starting with a vector vV, we can also start with any vector x=(x1,,xn)TKn. Then x is the coordinate vector of kB1(x)=x1b1++xnbn=:v. We can also understand the product y=MCB(f)xKm as a coordinate vector of kC1(y)=y1c1++ymcm. From the diagram, we know that y is the coordinate vector of f(v). Therefore, Vorlage:Einrücken Here we have used the fact that the coordinate mappings are isomorphisms, so we can also reverse the arrows of kB and kC in the diagram. The equation states that the red and blue paths in the following diagram give the same result:

The defining diagram of a mapping matrix with inverted coordinate mapping
The defining diagram of a mapping matrix with inverted coordinate mapping

Mathe für Nicht-Freaks: Vorlage:Beispiel

Matrix of a composition of linear maps

In the following theorem we show that the combination of linear mappings corresponds to the multiplication of their representing matrices.

Mathe für Nicht-Freaks: Vorlage:Satz

Mathe für Nicht-Freaks: Vorlage:Warnung

One-to-one correspondence between matrices and linear mapsVorlage:Anker

We can uniquely assign a matrix MCB(f) to a linear map f after a fixed choice of ordered bases B and C. This gives us a function that sends a mapping f to its associated matrix MCB(f): Vorlage:Einrücken In this formula, Hom(V,W) is the set of all linear maps from V to W and Km×n is the set of all m×n matrices.

How did we arrive at the assignment of the matrix MCB(f) to the linear map f? We first found a unique mapping f:KnKm for f using the bases B and C and then determined the matrix assigned to f. The mapping f is defined by the coordinate mappings: f=kCfkB1. So we have the assignment: Vorlage:Einrücken Because kC and kB are bijections, we can also get a unique f:VW from an f:KnKm, to which f is assigned. All we have to do is to set f:=kC1fkB.

So we have a bijection between Hom(V,W) and Hom(Kn,Km).

The assignment Vorlage:Einrücken is a bijection, as we already saw in the introduction article to matrices.

Therefore, Hom(V,W)Km×n is also a bijection, because it is the combination of the two bijections Hom(V,W)Hom(Kn,Km) and Hom(V,W)Km×n. But what does the inverse of the bijection Hom(V,W)Km×n look like?

The inverse mapping Km×nHom(V,W) sends a matrix AKm×n to a linear map f:VW such that MCB(f)=A. Let B=(b1,,bn) and C=(c1,,cm) be ordered bases of V and W and A=(aij), i.e., aij is the i,j-th component of the matrix A. Because MCB(f)=A, the following must hold: Vorlage:Einrücken Because of the principle of linear continuation, f is already completely defined. Here, we see that aij is the weight of ci in f(bj). Intuitively, the j-th column of the mapping matrix again stores the image of the j-th basis vector, i.e., f(bj).

Mathe für Nicht-Freaks: Vorlage:Beispiel Mathe für Nicht-Freaks: Vorlage:Hinweis

Examples

We calculate the matrix representing a specific linear map 32 with respect to the standard basis.

Mathe für Nicht-Freaks: Vorlage:Beispiel

Now let's look at the same linear map, but a different basis in the target space.

Mathe für Nicht-Freaks: Vorlage:Beispiel

From the two previous examples, we see that the matrix representing a linear map depends on the chosen bases. It is important that we consider ordered bases: The representing matrix also depends on the order of the basis vectors.

Mathe für Nicht-Freaks: Vorlage:Beispiel

Conversely, different mappings can also have the same mapping matrix if they are evaluated for different bases:

Mathe für Nicht-Freaks: Vorlage:Beispiel

Let us now look at a somewhat more abstract example:

Mathe für Nicht-Freaks: Vorlage:Beispiel

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