Skip to main content

Section 5.2 The matrix of a linear operator

Recall that a linear transformation T:VV is referred to as a linear operator. Recall also that two matrices A and B are similar if there exists an invertible matrix P such that B=PAP1, and that similar matrices have a lot of properties in common. In particular, if A is similar to B, then A and B have the same trace, determinant, and eigenvalues. One way to understand this is the realization that two matrices are similar if they are representations of the same operator, with respect to different bases.
Since the domain and codomain of a linear operator are the same, we can consider the matrix MDB(T) where B and D are the same ordered basis. This leads to the next definition.

Definition 5.2.1.

Let T:VV be a linear operator, and let B={b1,b2,,bn} be an ordered basis of V. The matrix MB(T)=MBB(T) is called the B-matrix of T.
The following result collects several useful properties of the B-matrix of an operator. Most of these were already encountered for the matrix MDB(T) of a transformation, although not all were stated formally.

Example 5.2.3.

Find the B-matrix of the operator T:P2(R)P2(R) given by T(p(x))=p(0)(1+x2)+p(1)x, with respect to the ordered basis
B={1x,x+3x2,2x2}.
Solution.
We compute
T(1x)=1(1+x2)+0(x)=1+x2T(x+3x2)=0(1+x2)+4x=4xT(2x2)=2(1+x2)+1(x)=2+x+2x2.
We now need to write each of these in terms of the basis B. We can do this by working out how to write each polynomial above in terms of B. Or we can be systematic.
Let P=[102110031] be the matrix whose columns are given by the coefficient representations of the polynomials in B with respect to the standard basis B0={1,x,x2}. For T(1x)=1+x2 we need to solve the equation
a(1x)+b(x+3x2)+c(2x2)=1+x2
for scalars a,b,c. But this is equivalent to the system
a+2c=1a+b=03bc=1,
which, in turn, is equivalent to the matrix equation
[102110031][abc]=[101];
that is, PCB(1+x2)=CB0(1+x2). Thus,
CB(1+x2)=[abc]=P1CB0(1+x2)=P1[101].
Similarly, CB(4x)=P1[040]=P1CB0(4x), and CB(2+x+2x2)=P1[212]=P1CB0(2+x+2x2). Using the computer, we find:
That is,
MB(T)=[CB(T(1x))CB(T(x+3x2))CB(T(2x2))]=[P1CB0T(1x)P1CB0T(x+3x2)P1CB0(T(2x2))]=P1[CB0(1+x2)CB0(4x)CB0(2+x+2x2)]=[1/76/73/71/71/72/73/73/71/7][102041102]=[3/724/703/74/712/712/71].
Let’s confirm that this works. Suppose we have
p(x)=CB1[abc]=a(1x)+b(x+3x2)+c(2x2)=(a+2c)+(a+b)x+(3bc)x2.
Then T(p(x))=(a+2c)(1+x2)+(4b+c)x, and we find
CB(T(p(x)))=P1[a+2c4b+ca+2c]=[37a247b37a+47b+c27a+127b+c].
On the other hand,
MB(T)=[3/724/703/74/712/712/71][abc]=[37a247b37a+47b+c27a+127b+c].
The results agree, but possibly leave us a little confused.
In general, given an ordered basis B={b1,b2,,bn} for a vector space V with standard basis B0={e1,e2,,en}, if we let
P=[CB0(b1)CB0(bn)],
then
MB(T)=[CB(T(b1))CB(T(bn)]=P1[CB0(T(b1))CB0(T(bn)],
since multiplying by P1 converts vectors written in terms of B0 to vectors written in terms of B.
As we saw above, this gives us the result, but doesn’t shed much light on the problem, unless we have an easy way to write vectors in terms of the basis B. Let’s revisit the problem. Instead of using the given basis B, let’s use the standard basis B0={1,x,x2}. We quickly find
T(1)=1+x+x2,T(x)=x, and T(x2)=x,
so with respect to the standard basis, MB0(T)=[100111100]. Now, recall that
MB(T)=P1[CB0T(1x)CB0(T(x+3x2)CB0(T(2x2))]
and note that for any polynomial p(x), CB0(T(p(x)))=MB0(T)CB0(p(x)). But
[CB0(1x)CB0(x+3x2)CB0(2x2)]=P,
so we get
MB(T)=P1[CB0T(1x)CB0(T(x+3x2)CB0(T(2x2))]=P1[MB0(T)CB0(1x)MB0(T)CB0(x+3x2)MB0(T)CB0(2x2)]=P1MB0(T)[CB0(1x)CB0(x+3x2)CB0(2x2)]=P1MB0(T)P.
Now we have a much more efficient method for arriving at the matrix MB(T). The matrix MB0(T) is easy to determine, the matrix P is easy to determine, and with the help of the computer, it’s easy to compute P1MB0P=MB(T).

Exercise 5.2.4.

Determine the matrix of the operator T:R3R3 given by
T(x,y,z)=(3x2y+4z,x5y,2y7z)
with respect to the ordered basis
B={(1,2,0),(0,1,2),(1,2,1)}.
(You may want to use the Sage cell below for computational assistance.)
The matrix P used in the above examples is known as a change matrix. If the columns of P are the coefficient vectors of B={b1,b2,,bn} with respect to another basis D, then we have
P=[CD(b1)CD(bn)]=[CD(1V(b1))CD(1V(bn))]=MDB(1V).
In other words, P is the matrix of the identity transformation 1V:VV, where we use the basis B for the domain, and the basis D for the codomain.

Definition 5.2.5.

The change matrix with respect to ordered bases B,D of V is denoted PDB, and defined by
PDB=MDB(1V).

Exercise 5.2.7.

Hint.
The identity operator does nothing. Convince yourself MDB(1V) amounts to taking the vectors in B and writing them in terms of the vectors in D.

Example 5.2.8.

Let B={1,x,x2} and let D={1+x,x+x2,23x+x2} be ordered bases of P2(R). Find the change matrix PDB.
Solution.
Finding this matrix requires us to first write the vectors in B in terms of the vectors in D. However, it’s much easier to do this the other way around. We easily find
PBD=[102113011],
and by Theorem 5.2.6, we have
PDB=(PBD)1=16[422115111].
Note that the change matrix notation is useful for linear transformations between different vector spaces as well. Recall Theorem 5.1.6, which gave the result
MD0B0(T)=QMD1B1P1,
where (using our new notation) P=PB0B1 and Q=PD0D1. In this notation, we have
MD0B0(T)=PD0D1MD1B1(T)PB1B0,
which seems more intiutive.
The above results give a straightforward procedure for determining the matrix of any operator, with respect to any basis, if we let D be the standard basis. The importance of these results is not just their computational simplicity, however. The most important outcome of the above is that if MB(T) and MD(T) give the matrix of T with respect to two different bases, then
MB(T)=(PDB)1MD(T)PDB,
so that the two matrices are similar.
Recall from Theorem 4.1.10 that similar matrices have the same determinant, trace, and eigenvalues. This means that we can unambiguously define the determinant and trace of an operator, and that we can compute eigenvalues of an operator using any matrix representation of that operator.

Exercises Exercises

1.

Let b1=[11] and b2=[12]. The set B={b1,b2} is a basis for R2.
Let T:R2R2 be a linear operator such that T(b1)=8b1+3b2 and T(b2)=7b1+3b2.
  1. Find the matrix MB(T) of T relative to the basis B.
  2. Find the matrix ME(T) of T relative to the standard basis E for R2.

2.

Let f:R2R2 be the linear operator defined by
f(x)=[5025]x.
Let
B={1,2,3,5},C={1,2,1,1},
be two different bases for R2.
(a)
Find the matrix MB(f) for f relative to the basis B.
(b)
Find the matrix MC(f) for f relative to the basis C.
(c)
Find the transition matrix PBC such that CB(v)=PBCCC(v).
(d)
Find the transition matrix PCB such that CC(v)=PCBCB(v).
Reminder: PCB=PBC1
On paper, confirm that PCBMB(f)PBC=MC(f).
You have attempted 1 of 5 activities on this page.