Puneet Varma (Editor)

Durand–Kerner method

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In numerical analysis, the Durand–Kerner method, discovered by Karl Weierstrass in 1891 and rediscovered independently by Durand in 1960 and Kerner in 1966, is a root-finding algorithm for solving polynomial equations. In other words, the method can be used to solve numerically the equation

Contents

ƒ(x) = 0

where ƒ is a given polynomial, which can be taken to be scaled so that the leading coefficient is 1.

Explanation

The explanation is for equations of degree four. It is easily generalized to other degrees.

Let the polynomial ƒ be defined by

ƒ(x) = x4 + ax3 + bx2 + cx + d

for all x.

The known numbers a, b, c, d are the coefficients.

Let the (complex) numbers P,Q,R,S be the roots of this polynomial ƒ.

Then

ƒ(x) = (xP)(xQ)(xR)(xS)

for all x. One can isolate the value P from this equation,

P = x f ( x ) ( x Q ) ( x R ) ( x S ) .

So if used as a fixed point iteration

x 1 := x 0 f ( x 0 ) ( x 0 Q ) ( x 0 R ) ( x 0 S ) ,

it is strongly stable in that every initial point x0Q,R,S delivers after one iteration the root P=x1.

Furthermore, if one replaces the zeros Q, R and S by approximations qQ, rR, sS, such that q,r,s are not equal to P, then P is still a fixed point of the perturbed fixed point iteration

x k + 1 := x k f ( x k ) ( x k q ) ( x k r ) ( x k s ) ,

since

P f ( P ) ( P q ) ( P r ) ( P s ) = P 0 = P .

Note that the denominator is still different from zero. This fixed point iteration is a contraction mapping for x around P.

The clue to the method now is to combine the fixed point iteration for P with similar iterations for Q,R,S into a simultaneous iteration for all roots.

Initialize p, q, r, s:

p0 := (0.4 + 0.9 i)0 ; q0 := (0.4 + 0.9 i)1 ; r0 := (0.4 + 0.9 i)2 ; s0 := (0.4 + 0.9 i)3 ;

There is nothing special about choosing 0.4 + 0.9 i except that it is neither a real number nor a root of unity.

Make the substitutions for n = 1,2,3,···

Re-iterate until the numbers p, q, r, s stop essentially changing in relative to the desired precision. Then they have the values P, Q, R, S in some order and in the chosen precision. So the problem is solved.

Note that you must use complex number arithmetic, and that the roots are found simultaneously rather than one at a time.

Variations

This iteration procedure, like the Gauss–Seidel method for linear equations, computes one number at a time based on the already computed numbers. A variant of this procedure, like the Jacobi method, computes a vector of root approximations at a time. Both variant are effective root-finding algorithms.

One could also choose the initial values for p,q,r,s by some other procedure, even randomly, but in a way that

  • they are inside some not-too-large circle containing also the roots of ƒ(x), e.g. the circle around the origin with radius 1 + max ( | a | , | b | , | c | , | d | ) , (where 1,a,b,c,d are the coefficients of ƒ(x))
  • and that

  • they are not too close to each other,
  • which may increasingly become a concern as the degree of the polynomial increases.

    If the coefficients are real and the polynomial has odd degree, then it must have at least one real root. To find this, use a real value of p0 as the initial guess and make q0 and r0, etc, complex conjugate pairs. Then the iteration will preserve these properties; that is, pn will always be real, and qn and rn, etc, will always be conjugate. In this way, the pn will converge to a real root P. Alternatively, make all of the initial guesses real; they will remain so.

    Example

    This example is from the reference 1992. The equation solved is x3 − 3x2 + 3x − 5 = 0. The first 4 iterations move p, q, r seemingly chaotically, but then the roots are located to 1 decimal. After iteration number 5 we have 4 correct decimals, and the subsequent iteration number 6 confirms that the computed roots are fixed. This general behaviour is characteristic for the method.

    Note that the equation has one real root and one pair of complex conjugate roots, and that the sum of the roots is 3.

    Derivation of the method via Newton's method

    For every n-tuple of complex numbers, there is exactly one monic polynomial of degree n that has them as its zeros (keeping multiplicities). This polynomial is given by multiplying all the corresponding linear factors, that is

    g z ( X ) = ( X z 1 ) ( X z n ) .

    This polynomial has coefficients that depend on the prescribed zeros,

    g z ( X ) = X n + g n 1 ( z ) X n 1 + + g 0 ( z ) .

    Those coefficients are, up to a sign, the elementary symmetric polynomials α 1 ( z ) , , α n ( z ) of degrees 1,...,n.

    To find all the roots of a given polynomial f ( X ) = X n + c n 1 X n 1 + + c 0 with coefficient vector ( c n 1 , , c 0 ) simultaneously is now the same as to find a solution vector to the system

    c 0 = g 0 ( z ) = ( 1 ) n α n ( z ) = ( 1 ) n z 1 z n c 1 = g 1 ( z ) = ( 1 ) n 1 α n 1 ( z ) c n 1 = g n 1 ( z ) = α 1 ( z ) = ( z 1 + z 2 + + z n ) .

    The Durand–Kerner method is obtained as the multidimensional Newton's method applied to this system. It is algebraically more comfortable to treat those identities of coefficients as the identity of the corresponding polynomials, g z ( X ) = f ( X ) . In the Newton's method one looks, given some initial vector z , for an increment vector w such that g z + w ( X ) = f ( X ) is satisfied up to second and higher order terms in the increment. For this one solves the identity

    f ( X ) g z ( X ) = k = 1 n g z ( X ) z k w k = k = 1 n w k j k ( X z j ) .

    If the numbers z 1 , , z n are pairwise different, then the polynomials in the terms of the right hand side form a basis of the n-dimensional space C [ X ] n 1 of polynomials with maximal degree n − 1. Thus a solution w to the increment equation exists in this case. The coordinates of the increment w are simply obtained by evaluating the increment equation

    k = 1 n w k j k ( X z j ) = f ( X ) j = 1 n ( X z j )

    at the points X = z k , which results in

    w k j k ( z k z j ) = w k g z ( z k ) = f ( z k ) , that is w k = f ( z k ) j k ( z k z j ) .

    Root inclusion via Gerschgorin's circles

    In the quotient ring (algebra) of residue classes modulo ƒ(X), the multiplication by X defines an endomorphism that has the zeros of ƒ(X) as eigenvalues with the corresponding multiplicities. Choosing a basis, the multiplication operator is represented by its coefficient matrix A, the companion matrix of ƒ(X) for this basis.

    Since every polynomial can be reduced modulo ƒ(X) to a polynomial of degree n − 1 or lower, the space of residue classes can be identified with the space of polynomials of degree bounded by n − 1. A problem specific basis can be taken from Lagrange interpolation as the set of n polynomials

    b k ( X ) = 1 j n , j k ( X z j ) , k = 1 , , n ,

    where z 1 , , z n C are pairwise different complex numbers. Note that the kernel functions for the Lagrange interpolation are L k ( X ) = b k ( X ) b k ( z k ) .

    For the multiplication operator applied to the basis polynomials one obtains from the Lagrange interpolation

    where w j = f ( z j ) b j ( z j ) are again the Weierstrass updates.

    The companion matrix of ƒ(X) is therefore

    A = d i a g ( z 1 , , z n ) + ( 1 1 ) ( w 1 , , w n ) .

    From the transposed matrix case of the Gershgorin circle theorem it follows that all eigenvalues of A, that is, all roots of ƒ(X), are contained in the union of the disks D ( a k , k , r k ) with a radius r k = j k | a j , k | .

    Here one has a k , k = z k + w k , so the centers are the next iterates of the Weierstrass iteration, and radii r k = ( n 1 ) | w k | that are multiples of the Weierstrass updates. If the roots of ƒ(X) are all well isolated (relative to the computational precision) and the points z 1 , , z n C are sufficidently close approximations to these roots, then all the disks will become disjoint, so each one contains exactly one zero. The midpoints of the circles will be better approximations of the zeros.

    Every conjugate matrix T A T 1 of A is as well a companion matrix of ƒ(X). Choosing T as diagonal matrix leaves the structure of A invariant. The root close to z k is contained in any isolated circle with center z k regardless of T. Choosing the optimal diagonal matrix T for every index results in better estimates (see ref. Petkovic et al. 1995).

    Convergence results

    The connection between the Taylor series expansion and Newton's method suggests that the distance from z k + w k to the corresponding root is of the order O ( | w k | 2 ) , if the root is well isolated from nearby roots and the approximation is sufficiently close to the root. So after the approximation is close, Newton's method converges quadratically; that is: the error is squared with every step (which will greatly reduce the error once it is less than 1). In the case of the Durand–Kerner method, convergence is quadratic if the vector z = ( z 1 , , z n ) is close to some permutation of the vector of the roots of ƒ.

    For the conclusion of linear convergence there is a more specific result (see ref. Petkovic et al. 1995). If the initial vector z and its vector of Weierstrass updates w = ( w 1 , , w n ) satisfies the inequality

    max 1 k n | w k | 1 5 n min 1 j < k n | z k z j | ,

    then this inequality also holds for all iterates, all inclusion disks D ( z k + w k , ( n 1 ) | w k | ) are disjoint and linear convergence with a contraction factor of 1/2 holds. Further, the inclusion disks can in this case be chosen as

    D ( z k + w k , 1 4 | w k | ) k = 1 , , n ,

    each containing exactly one zero of ƒ.

    References

    Durand–Kerner method Wikipedia