Uploaded by diezei

Matrix Representations of Linear Transformations

advertisement
Chapter 4 Linear Transformations
4.2 Matrix Representations of Linear
Transformations
2.3 Additional topics
Theorem
If ๐ฟ is a linear transformation mapping โ„๐‘› into โ„๐‘š , then there is an ๐‘š × ๐‘›
matrix ๐ด, such that
๐ฟ(๐ฑ) = ๐ด๐ฑ
for each x ∈ โ„๐‘› . In fact, the ๐‘—๐‘กโ„Ž column vector of ๐ด is given by
๐’‚๐‘— = ๐ฟ(๐’†๐‘— ) ๐‘— = 1,2, … , ๐‘›
Proof
For ๐‘— = 1,2, … , ๐‘›, define ๐’‚๐‘— = ๐ฟ(๐’†๐‘— ), and let ๐ด = ๐‘Ž๐‘–๐‘— = (๐’‚1 , ๐’‚2 , … , ๐’‚๐‘› ).
If ๐ฑ = ๐‘ฅ1 ๐’†1 + ๐‘ฅ2 ๐’†2 + โ‹ฏ + ๐‘ฅ๐‘› ๐’†๐‘› is an arbitrary element of โ„๐‘› , then
๐ฟ ๐ฑ = ๐‘ฅ1 ๐ฟ ๐’†1 + ๐‘ฅ2 ๐ฟ ๐’†2 + โ‹ฏ + ๐‘ฅ๐‘› ๐ฟ ๐’†๐‘› = ๐‘ฅ1 ๐‘Ž1 + ๐‘ฅ2 ๐‘Ž2 + โ‹ฏ + ๐‘ฅ๐‘› ๐‘Ž๐‘›
= ๐ด๐ฑ
Theorem
The theorem tells us how to construct the matrix ๐ด corresponding to a
linear transformation ๐ฟ. To get the ๐‘—๐‘กโ„Ž column of ๐ด, see what ๐ฟ does to
the basis element ๐’†๐‘— of โ„๐‘› . Since the standard basis elements
๐’†1 , ๐’†2 , … , ๐’†๐‘› (the column vectors of the ๐‘› × ๐‘› identity matrix) are used
for โ„๐‘› , we refer to ๐ด as the standard matrix representation of ๐ฟ.
Example
Find the standard matrix representation for the linear transformation
๐‘ฅ+๐‘ฆ
๐‘ฅ
๐‘ฅ−๐‘ฆ
2
4
๐ฟ: โ„ → โ„ given by ๐ฟ ๐‘ฆ =
.
2๐‘ฅ + 2๐‘ฆ
๐‘ฅ
Solution
๏‚—
First compute ๐ฟ ๐’†1 and ๐ฟ ๐’†2 :
1
= (1,1,2,1)๐‘‡
0
0
๐ฟ ๐’†2 = ๐ฟ
= (1, −1,2,0)๐‘‡
1
Therefore, we have standard matrix representation:
1 1
๐ด = 1 −1
2 2
1 0
๐ฟ ๐’†1 = ๐ฟ
๏‚—
Example
Rotation Matrix for โ„2
Let ๐ฟ: โ„2 → โ„2 be the linear operator that rotates each vector by an angle
๐œƒ in the counterclockwise direction. Then a matrix representation for ๐ฟ is
given by
cos ๐œƒ −sin ๐œƒ
๐ด=
sin ๐œƒ cos ๐œƒ
Matrix Representation Theorem(MRT)
If ๐ธ = {๐ฏ1 , ๐ฏ2 , … , ๐ฏn } and ๐น = {๐ฐ1 , ๐ฐ2 , … , ๐ฐm } are ordered bases for
vector spaces ๐‘‰ and ๐‘Š, respectively. Then corresponding to each
linear transformation ๐ฟ: ๐‘‰ → ๐‘Š, there is an ๐‘š × ๐‘› matrix ๐ด such that
[๐ฟ(๐ฏ)]๐น = ๐ด[๐ฏ]๐ธ for each v ∈ ๐‘‰
๐ด is the matrix representing ๐ฟ relative to the ordered bases ๐ธ and ๐น.
In fact,
๐’‚๐‘— = [๐ฟ(๐ฏ๐‘— )]๐น ๐‘— = 1,2, … , ๐‘›
Proof of MRT(outline)
Firstly: for ∀ ๐ฏ ∈ ๐‘‰, there is a unique representation under the basis
๐ธ = {๐ฏ1 , ๐ฏ2 , โ‹ฏ , ๐ฏn }, we can write it as
↔ ๐’™= ๐ฏ๐ธ
๐ฏ = ๐‘ฅ1 ๐ฏ1 + ๐‘ฅ2 ๐ฏ2 + โ‹ฏ + ๐‘ฅ๐‘› ๐ฏ๐‘›
Similarly, ๐ฟ ๐ฏ ∈ ๐‘Š,๐น = ๐ฐ1 , ๐ฐ2 , … , ๐ฐm is a basis set of W, we have
L(๐ฏ) = ๐‘ฆ1 ๐’˜1 + ๐‘ฆ2 ๐’˜2 + โ‹ฏ + ๐‘ฆ๐‘š ๐’˜๐‘š
↔
๐’š = L(๐ฏ)
๐น
According to the definition of linear transformation ,
๐ฟ ๐›ผ๐ฏ1 + ๐›ฝ๐ฏ2 = ๐›ผ๐ฟ ๐ฏ1 + ๐›ฝ๐ฟ(๐‘ฃ2 )
L ๐ฏ = ๐ฟ ๐‘ฅ1 ๐ฏ1 + ๐‘ฅ2 ๐ฏ2 + โ‹ฏ + ๐‘ฅ๐‘› ๐ฏ๐‘› = ๐‘ฅ1 ๐ฟ(๐ฏ1 ) + ๐‘ฅ2 ๐ฟ(๐ฏ2 ) + โ‹ฏ + ๐‘ฅ๐‘› ๐ฟ(๐ฏ๐‘› )
Proof of MRT(outline)
L ๐ฏ = ๐ฟ ๐‘ฅ1 ๐ฏ1 + ๐‘ฅ2 ๐ฏ2 + โ‹ฏ + ๐‘ฅ๐‘› ๐ฏ๐‘› = ๐‘ฅ1 ๐ฟ(๐ฏ1 ) + ๐‘ฅ2 ๐ฟ(๐ฏ2 ) + โ‹ฏ + ๐‘ฅ๐‘› ๐ฟ(๐ฏ๐‘› )
๐ฟ ๐ฏ๐‘— ∈ ๐‘Š,๐น = ๐ฐ1 , ๐ฐ2 , … , ๐ฐm is a basis set of W, we have
L(๐ฏj ) = ๐‘Ž1๐‘— ๐’˜1 + ๐‘Ž2๐‘— ๐’˜2 + โ‹ฏ + ๐‘Ž๐‘š๐‘— ๐’˜๐‘š
↔
๐šj = L(๐ฏj )
๐น
j=1,2,…,n
L ๐ฏ = ๐‘ฅ1 ๐ฟ(๐ฏ1 ) + ๐‘ฅ2 ๐ฟ(๐ฏ2 ) + โ‹ฏ + ๐‘ฅ๐‘› ๐ฟ(๐ฏ๐‘› )
๐‘›
๐‘›
L ๐ฏ =
๐‘ฅ๐‘— ๐ฟ(v๐‘— ) =
๐‘—=1
๐‘š
=
๐‘ฅ๐‘—
๐‘—=1
๐‘›
๐‘š
๐‘Ž๐‘–๐‘— ๐ฐ๐‘– =
๐‘–=1
๐‘š
๐‘›
๐‘Ž๐‘–๐‘— ๐ฐ๐‘– ๐‘ฅ๐‘— =
๐‘—=1 ๐‘–=1
๐‘Ž๐‘–๐‘— ๐ฐ๐‘– ๐‘ฅ๐‘—
๐‘–=1 ๐‘—=1
๐‘›
๐ฐ๐‘–
๐‘–=1
๐‘š
๐‘Ž๐‘–๐‘— ๐‘ฅ๐‘—
๐‘—=1
=
L(๐ฏ) = ๐‘ฆ1 ๐’˜1 + ๐‘ฆ2 ๐’˜2 + โ‹ฏ + ๐‘ฆ๐‘š ๐’˜๐‘š
Proof of MRT(outline)
Because, the coordinate for a given basis set is unique, compare
๐‘š
๐‘›
๐ฐ๐‘–
๐‘–=1
๐‘Ž๐‘–๐‘— ๐‘ฅ๐‘—
=
L(๐ฏ) = ๐‘ฆ1 ๐’˜1 + ๐‘ฆ2 ๐’˜2 + โ‹ฏ + ๐‘ฆ๐‘š ๐’˜๐‘š
๐‘—=1
๐‘›
We have
๐‘ฆ๐‘– =
๐‘Ž๐‘–๐‘— ๐‘ฅ๐‘— = ๐‘Ž๐‘–1 ๐‘ฅ1 + ๐‘Ž๐‘–2 ๐‘ฅ2 + โ‹ฏ + ๐‘Ž๐‘–๐‘› ๐‘ฅ๐‘› ,
i = 1,2, … , ๐‘š
๐‘—=1
That is: ๐’š = ๐ด๐’™, for ๐ด ∈ ๐‘…๐‘š×๐‘›
๐ฟ ๐ฏ
๐น
Recall that ๐’™ = ๐ฏ
=๐ด๐ฏ
๐’š = L(๐ฏ)
๐ธ
๐ธ
L(๐ฏj ) = ๐‘Ž1๐‘— ๐’˜1 + ๐‘Ž2๐‘— ๐’˜2 + โ‹ฏ + ๐‘Ž๐‘š๐‘— ๐’˜๐‘š
↔
๐šj = L(๐ฏj )
๐น
j=1,2,…,n
๐น
Theorem
L(๐ฏj ) = ๐‘Ž1๐‘— ๐’˜1 + ๐‘Ž2๐‘— ๐’˜2 + โ‹ฏ + ๐‘Ž๐‘š๐‘— ๐’˜๐‘š
๐‘Ž1๐‘—
๐‘Ž2๐‘—
๐ฟ ๐ฏ๐‘— = [๐‘ค1 , ๐‘ค2 , … , ๐‘ค๐‘š ]
โ‹ฎ
๐‘Ž๐‘š๐‘—
↔
๐šj = L(๐ฏj )
๐น
j=1,2,…,n
= ๐น๐šj
If ๐ธ = {๐ฏ1 , ๐ฏ2 , … , ๐ฏn } and ๐น = {๐ฐ1 , ๐ฐ2 , … , ๐ฐm } be ordered bases for โ„๐‘›
and โ„๐‘š , respectively. If ๐ฟ: โ„๐‘› → โ„๐‘š is a linear transformation and ๐ด is the
matrix representing ๐ฟ w.r.t. ๐ธ and ๐น, then
๐’‚๐‘— = ๐น −1 ๐ฟ ๐’—๐‘—
๐‘— = 1,2, … , ๐‘›
Where ๐น = {๐ฐ1 , ๐ฐ2 , … , ๐ฐm }
Example
Let ๐ฟ be the linear transformation mapping โ„3 to โ„2 defined by
๐ฟ ๐ฑ = ๐‘ฅ1 ๐’ƒ1 + (๐‘ฅ2 + ๐‘ฅ3 )๐’ƒ2
For each ๐ฑ ∈ โ„3 , where
1
−1
๐’ƒ1 =
and ๐’ƒ2 =
1
1
Find the matrix ๐ด representing ๐ฟ with respect to the ordered bases
{๐’†1 , ๐’†2 , ๐’†3 } and {๐’ƒ1 , ๐’ƒ2 }.
Proof
๏‚—
๐ฟ ๐’†1 = 1๐’ƒ1 + 0๐’ƒ2 , ๐ฟ ๐’†2 = 0๐’ƒ1 + 1๐’ƒ2 , ๐ฟ ๐’†3 = 0๐’ƒ1 + 1๐’ƒ2
๏‚—
The ๐‘—๐‘กโ„Ž column of ๐ด is determined by the coordinates of ๐ฟ ๐’†๐‘— w.r.t.
{๐’ƒ1 , ๐’ƒ2 }. Thus
1 0 0
๐ด=
0 1 1
Corollary
If ๐ด is the matrix representing the linear transformation ๐ฟ: โ„๐‘› → โ„๐‘š with
respect to the bases
๐ธ = {๐’–1 , ๐’–2 , … , ๐’–๐‘› } and ๐น = {๐’ƒ1 , ๐’ƒ2 , … , ๐’ƒ๐‘š }
then the reduced row echelon form of (๐’ƒ1 , ๐’ƒ2 , … , ๐’ƒ๐‘š |๐ฟ ๐’–1 , … , ๐ฟ ๐’–๐‘› ) is
๐ผ|๐ด .
Proof
๏‚—
Let ๐ต = (๐’ƒ1 , ๐’ƒ2 , … , ๐’ƒ๐‘š ). The matrix ๐ต|๐ฟ ๐’–1 , … , ๐ฟ ๐’–๐‘› is row
equivalent to
๐ต−1 ๐ต|๐ฟ ๐’–1 , … , ๐ฟ ๐’–๐‘› = ๐ผ ๐ต −1 ๐ฟ ๐’–1 , … , ๐ต −1 ๐ฟ ๐’–๐‘›
= ๐ผ|๐’‚1 , … , ๐’‚๐‘› = ๐ผ|๐ด
Example
Let ๐ฟ: โ„2 → โ„3 be the linear transformation defined by ๐ฟ ๐ฑ =
(๐‘ฅ2 , ๐‘ฅ1 + ๐‘ฅ2 , ๐‘ฅ1 − ๐‘ฅ2 )๐‘‡
Find the matrix representations of ๐ฟ with respect to the ordered bases
{๐’–1 , ๐’–2 } and {๐’ƒ1 , ๐’ƒ2 , ๐’ƒ3 }, where
๐’–1 = (1,2)๐‘‡ , ๐’–2 = (3,1)๐‘‡
and
๐’ƒ1 = (1,0,0)๐‘‡ , ๐’ƒ2 = (1,1,0)๐‘‡ , ๐’ƒ3 = (1,1,1)๐‘‡
Solution
First compute ๐ฟ ๐’–1 = (2,3, −1)๐‘‡ , ๐ฟ ๐’–2 = (1,4,2)๐‘‡
๏‚— Transform matrix (๐’ƒ1 , ๐’ƒ2 , ๐’ƒ3 |๐ฟ ๐’–1 , ๐ฟ ๐’–2 ) to the row echelon
form
๏‚—
1 1 1 2 1
1 0
0 1 1 3 4 → 0 1
0 0 1 −1 2
0 0
0 −1 −3
0 4
2
1 −1 2
Revision Exercises
Computer Graphics and Animation
Computer Graphics and Animation
• Four Basic Transformation Functions
1. Rotation
2. Dilation and contraction (Scaling)
3. Reflection
•
•
w.r.t. y-axis
w.r.t. x-axis
4. Translation (transposition)
What are the transformation functions?
Are they ALL linear transformation?
1. Rotation (Already mentioned)
Rotation Matrix for โ„2
Let ๐ฟR: โ„2 → โ„2 be the linear operator that rotates each vector by an angle
๐œƒ in the counterclockwise direction.
Then a matrix representation for ๐ฟR is given by
cos ๐œƒ −sin ๐œƒ
A๐‘… =
sin ๐œƒ cos ๐œƒ
e2
e1
2. Dilation and contraction (Scaling)
Scaling Matrix for โ„2
Let ๐ฟ๐‘†: โ„2 → โ„2 be the linear operator that dilate or contract the any
vector by c (scalar in โ„ ).
To calculate A:
1) We evaluate ๐ฟ๐‘†(e1) and ๐ฟ๐‘†(e2)
๐ฟ๐‘† ๐‘’1 = ๐ฟ๐‘†
1
0
=
๐‘
0
2) Group the result vectors to form A.
A๐‘† =
3) Check linearity
๐‘
0
๐ฟ๐‘† ๐‘’2 = ๐ฟ๐‘†
0
1
=
0
๐‘
๐ฟ๐‘† ๐‘ฅ + ๐‘ฆ = ๐‘ ๐‘ฅ + ๐‘ฆ = ๐‘๐‘ฅ + ๐‘๐‘ฆ = ๐ฟ๐‘† ๐‘ฅ + ๐ฟ๐‘† ๐‘ฆ
๐ฟ๐‘† ๐‘˜๐‘ฅ = ๐‘˜๐‘ ๐‘ฅ = ๐‘˜๐ฟ๐‘† ๐‘ฅ
i.e. Linear Transformation
0
๐‘
3. Reflection (Mirroring)
3A) Reflection Matrix for โ„2 (y-axis)
Let ๐ฟ๐‘…๐‘ฆ: โ„2 → โ„2 be the linear operator Reflect any vector
w.r.t. y-axis
To calculate A:
1) We evaluate ๐ฟ๐‘…๐‘ฆ(e1) and ๐ฟ๐‘…๐‘ฆ(e2)
๐ฟ๐‘…๐‘ฆ ๐‘’1 = ๐ฟ๐‘…๐‘ฆ
1
0
=
−1
0
๐ฟ๐‘…๐‘ฆ ๐‘’2 = ๐ฟ๐‘…๐‘ฆ
2) Group the result vectors to form A.
A๐‘…๐‘ฆ =
3) Check linearity
0
1
=
0
1
−1 0
0 1
๐‘ฅ +๐‘ฆ
−1
๐ฟ๐‘…๐‘ฆ ๐‘ฅ + ๐‘ฆ = ๐ด๐‘…๐‘ฆ ๐‘ฅ1 + ๐‘ฆ1 =
0
2
2
−๐‘ฅ1 −๐‘ฆ1
= ๐‘ฅ + ๐‘ฆ = ๐ฟ๐‘…๐‘ฆ ๐‘ฅ + ๐ฟ๐‘…๐‘ฆ ๐‘ฆ
1
๐ฟ๐‘…๐‘ฆ ๐‘๐‘ฅ = ๐ด๐‘…๐‘ฆ
−๐‘ฅ1 − ๐‘ฆ1
0 ๐‘ฅ1 + ๐‘ฆ1
=
๐‘ฅ2 + ๐‘ฆ2
1 ๐‘ฅ2 + ๐‘ฆ2
๐‘๐‘ฅ1
๐‘ฅ1
๐‘๐‘ฅ2 = ๐‘๐ด๐‘…๐‘ฆ ๐‘ฅ2 = ๐‘๐ฟ๐‘…๐‘ฆ ๐‘ฅ
i.e. Linear Transformation
4. Translation (Transposition)
4) Translation Matrix for โ„2
Let ๐ฟ๐‘‡: โ„2 → โ„2 be the linear operator Translation of any
vector to ๐’™′ = (๐‘ฅ1′ , ๐‘ฅ2′ )
To calculate A:
1) We evaluate ๐ฟ๐‘‡(e1) and ๐ฟ๐‘‡(e2)
๐ฟ ๐‘‡ ๐‘’1 = ๐ฟ ๐‘‡
1
0
1 + ๐‘ฅ1′
=
๐‘ฅ2′
2) Group the result vectors to form A.
1 + ๐‘ฅ1′
A๐‘‡ =
๐‘ฅ2′
3) Check linearity
๐ฟ ๐‘‡ ๐‘’2 = ๐ฟ ๐‘‡
0
1
๐‘ฅ1′
1 + ๐‘ฅ2′
๐ฟ ๐‘‡ ๐‘ฅ + ๐‘ฆ = (๐‘ฅ + ๐‘ฆ) + ๐‘ฅ ′ = ๐‘ฅ + ๐‘ฆ + ๐‘ฅ ′
๐ฟ ๐‘‡ ๐‘ฅ + ๐ฟ ๐‘‡ ๐‘ฆ = ๐‘ฅ + ๐‘ฅ ′ + ๐‘ฆ + ๐‘ฅ ′ = ๐‘ฅ + ๐‘ฆ + 2๐‘ฅ ′
i.e. non-Linear Transformation
๐‘ฅ1′
=
1 + ๐‘ฅ2′
Q 7. p188
Let
1
1
1
๐‘ฆ1 = 1 , ๐‘ฆ2 = 1 , ๐‘ฆ2 = 0
1
0
0
and let I be the identity operator on โ„3 .
a) Find the coordinates of I(e1), I(e2), I(e3) w.r.t. {y1,y2,y3}
b) Find a matrix A such that Ax is the coordinate vector of x w.r.t.
{y1,y2,y3}.
Solution:
๏ƒ˜ In order to simplify the process for the evaluation of the coordinates
of I(e1), I(e2), I(e3) w.r.t. {y1,y2,y3}.
๏ƒ˜ It is wiser to calculate the transformation matrix A first (i.e. solution of
b) and base on it to calculate these coordinates w.r.t. y.
i. Identity operator is given by:
๐›ช ๐‘ฃ =๐‘ฃ
So we have:
1
0
0
๐›ช ๐‘’1 = ๐‘’1 = 0 , ๐›ช ๐‘’2 = ๐‘’2 = 1 , ๐›ช ๐‘’3 = ๐‘’3 = 0
0
0
1
By using corollary for the reduced row echelon form of :
[B | L(u)] ๏ƒจ [ I | A] to find A. So we have:
1 1 1 1 0 0
1 1 0 0 1 0
1 0 0 0 0 1
๐‘…1 ↔๐‘…3
1 0 0 0 0 1
1 1 0 0 1 0
1 1 1 1 0 0
1 0 0 0 0
1
0 1 0 0 1 −1 . So. ๐ด =
0 0 1 1 −1 0
๐‘…2 −๐‘…1
๐‘…3 −๐‘…1
0 0
0 1
1 −1
1
0
0
1
−1
0
0 0 0 0 1
1 0 0 1 −1
1 1 1 0 −1
๐‘…3 −๐‘…2
Solution:
ii) And hence the coordinates are:
๐›ช ๐‘’1
0
= ๐ด๐‘’1 = 0
1
0
1
−1
1
−1
0
1
0
0 = 0
0
1
๐›ช ๐‘’2
0
= ๐ด๐‘’2 = 0
1
0
1
−1
1
−1
0
0
0
1 = 1
0
−1
0 0
1 0
1
๐›ช ๐‘’3 = ๐ด๐‘’3 = 0 1 −1 0 = −1
1 −1 0 1
0
To verify the result, you can check:
w.r.t. {y1,y2,y3}.
1
1
1
1
= 0 1 +0 1 +1 0 = 0 = ๐‘’1
1 ๐‘’
0 ๐‘’
0 ๐‘’ 0 ๐‘’
๐‘ฆ
1
1
0
0
1
1 = 0 1 +1 1 −1 0 = 1 = ๐‘’2
−1 ๐‘ฆ
1 ๐‘’
0 ๐‘’
0 ๐‘’ 0 ๐‘’
1
1
1
1
0
−1 = 1 1 −1 1 + 0 0 = 0 = ๐‘’3
0 ๐‘ฆ
1 ๐‘’
0 ๐‘’
0 ๐‘’ 1 ๐‘’
0
0
1
Homework
Ex. 4.2
3(a, c), 5(a, d), 9(a, b), 15.
Extra: 13, 19.
Download