4.1  The Matrix of a Linear Map

An isomorphism V≅Fn turns the vectors of an abstract space into columns. This section does the same for maps. Once a basis is fixed on each side, every linear map between finite-dimensional spaces becomes a matrix, applying the map becomes multiplying by that matrix, and composing maps becomes multiplying matrices. This last fact finally explains the strange multiplication rule of Chapter 0, and it gives us the working method of the rest of the book: to study an abstract map, write down its matrix, compute there, and translate back.

4.1.1. Writing a map as a matrix

We have seen one family of linear maps that is completely described by a table of numbers: the matrix maps TA:Fn→Fm, x↦Ax. In fact every linear map T:Fn→Fm is one of them. By Theorem 2.1.4 and Theorem 0.9.3, for x=x1e1+⋯+xnen, Tx=x1Te1+⋯+xnTen=Ax,where A=(Te1⋯Ten). The j-th column of A is the image of the j-th basis vector. We want the same description for maps between arbitrary finite-dimensional spaces, such as differentiation on polynomials.

Take D:R[x]≤3→R[x]≤2. Then D(a0+a1x+a2x2+a3x3)=a1+2a2x+3a3x2. A polynomial is not a column, but its coordinates are. In the bases (1,x,x2,x3) and (1,x,x2), the input has coordinates (a0,a1,a2,a3) and the output has coordinates (a1,2a2,3a3), and (a12a23a3)=(010000200003)(a0a1a2a3). Look at the columns of this matrix: (0,0,0), (1,0,0), (0,2,0), (0,0,3). They are the coordinates of D(1)=0, D(x)=1, D(x2)=2x, D(x3)=3x2. The standard example generalizes: record the images of the input basis, in coordinates of the output basis, as columns.

The matrix of a linear map lists, column by column, where the input basis vectors go, written in coordinates of the output basis.

Definition 4.1.1 (Matrix of a Linear Map)

Let V and W be finite-dimensional vector spaces over F, with ordered bases B=(v1,…,vn) of V and C=(w1,…,wm) of W, and let T∈L(V,W). The matrix of T with respect to B and C is the m×n matrix [T]BC:=([Tv1]C[Tv2]C⋯[Tvn]C)∈Mm×n(F), whose j-th column is the coordinate vector of Tvj with respect to C. Equivalently, its entries aij are the unique scalars with Tvj=a1jw1+a2jw2+⋯+amjwm(j=1,…,n). When V=W and B=C, we call [T]BB the matrix of the operator T with respect to B; the basis is written in both slots even though it is the same one on each side.

In words, clause by clause:

  • The input basis B is the subscript, the output basis C is the superscript. The subscript sits next to where the input goes, as in [T]BC[v]B below.
  • Columns correspond to input basis vectors, so there are n=dim⁡V of them; rows correspond to output basis vectors, so there are m=dim⁡W. The size is “dim⁡(codomain)×dim⁡(domain)”, the same order as Mm×n for TA:Fn→Fm.
  • Column j answers one question: where does vj go?

Well-definedness. Each Tvj lies in W, and C is a basis, so [Tvj]C exists and is unique by Theorem 1.5.1. So the matrix is determined by T, B, and C. It is not determined by T alone: change either basis, or even the order of the vectors in one of them, and the matrix changes. That is why the bases are ordered.

Example (Differentiation on Cubic Polynomials)

Let E3=(1,x,x2,x3) and E2=(1,x,x2). Find [D]E3E2 for D:R[x]≤3→R[x]≤2, and [D]E3E3 for D regarded as an operator on R[x]≤3.

Solution. The images of the input basis are D(1)=0, D(x)=1, D(x2)=2x, D(x3)=3x2. In E2 their coordinates are (0,0,0), (1,0,0), (0,2,0), (0,0,3); in E3 the same vectors have a fourth coordinate 0. So [D]E3E2=(010000200003),[D]E3E3=(0100002000030000). The same rule p↦p′ gives a 3×4 or a 4×4 matrix, depending on the codomain we declare. The superdiagonal 1,2,3 records “xk↦kxk−1”.

Example (Matrix Maps and the Identity)
  • (a) Let A∈Mm×n(F), and let En, Em be the standard bases of Fn, Fm. Show that [TA]EnEm=A.
  • (b) Let B be any basis of an n-dimensional space V. Find [idV]BB and the matrix of the zero map V→W for any bases.

