ArticleslgStudy

computer science

Bairstow's method

Bairstow'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 Bairstow's method rather than just read about it. In short: In numerical analysis, Bairstow's method is an efficient algorithm for finding the roots of a real polynomial of arbitrary degree. The algorithm first appeared in the appendix of the 1920 book Applied Aerodynamics by Leonard Bairstow.

Bairstow's method — main illustration
Bairstow's method — illustration

Key takeaways

  • Bairstow'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 Bairstow's method to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Bairstow's method from memory before moving on to harder problems.

Reference excerpt

In numerical analysis, Bairstow's method is an efficient algorithm for finding the roots of a real polynomial of arbitrary degree. The algorithm first appeared in the appendix of the 1920 book Applied Aerodynamics by Leonard Bairstow. The algorithm finds the roots in complex conjugate pairs using only real arithmetic. See root-finding algorithm for other algorithms.

Description of the method Bairstow's approach is to use Newton's method to adjust the coefficients u and v in the quadratic x2+ux+v until its roots are also roots of the polynomial being solved. The roots of the quadratic may then be determined, and the polynomial may be divided by the quadratic to eliminate those roots. This process is then iterated until the polynomial becomes quadratic or linear, and all the roots have been determined. Long division of the polynomial to be solved

P(x)=∑i=0naixi by x2+ux+v yields a quotient Q(x)=∑i=0n−2bixi and a remainder cx+d such that

P(x)=(x2+ux+v)(∑i=0n−2bixi)+(cx+d). A second division of Q(x) by x2+ux+v is performed to yield a quotient R(x)=∑i=0n−4fixi and remainder gx+h with

Q(x)=(x2+ux+v)(∑i=0n−4fixi)+(gx+h). The variables c,d,g,h, and the {bi},{fi} are functions of u and v. They can be found recursively as follows.

bn=bn−1=0,fn=fn−1=0,bi=ai+2−ubi+1−vbi+2fi=bi+2−ufi+1−vfi+2(i=n−2,…,0),c=a1−ub0−vb1,g=b1−uf0−vf1,d=a0−vb0,h=b0−vf0. The quadratic evenly divides the polynomial when

c(u,v)=d(u,v)=0. Values of u and v for which this occurs can be discovered by picking starting values and iterating Newton's method in two dimensions

[uv]:=[uv]−[∂c∂u∂c∂v∂d∂u∂d∂v]−1[cd]:=[uv]−1vg2+h(h−ug)[−hg−gvgu−h][cd] until convergence occurs. This method to find the zeroes of polynomials can thus be easily implemented with a programming language or even a spreadsheet.

Example The task is to determine a pair of roots of the polynomial

f(x)=6x5+11x4−33x3−33x2+11x+6. As first quadratic polynomial one may choose the normalized polynomial formed from the leading three coefficients of f(x),

u=an−1an=116;v=an−2an=−336. The iteration then produces the table

After eight iterations the method produced a quadratic factor that contains the roots −1/3 and −3 within the represented precision. The step length from the fourth iteration on demonstrates the superlinear speed of convergence.

Performance Bairstow's algorithm inherits the local quadratic convergence of Newton's method, except in the case of quadratic factors of multiplicity higher than 1, when convergence to that factor is linear. A particular kind of instability is observed when the polynomial has odd degree and only one real root. Quadratic factors that have a small value at this real root tend to diverge to infinity.

The images represent pairs (s,t)∈[−3,3]2. Points in the upper half plane t > 0 correspond to a linear factor with roots s±it, that is x2+ux+v=(x−s)2+t2. Points in the lower half plane t < 0 correspond to quadratic factors with roots s±t, that is, x2+ux+v=(x−s)2−t2, so in general (u,v)=(−2s,s2+t|t|). Points are colored according to the final point of the Bairstow iteration, black points indicate divergent behavior. The first image is a demonstration of the single real root case. The second indicates that one can remedy the divergent behavior by introducing an additional real root, at the cost of slowing down the speed of convergence. One can also in the case of odd degree polynomials first find a real root using Newton's method and/or an interval shrinking method, so that after deflation a better-behaved even-degree polynomial remains. The third image corresponds to the example above.

References

External links Bairstow's Algorithm on Mathworld Numerical Recipes in Fortran 77 Online Example polynomial root solver (deg(P) ≤ 10) using Bairstow's Method LinBairstowSolve, an open-source C++ implementation of the Lin-Bairstow method available as a method of the VTK library Online root finding of a polynomial – Bairstow's method by Farhad Mazlumi

Illustrations

Bairstow's method illustration
Bairstow's method illustration

Worked examples

Example 1 — a first encounter with Bairstow's method

Start with the simplest possible case. Write down what Bairstow'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 Bairstow'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 Bairstow'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 Bairstow's method

In research
Bairstow'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 Bairstow'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
Bairstow'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 Bairstow'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 “Bairstow's method” →

How to study Bairstow's method in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Bairstow'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 Bairstow's method out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Bairstow's method in simple terms?

In numerical analysis, Bairstow's method is an efficient algorithm for finding the roots of a real polynomial of arbitrary degree. The algorithm first appeared in the appendix of the 1920 book Applied Aerodynamics by Leonard Bairstow.

Why does Bairstow'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 Bairstow'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 Bairstow's method.

Tags

  • Polynomial factorization algorithms

Keep exploring