Faddeev-Leverrier algorithm

from Wikipedia, the free encyclopedia

The algorithm by Faddejew-Leverrier (after Dmitri Konstantinowitsch Faddejew and Urbain Le Verrier ) is a method that, for arbitrary square matrices, the coefficients of the characteristic polynomial defined by

determined. In addition, the algorithm returns the determinant and, for regular input matrices, the inverse of .

Basics

The algorithm is based on the following recursion rule for the matrices and the coefficients

Here is what is known as the trace of a square matrix

Recursion has other interesting properties:

  • Because of

one immediately obtains the value of the determinants of .

  • Besides, one can use the relationship

check that the recursion terminates correctly. By reshaping one obtains the inverse in particular for regular things:

algorithm

This results in the following algorithm:

/* Eingabe: quadratische Matrix A der Dimension n */

B[0] = 0;
c[n] = 1;

for (k = 1; k <= n; k++)
{
    B[k]   =   A * B[k-1] + c[n-k+1] * I;
    c[n-k] = - 1/k * trace( A * B[k] );
}

B[n+1] = A * B[n] + c[0] * I;

if ( B[n+1] != O )
{
    printf("Fehler: Algorithmus terminiert nicht korrekt!");
}

if ( c[0] != 0 )
{
    Ainv = -1/c[0] * B[n];
}
else
{
    printf("Die Eingabematrix ist singulär!");
}

/*
    Ausgabe:
    c[0] , ..., c[n]  : Koeffizienten des charakteristischen Polynoms von A
    (-1)^n * c[0]     : Determinante von A
    Ainv              : Inverse von A (sofern c[0] ungleich 0)
*/

Numerical example

For matrices of small dimensions ( ) it is possible to carry out the algorithm manually. We consider the following simple example:

Then the algorithm returns:

It turns out that what is an additional check for the correctness of the invoice (see above).

The characteristic polynomial of the matrix is thus:

The following also applies:

For the inverse of we get from the above calculation:

Reason for the correctness of the algorithm

It is obvious that the algorithm always terminates . The partial correctness of the algorithm can be justified in different ways. Most of the literature argues with the Newton identities , the properties of determinants and adjuncts as well as the Cayley-Hamilton theorem (see and evidence archive on the Wikibooks, see web links ). An elegant recent proof takes a different route and uses the Laplace transform .

Effort, parallelization and numerical properties

The Faddejew-Leverrier algorithm has an expense of the order of magnitude (essentially matrix multiplications ). This is much better than the effort that would have to be invested in a naive algorithm based on the calculation of determinants according to the Leibniz formula : The evaluation of summands leads here to a time complexity of according to Stirling's formula . The calculation by means of Gaussian elimination with an effort of the order of magnitude is at least more favorable for the pure determinant calculation, but if one is also interested in the coefficients of the characteristic polynomial, it requires increased technical effort for the implementation in a computer program (one needs polynomial arithmetic for the Matrix entries).

The algorithm can be efficiently parallelized. More details can be found in the original work by Csanky as well as in the overview in algorithms for parallel determinant computation .

A disadvantage of both the Faddejew-Leverrier algorithm and the calculation using Gaussian elimination is the occurrence of divisions, which is contrary to the original definition of the determinant, which does without divisions and is therefore also applicable to matrices whose entries are elements of a commutative ring with one element are. In this case, there are division-free algorithms such as B. the algorithm by Samuelson-Berkowitz , which have a comparable effort.

Caution is advised with "almost singular" matrices, i. H. Matrices where is very small: Here the algorithm of Faddejew-Leverrier regarding the calculation of the inverse is numerically unstable because of the division by .

Historical

The algorithm was described by Urbain Jean Joseph Leverrier as early as 1840 , but was then forgotten for a long time. From 1935 onwards, it was rediscovered and further developed several times, including by P. Horst, Jean-Marie Souriau , Dmitri Konstantinowitsch Faddejew and Sominski, JS Frame, U. Wegner and Csanky. The algorithm in its present form comes from Faddejew, which also explains the common name used today. Further details on the historical development (with corresponding references) can be found e.g. B. Householder's book.

literature

Web links

Individual evidence

  1. JS Frame: Matrix functions and applications , IEEE Spectrum 1 (1964) (five articles in numbers 3–7)
  2. Shui-Hung Hou: Classroom Note: A Simple Proof of the Leverrier-Faddeev Characteristic Polynomial Algorithm , SIAM, 1998, SIAM Review: 40 (3), pp. 706–709, doi: 10.1137 / S003614459732076X , http: // link .aip.org / link /? SIR / 40/706/1  ( Page no longer available , search in web archivesInfo: The link was automatically marked as defective. Please check the link according to the instructions and then remove this notice.@1@ 2Template: Dead Link / link.aip.org  
  3. a b L. Csanky: Fast Parallel Matrix Inversion Algorithms . SIAM Journal on Computing, 618-623, 1976, doi: 10.1137 / 0205040
  4. ^ H. Burbach: Algorithms for the parallel calculation of determinants . Diploma thesis, University of Dortmund, October 1992, online version (PDF file; 801 kB)
  5. Urbain Le Verrier : Sur les variations séculaires des éléments des orbites pour les sept planètes principales , J. de Math. (1) 5, 230 (1840), online version of the article available on the website of the Bibliotheque nationale de France digital library (Gallica)
  6. ^ Paul Horst: A method of determining the coefficients of a characteristic equation . Ann. Math. Stat. 6, 83-84 (1935), doi: 10.1214 / aoms / 1177732612
  7. ^ Jean-Marie Souriau : Une méthode pour la décomposition spectrale et l'inversion des matrices. Comptes Rend. 227, 1010-1011 (1948)
  8. DK Faddeev, IS Sominski: Sbornik zadatch po vyshej algebre . Moscow-Leningrad 1949
  9. JS Frame: A simple recursion formula for inverting a matrix (abstract) . Bull. Am. Math. Soc. 55, 1045 (1949), doi: 10.1090 / S0002-9904-1949-09310-2
  10. U. Wegner: Comments on the matrix theory . Z. angew. Math. Mech. 33, 262-264 (1953), doi: 10.1002 / zamm.19530330807
  11. ^ Alston Scott Householder : The Theory of Matrices in Numerical Analysis . Dover, New York 1975, ISBN 0-486-61781-5