Solution.

  • (a) The j-th column of [TA]EnEm is [Aej]Em=Aej, since coordinates in the standard basis of Fm are the entries themselves; and Aej is the j-th column of A (Theorem 0.9.3). So the matrix of a matrix map in the standard bases is the matrix we started with.

  • (b) idVvj=vj=0v1+⋯+1vj+⋯+0vn, so the j-th column of [idV]BB is ej, and [idV]BB=In. The zero map sends every vj to 0, whose coordinates are all 0, so its matrix is the zero matrix of size dim⁡W×dim⁡V, whatever the bases. These degenerate cases fix the expectations “identity map, identity matrix” and “zero map, zero matrix”. The first needs the same basis on both sides, as the warning below shows.

Example (The Transpose Map)

Let T:M2(F)→M2(F), T(X)=X⊤, and let E=(E11,E12,E21,E22). Find [T]EE.

Solution. T is linear by Theorem 0.9.5. Its values on the basis are E11⊤=E11, E12⊤=E21, E21⊤=E12, E22⊤=E22. In E, these have coordinates e1,e3,e2,e4. So [T]EE=(1000001001000001). A map on a space of 2×2 matrices is described by a 4×4 matrix, because dim⁡M2(F)=4. Do not confuse the matrix X that T acts on with the matrix [T]EE that describes T.

Example (A Reflection in Two Bases)

Let T:R2→R2 be the reflection across the line y=x, T(x,y)=(y,x). Find [T]EE for the standard basis E=(e1,e2), and [T]BB for B=(u1,u2) with u1=(1,1) and u2=(1,−1).

Solution. Te1=(0,1)=e2 and Te2=e1, so [T]EE=(0110).

The vectors u1,u2 are independent (neither is a multiple of the other), hence a basis of R2 by Theorem 1.6.4. The first lies on the mirror line and the second is perpendicular to it: Tu1=(1,1)=1u1+0u2 and Tu2=(−1,1)=0u1+(−1)u2. So [T]BB=(100−1). In the basis adapted to the geometry, the reflection is visibly “keep one direction, flip the other”. The same map has a diagonal matrix in one basis and a nondiagonal one in another. How the two matrices are related is the subject of the next section.

The matrix also works in reverse: from [T]BB alone we can recover T. Take v=(3,1). Its coordinates in B solve au1+bu2=(3,1), that is, a+b=3 and a−b=1, so [v]B=(2,1), that is, v=2u1+u2. By linearity, Tv=2Tu1+Tu2. The columns of [T]BB say Tu1=1u1+0u2 and Tu2=0u1+(−1)u2, so Tv=2u1−u2=(1,3), which is indeed (y,x) at (3,1). In coordinates, we turned (2,1) into (2,−1)=[T]BB(21); the next subsection proves that this “coordinates in, multiply, combine out” recipe always works.

Here is a nonexample by minimal change. In Example (Differentiation on Cubic Polynomials), write the coordinate vectors [D(xj)]E2 as rows instead of columns. The numbers are the same, but the result is the 4×3 matrix (000100020003), and it cannot even be multiplied by the coordinate vector (a0,a1,a2,a3) of an input polynomial. The clause that fails is “the j-th column is [Tvj]C”.

Why this definition. Why columns, and why coordinates in C? Because these are the choices under which “apply T” becomes “multiply by the matrix”, as the D computation above suggested; we prove this next. With rows, we would get the transpose, and the natural formula [Tv]C=A[v]B would fail. The convention that the input basis is the subscript is chosen to make that formula easy to read: the B of the matrix sits next to the B of the vector.

Warning. Three ways to get a matrix of a map wrong. (1) Columns, not rows. The j-th column is [Tvj]C, as in the nonexample above. (2) Order matters. In Example (A Reflection in Two Bases), reordering the standard basis as (e2,e1) leaves the matrix (0110) unchanged, but reordering B as (u2,u1) gives (−1001)≠[T]BB. (3) Input subscript, output superscript. [T]BC and [T]CB are different objects, and for T:V→W with V≠W only one of them makes sense. Also [idV]BC≠In when B≠C: for B=(e1,e2) and C=(e2,e1) in R2, [id]BC=(0110).

