Gernot Hoffmann. Faddejev Algorithm for Eigenvalues and Eigenvectors

Similar documents
Apply change-of-basis formula to rewrite x as a linear combination of eigenvectors v j.

Chimica Inorganica 3

CHAPTER I: Vector Spaces

Inverse Matrix. A meaning that matrix B is an inverse of matrix A.

Session 5. (1) Principal component analysis and Karhunen-Loève transformation

Eigenvalues and Eigenvectors

MATH10212 Linear Algebra B Proof Problems

Unit 4: Polynomial and Rational Functions

Matrix Algebra 2.2 THE INVERSE OF A MATRIX Pearson Education, Inc.

CHAPTER 5. Theory and Solution Using Matrix Techniques

1 Last time: similar and diagonalizable matrices

APPENDIX F Complex Numbers

Complex Number Theory without Imaginary Number (i)

Stochastic Matrices in a Finite Field

Determinants of order 2 and 3 were defined in Chapter 2 by the formulae (5.1)

Notes The Incremental Motion Model:

The Method of Least Squares. To understand least squares fitting of data.

Where do eigenvalues/eigenvectors/eigenfunctions come from, and why are they important anyway?

Mathematics 3 Outcome 1. Vectors (9/10 pers) Lesson, Outline, Approach etc. This is page number 13. produced for TeeJay Publishers by Tom Strang

x c the remainder is Pc ().

After the completion of this section the student should recall

Appendix F: Complex Numbers

, then cv V. Differential Equations Elements of Lineaer Algebra Name: Consider the differential equation. and y2 cos( kx)

5.1. The Rayleigh s quotient. Definition 49. Let A = A be a self-adjoint matrix. quotient is the function. R(x) = x,ax, for x = 0.

Polynomials with Rational Roots that Differ by a Non-zero Constant. Generalities

Signal Processing in Mechatronics

CALCULATION OF FIBONACCI VECTORS

M 340L CS Homew ork Set 6 Solutions

M 340L CS Homew ork Set 6 Solutions

(VII.A) Review of Orthogonality

Matrices and vectors

Symmetric Matrices and Quadratic Forms

Chapter 2. Periodic points of toral. automorphisms. 2.1 General introduction

Lemma Let f(x) K[x] be a separable polynomial of degree n. Then the Galois group is a subgroup of S n, the permutations of the roots.

For a 3 3 diagonal matrix we find. Thus e 1 is a eigenvector corresponding to eigenvalue λ = a 11. Thus matrix A has eigenvalues 2 and 3.

Matrix Algebra from a Statistician s Perspective BIOS 524/ Scalar multiple: ka

