5 Matrix Form of Linear Transformations, Column and Row Space of A Matrix
5 Matrix Form of Linear Transformations, Column and Row Space of A Matrix
It will be our goal to find an 𝑚 × 𝑛 matrix 𝐴 such that multiplication by 𝐴 maps the
vector [𝑥]𝐵 into the vector [𝑇(𝑥)]𝐵′ for each 𝑥 in 𝑉.
1
Dr. Supem Samarasiri, Department of Mathematics, University of Moratuwa
Linear Algebra - MA2034
The key to executing this plan is to find an 𝑚 × 𝑛 matrix 𝐴 with the property
𝐴[ 𝑥 ]𝐵 = [ 𝑇( 𝑥 )]𝐵′ ; ∀ 𝑥 ∈ 𝑉 (1)
For this purpose, let 𝐵 = {𝑢1 , 𝑢2 , . . . , 𝑢𝑛 } be a basis for the 𝑛-dimensional space 𝑉 and
𝐵′ = {𝑣1 , 𝑣2 , . . . , 𝑣𝑚 } be a basis for the 𝑚-dimensional space 𝑊. Since Equation (1)
must hold for all vectors in 𝑉, it must hold, in particular, for the basis vectors in 𝐵; that
is,
𝐴[𝑢1 ]𝐵 = [𝑇(𝑢1 )]𝐵′ , 𝐴[𝑢2 ]𝐵 = [𝑇(𝑢2 )]𝐵′ , … , 𝐴[𝑢𝑛 ]𝐵 = [𝑇(𝑢𝑛 )]𝐵′ (2)
But
2
Dr. Supem Samarasiri, Department of Mathematics, University of Moratuwa
Linear Algebra - MA2034
1 0 0
0 1 0
[𝑢1 ]𝐵 = [ ], [𝑢2 ]𝐵 = [ ] , … , [𝑢𝑛 ]𝐵 = [ ]
⋮ ⋮ ⋮
0 0 1
so
𝐴[𝑢1 ]𝐵 =
𝐴[𝑢2 ]𝐵 =
⋮ ⋮ ⋮
𝐴[𝑢𝑛 ]𝐵 =
3
Dr. Supem Samarasiri, Department of Mathematics, University of Moratuwa
Linear Algebra - MA2034
We will call this the matrix for 𝑇 relative to the bases 𝐵 and 𝐵′ and will denote it by
the symbol [𝑇]𝐵′ ,𝐵 .
and from (1), this matrix has the property [𝑇]𝐵′,𝐵 [𝑥]𝐵 = [𝑇(𝑥)]𝐵′ (5)
Solution.
From the given formula for 𝑇 we obtain
𝑇(𝑢1 ) = 𝑇(1) = (𝑥)(1) = 𝑥
𝑇(𝑢2 ) = 𝑇(𝑥) = (𝑥)(𝑥) = 𝑥 2
By inspection, the coordinate vectors for 𝑇(𝑢1 ) and 𝑇(𝑢2 ) relative to 𝐵′ are
0 0
[𝑇(𝑢1 )]𝐵′ = [1] , [𝑇(𝑢2 )]𝐵′ = [0]
0 1
Thus, the matrix for 𝑇 with respect to 𝐵 and 𝐵′ is
0 0
[𝑇]𝐵′ ,𝐵 = [[𝑇(𝑢1 )]𝐵′ | [𝑇(𝑢2 )]𝐵′ ] = [1 0]
0 1
4
Dr. Supem Samarasiri, Department of Mathematics, University of Moratuwa
Linear Algebra - MA2034
Solution.
Step 1. The coordinate matrix for 𝑥 = 𝑎 + 𝑏𝑥 relative to the basis 𝐵 = {1, 𝑥} is
𝑎
[𝑥]𝐵 = [ ]
𝑏
Step 2. Multiplying [𝑥]𝐵 by the matrix found in Example 1 we obtain
0 0 𝑎 0
[𝑇]𝐵′ ,𝐵 [𝑥]𝐵 = [1 0] [ ] = [𝑎] = [𝑇(𝑥)]𝐵′
𝑏
0 1 𝑏
Step 3. Reconstructing 𝑇(𝑥) = 𝑇(𝑎 + 𝑏𝑥) from [𝑇(𝑥)]𝐵′ we obtain 𝑇(𝑎 + 𝑏𝑥) =
0 + 𝑎𝑥 + 𝑏𝑥 2 = 𝑎𝑥 + 𝑏𝑥 2 .
Find the matrix for the transformation 𝑇 with respect to the bases 𝐵 = {𝑢1 , 𝑢2 } for ℝ2
and 𝐵′ = {𝑣1 , 𝑣2 , 𝑣3 } for ℝ3 , where
1 −1 0
3 5
𝑢1 = [ ] , 𝑢2 = [ ] ; 𝑣1 = [ 0 ] , 𝑣2 = [ 2 ] , 𝑣3 = [1]
1 2
−1 2 2
Solution:
From the definition of 𝑇,
1 2
𝑇(𝑢1 ) = [−2] , 𝑇(𝑢2 ) = [ 1 ].
−5 −3
Expressing these vectors as linear combinations of the vectors in the basis 𝐵′,
𝑇(𝑢1 ) = 𝑣1 − 2𝑣3 and 𝑇(𝑢2 ) = 3𝑣1 + 𝑣2 − 𝑣3.
5
Dr. Supem Samarasiri, Department of Mathematics, University of Moratuwa
Linear Algebra - MA2034
So,
1 3
[𝑇(𝑢1 )]𝐵′ = [ 0 ] , [𝑇(𝑢2 )]𝐵′ = [ 1 ].
−2 −1
Therefore,
1 3
[𝑇]𝐵′,𝐵 = [[𝑇(𝑢1 )]𝐵′ | [𝑇(𝑢2 )]𝐵′ ] = [ 0 1 ].
−2 −1
6
Dr. Supem Samarasiri, Department of Mathematics, University of Moratuwa
Linear Algebra - MA2034
Solution.
(a) From the formula for 𝑇,
𝑇(1) = 1, 𝑇(𝑥) = 3𝑥 − 5 = −5 + 3𝑥, 𝑇(𝑥 2 ) = (3𝑥 − 5)2 = 25 − 30𝑥 + 9𝑥 2 .
So,
1 −5 25
[𝑇(1)]𝐵 = [0], [𝑇(𝑥)]𝐵 = [ 3 ], [𝑇(𝑥 2 )]𝐵 = [−30].
0 0 9
Therefore,
7
Dr. Supem Samarasiri, Department of Mathematics, University of Moratuwa
Linear Algebra - MA2034
1 −5 25
[𝑇]𝐵 = [0 3 −30].
0 0 9
(b)
1
[1 + 2𝑥 + 3𝑥 2 ]𝐵 = [2]
3
1 −5 25 1 66
[𝑇(1 + 2𝑥 + 3𝑥 2 )]𝐵 = [𝑇]𝐵 [1 + 2𝑥 + 3𝑥 2 ]𝐵 = [0 3 −30] [2] = [−84]
0 0 9 3 27
Matrices of Compositions
Theorem 1.
If 𝑇1 : 𝑈 → 𝑉 and 𝑇2 : 𝑉 → 𝑊 are linear transformations, and if 𝐵, 𝐵′′ and 𝐵′ are bases
for 𝑈, 𝑉, and 𝑊, respectively, then [𝑇2 ∘ 𝑇1 ]𝐵′,𝐵 = [𝑇2 ]𝐵′,𝐵′′ [𝑇1 ]𝐵′′ ,𝐵 (10)
Remark.
In (10), observe how the interior subscript 𝐵′′ (the basis for the intermediate space 𝑉)
seems to “cancel out,” leaving only the bases for the domain and image space of the
8
Dr. Supem Samarasiri, Department of Mathematics, University of Moratuwa
Linear Algebra - MA2034
Example 6. Composition
In this example, 𝑃1 plays the role of 𝑈 in Theorem 1, and 𝑃2 plays the roles of both 𝑉
and 𝑊; thus we can take 𝐵′ = 𝐵′′ in (10) so that the formula simplifies to
9
Dr. Supem Samarasiri, Department of Mathematics, University of Moratuwa
Linear Algebra - MA2034
−5 25 𝑐
0
[(𝑇2 ∘ 𝑇1 )(𝑐0 + 𝑐1 𝑥)]𝐵′ = [𝑇2 ∘ 𝑇1 ]𝐵′,𝐵 [𝑐0 + 𝑐1 𝑥]𝐵 = [ 3 −30] [𝑐 ]
1
0 9
(−5𝑐0 + 25𝑐1 )
= [ (3𝑐0 − 30𝑐1 ) ].
9𝑐1
Therefore,
(𝑇2 ∘ 𝑇1 )(𝑐0 + 𝑐1 𝑥) = (−5𝑐0 + 25𝑐1 )1 + (3𝑐0 − 30𝑐1 )𝑥 + 9𝑐1 𝑥 2
= 𝑐0 (3𝑥 − 5) + 𝑐1 (9𝑥 2 − 30𝑥 + 25) = 𝑐0 (3𝑥 − 5) + 𝑐1 (3𝑥 − 5)2
10
Dr. Supem Samarasiri, Department of Mathematics, University of Moratuwa
Linear Algebra - MA2034
Definition 4.
If 𝐴 is an 𝑚 × 𝑛 matrix, then the subspace of ℝ𝑛 spanned by the row vectors of 𝐴 is
called the row space of 𝐴, and the subspace of ℝ𝑚 spanned by the column vectors of 𝐴
is called the column space of 𝐴.
• We will denote the row space of 𝐴 and the column space of 𝐴 by row(𝐴) and
col(𝐴) respectively.
11
Dr. Supem Samarasiri, Department of Mathematics, University of Moratuwa
Linear Algebra - MA2034
Theorem 3. Elementary row operations do not change the row space of a matrix.
The proof is omitted.
Theorem 3 might tempt you into incorrectly believing that elementary row operations
do not change the column space of a matrix. To see why this is not true, compare the
matrices
1 3 1 3
𝐴 =[ ] and 𝐵 = [ ]
2 6 0 0
The matrix 𝐵 can be obtained from 𝐴 by adding −2 times the first row to the second.
However, this operation has changed the column space of 𝐴, since that column space
consists of all scalar multiples of
1
[ ]
2
whereas the column space of 𝐵 consists of all scalar multiples of
1
[ ]
0
and the two are different spaces.
Theorem 4. If a matrix 𝑅 is in row echelon form, then the row vectors with the leading
1’s (the nonzero row vectors) form a basis for the row space of 𝑅, and the column
vectors with the leading 1’s of the row vectors form a basis for the column space of 𝑅.
The proof is omitted.
Example 1. Bases for the Row and Column Spaces of a Matrix in Row Echelon
Form
Find bases for the row and column spaces of the matrix
1 −2 5 0 3
0 1 3 0 0
𝑅=[ ]
0 0 0 1 0
0 0 0 0 0
Solution. Since the matrix 𝑅 is in row echelon form, it follows from Theorem 4, that
the vectors
𝑟1 = [1 −2 5 0 3]
𝑟2 = [0 1 3 0 0]
𝑟3 = [0 0 0 1 0]
12
Dr. Supem Samarasiri, Department of Mathematics, University of Moratuwa
Linear Algebra - MA2034
Although elementary row operations can change the column space of a matrix, it
follows from Theorem 5 that they do not change the dimension of its column space.
13
Dr. Supem Samarasiri, Department of Mathematics, University of Moratuwa
Linear Algebra - MA2034
is a row echelon form of 𝐴. Keeping in mind that 𝐴 and 𝑅 can have different column
spaces, we cannot find a basis for the column space of 𝐴 directly from the column
vectors of 𝑅. However, it follows from Theorem 5 that if we can find a set of column
vectors of 𝑅 that forms a basis for the column space of 𝑅, then the corresponding
column vectors of 𝐴 will form a basis for the column space of 𝐴.
Since the first, third, and fifth columns of 𝑅 contain the leading 1’s of the row vectors,
the vectors
1 4 5
0 1 −2
𝑘1 = [ ] , 𝑘2 = [ ] , 𝑘4 = [ ]
0 0 1
0 0 0
form a basis for the column space of 𝑅. Thus, the corresponding column vectors of 𝐴,
which are
1 4 5
2 9 8
𝑐1 = [ ] , 𝑐2 = [ ] , 𝑐4 = [ ]
2 9 9
−1 −4 −5
14
Dr. Supem Samarasiri, Department of Mathematics, University of Moratuwa
Linear Algebra - MA2034
Solution.
If we rewrite these vectors in column form and construct the matrix that has those
vectors as its successive columns, then we obtain the matrix 𝐴 in Example 3 (verify).
Thus,
span{𝑣1 , 𝑣2 , 𝑣3 , 𝑣4 , 𝑣5 , 𝑣6 } = col(𝐴)
Proceeding as in that example (and adjusting the notation appropriately), we see that
the vectors 𝑣1 , 𝑣3 , and 𝑣5 form a basis for
span{𝑣1 , 𝑣2 , 𝑣3 , 𝑣4 , 𝑣5 , 𝑣6 }
In Example 2, we found a basis for the row space of a matrix by reducing that matrix to
row echelon form. However, the basis vectors produced by that method were not all
row vectors of the original matrix. The following adaptation of the technique used in
Example 3 shows how to find a basis for the row space of a matrix that consists entirely
of row vectors of that matrix.
15
Dr. Supem Samarasiri, Department of Mathematics, University of Moratuwa
Linear Algebra - MA2034
The first, second, and fourth columns contain the leading 1’s, so the corresponding
column vectors in 𝐴𝑇 form a basis for the column space of 𝐴𝑇 ; these are
1 2 2
−2 −5 6
𝑐1 = 0 , 𝑐2 = −3 , 𝑐4 = 18
0 −2 8
[3] [6] [6]
Transposing again and adjusting the notation appropriately yields the basis vectors
𝑟1 = [1 − 2 0 0 3], 𝑟2 = [2 − 5 − 3 − 2 6],
𝑟4 = [2 6 18 8 6]
for the row space of 𝐴.
(b) Express each vector not in the basis as a linear combination of the basis vectors.
Solution (a).
We begin by constructing a matrix that has 𝑣1 , 𝑣2 , . . . , 𝑣5 as its column vectors:
16
Dr. Supem Samarasiri, Department of Mathematics, University of Moratuwa
Linear Algebra - MA2034
(1)
𝑣1 𝑣2 𝑣3 𝑣4 𝑣5
The first part of our problem can be solved by finding a basis for the column space of
this matrix. Reducing the matrix to reduced row echelon form and denoting the column
vectors of the resulting matrix by 𝑤1 , 𝑤2 , 𝑤3 , 𝑤4, and 𝑤5 yields
(2)
𝑤1 𝑤2 𝑤3 𝑤4 𝑤5
Solution (b).
We will start by expressing 𝑤3 and 𝑤5 as linear combinations of the basis vectors 𝑤1 ,
𝑤2 , 𝑤4. The simplest way of doing this is to express 𝑤3 and 𝑤5 in terms of basis vectors
with smaller subscripts. Accordingly, we will express 𝑤3 as a linear combination of 𝑤1
and 𝑤2 , and we will express 𝑤5 as a linear combination of 𝑤1 , 𝑤2 , and 𝑤4 . By inspection
of (2), these linear combinations are
𝑤3 = 2𝑤1 − 𝑤2
𝑤5 = 𝑤1 + 𝑤2 + 𝑤4
We call these the dependency equations. The corresponding relationships in (1) are
𝑣3 = 2𝑣1 − 𝑣2
𝑣5 = 𝑣1 + 𝑣2 + 𝑣4
17
Dr. Supem Samarasiri, Department of Mathematics, University of Moratuwa
Linear Algebra - MA2034
Basis for the Space Spanned by a Set of Vectors (a summary of the steps of above
example)
Step 1. Form the matrix 𝐴 whose columns are the vectors in the set 𝑆 = {𝑣1 , 𝑣2 , . . . , 𝑣𝑘 }.
Step 2. Reduce the matrix 𝐴 to reduced row echelon form 𝑅.
Step 3. Denote the column vectors of 𝑅 by 𝑤1 , 𝑤2 ,…, 𝑤𝑘 .
Step 4. Identify the columns of 𝑅 that contain the leading 1’s. The corresponding
column vectors of 𝐴 form a basis for span(𝑆).
This completes the first part of the problem.
Step 5. Obtain a set of dependency equations for the column vectors 𝑤1 , 𝑤2 ,…, 𝑤𝑘 of
𝑅 by successively expressing each 𝑤𝑖 that does not contain a leading 1 of 𝑅 as a linear
combination of predecessors that do.
Step 6. In each dependency equation obtained in Step 5, replace the vector 𝑤𝑖 by the
vector 𝑣𝑖 for 𝑖 = 1, 2, . . . , 𝑘.
This completes the second part of the problem.
Rank
Theorem 6. The row space and the column space of a matrix 𝐴 have the same
dimension.
Proof is omitted.
Definition 5.
The common dimension of the row space and column space of a matrix 𝐴 is called the
rank of 𝐴 and is denoted by rank(𝐴).
19
Dr. Supem Samarasiri, Department of Mathematics, University of Moratuwa