Numerical method for finding Eigenvalues and Eigenvectors
Basic Definition
-
For a matrix , if where:
- is a scalar
- (non-zero vector)
-
Then:
- is called an eigenvalue of
- is called an eigenvector of
Analogy: Think of a transformation matrix as a machine that stretches or rotates vectors. An eigenvector is a special vector that, when fed through the machine, only gets stretched or shrunk (not rotated). The eigenvalue tells you by how much it gets stretched.
Important Property: Scalar Multiplication
- Note: If is an eigenvector, then is also an eigenvector for any nonzero scalar
- Proof: If , then
Analogy: If you have a special direction that only gets stretched (not rotated), then any vector pointing in that same direction will also only get stretched. It's like finding a magic direction in space.
Applications
- Eigenvalues and eigenvectors are used in:
- Physics
- Analysis of vibration and stability
- Analysis of ordinary differential equations and their algorithms
- Machine learning (PCA, spectral methods)
- Google's PageRank algorithm
Theorem: Symmetric Matrices
Theorem
Suppose is symmetric. Then all eigenvalues of are real.
- This is a powerful result that simplifies many computations
- Symmetric matrices:
Characteristic Polynomial
Derivation
- Suppose is an eigenvalue of and is the associated eigenvector
- This means: There exists such that
- Rewriting:
- such that
- Same as: such that
- Same as: is singular
- Same as:
Definition
- The roots of this polynomial are the eigenvalues of
Analogy: Finding eigenvalues is like solving a detective mystery. The characteristic polynomial is your main clue - its solutions reveal all the eigenvalues hiding in the matrix.
Example 1: Finding Eigenvalues
Problem: Find eigenvalues of
Solution:
- Factor:
- Eigenvalues: and
Properties of Characteristic Polynomial
- The characteristic polynomial of an matrix is always of degree
- Therefore, an matrix has exactly eigenvalues
- But they are not necessarily distinct!
Complications
- Complex eigenvalues:
- Even if is real, eigenvalues and eigenvectors may be complex
- Irrational eigenvalues:
- In general, eigenvalues are irrational numbers even if entries of are rational
Why We Can't Always Use Characteristic Polynomial
Fundamental Limitation
- Eigenvalues of matrices larger than 4×4 cannot be found in a finite number of steps
- This is a corollary of the Abel-Ruffini theorem
- Same issue as solving nonlinear equations
- Solving characteristic polynomial for eigenvalues is not useful for large matrices
- Requires too many operations
- Gives inaccurate results
Analogy: Using the characteristic polynomial for large matrices is like trying to find a specific grain of sand on a beach by examining each grain individually - theoretically possible but practically impossible.
Power Method
Algorithm
Given:
- Choose := arbitrary nonzero vector
- For :
Analogy: The power method is like repeatedly applying a filter. Each time you apply it, the dominant feature (largest eigenvalue) becomes more and more apparent, while other features fade away.
Properties of Power Method
- Power method computes
Convergence Theorem
If has a unique eigenvalue with maximum absolute value, then power method converges to (a multiple of) the eigenvector corresponding to that eigenvalue.
Examples
-
Converges: If has eigenvalues
- Power method converges to eigenvector of
- Because is unique maximum
-
Does NOT converge: If has eigenvalues
- Two eigenvalues with equal maximum absolute value:
- No unique maximum
Partial Proof of Power Method Convergence
Setup
- Let
- Assumption: We can express as a linear combination of all eigenvectors of
- (This is not possible for all matrices)
- Let be the eigenvectors
- Let be the corresponding eigenvalues
- i.e.,
- has unique maximum absolute value
Derivation
Express initial vector:
Apply power method:
Continue expanding:
Eventually:
Factor out :
Key Observation
- For : (since has maximum absolute value)
- Therefore: as for all
Conclusion
- This is a multiple of the eigenvector associated with the eigenvalue with unique maximum absolute value
Example 2: Power Method
Problem: Perform power method on with
Solution:
- Notice: Values are growing extremely large! (Overflow problem)
📄 CSS322_Doable_L15_Ex2.pdf
Problem: Overflow/Underflow
- Issue: can become very large or very small
- Typical problem with power method: It either overflows or underflows
Solution: Normalization
Normalized Power Method
Algorithm
For :
Analogy: Normalization is like a pressure release valve. After each iteration, we scale the vector back to a manageable size, keeping only the direction information (which is what matters for eigenvectors).
Example 3: Normalized Power Method
Problem: Perform normalized power method on
Solution:
Iteration 0:
Iteration 1:
- No overflow now! Values stay bounded
Another Problem with Power Method
Non-Convergence Case
- If there are two or more eigenvalues with largest absolute value, the power method will not converge
- Example: where both are maximum
Example of Bad Case
- Eigenvalues: (both have absolute value 1)
- Eigenvectors: and
Using :
- Oscillates forever, does not converge!
- Not making progress อะไรเลย
Analogy: This is like trying to find the tallest person in a room where two people have exactly the same height. The method keeps switching back and forth between them.
Obtaining the Eigenvalue
The Problem
- Power method gives us an eigenvector
- But what is the eigenvalue for this eigenvector?
Solution: Rayleigh Quotient
Find eigenvalue by solving:
(Why not solve instead? Because is not a true eigenvector, just an approximation of an eigenvector. Overdetermined system)
Formula
By the method of normal equations:
- This is called the Rayleigh quotient
- The denominator may be omitted if is normalized
Analogy: The Rayleigh quotient is like measuring the "stretching factor" - it compares how much the vector got stretched after transformation versus its original size.
Example 4: Computing Eigenvalue
Problem: Find eigenvalue for from Example 3
Solution:
- This matches the eigenvalue we found in Example 1!
Summary
Key Concepts
- Eigenvalues & Eigenvectors:
- Characteristic Polynomial:
- Power Method: Iteratively multiply
- Normalized Power Method: Scale at each step to prevent overflow
- Rayleigh Quotient: Extract eigenvalue from eigenvector
When Power Method Works
✅ Matrix has unique eigenvalue with maximum absolute value
✅ Initial vector has component in direction of dominant eigenvector
When Power Method Fails
❌ Multiple eigenvalues with same maximum absolute value
❌ Need all eigenvalues (power method only finds one)
❌ Large matrices (use advanced methods like QR algorithm instead)
Inverse Power Method
Algorithm
Given:
- Choose := arbitrary nonzero vector
- For :
อันนี้ก็แค่ Apply Power Method กับ ดังนั้นถ้าได้ออกมา (converges) ก็จะเป็น Eigenvector ของ
แล้ว Relationship ระหว่าง Eigen ของ กับ เฉย ๆ เป็นไงล่ะ
Analogy: If the regular power method is like repeatedly amplifying a signal to find the strongest frequency, the inverse power method is like using noise-canceling to eliminate the strongest signals and find the weakest one instead.
Understanding Inverse Power Method
- Inverse power method is essentially the power method applied to
- It returns the eigenvector of corresponding to the eigenvalue with maximum absolute value
- Question: Any relationship with eigenvector of ?
Theorem: Eigenvalues and Eigenvectors of Inverse Matrix
If is invertible, the
- and have the same eigenvectors
- the eigenvalues of are reciprocals of eigenvalues of
- i.e., if is an eigenvalue of , then is an eigenvalue of
Proof
Suppose is an eigenpair of :
Multiply both sides by :
Divide both sides by :
Therefore, is an eigenpair of .
Convergence of Inverse Power Method
- Inverse power method converges to the eigenvector corresponding to the eigenvalue with smallest absolute value of
Theorem
If has a unique eigenvalue with minimum absolute value, then inverse power method converges to the corresponding eigenvector.
Examples
Example 1 - Converges:
- If has eigenvalues:
- Inverse power method converges to eigenvector of
- Because is the unique minimum
Example 2 - Does NOT Converge:
- If has eigenvalues:
- Inverse power method does not converge
- Because (two eigenvalues with same minimum absolute value)
Efficient Implementation of Inverse Power Method
The Challenge
- How to compute efficiently?
The Solution
Important: Don't form explicitly!
Computational Cost
- Initial factorization: arithmetic operations
- Per iteration: arithmetic operations
Implementation Steps
- Factor using GEPP (once at the beginning)
- Each iteration: Solve using the factors
- Forward substitution with
- Backward substitution with
- Normalize the result
Analogy: It's like building a factory assembly line once (factorization), then using it repeatedly to manufacture products (solve systems). You don't rebuild the entire factory each time you need a product!
Example 5: Inverse Power Method
Problem: Apply inverse power method to with
Solution:
Step 1: Factorize by GEPP
Step 2: Use factors to solve
Result (before normalization):
Step 3: Normalize by dividing by 2-norm:
Iteration 2:
Reuse factors to solve
Result (before normalization):
After normalization:
Continue iterations...
📄 CSS322_Doable_L15_Ex5.pdf
Inverse Shifted Power Method
Algorithm
Given:
- Choose := arbitrary nonzero vector
- For :
- is a scalar that is chosen in advance (the "shift")
Analogy: Regular inverse power method is like finding the quietest sound in a room. Shifted inverse power method is like first changing your perspective (shifting), then finding what's quietest from that new viewpoint. This lets you target specific frequencies!
Theorem: Shifted Matrix Properties
Suppose is invertible. Then:
- and have the same eigenvectors
- is an eigenvalue of if and only if is an eigenvalue of
Proof
Suppose is an eigenpair of :
Subtract from both sides:
Multiply both sides by :
Divide by :
Therefore, is an eigenpair of .
Convergence of Inverse Shifted Power Method
Theorem
If has a unique eigenvalue closest to , then inverse shifted power method converges to (a multiple of) the eigenvector corresponding to that eigenvalue.
How It Works
- The method finds the eigenvalue of that is closest to
- This is because is largest when is smallest
Examples
Example 1 - Converges:
- Eigenvalues: with
- Distances from :
- ← smallest (unique)
- Method converges to eigenvector of
Example 2 - Does NOT Converge:
- Eigenvalues: with
- Distances from :
- ← tied
- ← tied
- Method does not converge (two eigenvalues equidistant from )
Analogy: Imagine you're in a city (the complex plane of eigenvalues) and you pick a landmark (). The shifted inverse power method will guide you to the unique nearest building. But if two buildings are equally close, you'll keep wandering between them!
Example 6: Inverse Shifted Power Method
Problem: Perform inverse shifted power method on using
Solution:
Step 1: Compute
Step 2: Choose starting point
Step 3: Factorize by GEPP
Step 4: Solve using factors
After normalization:
Step 5: Reuse factors to solve
After normalization:
And so on...
QR Iteration
Basic QR Iteration Algorithm
- For :
- Factor: (Compute and by QR factorization)
- Define: (Compute from known and )
Analogy: QR iteration is like repeatedly shuffling a deck of cards using a specific technique. Each shuffle (QR factorization followed by reverse multiplication) gradually sorts the eigenvalues into diagonal positions, like how repeated shuffles might eventually separate cards by suit.
Example 7: QR Iteration
Problem: Perform two steps of basic QR iteration on
Solution:
Iteration 0
Step 1: Set
Step 2: Compute QR factorization of using Householder transformation:
Step 3: Compute :
Iteration 1
Step 1: Perform QR factorization on :
Step 2: Compute :
Notice: Off-diagonal elements are getting smaller! The matrix is gradually becoming diagonal.
📄 CSS322_Doable_L15_Ex7.pdf
QR Iteration: Properties and Issues
Convergence
- Under many assumptions, converges to a diagonal matrix
- The diagonal entries are the eigenvalues of
Issues with Basic QR Iteration
Problem 1: Computational Cost
- As written, each iteration requires arithmetic operations
- This is impractical for large matrices
Problem 2: Slow/Non-Convergence
- Convergence is slow or nonexistent if any two eigenvalues have close magnitudes
- Similar to the issues with power methods
Advanced Solutions (Not Covered)
- There are complex ways to fix these problems:
- Can reduce each iteration to operations
- Use shifts and deflation strategies
- Hessenberg reduction preprocessing
- These techniques are beyond the scope of this course
Analogy: Basic QR iteration is like using a hand saw to cut wood - it works but is very slow. Advanced QR methods are like using a chainsaw with a laser guide - much faster and more precise. However, the chainsaw is also much more complex to operate!
Summary: Methods for Finding Eigenvalues/Eigenvectors
Power Method
✅ Finds: Eigenvalue with largest absolute value
❌ Limitation: Only one eigenvalue/eigenvector
❌ Fails if: Multiple eigenvalues have same max absolute value
Inverse Power Method
✅ Finds: Eigenvalue with smallest absolute value
❌ Limitation: Only one eigenvalue/eigenvector
❌ Fails if: Multiple eigenvalues have same min absolute value
💡 Implementation: Use LU factorization, don't compute explicitly
Inverse Shifted Power Method
✅ Finds: Eigenvalue closest to shift
✅ Advantage: Can target specific eigenvalues
❌ Fails if: Multiple eigenvalues equidistant from
💡 Strategy: Good initial guess of critical for success
QR Iteration
✅ Finds: All eigenvalues simultaneously
✅ Advantage: Most general method
❌ Limitation: Expensive ( per iteration in basic form)
❌ Challenge: Can be slow if eigenvalues are close
💡 Advanced versions: Can reduce to per iteration
Comparison Table
| Method | Finds | Cost per Iteration | Best Used When |
|---|---|---|---|
| Power | Largest | Need dominant eigenvalue | |
| Inverse Power | Smallest | Need smallest eigenvalue | |
| Shifted Inverse | Closest to | Know approximate eigenvalue | |
| QR Iteration | All eigenvalues | basic, advanced | Need all eigenvalues |
Key Takeaways
- Don't compute matrix inverses explicitly - always use factorizations
- Uniqueness matters - all iterative methods fail when multiple eigenvalues have the same target property
- Normalization prevents overflow - always normalize vectors in iterative methods
- Shifts provide control - shifting allows targeting specific eigenvalues
- Trade-offs exist - simple methods (power, inverse power) are cheap but limited; general methods (QR) are expensive but comprehensive
- Practical implementations are much more sophisticated than basic algorithms shown here