Linear-Algebra-Done-Right · Unit 7 · Video 4 · Interactive Practice
The Matrix of a Vector: M ( T v ) = M ( T ) M ( v ) \mathcal{M}(Tv) = \mathcal{M}(T)\mathcal{M}(v) M ( T v ) = M ( T ) M ( v )
I Key Formulas
Key Insight: Once bases are chosen, every vector becomes a column of coordinates, and applying T T T becomes multiplying that column by M ( T ) \mathcal{M}(T) M ( T ) .
II Coordinates Depend on the Basis
One vector v ∈ R 2 v \in \mathbf{R}^2 v ∈ R 2 generally has a different column M ( v ) \mathcal{M}(v) M ( v ) for each basis: the unique weights in v = b 1 v 1 + b 2 v 2 v = b_1 v_1 + b_2 v_2 v = b 1 v 1 + b 2 v 2 .
III Two Routes to the Same Column
For D : P 4 ( R ) → P 3 ( R ) D : \mathcal{P}_4(\mathbf{R}) \to \mathcal{P}_3(\mathbf{R}) D : P 4 ( R ) → P 3 ( R ) , differentiating then taking coordinates equals multiplying M ( p ) \mathcal{M}(p) M ( p ) by M ( D ) \mathcal{M}(D) M ( D ) .
IV Building M ( T ) \mathcal{M}(T) M ( T ) Column by Column
Column k k k of M ( T ) \mathcal{M}(T) M ( T ) is M ( T v k ) \mathcal{M}(Tv_k) M ( T v k ) , and the dimension of their span is dim range T \dim \operatorname{range} T dim range T .
💡 range T \operatorname{range} T range T is defined without any basis, so although M ( T ) \mathcal{M}(T) M ( T ) can change when the bases of P 3 ( R ) \mathcal{P}_3(\mathbf{R}) P 3 ( R ) and R 3 \mathbf{R}^3 R 3 change, its column rank never does.
V Quiz Questions
Problem 1 · Coordinates of a Polynomial
Given: p = 4 x − x 3 + 6 ∈ P 3 ( R ) p = 4x - x^3 + 6 \in \mathcal{P}_3(\mathbf{R}) p = 4 x − x 3 + 6 ∈ P 3 ( R ) with the standard basis 1 , x , x 2 , x 3 1, x, x^2, x^3 1 , x , x 2 , x 3 — find M ( p ) \mathcal{M}(p) M ( p ) .
a ( 4 − 1 6 ) \left(\begin{smallmatrix} 4 \\ -1 \\ 6 \end{smallmatrix}\right) ( 4 − 1 6 )
b ( − 1 0 4 6 ) \left(\begin{smallmatrix} -1 \\ 0 \\ 4 \\ 6 \end{smallmatrix}\right) ( − 1 0 4 6 )
c ( 6 4 0 − 1 ) \left(\begin{smallmatrix} 6 \\ 4 \\ 0 \\ -1 \end{smallmatrix}\right) ( 6 4 0 − 1 )
d ( 6 4 − 1 ) \left(\begin{smallmatrix} 6 \\ 4 \\ -1 \end{smallmatrix}\right) ( 6 4 − 1 )
✅ Correct! One entry per basis vector, in the order
1 , x , x 2 , x 3 1, x, x^2, x^3 1 , x , x 2 , x 3 , with
0 0 0 for the missing
x 2 x^2 x 2 term.
❌ Not quite. The entries follow the basis
1 , x , x 2 , x 3 1, x, x^2, x^3 1 , x , x 2 , x 3 , not the order in which the terms are written — and
dim P 3 ( R ) = 4 \dim \mathcal{P}_3(\mathbf{R}) = 4 dim P 3 ( R ) = 4 , so
M ( p ) \mathcal{M}(p) M ( p ) is
4 4 4 -by-
1 1 1 .
❌ Not quite. That column lists the coefficients from
x 3 x^3 x 3 down to
1 1 1 ; entry
k k k must be the coefficient of the
k k k -th basis vector, starting with
1 1 1 .
❌ Close, but… there is no
x 2 x^2 x 2 term, yet
x 2 x^2 x 2 is still a basis vector: its coefficient
0 0 0 keeps its place, so
M ( p ) \mathcal{M}(p) M ( p ) is
4 4 4 -by-
1 1 1 .
Show solution
Write p p p as a linear combination of the basis 1 , x , x 2 , x 3 1, x, x^2, x^3 1 , x , x 2 , x 3 :
p = 6 ⋅ 1 + 4 ⋅ x + 0 ⋅ x 2 + ( − 1 ) ⋅ x 3 . p = 6 \cdot 1 + 4 \cdot x + 0 \cdot x^2 + (-1) \cdot x^3. p = 6 ⋅ 1 + 4 ⋅ x + 0 ⋅ x 2 + ( − 1 ) ⋅ x 3 .
The coefficients, in basis order, form the column
M ( p ) = ( 6 4 0 − 1 ) . \mathcal{M}(p) = \begin{pmatrix} 6 \\ 4 \\ 0 \\ -1 \end{pmatrix}. M ( p ) = 6 4 0 − 1 .
Problem 2 · Same Vector, Other Basis
Given: the basis v 1 = ( 2 , 1 ) v_1 = (2, 1) v 1 = ( 2 , 1 ) , v 2 = ( 3 , 2 ) v_2 = (3, 2) v 2 = ( 3 , 2 ) of R 2 \mathbf{R}^2 R 2 and v = ( 4 , 3 ) v = (4, 3) v = ( 4 , 3 ) — find M ( v ) \mathcal{M}(v) M ( v ) with respect to v 1 , v 2 v_1, v_2 v 1 , v 2 .
a ( 4 3 ) \begin{pmatrix} 4 \\ 3 \end{pmatrix} ( 4 3 )
b ( − 1 2 ) \begin{pmatrix} -1 \\ 2 \end{pmatrix} ( − 1 2 )
c ( 5 − 6 ) \begin{pmatrix} 5 \\ -6 \end{pmatrix} ( 5 − 6 )
d ( 2 − 1 ) \begin{pmatrix} 2 \\ -1 \end{pmatrix} ( 2 − 1 )
✅ Correct! − 1 ⋅ ( 2 , 1 ) + 2 ( 3 , 2 ) = ( 4 , 3 ) -1 \cdot (2, 1) + 2(3, 2) = (4, 3) − 1 ⋅ ( 2 , 1 ) + 2 ( 3 , 2 ) = ( 4 , 3 ) , so the coordinates of
v v v in this basis are
− 1 -1 − 1 and
2 2 2 .
❌ Not quite. ( 4 , 3 ) (4, 3) ( 4 , 3 ) is
M ( v ) \mathcal{M}(v) M ( v ) for the
standard basis.
M ( v ) \mathcal{M}(v) M ( v ) depends on the basis: you need
b 1 , b 2 b_1, b_2 b 1 , b 2 with
b 1 ( 2 , 1 ) + b 2 ( 3 , 2 ) = ( 4 , 3 ) b_1 (2, 1) + b_2 (3, 2) = (4, 3) b 1 ( 2 , 1 ) + b 2 ( 3 , 2 ) = ( 4 , 3 ) .
❌ Not quite. Those weights solve
2 b 1 + b 2 = 4 2b_1 + b_2 = 4 2 b 1 + b 2 = 4 ,
3 b 1 + 2 b 2 = 3 3b_1 + 2b_2 = 3 3 b 1 + 2 b 2 = 3 , which treats
v 1 , v 2 v_1, v_2 v 1 , v 2 as the rows of the system; check:
5 ( 2 , 1 ) − 6 ( 3 , 2 ) = ( − 8 , − 7 ) ≠ ( 4 , 3 ) 5(2, 1) - 6(3, 2) = (-8, -7) \neq (4, 3) 5 ( 2 , 1 ) − 6 ( 3 , 2 ) = ( − 8 , − 7 ) = ( 4 , 3 ) .
❌ Close, but… the order matters: entry
1 1 1 is the coefficient of
v 1 v_1 v 1 . Check:
2 ( 2 , 1 ) − 1 ⋅ ( 3 , 2 ) = ( 1 , 0 ) 2(2, 1) - 1 \cdot (3, 2) = (1, 0) 2 ( 2 , 1 ) − 1 ⋅ ( 3 , 2 ) = ( 1 , 0 ) .
Show solution
Find the unique b 1 , b 2 b_1, b_2 b 1 , b 2 with b 1 ( 2 , 1 ) + b 2 ( 3 , 2 ) = ( 4 , 3 ) b_1 (2, 1) + b_2 (3, 2) = (4, 3) b 1 ( 2 , 1 ) + b 2 ( 3 , 2 ) = ( 4 , 3 ) :
2 b 1 + 3 b 2 = 4 , b 1 + 2 b 2 = 3. 2b_1 + 3b_2 = 4, \qquad b_1 + 2b_2 = 3. 2 b 1 + 3 b 2 = 4 , b 1 + 2 b 2 = 3.
Subtract twice the second equation from the first: − b 2 = 4 − 6 = − 2 -b_2 = 4 - 6 = -2 − b 2 = 4 − 6 = − 2 , so b 2 = 2 b_2 = 2 b 2 = 2 and b 1 = 3 − 4 = − 1 b_1 = 3 - 4 = -1 b 1 = 3 − 4 = − 1 . Check: − 1 ⋅ ( 2 , 1 ) + 2 ( 3 , 2 ) = ( − 2 + 6 , − 1 + 4 ) = ( 4 , 3 ) -1 \cdot (2, 1) + 2(3, 2) = (-2 + 6,\ -1 + 4) = (4, 3) − 1 ⋅ ( 2 , 1 ) + 2 ( 3 , 2 ) = ( − 2 + 6 , − 1 + 4 ) = ( 4 , 3 ) . Hence
M ( v ) = ( − 1 2 ) . \mathcal{M}(v) = \begin{pmatrix} -1 \\ 2 \end{pmatrix}. M ( v ) = ( − 1 2 ) .
Problem 3 · Columns, Then the Product
Given: T ∈ L ( P 2 ( R ) , R 2 ) T \in \mathcal{L}\big(\mathcal{P}_2(\mathbf{R}), \mathbf{R}^2\big) T ∈ L ( P 2 ( R ) , R 2 ) defined by T p = ( p ( 0 ) + p ( 1 ) , p ′ ( 1 ) ) Tp = \big(p(0) + p(1),\ p'(1)\big) Tp = ( p ( 0 ) + p ( 1 ) , p ′ ( 1 ) ) , with the standard bases 1 , x , x 2 1, x, x^2 1 , x , x 2 and e 1 , e 2 e_1, e_2 e 1 , e 2 — find column 2 2 2 of M ( T ) \mathcal{M}(T) M ( T ) , then M ( T p ) \mathcal{M}(Tp) M ( Tp ) for p = 3 − x + 2 x 2 p = 3 - x + 2x^2 p = 3 − x + 2 x 2 .
Column 2 of M(T)?
a ( 0 1 2 ) \begin{pmatrix} 0 & 1 & 2 \end{pmatrix} ( 0 1 2 )
b ( 2 0 ) \begin{pmatrix} 2 \\ 0 \end{pmatrix} ( 2 0 )
c ( 1 2 ) \begin{pmatrix} 1 \\ 2 \end{pmatrix} ( 1 2 )
d ( 1 1 ) \begin{pmatrix} 1 \\ 1 \end{pmatrix} ( 1 1 )
M(Tp)?
a ( 7 3 ) \begin{pmatrix} 7 \\ 3 \end{pmatrix} ( 7 3 )
b ( 6 5 ) \begin{pmatrix} 6 \\ 5 \end{pmatrix} ( 6 5 )
c ( 4 3 ) \begin{pmatrix} 4 \\ 3 \end{pmatrix} ( 4 3 )
d ( 7 − 1 ) \begin{pmatrix} 7 \\ -1 \end{pmatrix} ( 7 − 1 )
✅ Correct! Column
2 2 2 is
M ( T x ) = ( 1 , 1 ) \mathcal{M}(Tx) = (1, 1) M ( T x ) = ( 1 , 1 ) , and
M ( T ) M ( p ) = ( 7 , 3 ) \mathcal{M}(T)\mathcal{M}(p) = (7, 3) M ( T ) M ( p ) = ( 7 , 3 ) — the same column as computing
T p = ( 3 + 4 , 3 ) Tp = (3 + 4,\ 3) Tp = ( 3 + 4 , 3 ) directly.
❌ Not quite. That is row
2 2 2 of
M ( T ) \mathcal{M}(T) M ( T ) . Column
k k k is
M ( T v k ) \mathcal{M}(Tv_k) M ( T v k ) , an
m m m -by-
1 1 1 column — here
2 2 2 -by-
1 1 1 .
❌ Not quite. ( 2 , 0 ) = M ( T 1 ) (2, 0) = \mathcal{M}(T1) ( 2 , 0 ) = M ( T 1 ) is column
1 1 1 . The second basis vector is
v 2 = x v_2 = x v 2 = x , so column
2 2 2 is
M ( T x ) \mathcal{M}(Tx) M ( T x ) .
❌ Check column 2. Column
2 2 2 is
M ( T v 2 ) \mathcal{M}(Tv_2) M ( T v 2 ) with
v 2 = x v_2 = x v 2 = x : compute
x ( 0 ) + x ( 1 ) x(0) + x(1) x ( 0 ) + x ( 1 ) and the derivative of
x x x at
1 1 1 .
❌ Not quite. That multiplies
M ( T ) \mathcal{M}(T) M ( T ) by
( 2 , − 1 , 3 ) (2, -1, 3) ( 2 , − 1 , 3 ) , the coefficients of
p p p read from
x 2 x^2 x 2 down. In the basis
1 , x , x 2 1, x, x^2 1 , x , x 2 ,
M ( p ) = ( 3 , − 1 , 2 ) \mathcal{M}(p) = (3, -1, 2) M ( p ) = ( 3 , − 1 , 2 ) .
❌ Check the product. M ( T p ) = M ( T ) M ( p ) \mathcal{M}(Tp) = \mathcal{M}(T)\mathcal{M}(p) M ( Tp ) = M ( T ) M ( p ) with
M ( p ) = ( 3 , − 1 , 2 ) \mathcal{M}(p) = (3, -1, 2) M ( p ) = ( 3 , − 1 , 2 ) ; both entries of
T p Tp Tp must be included:
p ( 0 ) + p ( 1 ) p(0) + p(1) p ( 0 ) + p ( 1 ) , then
p ′ ( 1 ) p'(1) p ′ ( 1 ) .
Show solution
The columns. Column k k k of M ( T ) \mathcal{M}(T) M ( T ) is M ( T v k ) \mathcal{M}(Tv_k) M ( T v k ) :
T 1 = ( 1 + 1 , 0 ) = ( 2 , 0 ) , T x = ( 0 + 1 , 1 ) = ( 1 , 1 ) , T x 2 = ( 0 + 1 , 2 ) = ( 1 , 2 ) , T1 = (1 + 1,\ 0) = (2, 0), \quad Tx = (0 + 1,\ 1) = (1, 1), \quad Tx^2 = (0 + 1,\ 2) = (1, 2), T 1 = ( 1 + 1 , 0 ) = ( 2 , 0 ) , T x = ( 0 + 1 , 1 ) = ( 1 , 1 ) , T x 2 = ( 0 + 1 , 2 ) = ( 1 , 2 ) ,
M ( T ) = ( 2 1 1 0 1 2 ) . \mathcal{M}(T) = \begin{pmatrix} 2 & 1 & 1 \\ 0 & 1 & 2 \end{pmatrix}. M ( T ) = ( 2 0 1 1 1 2 ) .
So column 2 2 2 is ( 1 1 ) \begin{pmatrix} 1 \\ 1 \end{pmatrix} ( 1 1 ) .
The product. M ( p ) = ( 3 , − 1 , 2 ) \mathcal{M}(p) = (3, -1, 2) M ( p ) = ( 3 , − 1 , 2 ) as a column, so
M ( T p ) = M ( T ) M ( p ) = 3 ( 2 0 ) − 1 ( 1 1 ) + 2 ( 1 2 ) = ( 7 3 ) . \mathcal{M}(Tp) = \mathcal{M}(T)\mathcal{M}(p) = 3\begin{pmatrix} 2 \\ 0 \end{pmatrix} - 1\begin{pmatrix} 1 \\ 1 \end{pmatrix} + 2\begin{pmatrix} 1 \\ 2 \end{pmatrix} = \begin{pmatrix} 7 \\ 3 \end{pmatrix}. M ( Tp ) = M ( T ) M ( p ) = 3 ( 2 0 ) − 1 ( 1 1 ) + 2 ( 1 2 ) = ( 7 3 ) .
Check directly: p ( 0 ) = 3 p(0) = 3 p ( 0 ) = 3 , p ( 1 ) = 3 − 1 + 2 = 4 p(1) = 3 - 1 + 2 = 4 p ( 1 ) = 3 − 1 + 2 = 4 , p ′ ( x ) = − 1 + 4 x p'(x) = -1 + 4x p ′ ( x ) = − 1 + 4 x so p ′ ( 1 ) = 3 p'(1) = 3 p ′ ( 1 ) = 3 . Thus T p = ( 7 , 3 ) Tp = (7, 3) Tp = ( 7 , 3 ) , whose coordinates in e 1 , e 2 e_1, e_2 e 1 , e 2 are ( 7 , 3 ) (7, 3) ( 7 , 3 ) . ✓
Problem 4 · Range From the Matrix
Given: T ∈ L ( V , W ) T \in \mathcal{L}(V, W) T ∈ L ( V , W ) with dim V = 4 \dim V = 4 dim V = 4 , dim W = 3 \dim W = 3 dim W = 3 , and with respect to some bases of V V V and W W W
M ( T ) = ( 1 2 0 3 2 4 1 7 − 1 − 2 1 − 2 ) . \mathcal{M}(T) = \begin{pmatrix} 1 & 2 & 0 & 3 \\ 2 & 4 & 1 & 7 \\ -1 & -2 & 1 & -2 \end{pmatrix}. M ( T ) = 1 2 − 1 2 4 − 2 0 1 1 3 7 − 2 .
Find dim range T \dim \operatorname{range} T dim range T and dim null T \dim \operatorname{null} T dim null T .
dim range T?
dim null T?
✅ Correct! Only two columns are independent, so
dim range T = 2 \dim \operatorname{range} T = 2 dim range T = 2 , and
dim null T = 4 − 2 = 2 \dim \operatorname{null} T = 4 - 2 = 2 dim null T = 4 − 2 = 2 — whatever bases were used.
❌ Not quite. 4 4 4 counts the columns, but the column rank counts only linearly independent ones, and column
2 2 2 is twice column
1 1 1 .
❌ Not quite. 3 = dim W 3 = \dim W 3 = dim W would mean
T T T is surjective; the columns are dependent — column
2 = 2 ⋅ 2 = 2 \cdot 2 = 2 ⋅ column
1 1 1 and column
4 = 3 ⋅ 4 = 3 \cdot 4 = 3 ⋅ column
1 + 1 + 1 + column
3 3 3 .
❌ Check the column rank. dim range T \dim \operatorname{range} T dim range T is the column rank: find how many columns are linearly independent.
❌ Not quite. The fundamental theorem of linear maps uses the domain:
dim V = dim null T + dim range T \dim V = \dim \operatorname{null} T + \dim \operatorname{range} T dim V = dim null T + dim range T , and
dim V = 4 \dim V = 4 dim V = 4 , not
3 3 3 .
❌ Check the null space. Use
dim V = dim null T + dim range T \dim V = \dim \operatorname{null} T + \dim \operatorname{range} T dim V = dim null T + dim range T with
dim V = 4 \dim V = 4 dim V = 4 .
Show solution
Call the columns c 1 , c 2 , c 3 , c 4 c_1, c_2, c_3, c_4 c 1 , c 2 , c 3 , c 4 . Then c 2 = 2 c 1 c_2 = 2c_1 c 2 = 2 c 1 , and
3 c 1 + c 3 = ( 3 6 − 3 ) + ( 0 1 1 ) = ( 3 7 − 2 ) = c 4 . 3c_1 + c_3 = \begin{pmatrix} 3 \\ 6 \\ -3 \end{pmatrix} + \begin{pmatrix} 0 \\ 1 \\ 1 \end{pmatrix} = \begin{pmatrix} 3 \\ 7 \\ -2 \end{pmatrix} = c_4. 3 c 1 + c 3 = 3 6 − 3 + 0 1 1 = 3 7 − 2 = c 4 .
So the span of the columns is span ( c 1 , c 3 ) \operatorname{span}(c_1, c_3) span ( c 1 , c 3 ) , and c 1 , c 3 c_1, c_3 c 1 , c 3 are linearly independent (neither is a scalar multiple of the other: c 3 c_3 c 3 has first entry 0 0 0 but is not zero). The column rank is 2 2 2 , so
dim range T = column rank of M ( T ) = 2. \dim \operatorname{range} T = \text{column rank of } \mathcal{M}(T) = 2. dim range T = column rank of M ( T ) = 2.
By the fundamental theorem of linear maps, dim null T = dim V − dim range T = 4 − 2 = 2 \dim \operatorname{null} T = \dim V - \dim \operatorname{range} T = 4 - 2 = 2 dim null T = dim V − dim range T = 4 − 2 = 2 . Neither answer depends on which bases produced M ( T ) \mathcal{M}(T) M ( T ) .
Solved: 0 / 4