On this page
A smaller step size h gives a better answer, but you can never set h to zero. Richardson extrapolation is the shortcut: compute at two step sizes, see how fast the error shrinks, and jump to where h = 0 would land.
What is Richardson extrapolation?
Suppose A(h) approximates a number L and its error has a known shape: A(h) = L + c·h² + d·h⁴ + …, with c and d unknown. Halving the step gives A(h/2) = L + c·h²/4 + d·h⁴/16 + …. Multiply the second line by 4, subtract the first, and the c·h² terms cancel.
Richardson extrapolation: L ≈ (4A(h/2) − A(h))/3, with an error of order h⁴ instead of h².
If the leading error goes like hᵖ instead, the combination is (2ᵖA(h/2) − A(h))/(2ᵖ − 1). You never need to know c; you only need to know p.
The method carries the name of Lewis Fry Richardson, who used it in a 1911 paper in the Philosophical Transactions of the Royal Society on solving physics equations by finite differences, applied there to the stresses in a masonry dam. With J. Arthur Gaunt he gave it a memorable name in The deferred approach to the limit (1927): solve the problem for "a moderate number of moderately small differences" and pass to the limit only afterwards.
How does it work on the derivative of sin x at 1?
The central difference D(h) = [f(x + h) − f(x − h)]/(2h) estimates f′(x). Expanding both terms as a Taylor series shows its error is f‴(x)h²/6 plus terms in h⁴, so p = 2. If that step feels shaky, our post on how accurate a Taylor polynomial is sets it up.
Take f(x) = sin x at x = 1, where the exact answer is cos 1 = 0.5403023. The identity sin(1 + h) − sin(1 − h) = 2 cos 1 sin h gives D(h) = cos 1 · (sin h)/h, so you can check every line yourself.
With h = 0.1: D(0.1) = 0.5394023. The error is about −9.0 × 10⁻⁴, matching −cos 1 × (0.1)²/6.
With h = 0.05: D(0.05) = 0.5400772. The error is about −2.3 × 10⁻⁴, a quarter of the first, as the h² term predicts.
Combine: (4 × 0.5400772 − 0.5394023)/3 = 0.5403022. The error is now about −1.1 × 10⁻⁷.
Four sine values give the derivative to six decimal places. The plain central difference would need h near 0.001 to match that, and on a calculator, subtracting two almost equal sines then starts to cost digits.
How does Richardson extrapolation turn the trapezoidal rule into Simpson's rule?
The trapezoidal rule T(h) also has an error that starts with an h² term, and the Euler–Maclaurin formula explains why the remaining terms come only in even powers: h², h⁴, h⁶. So the same formula applies.
Take the integral of sin x from 0 to π, which is exactly 2.
T(π/2), three points: 1.5707963
T(π/4), five points: 1.8961188
Extrapolated: (4 × 1.8961188 − 1.5707963)/3 = 2.0045598
That last number is exactly Simpson's rule with h = π/4. Write k = π/4; then T(π/2) = k(f₀ + 2f₂ + f₄) and T(π/4) = k(f₀/2 + f₁ + f₂ + f₃ + f₄/2). Work out (4T(π/4) − T(π/2))/3 and you get (k/3)(f₀ + 4f₁ + 2f₂ + 4f₃ + f₄), the 1, 4, 2, 4, 1 pattern of Simpson's rule. One Richardson step cut the error from 0.104 to 0.0046.
What is Romberg integration?
Romberg integration repeats the trick. Werner Romberg published it in 1955, and it applies Richardson extrapolation again and again to trapezoidal estimates at h, h/2, h/4 and so on (overview with references). Because the trapezoidal error has only even powers, each new column removes the next one: weights 4 and −1 over 3 remove h², then 16 and −1 over 15 remove h⁴, then 64 and −1 over 63 remove h⁶. The same overview notes that the first extrapolated column is Simpson's rule and the second is Boole's rule.
For our integral, add T(π/8) = 1.9742316 from nine points:
Trapezoid column: 1.5707963, 1.8961188, 1.9742316
Simpson column: 2.0045598, 2.0002692
Next column: (16 × 2.0002692 − 2.0045598)/15 = 1.9999832
The same nine sine values now give an error of about 1.7 × 10⁻⁵, while the nine-point trapezoidal rule on its own is still off by 0.026.
When does Richardson extrapolation go wrong?
The function is not smooth. A kink or a square-root corner breaks the h² error model, and the extrapolated value may be no better than the finer estimate.
The order p is wrong. A one-sided difference [f(x + h) − f(x)]/h has error proportional to h, so its factor is 2, not 4; using 4 leaves the h term in place, so the result stays only first-order accurate.
h is already tiny. Rounding error does not follow the h² pattern, so extrapolating it can amplify noise instead of removing error.
If the Taylor or integration ideas underneath need another look, the Fermi Concept Library gives every concept in mathematics its own lesson and its place in the map. To practise, the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning rather than printing an answer.