Quick check. What is the size of [T]BC for a linear map T:M2×3(R)→R[x]≤2? And what is the first column of [T]EE′ for T:R[x]≤2→R2, T(p)=(p(0),p(1)), with E=(1,x,x2) and E′ the standard basis of R2?

Solution. dim⁡R[x]≤2=3 and dim⁡M2×3(R)=6, so the matrix is 3×6: rows for the codomain, columns for the domain. For the second map, the first column is the coordinate vector of the image of the first basis vector 1: T(1)=(1,1), so the column is (1,1).

4.1.2. The fundamental square

Here is the promise behind the definition: once coordinates are taken on both sides, applying T is multiplying by its matrix.

Theorem 4.1.1 (Coordinates of an Image)

Let V and W be finite-dimensional vector spaces over F with ordered bases B=(v1,…,vn) and C=(w1,…,wm), and let T∈L(V,W). Then for every v∈V, [Tv]C=[T]BC[v]B. Moreover, [T]BC is the only matrix A∈Mm×n(F) with [Tv]C=A[v]B for all v∈V.

The statement says that the following square commutes: starting from v in the top-left corner, the two routes to the bottom-right corner give the same column.

Diagram. Labels: T, multiply by mtx TsB sC, elem v mapsto coord elem vsB, elem w mapsto coord elem wsC, V, W, F^n, F^m, elem v, Telem v, coord elem vsB, coord Telem vsC = mtx TsB sC coord elem vsB

The top row is the abstract world, where T acts on vectors of V. The bottom row is the matrix world, where a matrix acts on columns. The vertical arrows are the coordinate isomorphisms of Corollary 2.5.5, so nothing is lost going down or coming back up. Right then down (apply T, then take coordinates) equals down then right (take coordinates, then multiply by the matrix).

Idea. Both sides are linear in v, so it is enough to check the formula on the basis vectors vj, and there it is the definition: [vj]B=ej, and multiplying a matrix by ej picks out its j-th column, which was defined to be [Tvj]C. Written out for a general v, this becomes a one-line chain. Uniqueness uses the same observation backwards: any A that works must have [Tvj]C as its j-th column.

Proof. Let v∈V and [v]B=(x1,…,xn), so that v=x1v1+⋯+xnvn. Since T is linear, Theorem 2.1.4 gives Tv=x1Tv1+⋯+xnTvn. Since taking coordinates respects sums and scalar multiples (Theorem 1.5.2), [Tv]C=x1[Tv1]C+⋯+xn[Tvn]C=[T]BC(x1⋮xn)=[T]BC[v]B, where the middle equality is Theorem 0.9.3 applied to the columns [Tvj]C of [T]BC.

For uniqueness, suppose A∈Mm×n(F) satisfies [Tv]C=A[v]B for all v. Taking v=vj, whose coordinate vector is ej, the j-th column of A is Aej=[Tvj]C (Theorem 0.9.3), which is the j-th column of [T]BC. Hence A=[T]BC. This proves the theorem.

This is the dictionary that lets us “write down a matrix first”. A question about T (its kernel, its image, a preimage) becomes a question about a matrix, which Chapter 3 taught us to answer by row reduction; the coordinate isomorphisms carry the answer back.

Example (Kernel and Image Through a Matrix)

Let T:R[x]≤2→R2, T(p)=(p(1),p(−1)). Find kerT and decide whether T is surjective, by working with the matrix of T in the bases E=(1,x,x2) and the standard basis E′ of R2.

Solution. Write down the matrix. T(1)=(1,1), T(x)=(1,−1), T(x2)=(1,1), so A=[T]EE′=(1111−11). Solve in the matrix world. Subtracting the first row from the second gives (1110−20), so Ax=0 means x2=0 and x1=−x3: nul(A)=span((−1,0,1)). Both rows are pivot rows, so rankA=2.

Translate back. By Theorem 4.1.1, T(p)=0 exactly when A[p]E=0 (the only vector with zero coordinates is 0). The coordinate vector (−1,0,1) belongs to p=−1+x2. So kerT=span(x2−1), as a check confirms: x2−1 vanishes at 1 and −1. By Theorem 2.3.1, rankT=3−1=2=dim⁡R2, so imT=R2 by Theorem 1.6.8, and T is surjective: any two values p(1), p(−1) can be prescribed.

4.1.3. Composition is matrix multiplication

In Chapter 0, §9 we asked why matrices are multiplied row-against-column. The answer given there was substitution. If y=Bx and z=Ay, with B=(2114),A=(123−1), then substituting gives z=(495−1)x, and the table of the combined substitution turned out to be AB. At the time we promised that this fact would become a statement about linear maps. We can now say what it is. Each substitution is a linear map, TB:x↦y and TA:y↦z, and substituting one into the other is composing them: z=TA(TBx)=(TATB)x. So the Chapter 0 computation says TATB=TAB. Here is the general statement, for arbitrary spaces and bases.

Theorem 4.1.2 (Matrix of a Composition)

Let U,V,W be finite-dimensional vector spaces over F with ordered bases B, C, D respectively. Let T∈L(U,V) and S∈L(V,W). Then [ST]BD=[S]CD[T]BC.

Notice how the notation checks itself: the middle basis C appears as the output of T and the input of S, and it “cancels”, leaving B below and D above. The order of the factors is the order of the maps: the map applied first is on the right, in both ST and the product.

Idea. Glue two commutative squares side by side. The left square is T with its matrix, the right square is S with its matrix, and they share the middle column V→Fdim⁡V. Going along the top from U to W is ST; going along the bottom is multiplication by [T]BC followed by multiplication by [S]CD, which is multiplication by their product. The big rectangle commutes because both small squares do, and the uniqueness part of Theorem 4.1.1 identifies the product as the matrix of ST.

Diagram. Labels: T, S, mtx TsB sC, mtx SsC sD, coord cdot sB, coord cdot sC, coord cdot sD, U, V, W, F^p, F^n, F^m

Proof. Let p=dim⁡U and m=dim⁡W, and let u∈U. Applying Theorem 4.1.1 first to S and the vector Tu, then to T and u, [STu]D=[S(Tu)]D=[S]CD[Tu]C=[S]CD([T]BC[u]B)=([S]CD[T]BC)[u]B, where the last equality is associativity of matrix multiplication (Theorem 0.9.4). The map ST is linear (Theorem 2.4.2), and the m×p matrix [S]CD[T]BC satisfies [STu]D=([S]CD[T]BC)[u]B for every u∈U. By the uniqueness part of Theorem 4.1.1, it equals [ST]BD. This proves the theorem.

This is the payoff of the hook in Chapter 0, §9 (Definition 0.9.9). The row-times-column rule was not an arbitrary convention: it is the only rule under which the matrix of a composition is the product of the matrices, because composing linear maps is substituting one coordinate formula into another. Everything Chapter 0 proved about matrix multiplication now has a meaning for maps, and conversely:

Example (Multiply by x, Then Differentiate)

Let S:R[x]≤2→R[x]≤3, S(p)=xp, and D:R[x]≤3→R[x]≤2, D(p)=p′, with the monomial bases E2=(1,x,x2) and E3=(1,x,x2,x3). Compute [DS]E2E2 and [SD]E3E3, both directly and as products.

Solution. Matrices of the factors. S(1)=x, S(x)=x2, S(x2)=x3, and [D]E3E2 was found in Example (Differentiation on Cubic Polynomials): [S]E2E3=(000100010001),[D]E3E2=(010000200003). Products. By Theorem 4.1.2, [DS]E2E2=[D]E3E2[S]E2E3=(100020003),[SD]E3E3=[S]E2E3[D]E3E2=(0000010000200003). Directly. DS(xk)=(xk+1)′=(k+1)xk for k=0,1,2, giving the diagonal 1,2,3. And SD(xk)=x⋅kxk−1=kxk for k≥1, with SD(1)=0, giving the diagonal 0,1,2,3. Both computations agree. The two composites are not even the same size: DS is an operator on R[x]≤2 and SD an operator on R[x]≤3.

For operators, the theorem applies with B=C=D, and gives powers and polynomials.

Corollary 4.1.3 (Matrices of Powers and Polynomials)

Let B=(v1,…,vn) be a basis of a finite-dimensional space V, let T,S∈L(V), c∈F, and p∈F[x]. Then [ST]BB=[S]BB[T]BB, [S+T]BB=[S]BB+[T]BB, [cT]BB=c[T]BB, [Tk]BB=([T]BB)k for k∈N, and [p(T)]BB=p([T]BB).

Proof. The first formula is Theorem 4.1.2 with B=C=D. For sums and scalar multiples, the j-th column of [S+T]BB is [Svj+Tvj]B=[Svj]B+[Tvj]B by Theorem 1.5.2, and similarly [cTvj]B=c[Tvj]B. For powers we induct on k: [T0]BB=[idV]BB=In by Example (Matrix Maps and the Identity) (b), and if [Tk]BB=([T]BB)k, then [Tk+1]BB=[TkT]BB=([T]BB)k[T]BB=([T]BB)k+1, by the first formula and Definition 0.9.14. Finally, for p=∑kakxk, combining the three rules gives [p(T)]BB=∑kak[Tk]BB=∑kak([T]BB)k=p([T]BB), using Definition 2.4.2 and Definition 0.9.14.

For example, with [D]E3E3 from Example (Differentiation on Cubic Polynomials), ([D]E3E3)4=[D4]E3E3=O, recovering Example (Differentiation Is Nilpotent) in matrix form.

4.1.4. Linear maps are matrices

The sums in Corollary 4.1.3 work between different spaces too, and together with the construction of maps from values on a basis they show that, after choosing bases, there is no difference at all between linear maps and matrices.

Theorem 4.1.4 (L(V,W)≅Mm×n(F))

Let V and W be finite-dimensional vector spaces over F with ordered bases B=(v1,…,vn) and C=(w1,…,wm). Then the map Φ:L(V,W)→Mm×n(F),T↦[T]BC, is an isomorphism. In particular, dim⁡L(V,W)=mn=(dim⁡V)(dim⁡W).

Idea. Three things to check. Linear: columns of [S+T]BC are coordinates of Svj+Tvj, and coordinates respect sums. Injective: a map whose matrix is zero kills every basis vector, so it is the zero map. Surjective: a matrix prescribes the value of each vj, and a linear map with prescribed values on a basis exists. The last two are the uniqueness and existence halves of the same theorem about bases, which is why a linear map is “nothing but” its values on a basis.

Proof. Linear. Let S,T∈L(V,W) and c∈F. By Definition 2.4.1 and Theorem 1.5.2, the j-th column of [S+T]BC is [Svj+Tvj]C=[Svj]C+[Tvj]C, and that of [cT]BC is [cTvj]C=c[Tvj]C. Hence Φ(S+T)=Φ(S)+Φ(T) and Φ(cT)=cΦ(T).

Injective. Suppose Φ(T)=O. Then [Tvj]C=0, so Tvj=0 for every j. The zero map also sends every vj to 0, so T=0 by the uniqueness part of Theorem 2.1.5. Hence kerΦ={0}, and Φ is injective by Theorem 2.2.3.

Surjective. Let A=(aij)∈Mm×n(F). By the existence part of Theorem 2.1.5 there is T∈L(V,W) with Tvj=a1jw1+⋯+amjwm for each j. By Definition 4.1.1, [T]BC=A.

So Φ is a bijective linear map, an isomorphism by Theorem 2.5.1. For the dimension, we cannot quote Theorem 2.5.4 directly, since we do not yet know that L(V,W) is finite-dimensional. Instead, Mm×n(F) has a basis of mn matrix units (Example (Dimensions of the Running Examples)), and the inverse isomorphism Φ−1 carries it to a basis of L(V,W) of length mn (Theorem 2.5.2, applied to Φ−1, which is an isomorphism by Theorem 2.5.3). Hence dim⁡L(V,W)=mn. This proves the theorem.

With Theorem 4.1.2, the isomorphism Φ also turns composition into multiplication. So, for V=W and B=C, the algebra L(V) of the previous sections and the algebra Mn(F) of Chapter 0 are the same algebra, written in two languages. The dictionary depends on the basis, as every isomorphism to Fn does.

4.1.5. Reading rank and invertibility from a matrix

Chapter 3 developed tools for the rank and the invertibility of matrices. The square of Theorem 4.1.1 transfers all of them to linear maps.

Theorem 4.1.5 (Rank and Invertibility from the Matrix)

Let V and W be finite-dimensional vector spaces over F with ordered bases B and C, let T∈L(V,W), and let A=[T]BC.

  • (a) The coordinate map v↦[v]B restricts to an isomorphism kerT→nul(A), and the coordinate map w↦[w]C restricts to an isomorphism imT→col(A). Hence rankT=rankAandnullityT=nullityA.
  • (b) Suppose dim⁡V=dim⁡W. Then T is invertible if and only if A is invertible, and in that case [T−1]CB=A−1.

