ArticleslgStudy

computer science

Graeffe's method

Graeffe's method is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Graeffe's method rather than just read about it. In short: In mathematics, Graeffe's method or Dandelin–Lobachesky–Graeffe method is an algorithm for finding all of the roots of a polynomial. It was developed independently by Germinal Pierre Dandelin in 1826 and Lobachevsky in 1834.

Key takeaways

  • Graeffe's method belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Graeffe's method to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Graeffe's method from memory before moving on to harder problems.

Reference excerpt

In mathematics, Graeffe's method or Dandelin–Lobachesky–Graeffe method is an algorithm for finding all of the roots of a polynomial. It was developed independently by Germinal Pierre Dandelin in 1826 and Lobachevsky in 1834. In 1837 Karl Heinrich Gräffe also discovered the principal idea of the method. The method separates the roots of a polynomial by squaring them repeatedly. This squaring of the roots is done implicitly, that is, only working on the coefficients of the polynomial. Finally, Viète's formulas are used in order to approximate the roots.

Dandelin–Graeffe iteration Let p(x) be a polynomial of degree n

p(x)=(x−x1)⋯(x−xn). Then

p(−x)=(−1)n(x+x1)⋯(x+xn). Let q(x) be the polynomial which has the squares x12,⋯,xn2 as its roots,

q(x)=(x−x12)⋯(x−xn2). Then we can write:

q(x2)=(x2−x12)⋯(x2−xn2)=(x−x1)(x+x1)⋯(x−xn)(x+xn)={(x−x1)⋯(x−xn)}×{(x+x1)⋯(x+xn)}=p(x)×{(−1)n(−x−x1)⋯(−x−xn)}=p(x)×{(−1)np(−x)}=(−1)np(x)p(−x) q(x) can now be computed by algebraic operations on the coefficients of the polynomial p(x) alone. Let:

p(x)=xn+a1xn−1+⋯+an−1x+anq(x)=xn+b1xn−1+⋯+bn−1x+bn then the coefficients are related by

bk=(−1)kak2+2∑j=0k−1(−1)jaja2k−j,a0=b0=1. Graeffe observed that if one separates p(x) into its odd and even parts:

p(x)=pe(x2)+xpo(x2), then one obtains a simplified algebraic expression for q(x):

q(x)=(−1)n(pe(x)2−xpo(x)2). This expression involves the squaring of two polynomials of only half the degree, and is therefore used in most implementations of the method. Iterating this procedure several times separates the roots with respect to their magnitudes. Repeating k times gives a polynomial of degree n:

qk(y)=yn+ak1yn−1+⋯+akn−1y+akn with roots

y1=x12k,y2=x22k,…,yn=xn2k. If the magnitudes of the roots of the original polynomial were separated by some factor ρ>1, that is, |xk|≥ρ|xk+1|, then the roots of the k-th iterate are separated by a fast growing factor

ρ2k≥1+2k(ρ−1).

Classical Graeffe's method Next the Vieta relations are used

a1k=−(y1+y2+⋯+yn)a2k=y1y2+y1y3+⋯+yn−1yn⋮ank=(−1)n(y1y2⋯yn). If the roots x1,…,xn are sufficiently separated, say by a factor ρ>1, |xm|≥ρ|xm+1|, then the iterated powers y1,y2,...,yn of the roots are separated by the factor ρ2k, which quickly becomes very big. The coefficients of the iterated polynomial can then be approximated by their leading term,

a1k≈−y1 a2k≈y1y2 and so on, implying

y1≈−a1k,y2≈−a2k/a1k,…yn≈−ank/an−1k. Finally, logarithms are used in order to find the absolute values of the roots of the original polynomial. These magnitudes alone are already useful to generate meaningful starting points for other root-finding methods. To also obtain the angle of these roots, a multitude of methods has been proposed, the most simple one being to successively compute the square root of a (possibly complex) root of qm(y), m ranging from k to 1, and testing which of the two sign variants is a root of qm−1(x). Before continuing to the roots of qm−2(x), it might be necessary to numerically improve the accuracy of the root approximations for qm−1(x), for instance by Newton's method. Graeffe's method works best for polynomials with simple real roots, though it can be adapted for polynomials with complex roots and coefficients, and roots with higher multiplicity. For instance, it has been observed that for a root xℓ+1=xℓ+2=⋯=xℓ+d with multiplicity d, the fractions

