ArticleslgStudy

science

Shanks transformation

Shanks transformation is a 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 Shanks transformation rather than just read about it. In short: In numerical analysis, the Shanks transformation is a non-linear series acceleration method to increase the rate of convergence of a sequence. This method is named after Daniel Shanks, who rediscovered this sequence transformation in 1955.

Shanks transformation — main illustration
Shanks transformation — illustration

Key takeaways

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

Reference excerpt

In numerical analysis, the Shanks transformation is a non-linear series acceleration method to increase the rate of convergence of a sequence. This method is named after Daniel Shanks, who rediscovered this sequence transformation in 1955. It was first derived and published by R. Schmidt in 1941.

Formulation For a sequence {am}m∈ℕ the series

A=∑m=0∞am is to be determined. First, the partial sum An is defined as:

An=∑m=0nam and forms a new sequence {An}n∈ℕ. Provided the series converges, An will also approach the limit A as n→∞. The Shanks transformation S(An) of the sequence An is the new sequence defined by

S(An)=An+1An−1−An2An+1−2An+An−1=An+1−(An+1−An)2(An+1−An)−(An−An−1) where this sequence S(An) often converges more rapidly than the sequence An. Further speed-up may be obtained by repeated use of the Shanks transformation, by computing S2(An)=S(S(An)), S3(An)=S(S(S(An))), etc. Note that the non-linear transformation as used in the Shanks transformation is essentially the same as used in Aitken's delta-squared process so that as with Aitken's method, the right-most expression in S(An)'s definition (i.e. S(An)=An+1−(An+1−An)2(An+1−An)−(An−An−1)) is more numerically stable than the expression to its left (i.e. S(An)=An+1An−1−An2An+1−2An+An−1). Both Aitken's method and the Shanks transformation operate on a sequence, but the sequence the Shanks transformation operates on is usually thought of as being a sequence of partial sums, although any sequence may be viewed as a sequence of partial sums.

Example

As an example, consider the slowly convergent series

4∑k=0∞(−1)k12k+1=4(1−13+15−17+⋯) which has the exact sum π ≈ 3.14159265. The partial sum A6 has only one digit accuracy, while six-figure accuracy requires summing about 400,000 terms. In the table below, the partial sums An, the Shanks transformation S(An) on them, as well as the repeated Shanks transformations S2(An) and S3(An) are given for n up to 12. The figure to the right shows the absolute error for the partial sums and Shanks transformation results, clearly showing the improved accuracy and convergence rate.

The Shanks transformation S(A1) already has two-digit accuracy, while the original partial sums only establish the same accuracy at A24. Remarkably, S3(A3) has six digits accuracy, obtained from repeated Shanks transformations applied to the first seven terms A0,…,A6. As mentioned before, An only obtains 6-digit accuracy after summing about 400,000 terms.

Motivation The Shanks transformation is motivated by the observation that — for larger n — the partial sum An quite often behaves approximately as

An=A+αqn, with |q|<1 so that the sequence converges transiently to the series result A for n→∞. So for n−1, n and n+1 the respective partial sums are:

An−1=A+αqn−1,An=A+αqnandAn+1=A+αqn+1. These three equations contain three unknowns: A, α and q. Solving for A gives

A=An+1An−1−An2An+1−2An+An−1. In the (exceptional) case that the denominator is equal to zero: then An=A for all n.

Generalized Shanks transformation The generalized kth-order Shanks transformation is given as the ratio of the determinants:

Sk(An)=|An−k⋯An−1AnΔAn−k⋯ΔAn−1ΔAnΔAn−k+1⋯ΔAnΔAn+1⋮⋮⋮ΔAn−1⋯ΔAn+k−2ΔAn+k−1||1⋯11ΔAn−k⋯ΔAn−1ΔAnΔAn−k+1⋯ΔAnΔAn+1⋮⋮⋮ΔAn−1⋯ΔAn+k−2ΔAn+k−1|, with ΔAp=Ap+1−Ap. It is the solution of a model for the convergence behaviour of the partial sums An with k distinct transients:

An=A+∑p=1kαpqpn. This model for the convergence behaviour contains 2k+1 unknowns. By evaluating the above equation at the elements An−k,An−k+1,…,An+k and solving for A, the above expression for the kth-order Shanks transformation is obtained. The first-order generalized Shanks transformation is equal to the ordinary Shanks transformation: S1(An)=S(An). The generalized Shanks transformation is closely related to Padé approximants and Padé tables. Note: The calculation of determinants requires many arithmetic operations to make, however Peter Wynn discovered a recursive evaluation procedure called epsilon-algorithm which avoids calculating the determinants.

See also Aitken's delta-squared process Anderson acceleration Rate of convergence Richardson extrapolation Sequence transformation

Notes

References Shanks, D. (1955), "Non-linear transformation of divergent and slowly convergent sequences", Journal of Mathematics and Physics, 34 (1–4): 1–42, doi:10.1002/sapm19553411 Schmidt, R.J. (1941), "On the numerical solution of linear simultaneous equations by an iterative method", Philosophical Magazine, 32 (214): 369–383, doi:10.1080/14786444108520797 Van Dyke, M.D. (1975), Perturbation methods in fluid mechanics (annotated ed.), Parabolic Press, ISBN 0-915760-01-0 Bender, C.M.; Orszag, S.A. (1999), Advanced mathematical methods for scientists and engineers, Springer, ISBN 0-387-98931-5 Weniger, E.J. (1989). "Nonlinear sequence transformations for the acceleration of convergence and the summation of divergent series". Computer Physics Reports. 10 (5–6): 189–371. arXiv:math.NA/0306302. Bibcode:1989CoPhR..10..189W. doi:10.1016/0167-7977(89)90011-7. Brezinski, C.; Redivo-Zaglia, M.; Saad, Y. (2018), "Shanks sequence transformations and Anderson acceleration", SIAM Review, 60 (3): 646–669, doi:10.1137/17M1120725, hdl:11577/3270110 Senhadji, M.N. (2001), "On condition numbers of the Shanks transformation", J. Comput. Appl. Math., 135 (1): 41–61, Bibcode:2001JCoAM.135...41S, doi:10.1016/S0377-0427(00)00561-6 Wynn, P. (1956), "On a device for computing the em(Sn) transformation", Mathematical Tables and Other Aids to Computation, 10 (54): 91–96, doi:10.2307/2002183, JSTOR 2002183 Wynn, P. (1962), "Acceleration techniques for iterated vector and matrix problems", Math. Comp., 16 (79): 301–322, doi:10.1090/S0025-5718-1962-0145647-X

Worked examples

Example 1 — a first encounter with Shanks transformation

Start with the simplest possible case. Write down what Shanks transformation claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In 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 Shanks transformation 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 Shanks transformation 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 Shanks transformation

In research
Shanks transformation appears in 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 Shanks transformation 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
Shanks transformation is common in secondary-school and first-year university syllabi. It links to neighbouring topics Iterative methods, Series acceleration methods, so understanding it makes those chapters shorter.
In everyday life
Look for Shanks transformation 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 “Shanks transformation” →

How to study Shanks transformation in 20 minutes

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

Frequently asked questions

What is Shanks transformation in simple terms?

In numerical analysis, the Shanks transformation is a non-linear series acceleration method to increase the rate of convergence of a sequence. This method is named after Daniel Shanks, who rediscovered this sequence transformation in 1955.

Why does Shanks transformation matter?

Because it connects several 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 Shanks transformation?

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 Shanks transformation.

Tags

  • Iterative methods
  • Series acceleration methods

Keep exploring