The matrix of a linear transformation
What is a linear transformation
From our lesson on the image and range of linear transformations we learnt that a linear transformation is a technique in which a vector gets "converted" into another by keeping a unique element from each of the original vector and assigning it into the resulting vector. This process basically maps one vector space into another. There may be different kinds of transformations in mathematics but the case of a linear transformation in linear algebra is that which preserves linear combinations from the original expression to the resulting one, in simple words, it preserves the way addition and scalar multiplication operate from the original vector to the transformed vector. A linear transformation example can also be called linear mapping since we are keeping the original elements from the original vector and just creating an image of it.
Recall the matrix equation Ax=b, normally, we say that the product of and gives . Now we are going to say that A is a linear transformation matrix that transforms a vector x into a vector (we now call an image of a linear transformation of ).
In a sense is a function where if we plug in a vector, then it spits out another vector. If we call this function , then , where is the transformation. Note that is an image of since ;
The matrix of a linear transformation
So, let us define once more a linear transformation in mathematical form:
Where is read as "the transformation of ", is the initial vector, and is the transformation matrix. We will focus on this this is what we call: the standard matrix of a linear transformation.
During this lesson, we will focus on methods to solve for the standard matrix A when you are given a linear transformation of a vector.
Let us start by describing the three main methods we use to solve such problems and then we will jump into examples of such exercises.
How to find the standard matrix of a linear transformation
There are three methods we can use to obtain the standard matrix of a linear transformation:
- Calculating the standard matrix using the transformed basis:
For a two dimensional basis, when using this method, we are provided with the unit vectors and and with the transformed basis vectors and to start with. If we are talking about a three-dimensional basis then we are provided with the unit vectors and and the transformed vectors , and . Then, the steps to follow to obtain the standard matrix are:
- Use the definition of a linear transformation: and define the vector .
- Expand vector into its components until is written in terms of the unit vectors and its variables .
- Use the expansion of vector and perform the linear transformation .
- Expand the transformation until is in terms of the transformed vectors , , ... , and the variables .
- Then rewrite this expression from the transformation as the matrix multiplication .
- You have found the matrix .
Notice that the standard matrix found is composed of the transformed vectors , , ... , . Technically, you could very well skip this whole process and just write down the matrix using the provided transformed vectors, BUT, you need to know how they were derived (plus your teacher may not accept this solution without an explanation). So make sure you understand the whole process.
Examples of this method are found in example exercises 1 and 2 in our next section.
- Finding the standard matrix geometrically:
To find a standard matrix geometrically means to find it using a cartesian coordinates graph, actually draw the vectors involved, see the transformations they go through and obtain from the result a new matrix: the standard matrix. The steps to follow to find a standard matrix geometrically for a two-dimensional basis are:
- Draw the standard basis and in the .
- Obtain the transformed vectors and .
- Draw the transformed vectors using the information provided in the problem.
- Combine the transformed vectors to produce the standard matrix.
Notice that are providing the steps for a two-dimensional basis only, since we can a two-dimensional coordinate plane only (actually, you can also draw a three-dimensional plane, but it gets a bit complicated. Further than three dimensions we cannot draw them, and so, we use other techniques to solve for transformations with such bases).
For a step by step explanation on how to use this method, look at example 3 in our last section for this lesson.
- Computing the standard matrix algebraically:
The algebraic computation in order to find the standard matrix of a linear transformation can be done easily when the problem provides the complete expression for the linear transformation . In other words, once you have the initial vector x and the final vector , you can use these expressions to solve for the matrix .
The steps to follow in order to solve a problem this way are:
- Expand the given expression of the linear transformation resulting vector into an addition of vectors for each of the different variables inside.
- Factor out the variables from each of the column vectors.
- Form a matrix multiplication by rearranging the resulting column vectors from our last step into a matrix, and then multiplying it for the vector x which is the column vector containing all of the variables .
- The matrix that was formed in our last step is the standard matrix of the linear transformation.
An example of this process can be seen in the exercise example 4 in our next section.
Notice that this is probably the simplest methods to use, and if you are given all of the necessary information and have to be time-effective while solving an exercise on this, we recommend you to use this method.
Linear transformation matrix examples
During the first two examples we will be finding the Standard Matrix using a transformed basis, then we will see two examples on how to find the standard matrix geometrically. We finish off with an example where we will compute the standard matrix algebraically.
Example 1
Assume that is a linear transformation. Find the matrix representation of linear transformation (the standard matrix) if:Where the unit vectors are defined as follows:
To answer this question we could literally just take the vectors resulting from the linear transformation of the unit vectors and , put them together into a matrix and that would be our standard matrix, but how does that work? Let us derive it then!
We know that a linear transformation of a matrix has the form: , therefore, we need a vector to perform the transformation. For this case our vector must have two entries, and so, vector is (notice this is just any vector in two dimensions):
We can expand this vector x into an addition of vectors and factor out their components in order to have the unit vectors which form part of it visible, just look at how we have expanded it below:
And now, it can clearly be seen how the vector x is composed by the variables and , and the set of unit vectors and . Thus we can rewrite this last equation as:
So we take the linear transformation of vector which goes as:
Notice how the linear transformation affects the unit vectors only, this is because those are the ones establishing the direction of the vector and a linear transformation usually changes that (remember it can rescale a vector too, but the most common cases it preserves its magnitude, but rotates it with respect of a certain axes). So, since we know what T() and T() are we can rewrite the transformation as:
Where the standard matrix of a linear transformation as the one represented in equation 2 is:
Example 2
Assume that is a linear transformation. Find the standard matrix of linear transformation if:where the unit vectors are defined as:
A linear transformation of a matrix has the form: , thus, we start by expanding the vector into its components once more:
We can observe how vector is composed by the variables and , and the set of unit vectors and . Thus we can rewrite this last equation as:
So we take the linear transformation of vector x which goes as:
Since we know what T(), T() and T() are we can rewrite the transformation as:
And so, the standard matrix is:
Example 3
Assume that is a linear transformation. Find the matrix of the linear transformation if : is a vertical shear transformation that maps to and leaves unchanged.Let us first define the standard basis for this problem, given that we are talking of a 2-dimensional vector space , then this means our standard basis unit vectors are:
For this example we will use the steps summarized on the method to find a standard matrix geometrically:
The transformation provided is defined as: to and unchanged. Using the standard basis unit vectors we can define the transformations as:
Notice that because the transformation is defined to leave the basis unchanged.
Example 4
Show that is a linear transformation by finding a matrix that implements the mapping:This is the easiest method to use when given the linear transformation definition, the only thing to do is to separate the vector given into its variables' individual vectors:
We can rewrite the transformation above as follows, by factoring out of the column vectors the variables , and :
And so, now we can see how the transformation fits with the formula for a linear transformation by rewriting it once more as the appropriate matrix multiplication of and the column vector :
Therefore, the linear transformation matrix, or standard matrix is:
Now that you have learnt how to compute linear transformations and their corresponding standard matrices, we would like to finalize our lesson be recommending you to take a look into this lesson on linear transformations from to , where you can see some more examples and graphs with the transformations explained. We also recommend this lesson named Google search since it goes even deeper on the subject matter by introducing some calculus level computations and linear transformation applications.
So, this is it for our lesson of today, we hope you enjoyed it. Make sure to work through the exercises and see you on the next one!
Why does that work? Watch the intro video
The standard basis, , , and are unit vectors in such that:
To find the standard basis in geometrically in a graph we:
1. Draw the standard basis and in the plane
2. Draw the transformed vectors using the information given
3. Identify the transformed vectors , and .
4. Combine them to get the standard matrix
Here are the many types of transformations you may see in this section: