Linear-Algebra-Done-Right ยท Unit 6 ยท Video 1 ยท Interactive Practice

The Matrix of a Linear Map: Each Column Is Tvโ‚–

IKey Formulas

FormulaNameWhat it says
A=(A1,1โ‹ฏA1,nโ‹ฎโ‹ฎAm,1โ‹ฏAm,n)A = \begin{pmatrix} A_{1,1} & \cdots & A_{1,n} \\ \vdots & & \vdots \\ A_{m,1} & \cdots & A_{m,n} \end{pmatrix}mm-by-nn matrixmm rows, nn columns, entries in F\mathbf{F}; Aj,kA_{j,k} is the entry in row jj, column kk (first index = row)
Tvk=A1,kw1+โ‹ฏ+Am,kwm=โˆ‘j=1mAj,kwjTv_k = A_{1,k} w_1 + \cdots + A_{m,k} w_m = \displaystyle\sum_{j=1}^{m} A_{j,k} w_jMatrix of TT: M(T)\mathcal{M}(T)TโˆˆL(V,W)T \in \mathcal{L}(V, W), bases v1,โ€ฆ,vnv_1, \dots, v_n of VV and w1,โ€ฆ,wmw_1, \dots, w_m of WW; column kk holds the coordinates of TvkTv_k; full notation M(T,(v1,โ€ฆ,vn),(w1,โ€ฆ,wm))\mathcal{M}\big(T, (v_1, \dots, v_n), (w_1, \dots, w_m)\big)
column kk of M(T)\mathcal{M}(T) == TT applied to the kk-th standard basis vectorStandard basesDefault for TโˆˆL(Fn,Fm)T \in \mathcal{L}(\mathbf{F}^n, \mathbf{F}^m); e.g. T(x,y)=(x+3y,ย 2x+5y,ย 7x+9y)T(x, y) = (x + 3y,\ 2x + 5y,\ 7x + 9y) has M(T)=(132579)\mathcal{M}(T) = \begin{pmatrix} 1 & 3 \\ 2 & 5 \\ 7 & 9 \end{pmatrix}
dimโกV=n\dim V = n, dimโกW=m\dim W = m โ‡’\Rightarrow M(T)\mathcal{M}(T) is mm-by-nnSizeColumns match the basis of the domain, rows the basis of the target; e.g. Dโ€‰โฃ:P3(R)โ†’P2(R)D \colon \mathcal{P}_3(\mathbf{R}) \to \mathcal{P}_2(\mathbf{R}) gives a 3-by-4 matrix

Key Insight: Together with the two bases, the mnmn entries of M(T)\mathcal{M}(T) determine TT: they determine every TvkTv_k, and by the linear map lemma the values Tv1,โ€ฆ,TvnTv_1, \dots, Tv_n determine TT.

IIVisualization 1 โ€” Rows First, Then Columns

In Aj,kA_{j,k} the first index jj picks the row and the second index kk picks the column.

IIIVisualization 2 โ€” Column by Column: a Map from F2\mathbf{F}^2 to F3\mathbf{F}^3

With standard bases, column kk of M(T)\mathcal{M}(T) is TT of the kk-th standard basis vector.

IVVisualization 3 โ€” Differentiation, and Why the Bases Matter

For DโˆˆL(P3(R),P2(R))D \in \mathcal{L}(\mathcal{P}_3(\mathbf{R}), \mathcal{P}_2(\mathbf{R})), column kk lists the coordinates of DvkDv_k; other bases give another matrix.

VQuiz Questions

Problem 1 ยท Build the Matrix

Given: TโˆˆL(F2,F3)T \in \mathcal{L}(\mathbf{F}^2, \mathbf{F}^3), T(x,y)=(3xโˆ’y,ย 2x+4y,ย 5y)T(x, y) = (3x - y,\ 2x + 4y,\ 5y), standard bases โ€” find M(T)\mathcal{M}(T).

โœ… Correct! Column 1 is T(1,0)=(3,2,0)T(1, 0) = (3, 2, 0) and column 2 is T(0,1)=(โˆ’1,4,5)T(0, 1) = (-1, 4, 5).
โŒ Wrong size. The domain F2\mathbf{F}^2 has dimension 2 and the target F3\mathbf{F}^3 has dimension 3, so M(T)\mathcal{M}(T) is 3-by-2: the values T(1,0)T(1,0) and T(0,1)T(0,1) stand as columns, not rows.
โŒ Not quite. The third coordinate 5y5y has xx-coefficient 00, so T(1,0)T(1, 0) has third coordinate 00 and T(0,1)T(0, 1) has third coordinate 55.
โŒ Columns in the wrong order. Column 1 belongs to the first basis vector (1,0)(1, 0), so it is T(1,0)=(3,2,0)T(1, 0) = (3, 2, 0).
Show solution

dimโกF2=2\dim \mathbf{F}^2 = 2 and dimโกF3=3\dim \mathbf{F}^3 = 3, so M(T)\mathcal{M}(T) is 3-by-2. With the standard bases, column kk is TT of the kk-th standard basis vector:

T(1,0)=(3โˆ’0,ย 2+0,ย 0)=(3,2,0),T(0,1)=(0โˆ’1,ย 0+4,ย 5)=(โˆ’1,4,5).T(1, 0) = (3 - 0,\ 2 + 0,\ 0) = (3, 2, 0), \qquad T(0, 1) = (0 - 1,\ 0 + 4,\ 5) = (-1, 4, 5). M(T)=(3โˆ’12405).\mathcal{M}(T) = \begin{pmatrix} 3 & -1 \\ 2 & 4 \\ 0 & 5 \end{pmatrix}.

Check by rows: row jj holds the coefficients of xx and yy in coordinate jj โ€” row 3 is (0,5)(0, 5) because coordinate 3 is 0x+5y0x + 5y.

Problem 2 ยท Count the Basis, Not the Degree

Given: TโˆˆL(P4(R),R2)T \in \mathcal{L}(\mathcal{P}_4(\mathbf{R}), \mathbf{R}^2), Tp=(p(1),ย p(2))Tp = \big(p(1),\ p(2)\big), with the standard bases 1,x,x2,x3,x41, x, x^2, x^3, x^4 and (1,0),(0,1)(1, 0), (0, 1) โ€” find the size of M(T)\mathcal{M}(T) and its third column.

What size is M(T)\mathcal{M}(T)?

What is the third column of M(T)\mathcal{M}(T)?

โœ… Correct! dimโกP4(R)=5\dim \mathcal{P}_4(\mathbf{R}) = 5 columns, dimโกR2=2\dim \mathbf{R}^2 = 2 rows, and column 3 is T(x2)=(12,22)=(1,4)T(x^2) = (1^2, 2^2) = (1, 4).
โŒ Rows and columns swapped. The rows match the basis of the target R2\mathbf{R}^2, so the target's dimension comes first: mm-by-nn with m=dimโกWm = \dim W.
โŒ The degree is not the dimension. P4(R)\mathcal{P}_4(\mathbf{R}) has basis 1,x,x2,x3,x41, x, x^2, x^3, x^4 โ€” five vectors, so five columns.
โŒ Two slips. P4(R)\mathcal{P}_4(\mathbf{R}) has basis 1,x,x2,x3,x41, x, x^2, x^3, x^4 โ€” five vectors, not four โ€” and the rows match the basis of the target R2\mathbf{R}^2, so the size is dimโกR2\dim \mathbf{R}^2-by-dimโกP4(R)\dim \mathcal{P}_4(\mathbf{R}).
โŒ Check the size. Columns match the basis of the domain, rows the basis of the target.
โŒ That is column 2. The basis starts with 11, so the third basis vector is x2x^2, not xx; (1,2)=T(x)(1, 2) = T(x).
โŒ Off by one. (1,8)=T(x3)(1, 8) = T(x^3) is column 4; the third basis vector is x2x^2 because the list starts at x0=1x^0 = 1.
โŒ Coordinates out of order. Tp=(p(1),p(2))Tp = (p(1), p(2)), so the first coordinate of T(x2)T(x^2) is 12=11^2 = 1 and the second is 22=42^2 = 4.
โŒ Check the column. Column 3 is the coordinates of TT of the third basis vector.
Show solution

The domain basis 1,x,x2,x3,x41, x, x^2, x^3, x^4 has 5 vectors and the target basis has 2, so M(T)\mathcal{M}(T) is 2-by-5.

The third basis vector of P4(R)\mathcal{P}_4(\mathbf{R}) is x2x^2, and in the standard basis of R2\mathbf{R}^2 the coordinates of a vector are its entries:

T(x2)=(12,ย 22)=(1,4).T(x^2) = (1^2,\ 2^2) = (1, 4).

The whole matrix is M(T)=(11111124816)\mathcal{M}(T) = \begin{pmatrix} 1 & 1 & 1 & 1 & 1 \\ 1 & 2 & 4 & 8 & 16 \end{pmatrix}, column kk being T(xkโˆ’1)=(1,2kโˆ’1)T(x^{k-1}) = (1, 2^{k-1}).

Problem 3 ยท Multiplication by x+1x + 1

Given: TโˆˆL(P2(R),P3(R))T \in \mathcal{L}(\mathcal{P}_2(\mathbf{R}), \mathcal{P}_3(\mathbf{R})), (Tp)(x)=(x+1)โ€‰p(x)(Tp)(x) = (x + 1)\,p(x), standard bases 1,x,x21, x, x^2 and 1,x,x2,x31, x, x^2, x^3 โ€” find M(T)\mathcal{M}(T).

โœ… Correct! The columns are the coordinates of T(1)=1+xT(1) = 1 + x, T(x)=x+x2T(x) = x + x^2, T(x2)=x2+x3T(x^2) = x^2 + x^3 in 1,x,x2,x31, x, x^2, x^3.
โŒ Coordinates written as rows. The coordinates of T(1)=1+xT(1) = 1 + x form column 1, not row 1; the matrix is 4-by-3 because dimโกP3(R)=4\dim \mathcal{P}_3(\mathbf{R}) = 4 and dimโกP2(R)=3\dim \mathcal{P}_2(\mathbf{R}) = 3.
โŒ The target is P3(R)\mathcal{P}_3(\mathbf{R}). T(x2)=x2+x3T(x^2) = x^2 + x^3 has an x3x^3-coordinate, so the matrix needs a fourth row for the basis vector x3x^3.
โŒ Rows in the wrong order. Row jj belongs to the jj-th basis vector of the target: row 1 to 11, row 4 to x3x^3. Reading coefficients from the highest power down reverses the rows.
Show solution

dimโกP2(R)=3\dim \mathcal{P}_2(\mathbf{R}) = 3 and dimโกP3(R)=4\dim \mathcal{P}_3(\mathbf{R}) = 4, so M(T)\mathcal{M}(T) is 4-by-3. Apply TT to each basis vector and write the result in 1,x,x2,x31, x, x^2, x^3:

T(1)=1+x=1โ‹…1+1โ‹…x+0โ‹…x2+0โ‹…x3T(1) = 1 + x = 1 \cdot 1 + 1 \cdot x + 0 \cdot x^2 + 0 \cdot x^3 T(x)=x+x2=0โ‹…1+1โ‹…x+1โ‹…x2+0โ‹…x3T(x) = x + x^2 = 0 \cdot 1 + 1 \cdot x + 1 \cdot x^2 + 0 \cdot x^3 T(x2)=x2+x3=0โ‹…1+0โ‹…x+1โ‹…x2+1โ‹…x3T(x^2) = x^2 + x^3 = 0 \cdot 1 + 0 \cdot x + 1 \cdot x^2 + 1 \cdot x^3

Those coordinate lists are the three columns:

M(T)=(100110011001).\mathcal{M}(T) = \begin{pmatrix} 1 & 0 & 0 \\ 1 & 1 & 0 \\ 0 & 1 & 1 \\ 0 & 0 & 1 \end{pmatrix}.

Problem 4 ยท A Basis That Is Not Standard

Given: TโˆˆL(R2,R2)T \in \mathcal{L}(\mathbf{R}^2, \mathbf{R}^2), T(x,y)=(3x+y,ย xโˆ’y)T(x, y) = (3x + y,\ x - y), the basis v1=(1,1)v_1 = (1, 1), v2=(1,โˆ’1)v_2 = (1, -1) of the domain and the standard basis of the target โ€” find M(T,(v1,v2),((1,0),(0,1)))\mathcal{M}\big(T, (v_1, v_2), ((1, 0), (0, 1))\big).

โœ… Correct! Column 1 is Tv1=(4,0)Tv_1 = (4, 0) and column 2 is Tv2=(2,2)Tv_2 = (2, 2) โ€” the same map has a different matrix than with the standard bases.
โŒ That is the matrix with the standard bases. Here the columns record Tv1Tv_1 and Tv2Tv_2 for the given v1=(1,1)v_1 = (1, 1), v2=(1,โˆ’1)v_2 = (1, -1); the matrix depends on the basis of the domain too.
โŒ Values written as rows. Tv1=(4,0)Tv_1 = (4, 0) is column 1, read top to bottom.
โŒ Columns in the wrong order. Column 1 belongs to v1=(1,1)v_1 = (1, 1), so it is Tv1=(4,0)Tv_1 = (4, 0).
Show solution

Column kk holds the coordinates of TvkTv_k in the target basis; with the standard basis of R2\mathbf{R}^2 these are just its entries.

Tv1=T(1,1)=(3+1,ย 1โˆ’1)=(4,0)=4โ€‰(1,0)+0โ€‰(0,1)Tv_1 = T(1, 1) = (3 + 1,\ 1 - 1) = (4, 0) = 4\,(1, 0) + 0\,(0, 1) Tv2=T(1,โˆ’1)=(3โˆ’1,ย 1+1)=(2,2)=2โ€‰(1,0)+2โ€‰(0,1)Tv_2 = T(1, -1) = (3 - 1,\ 1 + 1) = (2, 2) = 2\,(1, 0) + 2\,(0, 1) M(T,(v1,v2),((1,0),(0,1)))=(4202).\mathcal{M}\big(T, (v_1, v_2), ((1, 0), (0, 1))\big) = \begin{pmatrix} 4 & 2 \\ 0 & 2 \end{pmatrix}.

With the standard bases on both sides the matrix of the same TT is (311โˆ’1)\begin{pmatrix} 3 & 1 \\ 1 & -1 \end{pmatrix}: one map, two bases of the domain, two different matrices.

Solved: 0 / 4