Title: Lecture 15 LU Decomposition and Eigenanalysis
1Lecture 15 - LU Decomposition and Eigen-analysis
- CVEN 302
- September 28, 2001
2Lectures Goals
- LU Decomposition with Pivoting
- What is an eigenvalue and eigenvector?
- Direct computation of the ls and eigenvectors.
- Power Method
- Shift technique
3Pivoting of the LU Decomposition
- Still need pivoting in LU decomposition
- Messes up order of L
- What to do?
- Need to pivot both L and a permutation matrix
P - Initialize P as identity matrix and pivot when
A is pivoted ? Also pivot L
4Pivoting of the LU Decomposition
- Permutation matrix P
- - permutation of identity matrix I
- Permutation matrix performs bookkeeping
associated with the row exchanges - Permuted matrix P A
- LU factorization of the permuted matrix
- P A L U
5Permutation Matrix
- Bookkeeping for row exchanges
- Example P1 interchanges row 1 and 3
- Multiple permutations P
-
6LU Decomposition with Pivoting
Start with
No need to consider b in decomposition
7Forward Elimination
Interchange rows 1 4
Gaussian elimination of first column
Save -mi1 in the first column of L
8Forward Elimination
No interchange required
Gaussian elimination of second column
Save -mi2 in the second column of L
9Forward Elimination
Interchange rows 3 4
Partial pivoting for L and P
10Forward Elimination
Gaussian elimination of third column
Save -mi3 in third column of L
11Doolittle LU with Pivoting
Gauss elimination with partial pivoting
12Doolittle LU with Pivoting
Forward substitution
Back substitution
13LU Pivoting Program
- Test program
- L U PLU_pivot(A) - the program does a
decomposition of a matrix and returns the L and
U matrices and P matrix which represents the
pivoting problem.
14Chapter 7 Eigen-Analysis
15Eigenvalue Problems
- In solving homogeneous linear differential
equations, an acceptable form of solution is
determined by an eigenvalue problem. - To solve ODE, one must find an eigenvalue/eigenfun
ction for which in general are infinite in
numbers. These are different than eigen problems.
16Eigen-Analysis
- Matrix eigenvalues arise from discrete models of
physical systems - Discrete models
- Finite number of degrees of freedom result in a
finite number of eigenvalues and eigenvectors.
17Eigenvalues
- Computing eigenvalues of a matrix is important in
numerous applications - In numerical analysis, the convergence of an
iterative sequence involving matrices is
determined by the size of the eigenvalues of the
iterative matrix. - In dynamic systems, the eigenvalues indicate
whether a system is oscillatory, stable (decaying
oscillations) or unstable(growing oscillation)
18Eigenvalues
- Oscillator system, the eigenvalues of
differential equations or the coefficient matrix
of a finite element model are directly related to
natural frequencies of the system - Regression analysis, eigenvectors of correlation
matrix are used to select new predictor variables
that are linear combinations of the original
predictor variables.
19Physical Examples
- Natural vibration of systems of mass springs
- Flutter of the airplane wings
- vibration of membranes
- oscillation of a suspension bridge
- torsional vibration of multi-cylindrical engine
- structural response of earthquakes
20General form of the equations
- The general form of the equations
21Example
Rewrite the equations
22Example
The determinant of the matrix is
23Example
Determinant
24Examples
- The equation can be factored
Eigenvalues are
25Example
- The eigenvector for l 3, can be determined by
plug-in the equation
The matrix is singular so there are infinite
number of results.
26Example
Assume that one value of the x values is 1.
Therefore, x2 is 1. So the eigenvector for l 3
is 1, 1T.
27Example
For second eigenvalue, l -1, the equation
becomes
Assume x11 therefore x2 is -1. So the
eigenvector for l -1 is 1, -1T.
28Eigen-analysis
Unfortunately, we can not find the eigenvalues of
A general matrix by simply reducing it to a
triangular form by Gaussian elimination as we
might hope.
29Eigen-analysis
We can find the largest eigenvalue by using an
iterative procedure called the power method. Any
x vector can be represented by a combination of
the systems eigenvectors.
Multiply the equation by A for each Af is
equal to lf.
30Summary
- Eigen-analysis of the set of equations
- Finding an eigenvalue.
- Power Method
- Shifting technique
- Inverse Power Method
31Homework
- Check the Homework webpage