Idea. For (a), the commutative square says a vector is killed by T exactly when its coordinate column is killed by A, and the outputs of T, in coordinates, are exactly the outputs of A. Isomorphic subspaces have the same dimension. For (b), T−1T=idV translates, by the composition theorem, into a matrix equation with In on the right; conversely an inverse matrix is the matrix of some map, by the isomorphism L(W,V)≅Mn(F), and that map is the inverse of T.

Proof. Let n=dim⁡V and m=dim⁡W, and write CB:V→Fn and CC:W→Fm for the coordinate isomorphisms (Corollary 2.5.5).

  • (a) Kernel. For v∈V: v∈kerT if and only if Tv=0 if and only if [Tv]C=0 (since CC is injective) if and only if A[v]B=0 (Theorem 4.1.1) if and only if [v]B∈nul(A). So CB maps kerT into nul(A), and every x∈nul(A) is [v]B for some v∈V (surjectivity of CB), which then lies in kerT. Thus the restriction of CB is a linear map kerT→nul(A), injective because CB is, and surjective. By Theorem 2.5.1 it is an isomorphism.

    Image. By Theorem 4.1.1, CC(Tv)=ACB(v) for every v∈V. As v runs over V, CB(v) runs over all of Fn, so {CC(w):w∈imT}={Ax:x∈Fn}=col(A) (Definition 3.5.1). So the restriction of CC is a linear map imT→col(A), surjective by this computation and injective because CC is; hence an isomorphism.

    The subspaces involved are finite-dimensional (Theorem 1.6.7), so Theorem 2.5.4 gives dim⁡kerT=dim⁡nul(A) and dim⁡imT=dim⁡col(A), which are the stated equalities by Definition 2.3.1, Definition 2.3.2, Definition 3.5.5, and Definition 3.5.4.

  • (b) (⇒) Suppose T is invertible. By Theorem 4.1.2 and Example (Matrix Maps and the Identity) (b), [T−1]CBA=[T−1T]BB=[idV]BB=In,A[T−1]CB=[TT−1]CC=[idW]CC=In. So A is invertible with A−1=[T−1]CB (Definition 0.9.13).

(⇐) Suppose A is invertible. By Theorem 4.1.4 (for L(W,V) with bases C and B), there is S∈L(W,V) with [S]CB=A−1. Then by Theorem 4.1.2, [ST]BB=A−1A=In=[idV]BB. Since T′↦[T′]BB is injective on L(V) (Theorem 4.1.4), ST=idV. By Theorem 2.5.6, T is invertible with T−1=S. This proves the theorem.

So we may add one more item to the Invertible Operator Theorem (Theorem 2.5.7): for T∈L(V) and any basis B of V, T is invertible if and only if [T]BB is invertible. Every item of the Invertible Matrix Theorem (Theorem 3.4.4) now becomes a test for operators.

The first thing the square buys is a way to compute a kernel and an image for a map given by a matrix: the two subspaces are the null space and the column space, and elimination finds them.

Example (A Matrix Map)

Let A=(12032418−1−21−1)∈M3×4(R). Find bases of kerTA and imTA for TA:R4→R3, and decide whether TA is injective or surjective.

Solution. By definition, kerTA={x:Ax=0}=nul(A) (Definition 3.5.3) and imTA={Ax:x∈R4}=col(A) (Definition 3.5.1). So Chapter 3’s methods apply directly. Row reduce: A→R3+R1R2−2R1(120300120012)→R3−R2(120300120000). This is the RREF, with pivot columns 1 and 3 and free columns 2 and 4. By Theorem 3.5.4, a basis of kerTA is ((−2,1,0,0), (−3,0,−2,1)). By Theorem 3.5.2, the pivot columns of A form a basis of imTA: ((1,2,−1), (0,1,1)).

Since kerTA≠{0}, TA is not injective (Theorem 2.2.3); for instance TA(−2,1,0,0)=0=TA(0). Since dim⁡imTA=2<3=dim⁡R3, imTA≠R3, so TA is not surjective (Theorem 2.2.2).

Example (Rank of X↦X+X⊤)

Let T:M2(R)→M2(R), T(X)=X+X⊤, and E=(E11,E12,E21,E22). Find [T]EE, use it to find rankT, a basis of kerT, and a basis of imT, and decide whether T is invertible. Then do the same for the transpose map of Example (The Transpose Map).

Solution. Matrix. T(E11)=2E11, T(E12)=E12+E21=T(E21), T(E22)=2E22. So A=[T]EE=(2000011001100002). Matrix world. Subtracting row 2 from row 3 turns row 3 into a zero row; moving it to the bottom gives an echelon form with three nonzero rows and pivots in columns 1, 2, 4. So rankA=3 and nullityA=1. The free column is column 3, and Ax=0 gives x1=x4=0, x2=−x3, so nul(A)=span((0,−1,1,0)). By Theorem 3.5.2, the pivot columns (2,0,0,0), (0,1,1,0), (0,0,0,2) form a basis of col(A).

Translate back. By Theorem 4.1.5, rankT=3. The column (0,−1,1,0) is the coordinate vector of E21−E12, so kerT=span((0−110)), the skew-symmetric matrices. The basis of col(A) translates to 2E11, E12+E21, 2E22, a basis of imT, which is therefore the space of symmetric matrices. Since rankA=3<4, A is not invertible (Theorem 3.4.4), and neither is T.

Transpose. The matrix P=[X↦X⊤]EE from Example (The Transpose Map) satisfies P2=I4 (swapping two coordinates twice does nothing). So P is invertible with P−1=P, and by Theorem 4.1.5 (b) the transpose map is invertible and is its own inverse, which is (X⊤)⊤=X again.

We now have both halves of the working method: a basis turns spaces into Fn and maps into matrices, and every computation can be done with Chapter 3’s tools. What we have not yet controlled is the choice. Example (A Reflection in Two Bases) shows that one map can have a complicated matrix in one basis and a diagonal one in another; the next section finds the formula relating the two.

4.1.6. Exercises

A. Check your understanding

Exercise (A1)
  • (a) Define [T]BC for T∈L(V,W) and ordered bases B of V, C of W.
  • (b) State the formula relating [Tv]C and [v]B, and the formula for the matrix of a composition.
  • (c) True or false: the j-th row of [T]BC is [Tvj]C. Justify your answer.
  • (d) True or false: [idV]BC=In for any two bases B, C of an n-dimensional space V. Justify your answer.
  • (e) What is dim⁡L(R3,R[x]≤2)?

Solution.

B. Practice

Exercise (B1: Matrices in given bases)

Find the matrix of each operator in the given basis. (Both maps are linear; you may take this as given.)

  • (a) T:R[x]≤2→R[x]≤2, T(p)=p(x+1), in E=(1,x,x2).
  • (b) T:M2(R)→M2(R), T(X)=BX with B=(1234), in E=(E11,E12,E21,E22).

Solution.

  • (a) T(1)=1, T(x)=x+1=1+x, T(x2)=(x+1)2=1+2x+x2. Their coordinates are (1,0,0), (1,1,0), (1,2,1), so [T]EE=(111012001).
  • (b) Multiplying B by a matrix unit Ekj on the right keeps column k of B and moves it to column j: BE11=(1030),BE12=(0103),BE21=(2040),BE22=(0204). Reading entries in the order (1,1),(1,2),(2,1),(2,2) gives the columns (1,0,3,0), (0,1,0,3), (2,0,4,0), (0,2,0,4), so [T]EE=(1020010230400304).
Exercise (B2: Recovering a map from its matrix)

Let B=(1,1+x,x2), a basis of R[x]≤2, and let E′ be the standard basis of R2. A linear map T:R[x]≤2→R2 has [T]BE′=(10201−1). Find T(a+bx+cx2). Hence find a basis of kerT.

Solution. First find the coordinates of p=a+bx+cx2 in B: p=(a−b)⋅1+b(1+x)+cx2, so [p]B=(a−b,b,c), unique by Theorem 1.5.1. By Theorem 4.1.1, and since coordinates in E′ are the entries, T(p)=(10201−1)(a−bbc)=(a−b+2c,b−c). Hence T(p)=0 if and only if b=c and a=b−2c=−c, that is, p=c(−1+x+x2). So (x2+x−1) is a basis of kerT. Check: [x2+x−1]B=(−2,1,1), and (10201−1)(−2,1,1)=(0,0).

Exercise (B3: A composition computed two ways)

