Linear Transformation
Linear Transformation
HCMC — 2022.
6 MATL AB
µ ¶ µ ¶ µ ¶
a b −1 −1
P → P0 : . =
c d −1 1
µ ¶ µ ¶ µ ¶
a b 2 2
Q → Q0 : . =
c d 1 −1
µ ¶ µ ¶ µ ¶
a b 3 3
R → R0 : . =
c d −2 2
−a − b = −1, −c − d = 1
⇒ 2a + b = 2, 2c + d = −1
3a − 2b = 3, 3c − 2d = 2
⇒ a = 1, b = 0, c = 0, d = −1
DEFINITION 2.1
If f : E 7→ F is a mapping from a vector space E to a
vector space F , then f is called a linear
transformation from E to F if the following 2
properties hold for all vectors x and y in E and for all
scalars λ:
½
f (x + y) = f (x) + f (y), ∀x, y ∈ E
f (λx) = λ f (x), ∀λ ∈ R, ∀x ∈ E .
EXAMPLE 2.1
The mapping f : R2 → R3 which is defined for
∀x = (x 1 , x 2 ), by f (x) = (3x 1 − x 2 , x 1 , x 1 + x 2 ) is the linear
transformation.
EXAMPLE 2.1
The mapping f : R2 → R3 which is defined for
∀x = (x 1 , x 2 ), by f (x) = (3x 1 − x 2 , x 1 , x 1 + x 2 ) is the linear
transformation.
∀x = (x 1 , x 2 ), y = (y 1 , y 2 ) ∈ R2 ,
f(x+y) = (3(x 1 + y 1 ) − (x 2 + y 2 ), x 1 + y 1 , (x 1 + y 1 ) + (x 2 + y 2 )
= (3x 1 − x 2 , x 1 , x 1 + x 2 ) + (3y 1 − y 2 , y 1 , y 1 + y 2 )
= f(x)+f(y).
∀λ ∈ R, ∀x ∈ R2 ,
f (λx) = (3λx 1 − λx 2 , λx 1 , λx 1 + λx 2 )
= λ(3x 1 − x 2 , x 1 , x 1 + x 2 )
= λ f (x)
∀λ ∈ R, ∀x ∈ R2 ,
f (λx) = (3λx 1 − λx 2 , λx 1 , λx 1 + λx 2 )
= λ(3x 1 − x 2 , x 1 , x 1 + x 2 )
= λ f (x)
EXAMPLE 2.2
The mapping f : R2 → R2 defined by ∀x = (x 1 , x 2 ),
f (x) = (2x 12 − x 2 , x 2 ) is NOT a linear transformation.
∀λ ∈ R, ∀x ∈ R2 ,
f (λx) = (3λx 1 − λx 2 , λx 1 , λx 1 + λx 2 )
= λ(3x 1 − x 2 , x 1 , x 1 + x 2 )
= λ f (x)
EXAMPLE 2.2
The mapping f : R2 → R2 defined by ∀x = (x 1 , x 2 ),
f (x) = (2x 12 − x 2 , x 2 ) is NOT a linear transformation.
Let f : E → F, y = f (x).
1
B = {e 1 , e 2 , . . . , e n } is the basis for E
Let f : E → F, y = f (x).
1
B = {e 1 , e 2 , . . . , e n } is the basis for E
2
C = { f 1 , f 2 , . . . , f m } is the basis for F
Let f : E → F, y = f (x).
1
B = {e 1 , e 2 , . . . , e n } is the basis for E
2
C = { f 1 , f 2 , . . . , f m } is the basis for F
n
X = [x]B = (x 1 , x 2 , . . . , x n )T or x =
P
3
xi e i
i =1
Let f : E → F, y = f (x).
1
B = {e 1 , e 2 , . . . , e n } is the basis for E
2
C = { f 1 , f 2 , . . . , f m } is the basis for F
n
X = [x]B = (x 1 , x 2 , . . . , x n )T or x =
P
3
xi e i
i =1
m
Y = [y]C = (y 1 , y 2 , . . . , y m )T or y =
P
4
yk fk .
k=1
Let f : E → F, y = f (x).
1
B = {e 1 , e 2 , . . . , e n } is the basis for E
2
C = { f 1 , f 2 , . . . , f m } is the basis for F
n
X = [x]B = (x 1 , x 2 , . . . , x n )T or x =
P
3
xi e i
i =1
m
Y = [y]C = (y 1 , y 2 , . . . , y m )T or y =
P
4
yk fk .
k=1
Find the relation between [x]B , [y]C ?
We have
m
X n
X
y = f (x) = yk fk = f ( xi e i )
k=1 i =1
Xn X n m
X m X
X n
= x i f (e i ) = xi ( a ki f k ) = ( a ki x i ) f k
i =1 i =1 k=1 k=1 i =1
X n
⇒ yk = a ki x i , k = 1, 2, . . . , m.
i =1
y 1 = a 11 x 1 + a 12 x 2 + . . . + a 1n x n
y = a x + a x +...+ a x
2 21 1 22 2 2n n
. . . . . . . . . . . . . . . . . . . . . . . . . . . ........
y m = a m1 x 1 + a m2 x 2 + . . . + a mn x n
We have
m
X n
X
y = f (x) = yk fk = f ( xi e i )
k=1 i =1
Xn X n m
X m X
X n
= x i f (e i ) = xi ( a ki f k ) = ( a ki x i ) f k
i =1 i =1 k=1 k=1 i =1
X n
⇒ yk = a ki x i , k = 1, 2, . . . , m.
i =1
y 1 = a 11 x 1 + a 12 x 2 + . . . + a 1n x n
y = a x + a x +...+ a x
2 21 1 22 2 2n n
. . . . . . . . . . . . . . . . . . . . . . . . . . . ........
y m = a m1 x 1 + a m2 x 2 + . . . + a mn x n
Let f : E → F, y = f (x).
1
B = {e 1 , e 2 , . . . , e n } is the basis for E
Let f : E → F, y = f (x).
1
B = {e 1 , e 2 , . . . , e n } is the basis for E
2
C = { f 1 , f 2 , . . . , f m } is the basis for F
Let f : E → F, y = f (x).
1
B = {e 1 , e 2 , . . . , e n } is the basis for E
2
C = { f 1 , f 2 , . . . , f m } is the basis for F
f (e 1 ) = a 11 f 1 + a 21 f 2 + . . . + a i 1 f i + . . . + a m1 f m
..........................................
f (e j ) = a 1 j f 1 + a 2 j f 2 + . . . + a i j f i + . . . + a m j f m
..........................................
f (e n ) = a 1n f 1 + a 2n f 2 + . . . + a i n f i + . . . + a mn f m
EXAMPLE 3.2
Let f : R2 → R2 be the linear transformation and the
matrix
µ
for f¶ relative to the basis B = {(1, 1), (−1, 1)} be
1 −1
A= . Find f (−1, 5).
0 2
EXAMPLE 3.2
Let f : R2 → R2 be the linear transformation and the
matrix
µ
for f¶ relative to the basis B = {(1, 1), (−1, 1)} be
1 −1
A= . Find f (−1, 5).
0 2
µ ¶µ ¶ µ ¶
1 −1 2 −1
Therefore [ f (−1, 5)]B = A.[x]B = = .
0 2 3 6
So f (−1, 5) = −1(1, 1) + 6(−1, 1) = (−7, 5)
EXAMPLE 3.3
Let f : R2 → R3 be defined by ( f (x))T = Ax T , where
1 −3
A = 0 2 . Find the matrix for f relative to the
4 3
bases B = {(1, 1), (1, 2)} and C = {(1, 0, 1), (1, 1, 1), (1, 0, 0)}
1 −3 µ ¶ −2
1
We have ( f (1, 1))T = 0 2 = 2 .
1
4 3 7
1 −3 µ ¶ −2
1
We have ( f (1, 1))T = 0 2 = 2 . We
1
4 3 7
compute the coordinate vector ( f (1, 1))T relative to
the basis C
−2 1 1 1
2 = α 0 +β 1 +γ 0 .
7 1 1 0
1 −3 µ ¶ −2
1
We have ( f (1, 1))T = 0 2 = 2 . We
1
4 3 7
compute the coordinate vector ( f (1, 1))T relative to
the basis C
−2 1 1 1
2 = α 0 +β 1 +γ 0 .
7 1 1 0
Therefore, α = 5, β = 2, γ = −9.
So [ f (1, 1)]C = (5, 2, −9)T .
6
Similarly, we compute [ f (1, 2)]C = 4 .
−15
6
Similarly, we compute [ f (1, 2)]C = 4 .
−15
Thus, the matrix for f relative to the bases B,C is
5 6
A= 2 4 .
−9 −15
f : R2 → R2
1
The standard basis of R2 is B = {(1, 0), (0, 1)}
2
f is the reflection over the x−axis.
f : R2 → R2
1
The non-standard basis of R2 is B 0 = {( 13 , 1), (1, 13 )}
2
f the reflection over the x− axis.
EXAMPLE 3.4
Let f : R2 → R2 be the linear operator and matrix
µ
for
¶
f
1 0
relative to the basis B = {(1, 0), (0, 1)} be A = .
0 −1
Findnthe matrixo for f relative to the basis
B 0 = ( 13 , 1), (1, 13 ) .
EXAMPLE 3.4
Let f : R2 → R2 be the linear operator and matrix
µ
for
¶
f
1 0
relative to the basis B = {(1, 0), (0, 1)} be A = .
0 −1
Findnthe matrixo for f relative to the basis
B 0 = ( 13 , 1), (1, 13 ) .
Find S.
( 13 , 1) = s 11 (1, 0) + s 21 (0, 1) s 11 = 13 ; s 21 = 1
½ ½
⇒
(1, 31 ) = s 12 (1, 0) + s 22 (0, 1) s 12 = 1; s 22 = 31
µ 1 ¶ µ 3 9 ¶
1 −
So P B 0 →B = 3 1 ⇒ P B →B 0 = P B−10 →B = 98 83 .
1 3 8
−8
Therefore,
− 83 9
µ ¶ µ ¶ µ 1 ¶
0 1 0 1
A = P B−10 →B AP B 0 →B = 9 3
8 . . 3
8
−8 0 −1 1 13
− 45 − 34
µ ¶
= 3 5 .
4 4
Let f : E → F, y = f (x)
1
B = {e 1 , e 2 , . . . , e n }, B 0 = {e 10 , e 20 , . . . , e n0 } are the 2 bases
for E .
Let f : E → F, y = f (x)
1
B = {e 1 , e 2 , . . . , e n }, B 0 = {e 10 , e 20 , . . . , e n0 } are the 2 bases
for E .
2
C = { f 1 , f 2 , . . . , f m },C 0 = { f 10 , f 20 , . . . , f m0 } are the 2 bases
for F.
Let f : E → F, y = f (x)
1
B = {e 1 , e 2 , . . . , e n }, B 0 = {e 10 , e 20 , . . . , e n0 } are the 2 bases
for E .
2
C = { f 1 , f 2 , . . . , f m },C 0 = { f 10 , f 20 , . . . , f m0 } are the 2 bases
for F.
3
A = M at BC ( f ) is the matrix for f relative to the
bases BC .
Let f : E → F, y = f (x)
1
B = {e 1 , e 2 , . . . , e n }, B 0 = {e 10 , e 20 , . . . , e n0 } are the 2 bases
for E .
2
C = { f 1 , f 2 , . . . , f m },C 0 = { f 10 , f 20 , . . . , f m0 } are the 2 bases
for F.
3
A = M at BC ( f ) is the matrix for f relative to the
bases BC .
Let f : E → F, y = f (x)
1
B = {e 1 , e 2 , . . . , e n }, B 0 = {e 10 , e 20 , . . . , e n0 } are the 2 bases
for E .
2
C = { f 1 , f 2 , . . . , f m },C 0 = { f 10 , f 20 , . . . , f m0 } are the 2 bases
for F.
3
A = M at BC ( f ) is the matrix for f relative to the
bases BC .
Find the matrix for f relative to the bases B 0 ,C 0 ?
EXAMPLE 3.5
Let f : R3 → R2 be linear transformation, and the
matrix for f relative to 2 bases
B = {(1, ¶ (1, 0, 0)} and C = {(1, 0), (0, 1)} be
µ 1, 1), (1, 1, 0),
8 4 2
A= . Find f (x 1 , x 2 , x 3 )
−4 −2 −1
−1
1 1 1 µ ¶
1 0
S = 1 1 0 , P = .
0 1
1 0 0
−1
1 1 1 µ ¶
1 0
S = 1 1 0 , P = .
0 1
1 0 0
Matrix for f relative to 2 standard bases is
−1
µ ¶−1 µ ¶ 1 1 1
1 0 8 4 2
A 0 = P −1 AS = . . 1 1 0
0 1 −4 −2 −1
1 0 0
µ ¶
2 2 4
= ⇒ [ f (x)]C T = A 0 [x]C T
−1 −1 −2
f (x 1 , x 2 , x 3 ) = (2x 1 + 2x 2 + 4x 3 , −x 1 − x 2 − 2x 3 )
EXAMPLE 3.6
Let f : R2 → R2 be defined if f (1, 1) = (−1, 1),
f (1, 0) = (1, 2). Find the matrix for f relative to
standard basis.
EXAMPLE 3.6
Let f : R2 → R2 be defined if f (1, 1) = (−1, 1),
f (1, 0) = (1, 2). Find the matrix for f relative to
standard basis.
B = {(1, 1), (1, 0)}, C T = {(1, 0), (0, 1)}
EXAMPLE 3.6
Let f : R2 → R2 be defined if f (1, 1) = (−1, 1),
f (1, 0) = (1, 2). Find the matrix for f relative to
standard basis.
B = {(1, 1), (1, 0)}, C T = {(1, 0), (0, 1)}
µ ¶−1 µ ¶ µ ¶
1 1 1 0 −1 1
S= ,P= , A BC T = .
1 0 0 1 1 2
µ ¶−1 µ ¶ µ ¶
1 1 1 0 −1 1
S= ,P= , A BC T = .
1 0 0 1 1 2
Matrix for f relative to the standard basis is
A 0 = P −1 AS
µ ¶−1 µ ¶ µ ¶−1
1 0 −1 1 1 1
= . . .
0 1 1 2 1 0
µ ¶
1 −2
=
2 −1
DEFINITION 4.1
If f : E 7→ F is a linear transformation, then
1
The set of all vectors in E that maps into 0 is called
the kernel of f :
K er ( f ) = {x ∈ E : f (x) = 0} (1)
2
The set of all vectors in F that are images under f
of at least one vector in E is called the range of f :
I m( f ) = {y ∈ F : ∃x ∈ E , y = f (x)} = f (E ) (2)
THEOREM 4.1
If f : E 7→ F is a linear transformation, then
1
The range I m( f ) of f is a subspace of F
2
The kernel K er ( f ) of f is a subspace of E
EXAMPLE 4.1
If f : R3 → R2 is defined by
f (x 1 , x 2 , x 3 ) = (x 1 − x 2 , x 2 + x 3 ), then
1
Find K er ( f ), its basis and dimension.
2
Find I m( f ), its basis and dimension.
EXAMPLE 4.1
If f : R3 → R2 is defined by
f (x 1 , x 2 , x 3 ) = (x 1 − x 2 , x 2 + x 3 ), then
1
Find K er ( f ), its basis and dimension.
2
Find I m( f ), its basis and dimension.
n o
K er ( f ) = (x 1 , x 2 , x 3 ) : x 1 − x 2 = 0, x 2 + x 3 = 0 . Solving the
linear system, we obtain x 1 = α, x 2 = α, x 3 = −α, ∀α ∈ R.
Therefore, K er ( f ) = {α(1, 1, −1) : ∀α ∈ R}.
EXAMPLE 4.1
If f : R3 → R2 is defined by
f (x 1 , x 2 , x 3 ) = (x 1 − x 2 , x 2 + x 3 ), then
1
Find K er ( f ), its basis and dimension.
2
Find I m( f ), its basis and dimension.
n o
K er ( f ) = (x 1 , x 2 , x 3 ) : x 1 − x 2 = 0, x 2 + x 3 = 0 . Solving the
linear system, we obtain x 1 = α, x 2 = α, x 3 = −α, ∀α ∈ R.
Therefore, K er ( f ) = {α(1, 1, −1) : ∀α ∈ R}. The basis of
K er ( f ) is (1, 1, −1). Di m(K er ( f )) = 1.
FIND I m f
FIND I m f
FIND I m f
y = f (x) = f (λ1 e 1 + λ2 e 2 + λ3 e 3 ) =
= λ1 f (e 1 ) + λ2 f (e 2 ) + λ3 f (e 3 )
n o
⇒ I m( f ) = span f (e 1 ), f (e 2 ), f (e 3 )
1 0 1 0
−1 1 → 0 1
0 1 0 0
n o n o
Therefore, the set f (e 1 ), f (e 2 ) = (1, 0), (−1, 1) is the
basis for I m( f ) and d i m(I m( f )) = 2.
EXAMPLE 4.2
Let f : R3 → R3 be defined by f (1, 0, 0) = (1, 1, 1),
f (−1, 1, 0) = (−2, −1, 0), f (0, −1, 1) = (2, 1, 3).
Find f (x 1 , x 2 , x 3 )
Find the basis and dimension for K er f
Find the basis and dimension for I m f
EXAMPLE 4.2
Let f : R3 → R3 be defined by f (1, 0, 0) = (1, 1, 1),
f (−1, 1, 0) = (−2, −1, 0), f (0, −1, 1) = (2, 1, 3).
Find f (x 1 , x 2 , x 3 )
Find the basis and dimension for K er f
Find the basis and dimension for I m f
n o
Choose the basis B = (1, 0, 0), (−1, 1, 0), (0, −1, 1) , and
the standard basis C T = {(1, 0, 0), (0, 1, 0), (0, 0, 1)}.
FIND f (x 1 , x 2 , x 3 )
−1
1 −1 0 1 0 0
S = 0 1 −1 , P = 0 1 0 ,
0 0 1 0 0 1
1 −2 2
A BC T = 1 −1 1 .
1 0 3
Matrix for f relative
to the
standard bases
1 −1 1
A = P AS = 1 0 1 ⇒ [ f (x)]C T = A 0 [x]C T
0 −1
1 1 4
f (x 1 , x 2 , x 3 ) = (x 1 − x 2 + x 3 , x 1 + x 3 , x 1 + x 2 + 4x 3 )
f (x 1 , x 2 , x 3 ) = (x 1 − x 2 + x 3 , x 1 + x 3 , x 1 + x 2 + 4x 3 )
∀x∈ K er ( f ) ⇔ f (x) = 0
x1 − x2 + x3 = 0
n o
⇔ x1 + x3 = 0 ⇔ x 1 = x 2 = x 3 = 0 K er ( f ) = 0 .
x + x + 4x = 0
1 2 3
Di m(K er ( f )) = 0.
f (x 1 , x 2 , x 3 ) = (x 1 − x 2 + x 3 , x 1 + x 3 , x 1 + x 2 + 4x 3 )
∀x∈ K er ( f ) ⇔ f (x) = 0
x1 − x2 + x3 = 0
n o
⇔ x1 + x3 = 0 ⇔ x 1 = x 2 = x 3 = 0 K er ( f ) = 0 .
x + x + 4x = 0
1 2 3
Di m(K er ( f )) = 0.
The basis for K er ( f ) does NOT exist.
THEOREM 4.2
Let f : E → F be a linear transformation and
A ∈ M m×n (K ) be the matrix for f relative to 2 bases
B = {e 1 , e 2 , . . . , e n } ⊂ E and C = { f 1 , f 2 , . . . , f m } ⊂ F or
A = M at BC ( f ). Then the coordinate vector of
x ∈ K er ( f ) relative to the basis B satisfies the linear
system A[x]B = 0.
THEOREM 4.2
Let f : E → F be a linear transformation and
A ∈ M m×n (K ) be the matrix for f relative to 2 bases
B = {e 1 , e 2 , . . . , e n } ⊂ E and C = { f 1 , f 2 , . . . , f m } ⊂ F or
A = M at BC ( f ). Then the coordinate vector of
x ∈ K er ( f ) relative to the basis B satisfies the linear
system A[x]B = 0.
EXAMPLE 4.3
Let f : R3 → R2 be the linear transformation and the
matrix for f relative to 2 bases
B = {e 1 = (1, 0, 0), e 2 = (1, 0, 1), e 3 = (1, 1, 1)} and
C = { f 1 = (1, 0), f 2 = (1, 1)} be
µ ¶
1 2 3
A BC =
2 1 0
THEOREM 4.3
Let f : E → F be the linear transformation. Then
or
d i m(I m( f )) + d i m(ker ( f )) = d i m(E )
TRANSLATION MATRIX
TRANSLATION MATRIX
REFLECTION MATRIX
REFLECTION MATRIX
µ ¶ µ ¶ µ ¶
a b −1 2 3 −1 2 3
. =
c d −1 1 −2 1 −1 2
(HCMUT-OISP) LINEAR TRANSFORMATIONS HCMC — 2022. 58 / 70
Modeling Motion with Matrices Reflection matrix
EXAMPLE 5.2
To create an image that appears to be reflected in a
mirror, an animator will use a matrix to reflect this
image over the y−axis. Use a reflection matrix to find
the coordinates of the vertices of a star reflected in a
mirror (the y−axis) if the coordinates of the points
connected to create the star are
(−2, 4), (−3.5, 4), (−4, 5), (−4.5, 4), (−6, 4), (−5, 3),
(−5, 1), (−4, 2), (−3, 1), and (−3, 3).
µ ¶µ ¶
−1 0 −2 −3.5 −4 −4.5 −6 −5 −5 −4 −3 −3
0 1 4 4 5 4 4 3 1 2 1 3
µ ¶µ ¶
−1 0 −2 −3.5 −4 −4.5 −6 −5 −5 −4 −3 −3
0 1 4 4 5 4 4 3 1 2 1 3
µ ¶
2 3.5 4 4.5 6 5 5 4 3 3
=
4 4 5 4 4 3 1 2 1 3
ROTATION MATRIX
EXAMPLE 5.3
Suppose a figure is animated to spin around a certain
point. Numerous rotation images would be necessary
to make a smooth movement image. If the image has
key points at (1, 1), (−1, 4), (−2, 4), and (−2, 3) and the
rotation is about the origin, find the location of these
points at the 90o , 180o , and 270o counterclockwise
rotations.
Rot 90 :
µ ¶µ ¶ µ ¶
0 −1 1 −1 −2 −2 −1 −4 −4 −3
=
1 0 1 4 4 3 1 −1 −2 −2
Rot 90 :
µ ¶µ ¶ µ ¶
0 −1 1 −1 −2 −2 −1 −4 −4 −3
=
1 0 1 4 4 3 1 −1 −2 −2
Rot 180 :
µ ¶µ ¶ µ ¶
−1 0 1 −1 −2 −2 −1 1 2 2
=
0 −1 1 4 4 3 −1 −4 −4 −3
Rot 90 :
µ ¶µ ¶ µ ¶
0 −1 1 −1 −2 −2 −1 −4 −4 −3
=
1 0 1 4 4 3 1 −1 −2 −2
Rot 180 :
µ ¶µ ¶ µ ¶
−1 0 1 −1 −2 −2 −1 1 2 2
=
0 −1 1 4 4 3 −1 −4 −4 −3
Rot 270 :
µ ¶µ ¶ µ ¶
0 1 1 −1 −2 −2 1 4 4 3
=
−1 0 1 4 4 3 −1 1 2 2
DILATATION
EXAMPLE 5.4
A trapezoid has vertices at L(−4, 1), M (1, 4), N (7, 0), and
P (−3, −6). Find the coordinates of the dilated
trapezoid L 0 M 0 N 0 P 0 for a scale factor of 0.5. Describe
the dilatation.
µ ¶ µ ¶
−4 1 7 −3 −2 0.5 3.5 −1.5
0.5 =
1 4 0 −6 0.5 2 0 −3
( f (x))T = A m×n .x T
1
The basis for K er f : nul l (A,0 r 0 )
2
Choose the standard basis {e 1 , e 2 , . . . e n }.
f (e 1 )
f (e 2 )
M = ⇒ r r e f (M ) ⇒ The basis for I m f
...
f (e n )
B = f 1 . 0 f 2 .0 . . . f m . 0 ;
¡ ¢
B ∗ A = C ⇒ A = i nv(B ) ∗ C