Professional Documents
Culture Documents
Eigenvalues and
Linear Transformation
Dr. Norhazwani Md Yunos
Lecture Contents:
Lecture Contents:
Ax = λx
Example 1:
The vector
1
x=
2
is an eigenvector of
3 0
8 −1
corresponding to the eigenvalue λ = 3, since
3 0 1 3
Ax = = = 3x
8 −1 2 6
Computation of Eigenvalues
Computation of Eigenvalues
Theorem:
If A is an n × n matrix, then λ is an eigenvalue of A if and only if it satisfies
the equation
det(λI − A) = 0
This is called the characteristic equation of Aa .
a
The system of equations (λI − A) = 0 has nontrivial solutions
Computation of Eigenvalues
but, how to find it? → the answer is using the characteristic equation.
Theorem:
If A is an n × n matrix, then λ is an eigenvalue of A if and only if it satisfies
the equation
det(λI − A) = 0
This is called the characteristic equation of Aa .
a
The system of equations (λI − A) = 0 has nontrivial solutions
Revisited Example 1:
Determine the eigenvalues of
3 0
A=
8 −1
Solution:
Based on characteristic equation of A;
Step 1 (Form the matrix λI − A):
1 0 3 0
λI − A = λ −
0 1 8 −1
λ 0 3 0
= −
0 λ 8 −1
λ−3 0
=
−8 λ + 1
(λ − 3)(λ + 1) = 0
λ = 3 and λ = −1
λn + c1 λn−1 + . . . + cn = 0
p(λ) = λn + c1 λn−1 + . . . + cn
Computation of Eigenvectors
By definition,
x is an eigenvector of A corresponding to an eigenvalue λ if and only if
(λI − A)x = 0.
Revisited Example 1:
Given λ = 3 and λ = −1. Determine the eigenvector of
3 0
A=
8 −1
Solution:
For λ = 3:
(λI − A)x = 0
Thus,
3 0 3 0 x1 0
− = 1 1
0 3 8 −1 x2 0 2 s
x= =s 2
0 0
x1 0 s 1
=
−8 4 x2 0 Therefore,
1
Solving this system (nontrivial 2
x=
homogenous system), give 1
1
x1 = x2 , x2 = any number s.
2
Dr. Wanie MY BITI 1213 L05: Eigenvalues & Linear Trans 12 / 47
Eigenvalues and Eigenvectors Computation of Eigenvalues and Eigenvectors
For λ = −1:
(λI − A)x = 0 Thus,
−1 0 3 0 x1 0
− = 0 0
0 −1 8 −1 x2 0 x= =s
s 1
−4 0 x1 0
=
−8 0 x2 0 Therefore,
Solving this system (nontrivial 0
x=
homogenous system), give 1
x1 = 0, x2 = any number s.
Diagonalization
Products of the form P−1 AP in which A and P are n × n matrices and P
is invertible will be our main topic of study in this section.
There are various ways to think about such products, one of which is to
view them as transformations
A → P−1 AP
in which the matrix A is mapped into the matrix P−1 AP.
These are called similarity transformations.
Such transformations are important because they preserve many
properties of the matrix A.
For example, if we let B = P−1 AP, then A and B have the same
determinant since
det(B) = det(P−1 AP) = det(P−1 ) det(A) det(P)
1
= det(A) det(P) = det(A)
det(P)
Dr. Wanie MY BITI 1213 L05: Eigenvalues & Linear Trans 14 / 47
Eigenvalues and Eigenvectors Diagonalization of Symmetric Matrices
Definition 1:
If A and B are square matrices, then we say that B is similar to A if there is an
invertible matrix P such that B = P−1 AP.
Definition 2:
A square matrix A is said to be diagonalizable if it is similar to some diagonal
matrix, i.e., if there exists an invertible matrix P such that P−1 AP = diagonal
matrix D. In this case, the matrix P is said to diagonalize A.
Example 2:
Let
3 0
A= .
8 −1
Find the nonsingular matrix P and the diagonal matrix D such that
AP = PD (rewrite from D = P−1 AP)
Solution:
From Example 1, we had derived that λ1 = 3 and λ2 = −1, while the
eigenvector associated with λ1 is
1
x1 = 2
1
and the eigenvector associated with λ2 is
0
x2 = .
1
Dr. Wanie MY BITI 1213 L05: Eigenvalues & Linear Trans 17 / 47
Eigenvalues and Eigenvectors Diagonalization of Symmetric Matrices
Step 1:
We had derived that 1
2 0
x1 = and x2 = .
1 1
are two linearly independent eigenvectors of A.
Step 1:
We had derived that 1
2 0
x1 = and x2 = .
1 1
are two linearly independent eigenvectors of A.
Step 2:
From Step 1., the matrix P is
1
2 0
P= .
1 1
Step 1:
We had derived that 1
2 0
x1 = and x2 = .
1 1
are two linearly independent eigenvectors of A.
Step 2:
From Step 1., the matrix P is
1
2 0
P= .
1 1
Step 3:
The diagonal matrix D is
λ1 0 3 0
D= = .
0 λ2 0 −1
Example 3:
Show that the following matrix is not diagonalizable:
1 0 0
A = 1 2 0
−3 5 2
Solution:
Step 1:
Find the eigenvalues and eigenvectors.
Example 3:
Show that the following matrix is not diagonalizable:
1 0 0
A = 1 2 0
−3 5 2
Solution:
Step 1:
The characteristic polynomial of A is
λ − 1 0 0
0 = (λ − 1)(λ − 2)2
det(λI − A) = −1 λ − 2
3 −5 λ − 2
so the characterictis equation is
(λ − 1)(λ − 2)2 = 0
and the distinct eigenvalues of A are λ1 = 1 and λ2 = 2.
Example 3:
Show that the following matrix is not diagonalizable:
1 0 0
A = 1 2 0
−3 5 2
Solution:
Step 1:
The eigenvector associated with The eigenvector associated with
λ1 = 1 is λ2 = 2 is
1
8 0
x1 = − 18 x2 = 0
1 1
Example 3:
Show that the following matrix is not diagonalizable:
1 0 0
A = 1 2 0
−3 5 2
Solution:
Step 1:
The eigenvector associated with The eigenvector associated with
λ1 = 1 is λ2 = 2 is
1
8 0
x1 = − 18 x2 = 0
1 1
Since A is a 3 × 3 matrix and there are only two eigenvectors in total, hence A
is not diagonalizable.
Dr. Wanie MY BITI 1213 L05: Eigenvalues & Linear Trans 19 / 47
General Linear Transformation
Lecture Contents:
Definition:
If L : V → W is mapping from a vector space V to a vector space W, then L is
called a linear transformation from V to W if the following two properties
hold for all vectors u and v in V and for all scalars k:
1 L(u + v) = L(u) + L(v)
2 L(ku) = kL(u)
Example 4:
Let V be a 2 × 2 matrix and W be a polynomial of degree 3, P3 . Define L to
be the linear function from V to W.
Solution:
Let
a b
L = at3 + bt2 + ct + d
c d
Example 4:
Let V be a 2 × 2 matrix and W be a polynomial of degree 3, P3 . Define L to
be the linear function from V to W.
Solution:
Let
a b
L = at3 + bt2 + ct + d
c d
First property, shows that L(u + v) = L(u) + L(v):
a1 b1 a2 b2
L + = (a1 + a2 )t3 + (b1 + b2 )t2 + (c1 + c2 )t + (d1 + d2 )
c1 d1 c2 d2
a b1 a2 b2
L 1 +L = a1 t3 + a2 t3 + b1 t2 + b2 t2 + c1 t + c2 t + d1 + d2
c1 d1 c2 d2
= (a1 t3 + b1 t2 + c1 t + d1 ) + (a2 t3 + b2 t2 + c2 t + d2 )
= L(u) + L(v)
Example 4:
Let V be a 2 × 2 matrix and W be a polynomial of degree 3, P3 . Define L to
be the linear function from V to W.
Solution:
Let
a b
L = at3 + bt2 + ct + d
c d
Second property, shows that L(ku) = kL(u):
a b
L k = kat3 + kbt2 + kct + kd
c d
ka kb
L = kat3 + kbt2 + kct + kd
kc kd
a b
kL = k(at3 + bt2 + ct + d)
c d
(b) Contraction
(a) Original picture
(c) Expansion
Contraction:
L : R2 → R2 is define by
u1 u
L(u) = L = r 1 = ru, 0<r<1
u2 u2
Expansion:
L : R2 → R2 is define by
u1 u
L(u) = L = r 1 = ru, r>1
u2 u2
Example 5:
Find the image of the triangle with vertices (−1, −1), (3, 0) and (0, 3) when it
is scaled to 200% from the original size.
Solution:
Scaling to 200%, means expansion with r = 2. Hence, L : R2 → R2 is define
by
xi x rxi
L(u) = l =r i =
yi yi ryi
Thus,
−1 −2 3 6 0 0
L = , L = , L =
−1 −2 0 0 3 6
Reflection
L : R2 → R2 is define by
u1 u
L(u) = L = A 1 = u0
u2 u2
Example 6:
Find the image of the reflection with respect to x−axis for the triangle with
vertices (−1, 4), (2, 6) and (3, 1).
Solution:
For reflection with respect to x−axis,
L : R2 → R2 is define by
xi 1 0 xi xi
L(u) = L = =
yi 0 −1 yi −yi
Example 6:
Find the image of the reflection with respect to x−axis for the triangle with
vertices (−1, 4), (2, 6) and (3, 1).
Solution:
For reflection with respect to x−axis,
L : R2 → R2 is define by
xi 1 0 xi xi
L(u) = L = =
yi 0 −1 yi −yi
Thus,
−1 −1 2 2
L = , L = ,
4 −4 6 −6
3 3
L =
1 −1
Example 6:
Find the image of the reflection with respect to x−axis for the triangle with
vertices (−1, 4), (2, 6) and (3, 1).
Solution:
For reflection with respect to x−axis,
L : R2 → R2 is define by
xi 1 0 xi xi
L(u) = L = =
yi 0 −1 yi −yi
Thus,
−1 −1 2 2
L = , L = ,
4 −4 6 −6
3 3
L =
1 −1
Rotation
L : R2 → R2 is define by
u1 u
L(u) = L = A 1 = u0
u2 u2
Example 7:
Find the image of the 90◦ rotation for the triangle with vertices (0, 0), (1, 0)
and (1, 1).
Solution:
For 90◦ rotation, L : R2 → R2 is define by
xi 0 −1 xi −yi
L(u) = L = =
yi 1 0 yi xi
Example 7:
Find the image of the 90◦ rotation for the triangle with vertices (0, 0), (1, 0)
and (1, 1).
Solution:
For 90◦ rotation, L : R2 → R2 is define by
xi 0 −1 xi −yi
L(u) = L = =
yi 1 0 yi xi
Thus,
0 0 1 0
L = , L = ,
0 0 0 1
1 −1
L =
1 1
Example 7:
Find the image of the 90◦ rotation for the triangle with vertices (0, 0), (1, 0)
and (1, 1).
Solution:
For 90◦ rotation, L : R2 → R2 is define by
xi 0 −1 xi −yi
L(u) = L = =
yi 1 0 yi xi
Thus,
0 0 1 0
L = , L = ,
0 0 0 1
1 −1
L =
1 1
Projection
L : R2 → R2 is define by
u1 u
L =A 1
u2 u2
where A is a matrix 2 × 2 describes a projection, such as,
1 0
A= projection from 2-space onto the x−axis
0 0
Dr. Wanie MY BITI 1213 L05: Eigenvalues & Linear Trans 33 / 47
General Linear Transformation Some Linear Transformations on R2
Example 8:
Find the image of the projection from 2-space onto the x−axis for the triangle
with vertices (0, 1), (−2, 3) and (4, 5).
Solution:
For the projection from 2-space onto the x−axis, L : R2 → R2 is define by
xi 1 0 xi x
L = = i
yi 0 0 yi 0
Thus,
0 0 −2 −2
L = , L = ,
1 0 3 0
4 4
L =
5 0
Example 8:
Find the image of the projection from 2-space onto the x−axis for the triangle
with vertices (0, 1), (−2, 3) and (4, 5).
Solution:
For the projection from 2-space onto the x−axis, L : R2 → R2 is define by
xi 1 0 xi x
L = = i
yi 0 0 yi 0
Thus,
0 0 −2 −2
L = , L = ,
1 0 3 0
4 4
L =
5 0
Composition of Transformation
Suppose that we have two linear transformations induced by the matrices
A and B,
LA : Rn → Rk and LB : Rk → Rm
If we take out x out of Rn and first apply LA to x and then apply LB to the
result, we will have a transformation from Rn to Rm .
This process is called composition of transformations and is denoted as
(LA ◦ LB )(x) = LB (LA (x))
Note that, the order is important! The first transformation to be applied is
on the right and the second is on the left.
Since both of our original transformations were linear, then
(LA ◦ LB )(x) = LB (LA (x)) = LB (Ax) = BA(x)
In other words, the composition LA ◦ LB is the same as multiplication by
BA. The composition will be a linear transformation provided that the
two original transformation were also linear.
Dr. Wanie MY BITI 1213 L05: Eigenvalues & Linear Trans 35 / 47
General Linear Transformation Composition of Transformation
Example 9:
Let LA : R2 → R2 be a linear transformation defined by
x x
L =A
y y
Solution:
Recall,
−1 0
A= reflection with respect to y−axis, and
0 1
1 0
B= reflection with respect to x−axis
0 −1
Application: Cryptography
A B C ... X Y Z
1 2 3 ... 24 25 26
M E E T T O M O R R O W
13 5 5 20 20 15 13 15 18 18 15 23
The sequence
13 5 5 20 20 15 13 15 18 18 15 23
is the original code message.
L : R3 → R3 , L(x) = Ax
where
1 2 3
A = 1 1 2
0 1 2
Next, break the original message into 4 vectors first, i.e.,
13 20 13 18
5 , 20 , 15 , 15
5 15 18 23
and use the linear transformation to obtain the encrypted code message:
13 13 1 2 3 13 38
L 5 = A 5 = 1 1 2 5 = 28 ,
5 5 0 1 2 5 15
20 20 1 2 3 20 105
L 20 = A 20 = 1 1 2 20 = 70 ,
15 15 0 1 2 15 50
13 13 1 2 3 13 97
L 15 = A 15 = 1 1 2 15 = 64 and
18 18 0 1 2 18 51
18 18 1 2 3 18 117
L 15 = A 15 = 1 1 2 15 = 79
23 23 0 1 2 23 61
Suppose our friend wants to encode the encrypted message code. Our friend
can find the inverse of a matrix A,
−1
1 2 3 0 1 −1
A−1 = 1 1 2 = 2 −2 −1
0 1 2 −1 1 1
then
38 0 1 −1 38 13
A−1 28 = 2 −2 −1 28 = 5 ,
15 −1 1 1 15 5
105 0 1 −1 105 20
A−1 70 = 2 −2 −1 70 = 20 ,
50 −1 1 1 50 15
97 0 1 −1 97 13
−1
A 64 = 2 −2 −1 64 = 15 and
51 −1 1 1 51 18
117 0 1 −1 117 18
−1
A 79 = 2
−2 −1 79 = 15
61 −1 1 1 61 23
16 8 15 20 15 7 18 1 16 8 16 12 1 14 19
P H O T O G R A P H P L A N S
PHOTOGRAPH PLANS
Introduction to Matlab