|(aℓ+im−1)2aℓ+im| tend to (di) for i=0,1,…,d. This allows to estimate the multiplicity structure of the set of roots. From a numerical point of view, this method is problematic since the coefficients of the iterated polynomials span very quickly many orders of magnitude, which implies serious numerical errors. One second, but minor concern is that many different polynomials lead to the same Graeffe iterates.

Tangential Graeffe method This method replaces the numbers by truncated power series of degree 1, also known as dual numbers. Symbolically, this is achieved by introducing an "algebraic infinitesimal" ε with the defining property ε2=0. Then the polynomial p(x+ε)=p(x)+εp′(x) has roots xm−ε, with powers

(xm−ε)2k=xm2k−ε2kxm2k−1=ym+εy˙m. Thus the value of xm is easily obtained as fraction xm=−2kymy˙m. This kind of computation with infinitesimals is easy to implement analogous to the computation with complex numbers. If one assumes complex coordinates or an initial shift by some randomly chosen complex number, then all roots of the polynomial will be distinct and consequently recoverable with the iteration.

Renormalization Every polynomial can be scaled in domain and range such that in the resulting polynomial the first and the last coefficient have size one. If the size of the inner coefficients is bounded by M, then the size of the inner coefficients after one stage of the Graeffe iteration is bounded by nM2. After k stages one gets the bound n2k−1M2k for the inner coefficients. To overcome the limit posed by the growth of the powers, Malajovich–Zubelli propose to represent coefficients and intermediate results in the kth stage of the algorithm by a scaled polar form

c=αe−2kr, where α=c|c| is a complex number of unit length and r=−2−klog⁡|c| is a positive real. Splitting off the power 2k in the exponent reduces the absolute value of c to the corresponding dyadic root. Since this preserves the magnitude of the (representation of the) initial coefficients, this process was named renormalization. Multiplication of two numbers of this type is straightforward, whereas addition is performed following the factorization c3=c1+c2=|c1|⋅(α1+α2|c2||c1|), where c1 is chosen as the larger of both numbers, that is, r1<r2. Thus

α3=s|s| and r3=r1+2−klog⁡|s| with s=α1+α2e2k(r1−r2). The coefficients a0,a1,…,an of the final stage k of the Graeffe iteration, for some reasonably large value of k, are represented by pairs (αm,rm), m=0,…,n. By identifying the corners of the convex envelope of the point set {(m,rm):m=0,…,n} one can determine the multiplicities of the roots of the polynomial. Combining this renormalization with the tangent iteration one can extract directly from the coefficients at the corners of the envelope the roots of the original polynomial.

See also Root-finding algorithm

References

Weisstein, Eric W. "Graeffe's Method". MathWorld. Malajovich, Gregorio; Zubelli, Jorge P. (2001). "Tangent Graeffe iteration". Numerische Mathematik. 89 (4): 749–782. arXiv:math/9908150. doi:10.1007/s002110100278. S2CID 100025.

Worked examples

Example 1 — a first encounter with Graeffe's method

Start with the simplest possible case. Write down what Graeffe's method claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Graeffe's method before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Graeffe's method ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Graeffe's method

In research
Graeffe's method appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Graeffe's method in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Graeffe's method is common in secondary-school and first-year university syllabi. It links to neighbouring topics Polynomial factorization algorithms, so understanding it makes those chapters shorter.
In everyday life
Look for Graeffe's method outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Graeffe's method” →

How to study Graeffe's method in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Graeffe's method means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Graeffe's method out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Graeffe's method in simple terms?

In mathematics, Graeffe's method or Dandelin–Lobachesky–Graeffe method is an algorithm for finding all of the roots of a polynomial. It was developed independently by Germinal Pierre Dandelin in 1826 and Lobachevsky in 1834.

Why does Graeffe's method matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Graeffe's method?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Graeffe's method.

Tags

  • Polynomial factorization algorithms

Keep exploring