Professional Documents
Culture Documents
Lesson 3
Lesson 3
Numerical Methods in
Engineering
Part I
Lesson 3: “Singular Value Problems”
Escuela Técnica Superior de Ingeniería Numerical Methods in
Universidad Loyola Andalucía Engineering
Outline
Singular Value Problem
The Eigenvalue Problem
Power iteration method
Inverse power iteration
Rayleigh quotient iteration
QR algorithm
2
Escuela Técnica Superior de Ingeniería Numerical Methods in
Universidad Loyola Andalucía Engineering
3
Escuela Técnica Superior de Ingeniería Numerical Methods in
Universidad Loyola Andalucía Engineering
4
Escuela Técnica Superior de Ingeniería Numerical Methods in
Universidad Loyola Andalucía Engineering
1−𝜆 3
𝐴 − 𝜆𝐼 = 0 → =0
2 2−𝜆
1−𝜆 2−𝜆 −6=0
6
Escuela Técnica Superior de Ingeniería Numerical Methods in
Universidad Loyola Andalucía Engineering
7
Escuela Técnica Superior de Ingeniería Numerical Methods in
Universidad Loyola Andalucía Engineering
8
Escuela Técnica Superior de Ingeniería Numerical Methods in
Universidad Loyola Andalucía Engineering
Eigenvalue problem
Multiplying 𝐴 by the vector 𝑥0 several times has resulted in
moving the vector very close to the dominant eigenvector of
𝐴, 𝑣1 = 1 1 𝑇 .
This can be easily seen if we express 𝑥0 as a linear
combination of the eigenvectors 𝑣1 and 𝑣2 , 𝑥0 = 𝑣1 + 2𝑣2 =
−5 5 𝑇 , then:
1 −3
𝑥1 = 𝐴𝑥0 = 𝜆1 𝑣1 + 𝜆2 2𝑣2 = 4 + −1 2
1 2
1 −3
𝑥2 = 𝐴2 𝑥0 = 𝜆12 𝑣1 + 𝜆22 2𝑣2 = 42 + (−1)2 2
1 2
3 3 3 3 1 3 −3
𝑥3 = 𝐴 𝑥0 = 𝜆1 𝑣1 + 𝜆2 2𝑣2 = 4 + (−1) 2
1 2
4 4 4 4 1 4 −3
𝑥4 = 𝐴 𝑥0 = 𝜆1 𝑣1 + 𝜆2 2𝑣2 = 4 + (−1) 2
1 2
9
Escuela Técnica Superior de Ingeniería Numerical Methods in
Universidad Loyola Andalucía Engineering
Eigenvalue problem
The eigenvalues determination requires finding the roots of
the equation 𝐴 − 𝜆𝐼 = 0.
On the other hand, finding the eigenvectors imply the use of
Gaussian elimination.
For large matrices (𝑛 > 3), finding the roots of the equation
becomes complex.
Therefore, the use of approximate methods is essential.
10
Escuela Técnica Superior de Ingeniería Numerical Methods in
Universidad Loyola Andalucía Engineering
for j = 1, 2, …
𝑣𝑗−1
𝑢𝑗−1 =
𝑣𝑗−1
𝑣𝑗 = 𝐴𝑢𝑗−1
𝑇
𝜆𝑗 = 𝑢𝑗−1 𝐴𝑢𝑗−1
end
𝑣𝑗
𝑢𝑗 =
𝑣𝑗
13
Escuela Técnica Superior de Ingeniería Numerical Methods in
Universidad Loyola Andalucía Engineering
for j = 1, 2, …
𝑣𝑗−1
𝑢𝑗−1 =
𝑣𝑗−1
Solve 𝐴 − 𝑠𝐼 𝑣𝑗 = 𝑢𝑗−1
𝑇
𝜆𝑗 = 𝑢𝑗−1 𝑣𝑗
end
𝑣𝑗
𝑢𝑗 =
𝑣𝑗
16
Escuela Técnica Superior de Ingeniería Numerical Methods in
Universidad Loyola Andalucía Engineering
for j = 1, 2, …
𝑣𝑗−1
𝑢𝑗−1 =
𝑣𝑗−1
𝑇
𝜆𝑗−1 = 𝑢𝑗−1 𝐴𝑢𝑗−1
Solve 𝐴 − 𝜆𝑗−1 𝐼 𝑣𝑗 = 𝑢𝑗−1
end
𝑣𝑗
𝑢𝑗 =
𝑣𝑗
17
Escuela Técnica Superior de Ingeniería Numerical Methods in
Universidad Loyola Andalucía Engineering
QR algorithm
The power method and inverse power method can be used to
obtain the largest and smallest eigenvalues, and be also
extended to determine the remaining values.
However, there exists a more efficent method based on the
QR decomposition, which basically reads that for any matrix 𝐴,
there exists an orthogonal matrix 𝑄 and an upper triangular
matrix 𝑅 such that
𝐴 = 𝑄𝑅
Recall that an orthogonal matrix 𝑄 has the property 𝑄 −1 = 𝑄 𝑇
18
Escuela Técnica Superior de Ingeniería Numerical Methods in
Universidad Loyola Andalucía Engineering
QR algorithm
The QR method consists of the following iterative steps:
Transform 𝐴 into a tridiagonal (Hessian) matrix 𝐻
Decompose 𝐻 in 𝑄𝑅
Multiply 𝑄 and 𝑅 in reverse order to form a new 𝐻, 𝐻 = 𝑅𝑄
The diagonal of 𝑯 will converge to the eigenvalues.
There is a built-in QR decomposition function in Matlab,
[Q R]=qr(A).
19
Escuela Técnica Superior de Ingeniería Numerical Methods in
Universidad Loyola Andalucía Engineering
Lesson check
Eigenvalue and eigenvector problem
Power matrix method to obtain largest value
Inverse power matrix method to obtain smallest value
Inverse power along with shift properties to obtain the rest
QR algorithm (most efficient)
20