← Back to Math 010

8.4 Matrices for General Linear Transformations: Class Notes

Recall this example from section 1.8

Find the standard matrix A for the linear transformation T:R2→R3 for which T([−12])=[210] and T([3−5])=[5−71] and use it to compute T([−43]).

Tip: Write each standard basis vector in terms of v→1 and v→2: if e→1=av→1+bv→2, then T(e→1)=aT(v→1)+bT(v→2).

And #3 from 4.7

Consider the bases B={𝐮1,𝐮2,𝐮3} and B′={𝐮′1,𝐮′2,𝐮′3} for R3, where

𝐮1=[211], 𝐮2=[2−11], 𝐮3=[121]

𝐮′1=[31−5], 𝐮′2=[11−3], 𝐮′3=[−102]

a. Find the transition matrix B to B′.
b. Compute the coordinate vector [𝐰]B, where 𝐰=[−58−5] and use the transition matrix in part (a) to compute [𝐰]B′.

Tip

For (a), row reduce

[new basis vectors∣old basis vectors]→[In∣PB→B′]

For (b), row reduce [B∣𝐰].

Now we combine these two concepts.

#5

Let T:R2→R3 be defined by T([x1x2])=[x1+2x2−x10].

a. Find the matrix [T]B′,B relative to the bases B={𝐮1, 𝐮2} and B′={𝐯1, 𝐯2, 𝐯3}, where

𝐮1=[13], 𝐮2=[−24], 𝐯1=[111], 𝐯2=[220], 𝐯3=[300]

Solution

In [T]B′,B, B′ is the new basis and B is the old basis. We find [T]B′,B using an augmented matrix that has the new basis vectors as columns on the left and the images of the old basis vectors as columns on the right.

a. First find T(u→1) and T(u→2).

T(u→1)=T([13])=[1+2·3−10]=[7−10]

T(u→2)=T([−24])=[−2+2·420]=[620]

[12376120−1210000]

The left side holds the new basis vectors 𝐯1,𝐯2,𝐯3; the right side holds the images of the old basis vectors. Row reducing this gives us representations of T(u→1) and T(u→2) in terms of the B′ vectors. That is, we’ll have [T(u→1)]B′ and [T(u→2)]B′.

→[10000010−1210018343]

[T]B′,B=[[T(u→1)]B′|[T(u→2)]B′]

Answer: [T]B′,B=[00−1218343]

This is the matrix for the transformation T relative to the bases B and B′. It acts on coordinate vectors relative to B and returns coordinate vectors relative to B′.

b. Verify that the formula [T]B′,B[𝐱]B=[T(𝐱)]B′ holds for every vector in R2.

b. Let x→=(x1,x2).

Left side: find [x→]B, the coordinate vector relative to B for an arbitrary vector in R2. Solve c1u→1+c2u→2=[x1x2]:

[1−2x134x2] → [102x1+x2501−3x1+x210] ⇒ [x→]B=[2x1+x25−3x1+x210]

Now multiply:

[T]B′,B[x→]B=[00−1218343][2x1+x25−3x1+x210]=[0−12x123x1+23x2]

Right side: find [T(x→)]B′, the coordinate vector relative to B′ of the image of an arbitrary vector. Since T([x1x2])=[x1+2x2−x10], we use

[123x1+2x2120−x11000] → [1000010−12x100123x1+23x2]

So [T(x→)]B′=[0−12x123x1+23x2]=[T]B′,B[x→]B. The two sides are the same.

A specific example

Suppose we want to use [T]B′,B to find T([113]), where T([x1x2])=[x1+2x2−x10].

Step 1: Express x→=(11,3) in terms of B.

[1−211343] → [1−21101−3] → [10501−3]

So (11,3)=5u→1−3u→2. That is, [x→]B=[5−3].

Step 2: Multiply.

[T]B′,B[x→]B=[00−1218343][5−3]=[0−112283]=[T(x→)]B′

This is the same as 5[T(u→1)]B′−3[T(u→2)]B′.

Step 3: Use the new coordinate vector with B′.

0[111]−112[220]+283[300]=[17−110]=T(x→)

Answer: T([113])=[17−110]

We can visualize the process as follows.

Three-step diagram: x to its B coordinates, multiply by the matrix, then convert back to T(x)

A diagram with four corners. Bottom left: x→=(11,3). Arrow (1) goes up to top left: [x→]B=(5,−3). Arrow (2), labeled [T]B′,B[x→]B, goes right to top right: [T(x→)]B′=(0,−112,283). Arrow (3) goes down to bottom right: T(x→)=(17,−11,0). A direct approach arrow goes straight from x→ to T(x→) using the formula T([x1x2])=[x1+2x2−x10].

Definition

Let V be an n-dimensional vector space with basis B={𝐮1,𝐮2,…, 𝐮n} and let W be an m-dimensional vector space with basis B′. Suppose that T:V→W is a linear transformation, and that for each vector 𝐱 in V, the coordinate vectors for 𝐱 and T(𝐱) are [𝐱]B and [T(𝐱)]B′, respectively. Then the matrix for 𝐓 relative to the bases 𝐁 and 𝐁′ is written [by this author] as

[T]B′,B=[[T(𝐮1)]B′|[T(𝐮2)]B′|…|[T(𝐮n)]B′].

