Home page for accesible maths 4 Linear transformations

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

4.A The matrix of a linear transformation

Throughout this Chapter we will use the letter F to denote any field; but usually, in exercises and applications, it will mean either F=ℝ or F=ℂ. The notion of a linear transformation was introduced in MATH105 as a function from ℝn to ℝm. We will restate the definition here, in terms of arbitrary vector spaces.

Definition 4.1:

Let V and W be vector spaces over the same field F. A function T:V→W is called a linear transformation if it satisfies the following two conditions:

  1. T1

    T⁢(v→+w→)=T⁢(v→)+T⁢(w→) for any v→,w→∈V,

  2. T2

    T⁢(α⁢v→)=α⁢T⁢(v→) for any v→∈V and α∈F.

Here V is the domain of T, and W is the codomain of T.

Example 4.2.

Let A∈Mn×m⁡(F) for a field F. Then the function T:Fm→Fn defined as follows is a linear transformation:

T⁢(x→):=A⁢x→

for all x→∈Fm. Here we consider elements of Fm as m×1 column vectors.

As we have seen in MATH105 for F=ℝ, every linear transformation T:Fm→Fn can be expressed as T⁢(x→)=A⁢x→ for some matrix A.

[Caution: The phrase “Linear transformation” is used differently in MATH230. In that module the functions of the form T⁢(x→)=A⁢x→+b→, where b→ is a non-zero vector are also considered “linear transformations” (unlike this module). Also, other sources sometimes prefer the name “linear map” or “vector space morphism”.]

Example 4.3.

Let T:R3→R2 be defined by T⁢(x,y,z):=(x+2⁢y,y-z). Find a matrix A such that T⁢(v→)=A⁢v→.

Solution: Write e1→,e2→,e3→ for the standard basis of R3, and to avoid duplicating notation, we write f1→,f2→ for the standard basis of R2. Then we compute that

T⁢(e1→) =(1,0)=f1→+0⁢f2→
T⁢(e2→) =(2,1)=2⁢f1→+f2→
T⁢(e3→) =(0,-1)=0⁢f1→-f2→.

Finally, create A by taking the columns to be the coordinates of T⁢(ei→) with respect to the standard basis of R2. So A=[12001-1].

The above example should be familiar from MATH105. It makes use of the standard basis of ℝn. The following generalization allows for non-standard bases as well.

Definition 4.4:

Let V, W be vector spaces over the same field F, and assume:

ℬ=(b1→,⋯,bm→)

is a basis of V, and

𝒞=(c1→,⋯,cn→)

is basis of W. If T:V→W is a linear transformation, then the matrix of T with domain basis B and codomain basis C is constructed as follows:

[T]ℬ𝒞=[[T⁢(b1→)]𝒞⋯[T⁢(bm→)]𝒞]∈Mn×m(F).

In other words, the columns are the coordinates of T⁢(bi→) with respect to the basis 𝒞. In the case when ℬ=𝒞 we also simply write:

[T]ℬ:=[T]ℬℬ.

If no basis is specified, then the matrix of a linear transformation T:Fm→Fn is defined as above, but using the standard basis for Fn and Fm, as in Example 4.3.

Example 4.5.

Let T:R2→R2 be defined by T⁢(x,y):=(4⁢y,-x-4⁢y), and let B=((2,-1),(1,0)) be a basis for R2. Compute the matrix of T with respect to the basis B in the domain and codomain.

Solution: We compute the coordinates as T⁢(bi→) as follows:

T⁢(b1→) =(-4,2)=-2⁢b1→+0⁢b2→
T⁢(b2→) =(0,-1)=b1→-2⁢b2→.

Using these coordinates as the column vectors, we find [T]BB=[-210-2].

Exercise 4.6:

Consider the linear transformation T:ℝ2→ℝ2 defined by T⁢(x,y):=(-x+2⁢y,-6⁢x+6⁢y). Prove that the matrix of T with respect to the basis ℬ=((2,3),(1,2)) in both the domain and codomain is:

[T]ℬℬ=[2003].

[End of Exercise]

Theorem 4.7.

Let T:V→W be a linear transformation, and B,C bases for V and W respectively. Then for any vector v→∈V we have

(𝒞[T]ℬ)[v→]ℬ=[T(v→)]𝒞.

Recall that [v→]B is the column vector of coordinates of v→ with respect to B, and [T⁢(v→)]C is the column vector of coordinates of T⁢(v→) with respect to C.

In other words, the matrix [T]ℬ𝒞 transforms the coordinate vector [v→]ℬ to [T⁢(v→)]𝒞. The following exercise verifies this theorem is some specific cases.

Exercise 4.8:

Let T⁢((x,y,z)):=(x,x+y,x+y+z), and v→=(1,0,0), and let 𝒞 be the standard basis of ℝ3. For each of the following bases, compute [T]ℬ𝒞 and [v→]ℬ. Hence verify Theorem 4.7 for the vector v→ in each case:

  1. i.

    ℬ is the standard basis of ℝ3.

  2. ii.

    ℬ=((0,1,0),(1,-1,0),(0,1,3)).

  3. iii.

    ℬ=((0,1,1),(1,0,0),(-2,0,1)).

[End of Exercise]

Corollary 4.9.

If B, C, and D are all bases of V, and T,S:V→V are linear transformations, then we have

([T]𝒞𝒟)([S]ℬ𝒞)=[T∘S]ℬ𝒟.
Proof.

The proof repeatedly uses Theorem 4.7. For any v→∈V we have:

([T]𝒞𝒟)([S]ℬ𝒞)[v→]ℬ=([T]𝒞𝒟)[S(v→)]𝒞=[T(S(v→)]𝒟=([T∘S]ℬ𝒟)[v→]ℬ.

But if P⁢[v→]ℬ=Q⁢[v→]ℬ for all vectors v→, then P=Q. The result follows. ∎

It’s as if the neighbouring “𝒞”s cancel each other out. This is the reason for writing the notation as it is, and is a good trick for manipulating these matrices.