Let T:R[x]≤1→R[x]≤2, T(p)=xp, and S:R[x]≤2→R2, S(p)=(p(0),p(1)). Use the monomial bases and the standard basis of R2. Compute the matrix of ST directly, and again as a product of the matrices of S and T.

Solution. Let E1=(1,x), E2=(1,x,x2), and E′ the standard basis of R2.

Factors. T(1)=x, T(x)=x2, so [T]E1E2=(001001). S(1)=(1,1), S(x)=(0,1), S(x2)=(0,1), so [S]E2E′=(100111).

Product. By Theorem 4.1.2, [ST]E1E′=(100111)(001001)=(0011). Directly. ST(1)=S(x)=(0,1) and ST(x)=S(x2)=(0,1), so the columns are (0,1) and (0,1), in agreement. In words, ST(a+bx)=(0,a+b).

C. Going deeper

Exercise (C1: Upper triangular matrices and invariant subspaces)

Let V be finite-dimensional and T∈L(V). A subspace U of V is T-invariant if Tu∈U for every u∈U. Let B=(v1,…,vn) be a basis of V, and for 1≤k≤n let Uk=span(v1,…,vk). Prove that [T]BB is upper triangular if and only if every Uk is T-invariant.

Solution. Let [T]BB=(aij), so Tvj=∑i=1naijvi with unique coefficients (Definition 4.1.1). By Definition 0.9.5, [T]BB is upper triangular if and only if aij=0 whenever i>j, that is, if and only if (∗)Tvj∈Ujfor every j=1,…,n. Indeed, if aij=0 for i>j, then Tvj=∑i≤jaijvi∈Uj; conversely, if Tvj=∑i≤jbivi, then by uniqueness of coordinates aij=0 for i>j.

(⇒) Assume (∗), and fix k. For j≤k, Tvj∈Uj⊆Uk. Let u=∑j≤kcjvj∈Uk. Then Tu=∑j≤kcjTvj by Theorem 2.1.4, a combination of vectors of the subspace Uk, so Tu∈Uk by Theorem 1.3.1. Hence Uk is T-invariant.

(⇐) Assume every Uk is T-invariant. For each j, vj∈Uj, so Tvj∈Uj by invariance of Uj. This is (∗), so [T]BB is upper triangular.

Exercise (C2: Integrating with a matrix)

Let f1(x)=ex, f2(x)=xex, f3(x)=x2ex, and let V=span(f1,f2,f3) inside the real vector space of all functions R→R (Example (The Standard Vector Spaces) (d)).

  • (a) Prove that B=(f1,f2,f3) is a basis of V.
  • (b) Show that differentiation maps V into V, and find [D]BB for D∈L(V), D(f)=f′.
  • (c) Hence show that D is invertible on V, and use ([D]BB)−1 to find a function g∈V with g′=x2ex.

Hint: for (a), divide a vanishing combination by ex and count roots.

Solution.

  • (a) B spans V by definition. Suppose af1+bf2+cf3=0, the zero function. Then (a+bx+cx2)ex=0 for every x∈R, and ex≠0, so the polynomial a+bx+cx2 vanishes at every real number. It has infinitely many roots, so it is the zero polynomial by Lemma 3.7.2, and a=b=c=0. Hence B is independent, and a basis of V.

  • (b) By the product rule, f1′=ex=f1,f2′=ex+xex=f1+f2,f3′=2xex+x2ex=2f2+f3. Each lies in V, and D is linear, so D maps every combination of f1,f2,f3 into V (Theorem 2.1.4). Reading off coordinates as columns, [D]BB=(110012001).

  • (c) The matrix is upper triangular with nonzero diagonal entries, and one checks directly that (1−1201−2001)(110012001)=I3, so [D]BB is invertible with this inverse (Theorem 3.4.5). By Theorem 4.1.5 (b), D is invertible on V and [D−1]BB=([D]BB)−1. We want g=D−1(f3). Since [f3]B=(0,0,1), Theorem 4.1.1 gives [g]B=(1−1201−2001)(001)=(2−21), so g=2f1−2f2+f3=(x2−2x+2)ex. Check: g′=(2x−2)ex+(x2−2x+2)ex=x2ex. No integration by parts was needed.

Found a typo or a mistake? Report it, or read this page’s source

The text of this book is licensed under CC BY-NC-SA 4.0.