This matrix has the property that [T]B′,B[𝐱]B=[T(𝐱)]B′.

#8

Let T:P2→P3 be the linear transformation defined by T(p(x))=xp(x−3), that is, T(c0+c1x+c2x2) =x(c0+c1(x−3)+c2(x−3)2)

a. Find [T]B′,B relative to the bases B={1, x, x2} and B′={1, x, x2, x3}.
b. Use the three-step procedure illustrated in Example 2 to compute T(1+x−x2).
c. Check the result obtained in part (b) by computing T(1+x−x2) directly.

Solution

a. Apply T to each vector in B:

T(1)=x,T(x)=x(x−3)=x2−3x,T(x2)=x(x−3)2=x3−6x2+9x

Since B′ is the standard basis for P3, the coordinate vectors are the coefficients (constant term first):

[T(1)]B′=[0100],[T(x)]B′=[0−310],[T(x2)]B′=[09−61]

Answer: [T]B′,B=[0001−3901−6001]

b. Step 1: 1+x−x2=1(1)+1(x)−1(x2), so [x→]B=[11−1].

Step 2:

[T]B′,B[x→]B=[0001−3901−6001][11−1]=[0−117−1]=[T(x→)]B′

Step 3: T(x→)=0(1)−11(x)+7(x2)−1(x3).

Answer: T(1+x−x2)=−x3+7x2−11x

c. Directly:

T(1+x−x2)=x[1+(x−3)−(x−3)2]=x[−x2+7x−11]=−x3+7x2−11x

This matches part (b).

Definition

In the special case where T:V→V is a linear operator with B=B′={𝐮1,𝐮2,…, 𝐮n}, the matrix for T is called the matrix for 𝐓 relative to the basis 𝐁 and is written [by this author] as

[T]B=[[T(𝐮1)]B|[T(𝐮2)]B|…|[T(𝐮n)]B].

#18

Let D:P2→P2 be the differentiation operator D(𝐩)=p′(x).

a. Find the matrix for D relative to the basis B={𝐩1,𝐩2,𝐩3} for P2 in which 𝐩1=2, 𝐩2=2−3x, 𝐩3=2−3x+8x2.
b. Use the matrix in part (a) to compute D(6−6x+24x2).

Solution

a. Differentiate each basis vector:

D(p→1)=0,D(p→2)=−3,D(p→3)=−3+16x

That is,

D(p→1)=[000],D(p→2)=[−300],D(p→3)=[−3160]

These are relative to the standard basis for P2. To write them relative to B, put the B vectors on the left and the images on the right:

[2220−3−30−3−30016008000] → [1000−3223601000−163001000]

Answer: [D]B=[0−3223600−163000]

b. To find D(6−6x+24x2), express p→=6−6x+24x2 in terms of B.

[22260−3−3−600824] → [1001010−10013] ⇒ [p→]B=[1−13]

[D]B[p→]B=[0−3223600−163000][1−13]=[32+232−160]=[13−160]=[D(p→)]B

So D(p→)=13p→1−16p→2+0p→3 =13(2)−16(2−3x).

Answer: D(6−6x+24x2)=48x−6

Check: differentiating directly, D(6−6x+24x2)=−6+48x.

Theorem 8.4.1

If T1:U→V and T2:V→W are linear transformations, and if B, B″, and B′ are bases for U, V, and W, respectively, then

[T2∘T1]B′,B=[T2]B′,B″[T1]B″,B.

The matching highlights show that each basis appears on both sides: B goes with U, B″ with V, and B′ with W.

#13

Let T1:P1→P2 be the linear transformation defined by T1(c0+c1x)=2c0−3c1x and let T2:P2→P3 be the linear transformation defined by T2(c0+c1x+c2x2)=3c0x+3c1x2+3c2x3. Let B={1, x}, B″={1, x, x2}, and B′={1,x,x2,x3}.

a. Find [T2∘T1]B′,B, [T2]B′,B″, and [T1]B″,B.
b. State a formula relating the matrices in part (a).
c. Verify that the matrices in part (a) satisfy the formula you stated in part (b).

Solution

a. Find [T2∘T1]B′,B from (T2∘T1)(c0+c1x): apply T2∘T1 to the vectors in B.

(T2∘T1)(1)=T2(T1(1))=T2(2)=6x → [0600]

(T2∘T1)(x)=T2(T1(x))=T2(−3x)=−9x2 → [00−90]

[T2∘T1]B′,B=[00600−900]

For [T2]B′,B″: T2(1)=3x, T2(x)=3x2, T2(x2)=3x3, so

[T2]B′,B″=[000300030003]

For [T1]B″,B: T1(1)=2, T1(x)=−3x, so

[T1]B″,B=[200−300]

b. The formula (Theorem 8.4.1):

Answer: [T2∘T1]B′,B=[T2]B′,B″[T1]B″,B

c. Multiply:

[T2]B′,B″[T1]B″,B=[000300030003][200−300]=[00600−900]=[T2∘T1]B′,B

Theorem 8.4.2

If T:V→V is a linear operator, and if B is a basis for V, then T is one-to-one if and only if [T]B is invertible. Moreover, when these conditions hold, [T−1]B=[T]B−1.