Professional Documents
Culture Documents
Chapter 4 Linear Transformations
Chapter 4 Linear Transformations
Chapter 4 Linear Transformations
Linear Transformations
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
4.1 Definition and Examples
Definition
A mapping L from a vector space V into a vector Space
W is said to be a linear transformation if
L(v1 + v2) = L(v1) + L(v2) (1)
for all v1, v2 V and for all scalars and .
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
2
• If L is a linear transformation mapping a vector space V
into W, from (1) we get
L(v1 + v2) = L(v1) + L(v2) ( = = 1) (2)
L(v) = L(v) (v = v1, = 0) (3)
• Conversely, if L satisfies (2) and (3), then
L(v1 + v2) = L(v1) + L(v2) (from(2))
= L(v1) + L(v2) (from(3))
L is a linear transformation if and only if L satisfies (2)
and (3).
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
3
Notation
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
5
Figure 4.1.1
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
6
Example 2
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
8
Example 3
αx1 βy1 x1 y1
α β αL (x) βL(y )
αx 2 βy 2 x 2 y 2
L is a linear operator.
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
9
Figure 4.1.3
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
10
Example 4
αx 2 βy 2 x 2 y 2
α β αL (x) βL (y )
αx1 βy1 x1 y1
L is a linear transformation.
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
11
Figure 4.1.4
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
12
Linear Transformations from Rn to Rm
Example 5
• L: R2 R1 defined by L(x) = x1 + x2
• Sol:
For each x = (x1, x2)T and y = (y1, y2)T
x1 y1 αx1 βy1
L(αx βy ) L α β L
x2 y2 α x 2 β y 2
αx1 βy1 αx 2 βy 2
α ( x1 x 2 ) β ( y1 y 2 ) αL(x) βL(y )
L is a linear transformation.
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
13
Example 6
0 1 x2
x1
• Then Lx 1 0 x1 A(x)
x2
1 1 x1 x2
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
16
• In general, if A is any mn matrix, we can define a
linear transformation LA from Rn to Rm by
LA(x) = Ax for each x Rn
• The transformation LA is linear since
LA(x + y) = A(x + y) = Ax + Ay
= LA(x) + LA(y)
• We can think of each mn matrix as defining a linear
transformation from Rn to Rm.
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
17
Linear Transformations from V to W
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
18
Example 8
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
19
Example 9
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
20
Example 10
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
21
The Image and Kernel
Definition
Let L: V W be a linear transformation. The kernel of
L, denoted ker(L), is define by
ker(L) = {v V | L(v) = 0W}
0W
ker(L)
L
V
W
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
22
Definition
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
23
Range
L(S) of L
S
L(V)
L
V
V L
W
W
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
24
Theorem 4.1.1
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
25
Theorem 4.1.1 proof
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
27
Theorem 4.1.1 proof
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
28
Example 11
x1
• L: R2 R2 defined by L(x) = 0
• If x Ker(L), i.e.,
x1 x1 0
L(x) L 0
x2 0 0
• Thus, x1 = 0,
0 0
{ } x2 x2e 2
ker(L) = x 2 1
• Thus, ker(L) is a one-dimensional subspace of R2
spanned by e2. The range of L, L(R2), is a one-
dimensional subspace of R2 spanned by e1.
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
29
Example 12
x1 x 2
• L: R R defined by L(x) =
3 2
x
2 3x
and let S be the subspace of R3 spanned by e1 and e3
(1)If x ker(L),
Therefore, x1 + x2 = 0 and x2 + x3 = 0
x1
L x1 x 2 0
x x 2 0
x 2 x 3 0
x 3
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
30
let x3 = a x2 = – a and x1 = a
a 1
{ a a R} {a 1 a R}
ker(L) =
a 1
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
31
1 0 a
0 b 0 0
(2) If x S, x = 1
a e b e 3 a
0 1 b
a 0 a
Thus, L(x) = 0 b b R 2
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
32
Example 13
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
33
• Conversely, any polynomial in P2 will have
antiderivatives in P3, so each polynomial in P2 will be
the image of polynomials in P3 under the operator D.
It then follows that D(P3) = P2.
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
34
4.2 Matrix Representations of
Linear Transformations
• Each mn matrix A defines a linear transformation LA
from Rn to Rm, where
LA(x) = Ax
for each x Rn.
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
35
Theorem 4.2.1
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
36
Theorem 4.2.1 proof
a11 a12 a1n
a a22 a2 n
• Let A = 21 = (aij) = (a1, a2, …, an)
am1 am 2 amn
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
37
Theorem 4.2.1 proof
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
38
Note
• A a1 a 2 a n L(e1 ) L(e 2 ) L(e n )
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
39
Example 1
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
41
Example 2
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
43
Question
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
44
• Let E = {v1, v2, …, vn} and F = {w1, w2, …, wm} be
ordered bases for vector spaces V and W, and L be a
linear transformation mapping V into W. If v V,
then v can be expressed in terms of the basis E:
v = x1v1 + x2v2 + … + xnvn
• There exists an mn matrix A representing the linear
transformation L and characterizing the effect of L:
Ax = y iff L(v) = y1w1 + y2w2 + … + ymwm
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
45
• If x is the coordinate vector of v w. r. t. (with respect
to) E, then the coordinate vector of L(v) w. r. t. F, i.e.,
y, is given by:
y = [L(v)]F = Ax
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
46
How to determine the matrix
representation A?
• Let aj = (a1j, a2j, …, amj)T be the coordinate vector of
L(vj) w. r. t. F = {w1, w2, …, wm}, j = 1 , 2 , … , n
L(vj) = a1jw1 + a2jw2 + … + amjwm 1jn
• Let A = (aij) = (a1, a2, …, an). If
v = x1v1 + x2v2 + … + xnvn
then
L(v) = L(x1v1 + x2v2 + … + xnvn)
= x1L(v1) + x2L(v2) + … + xnL(vn)
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
47
n n
m
x j L(v j ) x j ( aij w i )
j 1 j 1 i 1
m n
aij x j w i
i 1 j 1
n
• Let yi aij x j ai x, for i 1, 2, ..., m
j 1
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
48
Theorem 4.2.2
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
50
x = [v]E: the coordinate vector of v with respect to E
y = [w]F: the coordinate vector of w with respect to F
L maps v into w iff A maps x into y
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
51
Example 3
• L: R3 R2 defined by
L(x) = x1b1 + (x2 + x3)b2
for each x R3, where
1 1
b1 and b 2
1 1
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
52
1
1
• Sol: L(e1 ) L( 0 ) 1 b1 0 b 2 a1 L(e1 )F
0
0
0
0
L(e 2 ) L( 1 ) 0 b1 1 b 2 a 2 L(e 2 )F
1
0
0
0
L(e 3 ) L( 0 ) 0 b1 1 b 2 a 3 L(e3 )F
1
1
1 0 0
A
0 1 1
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
53
Example 4
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
54
• L(b2) = L(0b1 + 1b2) = (0+1)b1 + (21)b2
= 1b1 + 2b2 a2 = [L(b2)]F = (1, 2)T
1 1
A=
0 2
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
55
Example 5
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
56
• In P2, the coordinate vectors dor D(x2), D(x), and
D(1) are (2, 0)T, (0, 1)T, and (0, 0)T, respectively. The
matrix A is formed with these vectors as its columns.
2 0 0
A
0 1 0
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
57
• To find the coordinate vector of D(p) with respect to
the ordered basis of P2, we simply multiply
a
2 0 0 2a
0 1 0 b b
c
• Thus,
D(ax2 + bx + c) = 2ax + b
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
58
Theorem 4.2.3
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
59
Theorem 4.2.3 proof
a1 j
(Note: aj = [L(uj)]F)
a
(b1 , b 2 , ..., b m ) Ba j
2j
= :
a
mj
aj = B-1L(uj) for j = 1, 2, …, n
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
60
Corollary 4.2.4
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
61
Corollary 4.2.4 proof
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
62
Example 6
x2
• Let L: R2 R3 defined by L(x) x1 x 2
x1 x 2
Find the matrix representation of L with respect to the
ordered bases [u1, u2] and [b1, b2, b3], where
1 1 1
1 3
u1 , u 2 and b1 0, b 2 1, b 3 1.
2 1
0 0 1
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
63
Example 6
2 2
1
• Sol: L(u1 ) L( ) 1 2 3
2
1 2 1
1 1
3
L(u 2 ) L( ) 3 1 4
1
3 1 2
1 1 1 2 1 1 0 0 1 3
( B | L(u1 ) L(u 2 )) 0 1 1 3 4 0 1 0 4 2
0 0 1 1 2 0 0 1 1 2
1 3
A 4 2
1 2
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
64
Verification
1 4 1 2
L(u1 ) b1 4b 2 b 3 0 4 1 3
0 0 1 1
3 2 2 1
L(u 2 ) 3b1 2b 2 2b 3 0 2 2 4
0 0 2 2
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
65
Application: Computer Graphics
and Animation
• A picture with n vertices can be stored in a 2n
matrix. The x coordinates of the vertices are stored in
the first row and the y coordinates in the second. Each
successive pair of points is connected by a straight
line.
x1 x2 xn x1
T
y1 y2 y n y1
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
66
Figure 4.2.3(a)
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
67
• Four primary geometric transformations that are used
in computer graphics are: dilations and
contractions, reflection about an axis, rotation,
translation
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
68
• Dilations and Contractions: a linear transformation
of the form
L(x) = cx
is a dilation if c > 1 and a contraction if 0 < c < 1.
• The transformation L is represented by the matrix A =
cI, where I is the 22 identity matrix.
c 0 0 1 1 0 0 c c 0
AT
0 c 0 1 1 0 0 c c 0
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
69
Figure 4.2.3(b)
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
70
• Reflection about an axis: If Lx is a transformation that
reflects a vector about the x-axis, then Lx is a linear
operator and can be represented by a 22 matrix A.
• Since
Lx(e1) = e1 and Lx(e2) = –e2 (Note: Lx(x) = (x1, -
x2)T)
A = (a1, a2) = (Lx(e1), Lx(e2))
1 0
= (e1, -e2) = 0 1
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
71
Figure 4.2.3(c)
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
72
1 0
A
0 1
1 0 0 1 1 0 0 1 1 0
AT
0 1 0 1 1 0 0 1 1 0
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
73
• Rotations: Let L be a transformation that rotates a
vector about the origin by an angle in the
counterclockwise direction. In fact, L is linear
transformation and that L(x) = Ax where
cos θ sin θ
A
sin θ cos θ
cos θ sin θ 0 1 1 0
AT 0 1 - 1 0
sin θ cos θ
0 cos θ sin θ cos θ sin θ 0
0 sin θ cos θ sin θ cos θ 0
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
74
Figure 4.2.3(d)
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
75
• Translations: A translation by a vector a is a
transformation of the form
L(x) = x + a
If a 0, L is not a linear transformation and hence L
cannot be represented by a 22 matrix.
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
76
Homogeneous Coordinates Systems
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
77
• The 22 matrix representation can be augmented into
a 33 matrix by attaching the third row and third
column of the identity matrix I:
c 0 0 c 0 0 x1 cx1
c 0 0 c 0 x cx
0 c 0 c 0
2
2
0 0 1 0 0 1 1 1
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
78
• If L is a translation by a vector a in R2, the matrix
representation can be formed by replacing the first
two entries in the last column of the identity matrix I
with the entries of a:
1 0 0 1 0 a1 1 0 a1 x1 x1 a1
0 1 0 0 1 a 0 1 a x x a
2
2
2 2 2
0 0 1 0 0 1 0 0 1 1 1
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
79
4.3 Similarity
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
80
1 1
• If we use u1 and u 2 as the basis for R2, then
1 1
2 0 1 2
L(u1 ) Au1
1 1 1 2
2 0 1 2
L(u 2 ) Au 2
1 1 1 0
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
81
• Since the transition matrix from [u1, u2] to [e1, e2] is
1 1
U (u1, u 2 )
1 1
1 1
U 1 12 2
1
2 2
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
82
• Then, the coordinates of L(u1) and L(u2) w. r. t. [u1,
u2] is 1 1
2 2
U 1 L(u1 ) 12 2
1
2 2 2 0
1 1
- 2 - 1
U 1 L(u 2 ) 12 2
1
2 2 0 1
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
84
Conclusion
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
85
Theorem 4.3.1
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
86
Theorem 4.3.1 proof
Basis E: [v1, v2, …, vn]
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
87
• Let x be any vector in Rn and let x = [v]F
v = x1w1 + x2w2 + … + xnwn
• Since S is the transition matrix representing the change from F to
E , y = Sx where y = [v]E
v = y1v1 + y2v2 + … + ynvn
• Since A represents L w. r. t. E and B represents L w. r. t. F, we have
t = [L(v)]E and z = [L(v)]F Furthermore, t = Ay, z = Bx
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
88
• Since the transition from E to F is S-1, therefore
S-1t = z
• Given that y = Sx, t = Ay, z = Bx
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
89
Figure 4.3.2
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
90
Definition
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
91
Note
• B = S-1AS
SBS-1 = S (S-1AS) S-1
SBS-1 = A
A = (S-1)-1B(S-1)
• That is, A is similar to B, we may say that A and B are
similar matrices.
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
92
Example 1
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
93
0 1 0
• The matrix B is then given by B 0 0 2
0 0 0
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
96
• Sol: 2 2 0 1 0
L(y1 ) Ay1 1 1 2 - 1 0 0y1 0y 2 0y 3
1 1 2 0 0
2 2 0 - 2 2
L(y 2 ) Ay 2 1 1 2 1 1 0y1 1y 2 0y 3
1 1 2 1 1
2 2 0 1 4
L(y 3 ) Ay 3 1 1 2 1 4 0y1 0y 2 4y 3
1 1 2 1 4
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
97
• Thus the matrix representing L with respect to [y1, y2,
y3] is
0 0 0
D 0 1 0
0 0 4
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
98
• Try to verify D = S-1AS
S: the transition matrix from [y1, y2, y3] to [e1, e2, e3]
1 2 1
S ( y1 , y 2 , y 3 ) 1 1 1
0 1 1
0 1 1 2 2 0 1 2 1 0 0 0
S 1 AS 13 13 23 1 1 2 1 1 1 0 1 0 D
3
1 1
3 3
1
1 1 2 0 1 1 0 0 4
( 感謝中華大學資訊工程系李建興老師免費提供講義母本 )
99