next up previous contents
Next: Change of variables Up: Notes on numerical integration Previous: Digit-shift test

Richardson Extrapolation

 

Plotting T(h) as a function of tex2html_wrap_inline799 , Figure 3 shows that the behavior tex2html_wrap_inline977 is evident for even the modest values N=2, 4, 8. This plot suggests a very powerful method of finding much better estimates for the integral tex2html_wrap_inline981 : simply extrapolate the data in the plot to h=0. In general, we will not know a priori the analytic derivatives f'(a) and f'(b) and thus the slope tex2html_wrap_inline989 of the approach to the origin in the plot. But, with two values of T(h) we can determine a very good estimate. Algebraically, we simply solve

eqnarray321

to find the value

  equation323

The fourth column of Table 1 shows that the resulting extrapolation formula (16) indeed converges much more quickly than T(h), as tex2html_wrap_inline995 in fact.

   figure332
Figure 3: Linear behavior of the trapezoid rule when viewed as a function of tex2html_wrap_inline799 .

The extrapolation (16) translates directly into an uniform-interval method. From the definition of the trapezoid rule (13),

eqnarray342

where tex2html_wrap_inline999 with tex2html_wrap_inline1001 denoting sample values at the intermediate points which T(h/2) uses but T(h) does not. Summing the above two formulae then gives an explicit interval method,

  eqnarray370

which is none other than the familiar Simpson's rule! For this rule, we denote the fact that the spacing between sample points tex2html_wrap_inline813 is now h/2 and not h by writing S(h/2). The final column of Table 1 confirms numerically that Simpson's rule evaluated in the traditional way is precisely equivalent to the extrapolation (16).

Understanding this relationship allows us to rapidly determine the error in Simpson's from the error in the trapezoid rule (16):

eqnarray385

where the quadratic terms have cancelled by the construction which led to (16), leaving only the quartic term. The patterns of shifting digits in Table 1 again confirm our computation of the prefactor,

eqnarray415

One may proceed in this manner to methods of arbitrarily high order. For instance, extrapolating T(h) to tex2html_wrap_inline1017 as a quadratic function using the information which T(h), T(h/2) and T(h/4) provide results in the sixth-order approach known as Bode's rule.

The idea of extracting an exact analytic result by extrapolating several calculations at finite values of a parameter to the result at zero value is an extremely powerful tool in scientific computing, where it is known as Richardson extrapolation. (The same idea occurs in statistical mechanics where it is often known as finite-size scaling.)


next up previous contents
Next: Change of variables Up: Notes on numerical integration Previous: Digit-shift test

Tomas Arias
Sun Mar 5 13:48:24 EST 2000