Chapter 5 Eigenvalue Eigenvector
Chapter 5 Eigenvalue Eigenvector
E-mail: [email protected]
(Phan Thi Khanh Van) Eigenvalues, eigenvectors, diagonalization May 13, 2021 1 / 26
Table of contents
1 Eigenvalues, eigenvectors
2 Diagonalization
4 Markov chain
(Phan Thi Khanh Van) Eigenvalues, eigenvectors, diagonalization May 13, 2021 2 / 26
Eigenvalues, eigenvectors
Let A ∈ Mn be a square matrix . λ is called an eigenvalue of A if there
exist x 6= 0, x ∈ Rn satisfying: Ax = λx. x is then called an eigenvector
of A associated with λ.
Example 1
1 2 1 2 1
A= . Are e1 = , e2 = , e3 = eigenvectors of A?
2 1 1 3 −1
1 2 1 3
Ae1 = = = 3e1 - eigenvector with λ = 3.
2 1 1 3
1 2 2 8
Ae2 = = 6= λe2 - e2 is not an eigenvector.
2 1 3 7
1 2 1 −1
Ae3 = = = −e3 - eigenvector with λ = −1
2 1 −1 1
(Phan Thi Khanh Van) Eigenvalues, eigenvectors, diagonalization May 13, 2021 3 / 26
Properties
If x is an eigenvector of A associated with the eigenvalue λ then:
1 αx, α 6= 0 is also an eigenvector of A assosiated with λ
2 λm is an eigenvalue of Am , x is the corresponding eigenvector.
3 If A is invertible, then λ 6= 0 and 1/λ is an eigenvalue of A−1 , x is the
corresponding eigenvector.
Example 2
1 2
Given A = , is λ = 1 an eigenvalue of A?
0 3
Example 2
1 1 m
Find m such that 2 is an eigenvalue of A = −2 1 1
4 −1 −2
2 is an eigenvalue of A ⇔ |A − 2I | = 0
−1 1 m
3
⇔ −2 −1 1 = 0 ⇔ 6m − 9 = 0 ⇔ m = 2
4 −1 −4
(Phan Thi Khanh Van) Eigenvalues, eigenvectors, diagonalization May 13, 2021 5 / 26
How to find the eigenvectors, eigenvalues
1 Find PA (λ) = |A − λI |, and then solve |A − λI | = 0 to find λ.
2 For every λi solve the system (A − λi I )x = 0 to find the corresponding
eigenvectors x.
3 The subspace of Rn of all eigenvectors assosiated with λi is called the
eigenspace of A assosiated with λi , and is denoted by Eλi .
Theorem
All vector in the bases of the eigenspaces form a linearly independent set.
(Phan Thi Khanh Van) Eigenvalues, eigenvectors, diagonalization May 13, 2021 6 / 26
Example 3
2 3
Find all eigenvalues and eigenvectors of: A =
4 3
2−λ 3
|A − λI | = = (2 − λ)(3 − λ) − 12
4 3−λ
= λ2 − 5λ − 6 = 0 ⇔ λ = −1 ∨ λ = 6
λ = −1: Consider
the system
(A + I )x = 0
3 3 0 −1 −1
⇔x =m , Eigenspace: E−1 = span
4 4 0 1 1
λ
= 6: Consider
the system − 6I )x = 0
(A
−4 3 0 3 3
⇔x =m , Eigenspace: E6 = span
4 −3 0 4 4
(Phan Thi Khanh Van) Eigenvalues, eigenvectors, diagonalization May 13, 2021 7 / 26
Example 4
1 2 3
Find all eigenvalues and eigenvectors of: A = −2 6 6
4 −12 −11
(Phan Thi Khanh Van) Eigenvalues, eigenvectors, diagonalization May 13, 2021 9 / 26
Example 5
1 3 3
Find all eigenvalues, eigenvectors of A = −3 −5 −3
3 3 1
(Phan Thi Khanh Van) Eigenvalues, eigenvectors, diagonalization May 13, 2021 11 / 26
Exercises
Find the eigenvalues, eigenvectors of the following matrices
15 −18 −16
1 A = 9 −12 −8
4 −4 −6
1 −1 −1
2 A = 2 −2 −4
0 −4 −3
(Phan Thi Khanh Van) Eigenvalues, eigenvectors, diagonalization May 13, 2021 12 / 26
Similar matrices
A matrix A is called similar to B if there exists an invertible matrix
P : A = PBP −1 .
Diagonalizable matrix
Let A ∈ Mn be a square matrix. A is called diagonalizable if it is similar to
a diagonal matrix: ∃P : P −1 AP = D, where D is a diagonal matrix.
Theorem
1 A is diagonalizable ⇔ A has n independent eigenvectors
2 If A has exactly n distinct eigenvalues then A is diagonalizable.
Theorem
If A is diagonalizable then we can choose P = [e1 ..en ] where the column
vectors ei are independent eigenvectors of A, D = diag (λ1 ...λn ), λi −
corresponding eigenvalues.
(Phan Thi Khanh Van) Eigenvalues, eigenvectors, diagonalization May 13, 2021 13 / 26
How to diagonalize a matrix
1 Solve |A − λI | = 0 to find the eigenvalues λ1 , ...λn
2 Solve the system (A − λ)x = 0 to find the corresponding eigenvectors
of A: e1 , e2 ...en
λ1 0 ... 0
0 λ2 ... 0
D = .. , P = [e1 e2 ...en ] (col. vectors)
3
.
0 0 ... λn
(Phan Thi Khanh Van) Eigenvalues, eigenvectors, diagonalization May 13, 2021 14 / 26
Consider the examples 3,4,5,6
1. Example 3:
A has 2 independent
eigenvectors
⇒ A is diagonalizableA = PDP −1 .
−1 0 −1 1
D= ,P=
0 6 3 4
2. Example 4:
⇒ A is diagonalizable
A has3 distinct eigenvalues
A = PDP −1 .
−5 0 0 −3 −1 10
D = 0 −1 0 , P = −6 −2 −1
0 0 2 10 2 4
3. Example 5:
A has3 independent eigenvectors
⇒ A is diagonalizableA = PDP −1 .
−2 0 0 −1 −1 1
D = 0 −2 0 , P = 1
0 −1
0 0 1 0 1 1
4. Example 6:
A is not diagonalizable.
(Phan Thi Khanh Van) Eigenvalues, eigenvectors, diagonalization May 13, 2021 15 / 26
Remark
If A is diagonalizable A = PDP −1 then
An =(PDP −1 )(PDP −1 )...(PDP −1 ) = PD n P −1
λn1 0 ... 0
0 λn ... 0
2 −1
= P .. P
.
0 0 ... λnn
Consider Example 4
2018
5 0 0
A2018 = PD 2018 P −1 =P 0 1 0 P −1
0 0 22018
(Phan Thi Khanh Van) Eigenvalues, eigenvectors, diagonalization May 13, 2021 16 / 26
Exercises
Diagonalize the following matrices (if it is possible)
2 5 −1 3 −1
1 A=
−1 3 5 A = −3 5 −1.
−3 3 1
1 2 −2
2 A = 1 0 3 . Find B : B 3 = A
1 3 0 1 0 0
Find A2017
6 A = 1 −1 1
2 0 1
2 0 −6
3 A = 1 3 −2 2 2 3
1 0 1 7 A = 2 5 6
3 6 2
0 1 0
4 A = −4 4 0 2 −1 −1
−2 1 2
8 A = −1 2 −1
−1 −1 2
(Phan Thi Khanh Van) Eigenvalues, eigenvectors, diagonalization May 13, 2021 17 / 26
Population growth
Matrices can be used to form models for population growth. The first step
in this process is to group the population into age classes of equal duration.
For instance, if the maximum life span of a member is L years, then the age
classes are represented by the n intervals: First age class: [0, Ln ), Second
(n−1)L
age class [ Ln , 2L
n ), n−th age class: [ n , L). The number of population
members in each age class is then represented
by the age distribution
x1 Number in first age class
x2 Number in second age class
vector . . .
xn Number in n-th age class
(Phan Thi Khanh Van) Eigenvalues, eigenvectors, diagonalization May 13, 2021 18 / 26
Example 1
A population of rabbits raised in a research laboratory has the
characteristics listed below.
(a) Half of the rabbits survive their first year. Of those, half survive their
second year. The maximum life span is 3 years.
(b) During the first year, the rabbits produce no offspring. The average
number of offspring is 6 during the second year and 8 during the third year.
The laboratory population now consists of 24 rabbits in the first age class,
24 in the second, and 20 in the third. Find a stable age distribution vector
(Phan Thi Khanh Van) Eigenvalues, eigenvectors, diagonalization May 13, 2021 19 / 26
Example 2
Using the method of diagonalizing the transition matrix to find the numbers
of subscribers after 50 years. Round each answer to the nearest integer.
(Phan Thi Khanh Van) Eigenvalues, eigenvectors, diagonalization May 13, 2021 20 / 26
Let x, y be the numbers of subscribers of companies A and B, and
z = 100000 − (x + y ) be the numbers of households that don’t use any
services.
At this time: x0 = 10000, y0 = 15000, z0 = 75000.
x0 10000,
y0 = 15000
z0 75000
x100 x0
After 50 years y100 = A50 . y0
z100 z0
Use the method of diagonalization: A = PDP −1 , we can find
A50 = PD 50 P −1 .
(Phan Thi Khanh Van) Eigenvalues, eigenvectors, diagonalization May 13, 2021 21 / 26
SVD
(Phan Thi Khanh Van) Eigenvalues, eigenvectors, diagonalization May 13, 2021 22 / 26
Example
3 2 2
Find the SVD of A =
2 3 −2
17 8
AAT = , Orthogonally diagonalize: AAT = QD1 Q T where
8 17
25 0 1 1 1
D1 = , Q= 2√ .
0 9 1 −1
13 12 2
AT A = 12 13 −2, Orthogonally diagonalize:
2 −2 8
−2
1
√1
√
25 0 0 2 18 3
A = PD2 P T , where D2 = 0 9 0 , P = √12 √−1 1 23 .
18
0 0 0 4 1
0 √
18 3
5 0 0
Hence, the SVD of A: A = QΣP T , where Σ = .
0 3 0
(Phan Thi Khanh Van) Eigenvalues, eigenvectors, diagonalization May 13, 2021 23 / 26
Application of SVD in image compression
The singular values σi are ordered σ1 ≥ σ2 ≥ ... ≥ σn ≥ 0. Significant
compression of the image is possible if the spectrum of singular values has
only a few very strong entries.
A ≈ Ak = σ1 q1 p1T + σ2 q2 p2T + ... + σk qk pkT .
Example
We have an image flower .jpg .
Transform the image into a matrix using Matlab:
A=rgb2gray(imread(’flower.jpg’));, A is 432 × 432.
Change to the double type: A = im2double(A);
Find SVD of A: [U S V]=svd(A); sigma = diag(S);
(Phan Thi Khanh Van) Eigenvalues, eigenvectors, diagonalization May 13, 2021 24 / 26
The original image:
figure; subplot(4,2,1); imshow(A); title(’Original’);
Choose the number k to approximate A: ranks=[200,100,50,30,20,10,5];
for i = 1 : length(ranks)
approxsigmas = sigma; approxsigmas(ranks(i):end)=0;
ns=length(sigma); approxS = S; approxS(1:ns,1:ns)=diag(approxsigmas);
approxflower = U*approxS*V’; subplot(4,2,i+1),imshow(approxflower);
title(sprintf(’When k = %s \n’, ranks(i))); end
(Phan Thi Khanh Van) Eigenvalues, eigenvectors, diagonalization May 13, 2021 25 / 26
(Phan Thi Khanh Van) Eigenvalues, eigenvectors, diagonalization May 13, 2021 26 / 26