If you recall, vector spaces can have many different bases. Different bases are useful for different tasks. For example, it is often possible to represent a matrix in a basis where it is diagonal, which is exceptionally simple. This is essential for operations with matrices which occur not only in linear algebra, but also in its applications like physics and data science. Is it possible to switch between bases ? Yes of course! In this topic, we'll see how we can change the basis we're working with and what effect it will have.
What happens when we change the basis?
Suppose we have a vector space such that . Let's choose two bases: , the "old" basis and , the "new" basis. We can decompose each vector of the new basis in the old basis, that is, present it as a linear combination of vectors with said coefficients:
In the matrix view, this can be rewritten as follows:
where is a column of coefficients. So there is a matrix made up of these columns:
This matrix is called the transition matrix from the basis to the basis . This is a -matrix and its -ith column consists of the coordinates of the vector in the old basis .
For example, we have a vector space and is a standard basis:Consider a new basis , where . What is the transition matrix from to ? We find the coordinates of the vectors in the basis :
and from the columns of the coordinates of the vectors we make the matrix:
This is the transition matrix from to .
Properties of a transition matrix
The transition matrix has several important properties:
1) The transition matrix always has a non-zero determinant.
2) Any matrix with a non-zero determinant is a transition matrix from a given basis to some other basis.
3) If is a transition matrix from the basis to the basis , then is a transition matrix from the basis to the basis .
4) If is a transition matrix from to and is a transition matrix from to , then is a transition matrix from to .
How can we find a transition matrix?
Now that we know what transitions matrices are in theory, let's try to find one!
Suppose we know the coordinates of the vectors of both bases and of the vector space in the standard basis. We write the coordinates of these vectors of the basis as the columns of the matrix , and the coordinates of the vectors of the basis as the columns of the matrix next to . Then we get a -matrix and bring it to the row echelon form. Since the determinant of the matrix is non-zero, we get the identity matrix in its place:
Then is the desired transition matrix.
Consider the following example. Suppose we have two bases of the vector space :Let's find a transition matrix from to . We write the -matrix:
Now we get this matrix to a row echelon form to get the identity matrix on the left:
So, the matrixis a transition matrix from to .
Change of coordinates
The change of bases doesn't go without a trace. Since we use the basis to represent other vectors, it's natural to assume that the change of the basis will alter these representations.
Suppose we have an arbitrary vector , and are two bases of the vector space , and is a transition matrix from to .
The vector has the following coordinates:
From the definition of the transition matrices, we get the following rules:
Here's a picture which will help you to memorize these formulas:
These rules tell us how the basis change will affect the coordinates of arbitrary vectors. Let's see how this works in an example. We have two bases of the vector space :Suppose the vector has the following coordinates in the basis :
What are the coordinates of this vector in the basis ?
We have seen above that the transition matrix in this case is
Then, the coordinates of in the basis can be found by the following formula:
So, the vector has the following coordinates in the basis :
Conclusion
In this topic, we've learned about a transition matrix. The transition matrix is what we get when we change bases.
There's a fairly simple process for finding transition matrices, which requires basic matrix manipulations. The transition matrix allows us to find the coordinates of arbitrary vectors in a new basis. It can be extremely useful if we're stuck working with an inconvenient basis.