Skip to main content

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 A be an m×n matrix. We can use A to define a transformation TA:RnRm given by TA(x)=Ax, where we view x as an n×1 column vector.
The kernel of TA is the set of vectors x such that TA(x)=0. That is, kerTA is the set of solutions to the homogeneous system Ax=0.
The image of TA (also known as the range of TA) is the set of vectors yRm such that y=Ax for some xRn. In other words, im(TA) is the set of vectors y for which the non-homogeneous system Ax=y is consistent.
Because TA is a linear transformation, we can compute it as long as we’re given its values on a basis. If {v1,v2,,vn} is a basis for Rn, then for any xRn there exist unique scalars c1,c2,,cn such that
x=c1v1+c2v2++cnvn,
and since TA is linear, we have
TA(x)=c1TA(v1)+c2TA(v2)++cnTA(vn).
The main challenge, computationally speaking, is that if our basis is not the standard basis, some effort will be required to write x in terms of the given basis.

1.

Confirm that
B={[1023],[4203],[0432],[3521]}
is a basis for R4.
To assist with solving this problem, a code cell is provided below. Recall that you can enter the matrix [abcdefghi] 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.
You can also use the cell below to write down any necessary explanation.

2.

Write each of the standard basis vectors in terms of this basis.
Suggestion: in each case, this can be done by solving a matrix equation, using the inverse of an appropriate matrix.
A linear transformation T:R4R4 is now defined as follows:
T([1023])=[3021],T([4203])=[1205],T([0432])=[4224],T([3521])=[24010].
Let {e1,e2,e3,e4} denote the standard basis for R4.

3.

Determine T(ei) for i=1,2,3,4, and in so doing, determine the matrix A such that T=TA.

4.

Let M be the matrix whose columns are given by the values of T on the basis B. (This would be the matrix of T if B was actually the standard basis.) Let N be the matrix whose inverse you used to solve part (b). Can you find a way to combine these matrices to obtain the matrix A? If so, explain why your result makes sense.
Next we will compute the kernel and image of the transformation from the previous exercises. Recall that when solving a homogeneous system Ax=0, we find the RREF of A, and any variables whose columns do not contain a leading 1 are assigned as parameters. We then express the general solution x in terms of those parameters.
The image of a matrix transformation TA is also known as the column space of A, because the range of TA is precisely the span of the columns of A. The RREF of A tells us which columns to keep: the columns of A that correspond to the columns in the RREF of A with a leading 1.
Let T be the linear transformation given in the previous exercises.

7.

The Dimension Theorem states that for a linear transformation T:VW, where V is finite-dimensional,
dimV=dimker(T)+dimim(T).
Confirm that your results on this worksheet agree with this theorem.
You have attempted 1 of 8 activities on this page.