Hello! Welcome back to our journey through linear transformations.
In the last lesson, we established a crucial idea: every matrix A defines a linear transformation T(\mathbf{x}) = A\mathbf{x}. We saw that the columns of the matrix A are simply the vectors where the standard basis vectors, , land after the transformation. This gave us a powerful link between the algebra of matrices and the geometry of transformations.
But what makes the standard basis so special? Nothing, really, other than convenience. Today, we ask a pivotal question: What if we describe vectors using a different basis? How would the matrix for our transformation change? This is a fundamental concept in both quantum mechanics, where choosing the right basis (an "eigenbasis") simplifies quantum operators, and in deep learning, where techniques like PCA find a new basis to better represent data.
Our goal for this lesson is to learn how to find the matrix representation of a linear transformation with respect to given bases. We will see that changing our basis is like changing our language or point of view, and the matrix of the transformation must be "translated" accordingly.
1. From the Standard Basis to Any Basis
Let's quickly recall the core idea from last time. For a linear transformation , its matrix A in the standard basis is:
The columns are the images of the standard basis vectors. This works because any vector can be written as , and its transformation is , which is exactly what matrix-vector multiplication calculates.
Now, let's switch to a new basis . We want to find a matrix, let's call it , that takes the coordinates of a vector in the basis B and gives us the coordinates of the transformed vector, also in the basis B.
The logic is perfectly analogous. The matrix must be constructed such that its columns tell us where the new basis vectors land, expressed in the new language.
Specifically, the -th column of is the coordinate vector of with respect to the basis . We denote this coordinate vector as .
This gives us a direct, if sometimes tedious, method to build the matrix.
The Matrix of a Linear Transformation II
Let's first clarify the concept of a "coordinate vector" and see the formal statement of this construction. The Math LibreTexts page provides a clear definition and theorem.
Please read Definition 5.8.1 ('Coordinate Vector') to understand the notation [x]_B. Then, read Theorem 5.8.2 ('The Matrix of a Linear Transformation'), focusing on the structure of the matrix M_{B_2 B_1}. For our current discussion, you can assume B_1 = B_2 = B.
The "Direct" Method in Action
So, how does this work in practice? To find each column , you follow three steps:
- Take a basis vector from your new basis, .
- Apply the transformation to it to get the output vector (this will be in standard coordinates).
- Find which linear combination of your basis vectors gives you . The coefficients of this combination form the coordinate vector , which becomes the -th column of your new matrix.
This process involves solving a system of linear equations for each column.
Matrix with respect to a basis
This video from Dr. Peyam works through a full example of this direct method. It's very procedural and clearly shows how the pieces fit together.
Watch the first part of the video (0:00 - 6:44). Follow the steps he takes to calculate the two columns of the new matrix. Notice how for each column, he has to solve a small linear system.
2. The Intuitive "Change of Perspective" Method
The direct method works, but it feels like a lot of brute-force computation. There's a more elegant and intuitive way to think about this, which frames the problem as a "translation" between different points of view.
Imagine you have a vector described in basis , say . To apply the transformation , which we know how to do using its standard matrix , we can follow a three-step recipe:
- Translate to Standard Coordinates: Convert from the language of basis into the standard coordinate language.
- Apply the Transformation: Use the standard matrix to transform the vector.
- Translate back to Basis B: Convert the resulting vector back into the language of basis .
This process is beautifully illustrated in the following video.
Change of basis | Chapter 13, Essence of linear algebra
3Blue1Brown's video on 'Change of basis' provides the essential intuition for this three-step process. He uses the analogy of translating between your coordinate system and 'Jennifer's' coordinate system.
Please watch from 8:55 to 12:35. Pay close attention to the sequence of operations: first, apply the change of basis matrix, then the transformation matrix, then the inverse change of basis matrix.
Let's formalize this. Let be the matrix of in the standard basis. Let be the change-of-basis matrix whose columns are the vectors of our new basis .
- Multiplying by translates a vector's coordinates from basis to the standard basis: .
- Multiplying by translates from standard coordinates to basis coordinates: .
Following our three-step recipe, the transformation of to is:
This means the matrix of in the basis is the product of these three matrices:
This is a similarity transformation. The matrix is said to be similar to . It represents the exact same geometric transformation, just described from a different point of view.
Dr. Peyam's video, which you watched earlier, also arrives at this same formula, connecting the procedural method with this more abstract change-of-perspective formula.
Matrix with respect to a basis
Let's revisit Dr. Peyam's video to see how he derives this same formula from his calculations.
Watch from 6:44 to 10:56. He shows that the 'faster way' to compute the matrix is precisely the formula P_B^-1 * A * P_B.
Test your understanding!
Let be the linear transformation that reflects vectors across the y-axis, so .
Let's use a new basis . Let and .
Find the matrix that represents this reflection in the basis . Try using the direct method.
Show answer
We need to find the two columns of : and .
-
First Column:
- Apply to : .
- Find the coordinates of this result in basis . We need to find such that .
- By inspection, is exactly . So, the combination is .
- The coordinate vector is . This is the first column.
-
Second Column:
- Apply to : .
- Find the coordinates of this result in basis . We need such that .
- This is exactly , so the combination is .
- The coordinate vector is . This is the second column.
Putting it together, the matrix is:
Isn't that interesting? In this special basis, the reflection across the y-axis is represented by a matrix that simply swaps the two coordinates! This shows how choosing a clever basis can simplify the description of a transformation.
3. A Preview: The Power of Eigenbases
Why do we go to all this trouble to change bases? Because we want to find a basis where the transformation's matrix is as simple as possible. The ideal scenario is a diagonal matrix.
Imagine if our basis vectors were special vectors that are only scaled by the transformation, such that . These are called eigenvectors, and the scaling factors are eigenvalues.
What would the matrix look like in this "eigenbasis"?
The first column would be . In the language of , the vector is just units of the first basis vector and 0 units of the others. So its coordinate vector is simply .
Following this logic for all basis vectors, the matrix becomes beautifully simple:
Finding a basis that diagonalizes the matrix of a transformation is one of the most powerful techniques in linear algebra. It's the key to solving systems of differential equations, understanding the core action of quantum operators, and much more.
Matrix with respect to a basis
Dr. Peyam concludes his video with exactly this point, showing how an eigenbasis leads to a diagonal matrix.
Watch the final part of the video (10:56 - 14:57). This is a fantastic preview of our module on eigenvalues and diagonalization.
Conclusion
Today, we've generalized our understanding of matrices. They don't just represent transformations in the standard basis; they can represent a transformation from any point of view.
Key Takeaways:
- The matrix of a linear transformation depends on the chosen basis .
- The matrix describes the transformation in the "language" of the basis .
- The -th column of is the coordinate vector of the transformed basis vector relative to , written as .
- This matrix can be found elegantly using the change-of-basis formula: , where is the standard matrix and is the matrix whose columns are the vectors of basis . This is called a similarity transformation.
- The ultimate goal of changing basis is often to find one where the transformation's matrix becomes simple, ideally diagonal. This occurs when the basis is an eigenbasis.
Preview of the Next Lesson:
We've seen how a matrix describes the overall geometry of a transformation. In the next lesson, we will dissect this geometry by exploring two fundamental subspaces associated with any linear transformation: the null space (or kernel), which consists of all vectors that are squashed into the zero vector, and the column space (or image), which is the set of all possible outputs of the transformation. Understanding these spaces is key to understanding what a transformation does and does not do.