Uploaded by hyuka kai

Module-6B-Content-3-Power-Method (2)

advertisement
MODULE 6B | Iterative Methods in Linear Algebra
MODULE 6B
Iterative
Methods in
Linear Algebra
Eigenvalue
Algorithms
Power Method | Shifted-Inverse
Power Method
CE 25
Mathematical Methods in Civil Engineering II
22
CE 25 – Mathematical Methods in Civil Engineering II
MODULE 6B | Iterative Methods in Linear Algebra
Eigenvalue Algorithms
Matrix Eigenvalue Problem
โ–ช Matrix eigenvalue problems are concerned with vector
equations of the form:
๐‘จ {๐’™} = ๐œ†{๐’™}
EIGENVECTOR
(characteristic vector)
EIGENVALUE
(characteristic value)
๐‘จ: the given SQUARE matrix (in this case, all matrices to be
handled are square matrices)
CE 25: Mathematical Methods in CE II
23
Examples of eigenvalue problem encountered in civil engineering are: (a) buckling in
Mechanics of Materials, and (b) determining mode shapes in Structural Dynamics
(pertinent to vibration in structures)
23
CE 25 – Mathematical Methods in Civil Engineering II
MODULE 6B | Iterative Methods in Linear Algebra
EIGENVALUE ALGORITHMS
Matrix Eigenvalue Problem
RECALL
Theorem on Eigenvalues and Eigenvectors:
Theorem 1. The eigenvalues of a square matrix A are the roots of the
characteristic equation of A. Hence, an n x n matrix has at least one and
at most n numerically different eigenvalues.
CE 24: Mathematical Methods in CE II
24
Previously on CE 24
24
CE 25 – Mathematical Methods in Civil Engineering II
MODULE 6B | Iterative Methods in Linear Algebra
EIGENVALUE ALGORITHMS
Matrix Eigenvalue Problem
Analytical solution determines
eigenvalues ๐œ† first as the roots
of p ๐œ† = det ๐‘จ − ๐œ†๐‘ฐ = 0.
The eigenvectors ๐’— are then
computed for each eigenvalue
be getting the solution of
๐‘จ − ๐œ†๐‘ฐ ๐’— = 0.
๐‘จ๐’™ = ๐œ†๐’™
๐‘จ๐’™ = ๐œ†๐‘ฐ๐’™
๐‘จ๐’™ − ๐œ†๐‘ฐ๐’™ = ๐ŸŽ
๐‘จ − ๐œ†๐‘ฐ ๐’™ = ๐ŸŽ
CE 24: Mathematical Methods in CE II
25
Previously on CE 24
25
CE 25 – Mathematical Methods in Civil Engineering II
MODULE 6B | Iterative Methods in Linear Algebra
Eigenvalue Algorithms
Dominant Eigenpair
Assume that the ๐‘› × ๐‘› matrix ๐‘จ has n distinct eigenvalues
๐œ†1 , ๐œ†2 , … , ๐œ†๐‘› and they are ordered in decreasing magnitude; that is,
๐œ†1 > ๐œ†2 > ๐œ†3 > โ‹ฏ > |๐œ†๐‘› |
Eigenvalue ๐œ†1 is called the dominant eigenvalue.
Eigenvector ๐’—๐Ÿ corresponding to ๐œ†1 is called a dominant
eigenvector.
CE 25: Mathematical Methods in CE II
26
The eigenvalue and eigenvector together is called an eigenpair.
26
CE 25 – Mathematical Methods in Civil Engineering II
MODULE 6B | Iterative Methods in Linear Algebra
Eigenvalue Algorithms
Power Method
If ๐‘ฅ0 is chosen appropriately, then the sequences ๐’™๐’Œ = ๐‘ฅ1๐‘˜ ๐‘ฅ2๐‘˜ … ๐‘ฅ๐‘›๐‘˜
๐‘‡
and
{๐‘๐‘˜ } can be generated recursively by
๐’š๐’Œ = ๐‘จ ๐’™๐’Œ
and
1
{๐’™๐’Œ+๐Ÿ } =
{๐’š๐’Œ }
๐‘๐‘˜+1
where
๐’Œ
๐‘๐‘˜+1 = max ๐’š๐’Š
will converge to the dominant eigenvector ๐’—๐Ÿ and dominant eigenvalue ๐œ†1 ,
respectively.
CE 25: Mathematical Methods in CE II
27
Here, a variable in bold is a matrix.
27
CE 25 – Mathematical Methods in Civil Engineering II
MODULE 6B | Iterative Methods in Linear Algebra
Eigenvalue Algorithms
Limitation of Power Method
โ–ช The power method only determines the dominant eigenpair.
โ–ช Power method can be used to determine eigenpairs of matrices
with distinct eigenvalues. If two or more eigenvalues of a matrix
๐‘จ have equal magnitude, the method may not converge.
CE 25: Mathematical Methods in CE II
28
These limitations will be addressed by the other method that we will be discuss in this
module.
28
CE 25 – Mathematical Methods in Civil Engineering II
MODULE 6B | Iterative Methods in Linear Algebra
Eigenvalue Algorithm
EXAMPLE 6B-3
Use the power method to find the dominant eigenpair for the
matrix
0 11 −5
๐‘จ = −2 17 −7
−4 26 −10
CE 25: Mathematical Methods in CE II
29
29
CE 25 – Mathematical Methods in Civil Engineering II
MODULE 6B | Iterative Methods in Linear Algebra
Eigenvalue Algorithm
EXAMPLE 6B-3
Use the power method to find the dominant eigenpair for the matrix
0 11 −5
๐‘จ = −2 17 −7
−4 26 −10
๐’š ๐’Œ = ๐‘จ ๐’™๐’Œ
1
{๐’™๐’Œ+๐Ÿ } =
{๐’š๐’Œ }
๐‘๐‘˜+1
๐‘๐‘˜+1 = max ๐’š๐’Š
๐’Œ
FIRST ITERATION
Step 1. Select initial guess, say ๐’™๐ŸŽ = 1
Step 2. Compute ๐‘ฆ0 .
0
๐’š๐ŸŽ = −2
−4
11
17
26
1
1
๐‘‡
1เต—
−5 1
6
2
−7 1 = 8 = 12 2เต—
3
12
−10 1
1
๐’™๐Ÿ
Step 3. Identify ๐‘1 . For this case, ๐‘1 = 12.
Step 4. Compute ๐’™๐Ÿ .
๐’™๐Ÿ =
1
12
1เต—
6
2
8 = 2เต—
3
12
1
๐‘1
CE 25: Mathematical Methods in CE II
30
As a numerical method, we also give an initial guess to {๐‘ฅ}.
One iteration consists of:
(a) Computing for {๐‘ฆ๐‘˜ }
(b) Determining absolute max element in {๐‘ฆ๐‘˜ } → this will be ๐‘๐‘˜+1
(c) Dividing {๐‘ฆ๐‘˜ } by ๐‘๐‘˜+1 to get {๐‘ฅ๐‘˜+1 }
30
CE 25 – Mathematical Methods in Civil Engineering II
MODULE 6B | Iterative Methods in Linear Algebra
Eigenvalue Algorithm
EXAMPLE 6B-3
Use the power method to find the dominant eigenpair for the matrix
0 11 −5
๐‘จ = −2 17 −7
−4 26 −10
FIRST ITERATION
SECOND ITERATION
Step 1. Compute ๐‘ฆ0 .
1เต—
2
๐‘1 {๐’™๐Ÿ } = 12 2เต—
3
1
๐’š๐Ÿ
๐‘
0
= −2
−4
11
17
26
−5
−7
−10
7เต—
1เต—
3
2
16
10
เต—3 = ๐‘2 ๐’™๐Ÿ =
2เต— =
3
3
16เต—
1
3
{๐‘ฅ๐‘› }๐‘‡
๐‘๐‘›
0
Steps 2 and 3. Identify ๐‘2 and compute ๐‘ฅ2 .
๐œ–
1.00000
1.00000
1.00000
1
12.0000
0.50000
0.66667
1.00000
2
5.33333
0.43750
0.62500
1.00000
6.66667
7เต—
16
5เต—
8
1
Step 4. Compute
error. Terminate
accordingly.
๐œ–๐‘› = |๐‘๐‘› − ๐‘๐‘›−1 |
CE 25: Mathematical Methods in CE II
31
Error can only be computed after the second iteration because we are comparing the ๐‘๐‘˜
values.
31
CE 25 – Mathematical Methods in Civil Engineering II
MODULE 6B | Iterative Methods in Linear Algebra
Eigenvalue Algorithm
EXAMPLE 6B-3
Use the power method to find the dominant eigenpair for the matrix
0 11 −5
๐‘จ = −2 17 −7
−4 26 −10
1
2
๐‘1 {๐’™๐Ÿ } = 12 2
3
1
9
๐‘3 {๐’™๐Ÿ‘ } =
2
5
12
11
18
1
๐‘2 {๐’™๐Ÿ } =
16
3
38
๐‘4 {๐’™๐Ÿ’ } =
9
7
16
5
8
1
๐‘
0
31
76
23
38
1
๐œ–
1.00000
1.00000
1.00000
1
12.0000
0.50000
0.66667
1.00000
2
5.33333
0.43750
0.62500
1.00000
6.66667
3
4.50000
0.41667
0.61111
1.00000
0.83333
4
4.22222
0.40789
0.60526
1.00000
0.27778
5
4.10526
0.40385
0.60256
1.00000
0.11696
6
4.05128
0.40190
0.60127
1.00000
0.05398
4.00000
0.40000
0.60000
1.00000
0.00000
…
20
CE 25: Mathematical Methods in CE II
32
(๐‘ฅ๐‘› )๐‘‡
๐‘๐‘›
32
CE 25 – Mathematical Methods in Civil Engineering II
MODULE 6B | Iterative Methods in Linear Algebra
Eigenvalue Algorithm
EXAMPLE 6B-3
Use the power method to find the dominant eigenpair for the matrix
0 11 −5
๐‘จ = −2 17 −7
−4 26 −10
The dominant eigenpair of
matrix A is
๐‘
0
0.4
๐œ†1 = 4, {๐’—๐Ÿ } = 0.6
1
(๐‘ฅ๐‘› )๐‘‡
๐‘๐‘›
๐œ–
1.00000
1.00000
1.00000
1
12.0000
0.50000
0.66667
1.00000
2
5.33333
0.43750
0.62500
1.00000
6.66667
3
4.50000
0.41667
0.61111
1.00000
0.83333
4
4.22222
0.40789
0.60526
1.00000
0.27778
5
4.10526
0.40385
0.60256
1.00000
0.11696
6
4.05128
0.40190
0.60127
1.00000
0.05398
4.00000
0.40000
0.60000
1.00000
0.00000
…
20
CE 25: Mathematical Methods in CE II
33
After 20 iterations, we arrive at this dominant eigenpair.
33
CE 25 – Mathematical Methods in Civil Engineering II
Download