Richardson's Extrapolation: cancelling the leading error term

The idea: use the error's own structure against it

Most numerical integration rules do not just produce a number, they produce a number whose error follows a predictable pattern in the step size h. If A(h) is the approximation and A the exact value, a rule of order p satisfies


A(h) = A + C hp + (higher-order terms)


with C a constant that does not depend on h. Ordinary refinement just makes h smaller and waits.


Richardson's extrapolation does something better: it computes the rule at two step sizes and forms a combination in which the C hp term cancels exactly. The cost is one extra evaluation of the rule; the payoff is a jump in order.

Deriving the formula

Write the expansion at h and at h/2:


  • A(h)   = A + C hp + …
  • A(h/2) = A + C hp / 2p + …


Multiply the second line by 2p so both carry the same error coefficient C hp, then subtract the first:


2p A(h/2) − A(h) = (2p − 1) A + (higher-order terms)


Dividing through gives the general result:


AR = ( 2p · A(h/2) − A(h) ) / ( 2p − 1 )


Two points deserve emphasis. First, p is an input to the formula, not a constant: the familiar (4A(h/2) − A(h))/3 is only the p = 2 case.


Using it on a rule whose leading error is first order cancels the wrong term: the O(h) error survives as C1h/3, only modestly smaller than the finer input's C1h/2, so the order does not improve.


Second, the combination is a weighted average whose weights sum to one: 2p/(2p−1) on the finer value and −1/(2p−1) on the coarser. The negative weight is the whole mechanism, it subtracts off the coarse estimate's larger error.

Worked example

A second-order rule (p = 2) applied to some integral gives A(h) = 0.760000 and A(h/2) = 0.775000. With 2p = 4:


AR = (4 × 0.775000 − 0.760000) / 3 = (3.100000 − 0.760000) / 3 = 2.340000 / 3 = 0.780000


Notice that the extrapolated value lies outside the interval between the two inputs, past the finer one. That is expected and is a useful sanity check: because the sequence is converging monotonically from one side, the limit must lie beyond the most accurate value you have, not between your two estimates.

Estimating the error for free

The same expansion yields an error estimate without knowing the exact answer. Since AR is a much better value than A(h/2),


A − A(h/2) ≈ AR − A(h/2) = ( A(h/2) − A(h) ) / ( 2p − 1 )


So the difference between the two approximations, divided by 2p − 1, estimates how far the finer approximation still is from the truth. This is the standard basis for adaptive step-size control.


Treat it as an estimate, not a bound: it inherits the assumption that the leading term dominates, which fails if h is still too coarse.

Checking the order you actually have

The formula needs the right p, and the theoretical order can be wrong, a non-smooth integrand or an endpoint singularity commonly degrades it. Three successive halvings let you measure the order instead of assuming it. If the leading term dominates, successive differences shrink by the factor 2p:


( A(h) − A(h/2) ) / ( A(h/2) − A(h/4) ) ≈ 2p, so p ≈ log2(that ratio)


Worked example. Suppose the successive differences are 0.032000 and 0.002000. Their ratio is 16, and log2 16 = 4, so the observed order is 4.


A measured ratio near 2 would indicate first-order behaviour, and a ratio drifting well below the theoretical value is a warning that the integrand is not as smooth as the rule assumes.

Why the order jumps by two, not one

For the composite trapezoidal rule on a smooth integrand, and for the related symmetric composite rules such as the midpoint and Simpson rules, the Euler–Maclaurin formula shows the error expansion contains only even powers of h: C2h2 + C4h4 + …, where Simpson's rule simply has C2 = 0 and its series starts at h4.


(A non-symmetric rule such as the left-endpoint rectangle rule also carries a first-order C1h term, so its first extrapolation step must use p = 1 and gains only one order.) Cancelling the h2 term therefore exposes the h4 term, not an h3 term, and one extrapolation step gains two orders rather than one.


The chart shows this: on logarithmic axes the error of a fourth-order rule falls along a line of slope 4, while one Richardson step steepens it to slope 6. When the starting values are composite trapezoidal approximations on successively halved grids, repeating Richardson extrapolation on the resulting table gives the Romberg scheme.

Error magnitude versus step size on logarithmic axes

Error magnitude versus step size on logarithmic axes


The gain is not unconditional. It requires the expansion to exist in the assumed powers, the higher terms to be genuinely smaller at the h you used, and the arithmetic to have enough precision, because the combination subtracts two nearby numbers, rounding error eventually dominates and further refinement stops helping.

Which statement best describes what Richardson's extrapolation does to a numerical integration rule?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. View the solution and report whether you got it right or wrong.

A second-order quadrature rule (leading error proportional to h2) is applied to a definite integral at two step sizes:

  • A(h) = 1.396876
  • A(h/2) = 1.399219

Apply one step of Richardson's extrapolation. Report the improved estimate to six decimal places.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. View the solution and report whether you got it right or wrong.

Simpson's rule, whose leading error is proportional to h4, is applied to an integral at two step sizes:

  • S(h) = 0.693402
  • S(h/2) = 0.693177

Estimate the magnitude of the remaining error in S(h/2), without knowing the exact value of the integral. Give your answer to two significant figures.

Error magnitude versus step size on logarithmic axes

Error magnitude versus step size on logarithmic axes

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors