Serlo: EN: Basis change via matrices
{{#invoke:Mathe für Nicht-Freaks/Seite|oben}}
In this article, you will learn about basis change via matrices. Basis change matrices can be used to convert coordinates with respect to a given basis into coordinates with respect to another basis. This is particularly useful for matrices of linear maps, which are always taken with respect to two specific bases.
Derivation
We have seen in the article on bases that every finite-dimensional vector space has a basis. This means if is an -dimensional -vector space, then there is a basis of . Every vector can therefore be written uniquely as a linear combination of the basis vectors , i.e. with unique .
We also know that vector spaces usually have more than one basis. Let be a second basis of . Then we can also write uniquely as a linear combination of , i.e. with unique coefficients .
We therefore have two representations of the vector . Using the basis we get the representation and using the basis we get .
How can we convert the basis representation with respect to of the vector into the representation with respect to ?
This question is particularly interesting in the context of matrices of linear maps, as we will see below in the section Application of basis change via matrices. Mapping matrices allow us to calculate with coordinates instead of vectors of . However, the coordinates of a vector always depend on the chosen basis in . We want a simple way to convert the coordinates of any vector in with respect to a basis into coordinates with respect to another basis .
The situation in
To answer this question, we start with a simpler special case. We consider as a vector space and set as the (ordered) standard basis. Let further be any ordered basis of . Since matrices of linear maps depend on the order of the basis vectors, we have to use ordered bases and .
Let be a vector for whom we know the coordinates with respect to the standard basis . The vector can be written in the basis as for unique . How can we calculate the coordinates of with respect to simply from the coordinates of with respect to the standard basis ?
To do this, we need to describe the mapping , which maps each vector to its coordinate vector with respect to . This is done by the coordinate mapping , which is a linear map that we know from the article on isomorphims.
In order to describe , we calculate its matrix with respect to the standard basis . By using matrix-vector multiplication in , we then obtain the coordinate vector by multiplying from the left by .
To calculate the matrix , we need to determine . These will then be the columns of . We are therefore looking for the coordinates of with respect to , so we have to write these as a linear combination of vectors in . This gives us equations Vorlage:Einrücken where are the coordinates we are looking for. The coefficients can be determined by solving a linear system of equations. Mathe für Nicht-Freaks: Vorlage:Beispiel
Then for . This gives us the matrix Vorlage:Einrücken We obtain for all . The required coefficients are therefore obtained by Vorlage:Einrücken
Mathe für Nicht-Freaks: Vorlage:Beispiel
Generalization to arbitrary finite-dimensional vector spaces
In a general finite-dimensional vector space , unlike in , there is no standard basis. In this situation, we have two ordered bases and . Usually, we are then given an arbitrary vector as a linear combination with respect to the basis with . The coefficients are also called the coordinates of with respect to . Correspondingly, the coordinates with respect to are the scalars with .
We are looking for a method to convert the coordinates with respect to of any vector into the coordinates with respect to . For this, we need a mapping , which sends to .
We already know the coordinate mappings with and with . From we want to obtain the vector . The coordinate mappings are isomorphisms. So maps the vector to and maps to . If we first execute and then , we obtain a mapping that sends to .
Vorlage:Anker Our desired transformation is therefore realized by the linear map . As above for the situation in , we can then determine the matrix of this linear map in with respect to the standard basis. This matrix is given by . If we remember the article on matrices of linear maps, however, this matrix is just , because .
It also makes intuitive sense that the matrix executing the basis change from to is given exactly by representing the identity from basis to . This is because, if we multiply the coordinate vector of with respect to from the left with , then we obtain exactly the coordinate vector of with respect to , just by definition of the representing matrix. That is, Vorlage:Einrücken for all . The matrix therefore converts coordinates with respect to into coordinates with respect to . This is exactly what a basis change matrix does.
Definition
Mathe für Nicht-Freaks: Vorlage:Definition The basis change matrix has many other names. It is also referred to in the literature as a transition matrix, basis transition matrix, transformation matrix or coordinate change matrix. Mathe für Nicht-Freaks: Vorlage:Warnung
Application of basis change via matrices
The problem with matrices of linear maps
We can find a matrix for every linear map between two finite-dimensional vector spaces, with respect to bases and . However, this matrix depends on and , and their order. If we choose other bases or , we will very likely get a different matrix. We can see this in the following example: Mathe für Nicht-Freaks: Vorlage:Beispiel
Solution of this problem
Consider a linear map and two ordered bases and of as well as and of . We are asking now: How can we convert the matrix into ?
Mathe für Nicht-Freaks: Vorlage:Satz
In the following, we will consider why the formula in this theorem is correct and how we arrived at it.
From the definition of the matrix of a linear map we know that for all vectors , we have and . We can visualize this equation in a diagram:

In these two diagrams, it doesn't matter which way you go. For example, it does not matter whether we use to go directly from to or take the detour via and . If the same map is constructed along each path, this is referred to as a commutative diagram.
We can join the two diagrams together:

This diagram is also commutative. That means, if you have a fixed start and end point, it still doesn't matter which path you take in the diagram. If we start at the top left at , it doesn't matter which path we use to get to at the bottom left. We can get from to via , or using first , then and finally .

Consequently, the map is equal to the combination of the maps , , and . We have now seen that the can be transformed into the map . Originally, however, we wanted to transform the matrix into the matrix . How do we get from the map back to the matrix ?
The matrix looks complicated. We therefore consider how we can answer this question for a general matrix . We consider the linear map associated with . The matrix of with respect to the standard bases of and is again . Let us now plug in the matrix for . The matrix of the linear map with respect to the standard bases is exactly .
As we have already seen, the map is equal to the combination of the three maps , , and . Therefore, the matrix of the combination of , , and corresponds to with regard to the standard bases.
However, we can also determine the matrix of the concatenation in another way. In the article on matrix multiplication, we saw that concatenation between linear maps correspond exactly to the multiplication of the respective matrices. Therefore, we write down the matrices of the concatenated linear maps individually and then multiply them.
- As we have already seen for , the matrix of with respect to the standard bases of and is again .
- We have already derived the matrix of above; it is . This is exactly the basis change matrix .
- Similarly, the matrix of is given by the basis change matrix .
If we multiply these three matrices, we obtain : Vorlage:Einrücken So can be calculated from by left multiplication with and right multiplication with .
Example for a basis change
We now know, how we can convert matrices of a linear map with respect to different bases into each other. Let's look at the example above again. We consider the linear map Vorlage:Einrücken as well as the ordered bases , , and . We have already calculated the matrix : Vorlage:Einrücken We want to determine by matrix multiplication, i.e., by . We have to determine and . Now, , since the basis does not change. Now let us turn to computing the basis change matrix : We know that . In order to determine this matrix, we need to express the basis vectors of in the basis :
Vorlage:Einrücken Hence, Vorlage:Einrücken Therefore Vorlage:Einrücken You may convince yourself that this result agrees with the result above.
Examples
Basis change for a matrix of a linear map
Consider the bases Vorlage:Einrücken of , as well as the bases Vorlage:Einrücken of . Let be a map with the following matrix with respect to and : Vorlage:Einrücken
We want to determine the matrix of with respect to the bases and . This can be done by matrix multiplication . To do so, we must first calculate the basis change matrices and . Mathe für Nicht-Freaks: Vorlage:Beispiel Mathe für Nicht-Freaks: Vorlage:Beispiel
Mathe für Nicht-Freaks: Vorlage:Beispiel