Worksheet 2.4 Worksheet: matrix transformations
This worksheet deals with matrix transformations, and in particular, kernel and image. The goal is to understand these important subspaces in a familiar context.
Let be an matrix. We can use to define a transformation given by where we view as an column vector.
The kernel of is the set of vectors such that That is, is the set of solutions to the homogeneous system
The image of (also known as the range of ) is the set of vectors such that for some In other words, is the set of vectors for which the non-homogeneous system is consistent.
Because is a linear transformation, we can compute it as long as we’re given its values on a basis. If is a basis for then for any there exist unique scalars such that
and since is linear, we have
The main challenge, computationally speaking, is that if our basis is not the standard basis, some effort will be required to write in terms of the given basis.
To assist with solving this problem, a code cell is provided below. Recall that you can enter the matrix as
Matrix([[a,b,c],[d,e,f],[g,h,i]])
or as Matrix(3,3,[a,b,c,d,e,f,g,h,i])
.The reduced row-echeleon form of
A
is given by A.rref()
. The product of matrices A
and B
is simply A*B
. The inverse of a matrix A
can be found using A.inv()
or simply A**(-1)
.One note of caution: in the HTML worksheet, if you don’t import
sympy
as your first line of code, you’ll instead use Sage syntax. Sage uses A.inverse()
instead of A.inv()
.In a Jupyter notebook, remember you can generate additional code cells by clicking on the
+
button.xxxxxxxxxx
from sympy import Matrix,init_printing
init_printing()
You can also use the cell below to write down any necessary explanation.
xxxxxxxxxx
2.
xxxxxxxxxx
3.
xxxxxxxxxx
4.
Let be the matrix whose columns are given by the values of on the basis (This would be the matrix of if was actually the standard basis.) Let be the matrix whose inverse you used to solve part (b). Can you find a way to combine these matrices to obtain the matrix If so, explain why your result makes sense.
xxxxxxxxxx
Next we will compute the kernel and image of the transformation from the previous exercises. Recall that when solving a homogeneous system we find the RREF of and any variables whose columns do not contain a leading 1 are assigned as parameters. We then express the general solution in terms of those parameters.
The image of a matrix transformation is also known as the column space of because the range of is precisely the span of the columns of The RREF of tells us which columns to keep: the columns of that correspond to the columns in the RREF of with a leading 1.
Let be the linear transformation given in the previous exercises.
5.
Determine the kernel of
xxxxxxxxxx
6.
Determine the image of
xxxxxxxxxx
7.
xxxxxxxxxx
You have attempted 1 of 8 activities on this page.