1 1 2 = show that: over variables x and y. [2 marks] Write down necessary conditions involving first and second-order partial derivatives for ( x0, y

TEACHER CERTIFICATION STUDY GUIDE

4755 Mark Scheme June Question Answer Marks Guidance M1* Attempt to find M or 108M -1 M 108 M1 A1 [6] M1 A1

Chapter Vectors

Random Matrices with Blocks of Intermediate Scale Strongly Correlated Band Matrices

REVISION SHEET FP1 (MEI) ALGEBRA. Identities In mathematics, an identity is a statement which is true for all values of the variables it contains.

11. FINITE FIELDS. Example 1: The following tables define addition and multiplication for a field of order 4.

Introduction to Optimization Techniques. How to Solve Equations

Zeros of Polynomials

( ) 2 + k The vertex is ( h, k) ( )( x q) The x-intercepts are x = p and x = q.

Basic Iterative Methods. Basic Iterative Methods

CALCULUS BASIC SUMMER REVIEW

TMA4205 Numerical Linear Algebra. The Poisson problem in R 2 : diagonalization methods

8. Applications To Linear Differential Equations

MATH 205 HOMEWORK #2 OFFICIAL SOLUTION. (f + g)(x) = f(x) + g(x) = f( x) g( x) = (f + g)( x)

Recursive Algorithms. Recurrences. Recursive Algorithms Analysis

REVISION SHEET FP1 (MEI) ALGEBRA. Identities In mathematics, an identity is a statement which is true for all values of the variables it contains.

2 Geometric interpretation of complex numbers

Complex Numbers Solutions

6.003 Homework #3 Solutions

First, note that the LS residuals are orthogonal to the regressors. X Xb X y = 0 ( normal equations ; (k 1) ) So,

Notes on iteration and Newton s method. Iteration

On Nonsingularity of Saddle Point Matrices. with Vectors of Ones

PAPER : IIT-JAM 2010

Ellipsoid Method for Linear Programming made simple

LECTURE 8: ORTHOGONALITY (CHAPTER 5 IN THE BOOK)

Orthogonal transformations

Linearly Independent Sets, Bases. Review. Remarks. A set of vectors,,, in a vector space is said to be linearly independent if the vector equation

THE EIGENVALUE PROBLEM

WHEN IS THE (CO)SINE OF A RATIONAL ANGLE EQUAL TO A RATIONAL NUMBER? 1. My Motivation Some Sort of an Introduction

Why learn matrix algebra? Vectors & Matrices with statistical applications. Brief history of linear algebra

Matrix Algebra 2.3 CHARACTERIZATIONS OF INVERTIBLE MATRICES Pearson Education, Inc.

Addition: Property Name Property Description Examples. a+b = b+a. a+(b+c) = (a+b)+c

NANYANG TECHNOLOGICAL UNIVERSITY SYLLABUS FOR ENTRANCE EXAMINATION FOR INTERNATIONAL STUDENTS AO-LEVEL MATHEMATICS

NICK DUFRESNE. 1 1 p(x). To determine some formulas for the generating function of the Schröder numbers, r(x) = a(x) =

PROPERTIES OF AN EULER SQUARE

Kinetics of Complex Reactions

MEI Casio Tasks for Further Pure

Patterns in Complex Numbers An analytical paper on the roots of a complex numbers and its geometry

Application of Jordan Canonical Form

6. Kalman filter implementation for linear algebraic equations. Karhunen-Loeve decomposition

State Space Representation

3.2 Properties of Division 3.3 Zeros of Polynomials 3.4 Complex and Rational Zeros of Polynomials

Math 475, Problem Set #12: Answers

Physics 324, Fall Dirac Notation. These notes were produced by David Kaplan for Phys. 324 in Autumn 2001.

LINEAR RECURSION RELATIONS - LESSON FOUR SECOND-ORDER LINEAR RECURSION RELATIONS

a for a 1 1 matrix. a b a b 2 2 matrix: We define det ad bc 3 3 matrix: We define a a a a a a a a a a a a a a a a a a

Presentation of complex number in Cartesian and polar coordinate system

Course : Algebraic Combinatorics

A TYPE OF PRIMITIVE ALGEBRA*

We will conclude the chapter with the study a few methods and techniques which are useful

ECE-S352 Introduction to Digital Signal Processing Lecture 3A Direct Solution of Difference Equations

G r a d e 1 1 P r e - C a l c u l u s M a t h e m a t i c s ( 3 0 S )

Linear Differential Equations of Higher Order Basic Theory: Initial-Value Problems d y d y dy

(I.C) Matrix algebra

AH Checklist (Unit 3) AH Checklist (Unit 3) Matrices

(3) If you replace row i of A by its sum with a multiple of another row, then the determinant is unchanged! Expand across the i th row:

R is a scalar defined as follows:

Linear Programming and the Simplex Method

t distribution [34] : used to test a mean against an hypothesized value (H 0 : µ = µ 0 ) or the difference

Algorithms and Data Structures 2014 Exercises and Solutions Week 13

Assignment 2 Solutions SOLUTION. ϕ 1 Â = 3 ϕ 1 4i ϕ 2. The other case can be dealt with in a similar way. { ϕ 2 Â} χ = { 4i ϕ 1 3 ϕ 2 } χ.

Section Let A =. Then A has characteristic equation λ. 2 4λ + 3 = 0 or (λ 3)(λ 1) = 0. Hence the eigenvalues of A are λ 1 = 3 and λ 2 = 1.

CALCULATING FIBONACCI VECTORS

Transcription:

Gerot Hoffma Faddejev Algorithm for Eigevalues ad Eigevectors Cotets. Itroductio. Faddejev algorithm / Geeral. Example / Diagoal matrix with distict eigevalues 4. Example / Matrix with complex eigevalues 5. Example / Matrix with equal eigevalues 6 4. Rotatio matrices / Geeral 7 4. Rotatio matrices / Eigevalues ad eigevectors 8 5. Newto-Bairstow algorithm 9 6. Refereces 0

. Itroductio May tass i physics, mechaics ad computer graphics result i the so-called eigevalue problem for matrices. Give is a quadratic matrix with x elemets, which are here real umbers. The matrix is for the geeral case ot symmetric. () Ax x ( ) ( A I) x 0 ( ) det( A I) 0 ( 4) ( A I) 0 Equatio () is a homogeeous system of liear equatios for uows. No-trivial solutios ca be expected if the determiat () is zero. This delivers primarily a polyomial fuctio f(). The eigevalues are foud as the roots of f()0, which is called the characteristic equatio. Equatio () results for each eigevalue i equatio (4) for the eigevector x. A eigevector ca be multiplied by ay factor. A uit eigevector has the Euclidia orm oe. Complex eigevectors are here ormalized for oe real value oe. The author is programmig a library for liear algebra ad related topics i PostScript, for simplicity called the Matrix Library [6], [7]. PostScript is geerally based o sigle float precisio - a rather limitig fact. Programmig umerically algorithms is hampered by lacig structures as i Fortra, Pascal or C. PostScript is used because of excellet graphics ad typographical quality for vector graphics. It is ot expected that highly complex tass of liear algebra have to be hadled. O this occasio, the author remembered the otherwise hardly ow algorithm by Leverrier, improved by Faddejev []. This is here simply called Faddejev algorithm. Just a few matrix operatios deliver the determiat, the iverse matrix ad the coefficiets of the characteristic equatio. Oce the roots are foud - here by Newto-Bairstow [] - the eigevectors are calculated by usig itermediate matrices from the previous process. Solvig the eigevalue problem via the characteristic equatio is owadays ot cosidered as professioal. Oe of the better alteratives is the R-Algorithm []. Programmig this i PostScript for o-symmetric matrices with possible complex solutios is for the author practically impossible. O the other had, for small matrices, without ay symmetry, for real or complex distict eigevalues ad eigevectors, the Faddejev method is straightforward. Practical problems arise for simple cases, e.g. the calculatio of the eigevalues for a x idetity matrix. The three eigevalues are all. A vector base of three liearly idepedet eigevectors ca be costructed, but it caot be foud by umerical calculatios. Faddejev s boo cotais a major bug, cocerig the eigevector extractio. The problem could be solved - slow but safe, if the tas is ot affected by geeral problems lie multiple eigevalues, cocerig the liearly idepedet vector base. This documet shows a couple of examples.

. Faddejev algorithm / Geeral Some simple matrix operatios deliver the ecessary iformatios for the calculatio of the determiat, the iverse matrix ad the coefficiets of the characteristic equatio. Oce the roots are foud (eigevalues), it should be possible to extract the respective eigevectors from a matrix, which is easily calculated, based o previous itermediate results. Ufortuately, the situatio is ot as simple as explaied by Faddejev. Faddejev algorithm for a matrix A: I is a idetity matrix. tr meas trace : tr( A) i a ii A A p tr( A ) / A AB p tr( A )/ B A p I A......... B A p I AB p tr( A )/ B A p I Always valid: B 0 Determiat ad iverse matrix: det A ( ) p If p 0 : A B / p Characteristic equatio: f( ) (- ) [ p p... p p ] 0 The eigevalues are the roots of the characteristic equatio. They ca be multiple. For istace 5 ad triple :,,,, 4 5 The matrix cotais eigevectors for i colums: I+ B +... + B Faddejev assumes for differet eigevalues, that each colum of ca be used as the respective eigevector. This is ot always true. Horer recursio for the eigevector matrix ( i to -):,0 I i, i, + Bi,

. Faddejev algorithm / Diagoal matrix with distict eigevalues A diagoal matrix with diagoal values,, delivers the eigevalues,,. The roots of the characteristic equatio are foud i a upredictable order. The matrix cotais ideed for each eigevalue the respective eigevector: it is the oly oe o-zero colum. I a program oe caot chec for o-zero. Alteratively, the colum with the largest orm is selected. Faddejev says, that ay colum ca be used. This is correct, if the matrix does ot cosist of diagoal elemets or diagoally arraged blocs. Faddejev algorithm, arraged for maual calculatios ( ) : p tr( A )/ p tr( A )/ p tr( A )/ B A p I B A p I B A p A A A AB A AB I 0 0 0 0 0 p 6 p p 6 5 0 6 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 5 0 6 0 0 8 0 0 6 0 0 0 9 0 0 6 Determiat ad iverse matrix: det A ( ) p 6 6 0 0 A B / p ( 6 / ) 0 0 0 / 0 0 0 0 0 / Characteristic equatio: p f( ) (- ) [ p... p p ] [ 6 + 6] 0 Eigevalues, assumed to be foud by this arbitrary order: Eigevector matrix ad ormalized eigevectors: I+ B 0 0 0 + 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +... + B 0 0 5 0 6 0 0 4 0 0 0 + 0 0 0 0 0 0 0 0 0 5 + 6 0 0 4 + 0 0 0 + 4

. Faddejev algorithm / Matrix with complex eigevalues For complex eigevalues the eigevectors are complex as well. The orm for searchig the largest eigevector is based o the Euclidia orm of the absolute values of the complex umbers (squareroot of the sum of the squares of all real ad imagiary umbers). For istace i oe ca use the first or the secod colum. Normalizatio is based o value for the real part of oe compoet. Faddejev algorithm, arraged for maual calculatios ( ) : p tr( A )/ p tr( A )/ p tr( A )/ B A p I B A p I B A p A A A AB A AB I 0 0 0 p p 4 p 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Determiat ad iverse matrix: det A ( ) p / / A B / p ( / ) 0 / / 0 0 0 0 0 Characteristic equatio: f( ) (-) [ p p... p p ] [ + 4 ] 0 Eigevalues, assumed to be foud by this arbitrary order: + j j Eigevector matrix ad ormalized eigevectors: I+ B +... + B 0 0 0 0 0 0 0 0 0 0 0 0 0 + + 0 0 0 0 + 0 0 + 0 0 0 + 0 j 0 0 j 0 + 0 j j 0 0 0 0 0 j j 0 0 0 0 5

. Faddejev algorithm / Matrix with equal eigevalues The example below shows i fact two cases. For all values the eigevalues are the same, ad two of them are equal. For,, the eigevectors caot be foud safely. For 0 two liearly idepedet eigevectors exist, but they caot be calculated. For 0 both eigevectors are equal. They ca be calculated, but they do ot form a liearly idepedet vector base. Faddejev algorithm, arraged for maual calculatios ( ) : p tr( A )/ p tr( A )/ p tr( A )/ B A p I B A p I B A p A A A AB A AB I 0 0 0 0 p 4 p 5 p 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 Determiat ad iverse matrix: det A ( ) p A B / p ( / ) 0 0 0 0 0 0 0 0 / Characteristic equatio: f( ) (- ) [ p p... p p] [ 4 + 5 ] 0 Eigevalues, two are equal: Eigevector matrix ad ormalized eigevectors: I+ B +... + B 0 + ( ) 0 0 0 0 0 0 0 0 0 0 0 0 0 + 0 0 0 + 0 0 0 0 0 ( A I) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ( A I) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ( A I) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6

4. Rotatio matrices / Geeral Geeral rotatio matrices are built by multiplyig sigle axis matrices. The resultig compoud matrices are uder all circumstaces orthoormal: the determiat is oe, colums are orthoormal, ad rows as well. The iverse matrix is easily foud by trasposig. A arbitrary D rotatio by three Euler agles ca be replaced by a sigle axis rotatio. The rotatio axis is calculated either by the eigevector for the eigevalue or the formula below. The axis is udefied for 0 ad 80. Sigle axis rotatio matrices: Coordiate trasformatios about x-axis, y-axis ad z-axis: x Xx x Yx x Z x X Y Z 0 0 cos( α) si( α) 0 i( α) cos( α) cos( β) 0 i( β) 0 0 si( β) 0 cos( β) cos( γ) si( γ) i( γ) cos( γ) 0 0 0 y 4 y z 4 z x 4 x Coordiate trasformatio, Aircraft Euler agles: x4 A4x Compoud rotatio matrix, usig ψyaw, θpitch ad φroll : A X () φ Y () θ Z ( ψ) 4 4 A 4 cos( θ)cos( ψ) cos( θ)si( ψ) i( θ) cos( φ)si( ψ) + si( φ)si( θ)cos( ψ) cos( φ)cos( ψ) + si( φ)si( θ)si( ψ) si( φ)cos( θ) si( φ)si( ψ) + cos( φ)si( θ)cos( ψ) si( φ)cos( ψ) + cos( φ)si( θ)si( ψ) cos( φ)cos( θ) The Euler theorem says: Each rotatio i D by a matrix R ca be replaced by a equivalet sigle axis rotatio with a agle η about a axis. The trasformatios were itroduced above as coordiate trasformatios. T 4 For a rotatio we have to use the iverse (trasposed) matrix R A. Agle ad axis: η arccos[ 05. ( r + r + r )] 05. r r r r si( η) r r A rotatio matrix has always oe eigevalue For si( η). is the ormalized eigevector for. 0 the axis is udefied. This happes for η 0 ( o rotatio) ad η 80. 7

4. Rotatio matrices / Eigevalues ad eigevectors A sigle rotatio about the z-axis shows already some fudametal features of rotatio matrices. For better uderstadability the stadard eigevalue equatios are show as well. Faddejev algorithm for a rotatio matrix: Rotatio about the z-axis, usig c cos( ψ) ad s si( ψ) p + c p ( + c) p ( + c) c s 0 0 s ( + c) 0 c 0 0 0 0 0 0 c 0 0 0 0 0 c ( + c) s 0 s c 0 ( + c) 0 0 0 0 0 0 0 c 0 0 Determiat ad iverse matrix: det A ( ) p c s A B / p c 0 A 0 0 Characteristic equatio: T f( ) (- ) [ p p... p p] [ ( + c) + ( + c) ] 0 Eigevalues, two are cojugate complex: c+ js c js Eigevector matrix ad ormalized eigevectors: I ( + c) + c s( ) + B+... + B (( ) ( + c) + c 0 0 0 c + 0 0 0 0 0 0 0 ( c) 0 0 c js( c) s( c) js j( c) ( c) js ( c) + js js( c) 0 ( c) + js j( c) 0 0 j 0 0 0 0 0 0 0 s 0 s + js( c) s( c) + js s+ j( c) ( c) + js ( c) js s + js( c) 0 ( c) js s+ j( c) 0 0 j 0 0 0 0 0 s 0 ( A I) c c s c 0 s c 0 0 0 0 0 0 0 0 0 c js ( A I) s c 0 s js 0 0 0 j 0 0 0 0 ( c) js 0 s 0 c js (A I) s c 0 s js 0 0 0 j 0 0 0 0 ( c) + js 0 s 0 8

5. Newto-Bairstow algorithm The Newto-Bairstow algorithm [] fids all roots of a polyomial with real coefficiets. Polyomial with degree with real coefficiets: fx ( ) a x +a x +... a x + a 0 Fid all roots x...x for fx ( ) 0 Fid a quadratic divisor: px ( ) x rx Solve quadratic equatio, usig the Hoffma algorithm [8]. Results are two, oe or o roots. This algorithm is protected agaist divisio overflow. Two roots are either real or cojugate complex. Fid the reduced polyomial with degree m : gx ( ) bm x +... + bx+ b0 Repeat steps util m. The iteratio is executed by a double Horer algorithm [7]. 9

5. Refereces [] D.K.Faddejev ud W.N.Faddejeva Numerische Methode der lieare Algebra R.Oldebourg Verlag Müche, Wie / 979 [] H.R.Schwarz Numerische Mathemati B.G.Teuber Stuttgart / 99 [] R.Zurmühl ud S.Fal Matrize ud ihre Aweduge, Teil Spriger- Verlag Berli... / 984 [4] J.Hosche ud D.Lasser Grudlage der geometrische Dateverarbeitug B.G.Teuber Stuttgart / 99 [5] G.Hoffma Euler Agles ad Projectios http://docs-hoffma.de/euler600.pdf [6] G.Hoffma PostScript Tutor http://docs-hoffma.de/pstutor00.pdf [7] G.Hoffma Matrix Library http://docs-hoffma.de/matrixlib.txt Reame as *.eps [8] G.Hoffma Solutios for a uadratic Equatio http://docs-hoffma.de/quadequ040600.pdf This doc http://docs-hoffma.de/faddejev0007.pdf Jauary 6, 0: www.fho-emde.de/~hoffma/ replaced by docs-hoffma.de/ Gerot Hoffma September 9 / 007 Jauary 6 / 0 Website Load Browser / Clic here 0