Richardson Extrapolation
Richardson extrapolation combines two estimates made with step sizes h and h/2 to cancel the leading error term. If an estimate has error about Chᵖ, the combination \dfrac{2^p A(h/2) - A(h)}{2^p - 1} is far more accurate. For central differences (p = 2), it is \dfrac{4D(h/2) - D(h)}{3}.
Before this lesson: Numerical Differentiation, Order of Convergence and Taylor Polynomials
The idea: use the error pattern to remove the error
In numerical differentiation, the central difference D(h) has an error that shrinks like h². Halving h cuts the error to about one fourth, but it never reaches zero. Richardson extrapolation takes a different path: it uses the known pattern of the error to estimate the error itself, then subtracts it.
Think of D(h) as a function of h². When the error is about Ch², the estimates lie almost on a straight line in h². The value we want is where that line meets h² = 0, the step size we can never actually use. Two estimates fix the line, and extending it to h² = 0 gives the extrapolated value.
Richardson extrapolation formula
Suppose a method gives an estimate A(h) of an exact value A with an error of the form
A = A(h) + Ch^p + O(h^q), \qquad q \gt p
where C does not depend on h. Then
R = A(h/2) + \dfrac{A(h/2) - A(h)}{2^p - 1} = \dfrac{2^p A(h/2) - A(h)}{2^p - 1}has error O(h^q), so it is a higher-order estimate. The correction term [A(h/2) − A(h)]/(2ᵖ − 1) is also an error estimate for A(h/2), found without knowing the exact value.
| Base method | Error order p | Richardson formula | New order |
|---|---|---|---|
| Forward or backward difference | 1 | 2F(h/2) - F(h) | O(h^2) |
| Central difference | 2 | \dfrac{4D(h/2) - D(h)}{3} | O(h^4) |
| Any method with error Ch^p | p | \dfrac{2^p A(h/2) - A(h)}{2^p - 1} | next order |
Where the formula comes from
Write the error equation for both step sizes and eliminate C, the unknown constant (see elimination method).
A \approx A(h) + Ch^p
Error equation for step h.
A \approx A(h/2) + C\left(\dfrac{h}{2}\right)^p = A(h/2) + \dfrac{Ch^p}{2^p}Error equation for step h/2.
2^p A \approx 2^p A(h/2) + Ch^p
Multiply the second equation by 2ᵖ.
(2^p - 1)A \approx 2^p A(h/2) - A(h)
Subtract the first equation; the Chᵖ terms cancel.
A \approx \dfrac{2^p A(h/2) - A(h)}{2^p - 1}Divide both sides by 2ᵖ − 1.
How to apply Richardson extrapolation
- Find the order p of the method’s leading error term (p = 2 for central differences).
- Compute A(h) and A(h/2).
- Form R = [2ᵖA(h/2) − A(h)]/(2ᵖ − 1).
- Use [A(h/2) − A(h)]/(2ᵖ − 1) as an estimate of the error in A(h/2).
- To go further, repeat with the next order (for central differences the next error is h⁴, so use 16 and 15).
Richardson extrapolation examples
Example 1: Improving two central differences
In the numerical differentiation lesson, the central differences for f(x) = eˣ at x = 0 were D(0.2) = 1.00668 and D(0.1) = 1.00167, with errors 0.00668 and 0.00167. Apply Richardson extrapolation. The exact value is f′(0) = 1.
R = \dfrac{4D(0.1) - D(0.2)}{3}Central differences have p = 2, so 2ᵖ = 4.
R = \dfrac{4(1.00167) - 1.00668}{3}Substitute the two estimates.
R = \dfrac{4.00668 - 1.00668}{3}Multiply.
R = \dfrac{3}{3} = 1.00000Subtract, then divide.
\dfrac{1.00167 - 1.00668}{3} = -0.00167Error estimate for D(0.1).
Answer: R = 1.00000, correct to all 5 decimal places shown. The error estimate −0.00167 is exactly the true error of D(0.1), found without knowing f′(0).
Example 2: Upgrading a forward difference
For f(x) = x³ at x = 2, the forward differences are F(0.2) = 13.24 and F(0.1) = 12.61. Use Richardson extrapolation to improve them. The exact value is 12.
F(0.2) = \dfrac{2.2^3 - 8}{0.2} = \dfrac{10.648 - 8}{0.2} = 13.24Check the first estimate.
R = 2F(0.1) - F(0.2)
Forward differences have p = 1, so 2ᵖ = 2 and 2ᵖ − 1 = 1.
R = 2(12.61) - 13.24
Substitute.
R = 25.22 - 13.24 = 11.98
Multiply, then subtract.
12 - 11.98 = 0.02
Error of R.
Answer: R = 11.98, with error 0.02 instead of 0.61 for F(0.1). The new estimate is only second order, because F(h) = 12 + 6h + h² for this function and the h² term is still there.
Example 3: Two levels of extrapolation (a Richardson table)
For f(x) = 1/x at x = 1, the central differences rounded to 6 decimal places are D(0.4) = −1.190476, D(0.2) = −1.041667 and D(0.1) = −1.010101. Extrapolate twice. The exact value is −1.
R_1 = \dfrac{4(-1.041667) - (-1.190476)}{3} = \dfrac{-4.166668 + 1.190476}{3}First level from D(0.4) and D(0.2).
R_1 = \dfrac{-2.976192}{3} = -0.992064Add, then divide.
R_2 = \dfrac{4(-1.010101) - (-1.041667)}{3} = \dfrac{-4.040404 + 1.041667}{3}First level from D(0.2) and D(0.1).
R_2 = \dfrac{-2.998737}{3} = -0.999579Add, then divide.
\dfrac{16R_2 - R_1}{15} = \dfrac{16(-0.999579) - (-0.992064)}{15}Second level: the remaining error is O(h⁴), so 2⁴ = 16.
= \dfrac{-15.993264 + 0.992064}{15} = \dfrac{-15.0012}{15} = -1.00008Multiply, add, then divide.
Answer: the errors fall from 0.0101 for D(0.1) to 0.00042 after one level and 0.00008 after two. The results are usually set out in a table:
| h | D(h) | First level | Second level |
|---|---|---|---|
| 0.4 | −1.190476 | ||
| 0.2 | −1.041667 | −0.992064 | |
| 0.1 | −1.010101 | −0.999579 | −1.000080 |
Example 4: Speed from position data (word problem)
A test car’s position is logged once per second: 0 m at t = 0, 4.9 m at t = 1, 11.6 m at t = 2, 20.3 m at t = 3 and 31.2 m at t = 4. Estimate its speed at t = 2 s with central differences and Richardson extrapolation, and estimate the error.
D(2) = \dfrac{31.2 - 0}{2(2)} = \dfrac{31.2}{4} = 7.8Central difference with h = 2 (t = 0 and t = 4).
D(1) = \dfrac{20.3 - 4.9}{2(1)} = \dfrac{15.4}{2} = 7.7Central difference with h = 1 (t = 1 and t = 3).
R = \dfrac{4(7.7) - 7.8}{3} = \dfrac{30.8 - 7.8}{3}Richardson with p = 2.
R = \dfrac{23}{3} \approx 7.67Subtract, then divide.
\dfrac{7.7 - 7.8}{3} \approx -0.03Error estimate for D(1).
Answer: about 7.67 m/s. The h = 1 estimate of 7.7 m/s is probably off by about 0.03 m/s. With measured data, round-off and noise limit how far extrapolation can help, so one level is usually enough.
Example 5: Archimedes’ polygons and π
A regular polygon with n sides inscribed in a circle of radius 1 has half-perimeter P(n) = n sin(π/n), which approaches π. Its error is about C/n², so h = 1/n and p = 2. Use P(6) and P(12) to estimate π.
P(6) = 6\sin 30^\circ = 6\cdot \dfrac{1}{2} = 3Use the exact value of sin 30° (see trig values of special angles).
\sin 15^\circ = \sin(45^\circ - 30^\circ) = \dfrac{\sqrt{6} - \sqrt{2}}{4}Use the difference formula (see sum and difference formulas).
P(12) = 12 \sin 15^\circ = 3(\sqrt{6} - \sqrt{2}) \approx 3.105829Multiply by 12.
R = \dfrac{4(3.105829) - 3}{3} = \dfrac{12.423316 - 3}{3}Doubling n halves h, so use 4 and 3.
R = \dfrac{9.423316}{3} \approx 3.141105Subtract, then divide.
Answer: about 3.14111, which is off from π ≈ 3.14159 by about 0.0005. A 12-sided polygon alone is off by 0.036, so extrapolation did the work of a much larger polygon.
Common mistakes
| Mistake | Example of the error | Fix |
|---|---|---|
| Using 4 and 3 for a first-order method | \dfrac{4F(0.1) - F(0.2)}{3} for forward differences | Use 2ᵖ with the method’s own p: 2F(h/2) − F(h). |
| Putting the estimates in the wrong order | \dfrac{4D(h) - D(h/2)}{3} | The smaller-step estimate gets the larger weight. |
| Using 4 again at the second level | \dfrac{4R_2 - R_1}{3} | After one level the error is O(h⁴), so use 16 and 15. |
| Using step sizes that are not in a 2-to-1 ratio | Combining h = 0.3 and h = 0.1 with weights 4 and 3 | For a ratio r, use (rᵖA(h/r) − A(h))/(rᵖ − 1). |
| Extrapolating noisy data many times | Three levels on 1-decimal measurements | Noise is magnified at each level; one level is usually the limit for data. |
Related methods
Other step ratios
If the second step is h/r instead of h/2, the same elimination gives R = [rᵖA(h/r) − A(h)]/(rᵖ − 1). For example, with central differences and h and h/3, R = [9D(h/3) − D(h)]/8.
Extrapolating integrals
The trapezoidal rule also has an error of about Ch². One Richardson step on two trapezoidal estimates gives exactly Simpson’s rule, and repeating the process in a table is the next lesson, Romberg Integration.
Practice problems
- Central differences give D(0.2) = 2.46 and D(0.1) = 2.43. Find the Richardson estimate.
- Forward differences give F(0.2) = 5.6 and F(0.1) = 5.3. Find the Richardson estimate.
- For f(x) = x³ at x = 1, find D(0.2) and D(0.1), then extrapolate. Why is the result exact?
- For f(x) = √x at x = 4, D(0.1) = 0.25002. Find D(0.2) from values rounded to 6 decimal places, then extrapolate.
- Estimate the error in D(0.1) from Problem 1.
- A method has error about Ch³. It gives A(h) = 1.9 and A(h/2) = 1.97. Find the Richardson estimate.
- First-level values from a central-difference table are R₁ = 0.9950 and R₂ = 0.9997. Find the second-level value.
- Archimedes’ half-perimeters are P(12) = 3.105829 and P(24) = 3.132629. Extrapolate to estimate π.
- A thermometer reads 20.0, 23.6, 26.8, 29.6 and 31.6 °C at t = 0, 2, 4, 6 and 8 minutes. Estimate the rate of change at t = 4 with central differences for h = 4 and h = 2, then extrapolate.
- Estimates with h = 0.4, 0.2 and 0.1 are 1.36, 1.09 and 1.0225. What is the order p of the method?
Show answers
1.
R = \dfrac{4(2.43) - 2.46}{3} = \dfrac{9.72 - 2.46}{3}Central differences: p = 2.
= \dfrac{7.26}{3} = 2.42Subtract, then divide.
Answer: 2.42
2.
R = 2(5.3) - 5.6 = 10.6 - 5.6 = 5
Forward differences: p = 1.
Answer: 5.0
3.
D(0.2) = \dfrac{1.2^3 - 0.8^3}{0.4} = \dfrac{1.728 - 0.512}{0.4} = 3.04Central difference with h = 0.2.
D(0.1) = \dfrac{1.1^3 - 0.9^3}{0.2} = \dfrac{1.331 - 0.729}{0.2} = 3.01Central difference with h = 0.1.
R = \dfrac{4(3.01) - 3.04}{3} = \dfrac{12.04 - 3.04}{3} = 3Extrapolate.
Answer: 3, which equals f′(1); for a cubic, D(h) = 3 + h² exactly, so removing the h² term leaves no error
4.
\sqrt{4.2} \approx 2.049390,\quad \sqrt{3.8} \approx 1.949359Rounded values.
D(0.2) = \dfrac{2.049390 - 1.949359}{0.4} = \dfrac{0.100031}{0.4} \approx 0.2500775Central difference.
R = \dfrac{4(0.25002) - 0.2500775}{3} = \dfrac{0.7500025}{3} \approx 0.2500008Extrapolate.
Answer: about 0.2500008 (exact value 0.25)
5.
\dfrac{2.43 - 2.46}{3} = -0.01Error estimate for the smaller step.
Answer: D(0.1) is about 0.01 too high, so the true value is near 2.42
6.
R = \dfrac{2^3(1.97) - 1.9}{2^3 - 1} = \dfrac{15.76 - 1.9}{7}Use p = 3: weights 8 and 7.
= \dfrac{13.86}{7} = 1.98Subtract, then divide.
Answer: 1.98
7.
\dfrac{16(0.9997) - 0.9950}{15} = \dfrac{15.9952 - 0.9950}{15}Second level: weights 16 and 15.
= \dfrac{15.0002}{15} \approx 1.0000133Subtract, then divide.
Answer: about 1.00001
8.
R = \dfrac{4(3.132629) - 3.105829}{3} = \dfrac{12.530516 - 3.105829}{3}Doubling n halves h; p = 2.
= \dfrac{9.424687}{3} \approx 3.141562Subtract, then divide.
Answer: about 3.14156, within 0.00003 of π
9.
D(4) = \dfrac{31.6 - 20.0}{8} = \dfrac{11.6}{8} = 1.45t = 0 and t = 8.
D(2) = \dfrac{29.6 - 23.6}{4} = \dfrac{6}{4} = 1.5t = 2 and t = 6.
R = \dfrac{4(1.5) - 1.45}{3} = \dfrac{4.55}{3} \approx 1.517Extrapolate.
Answer: about 1.52 °C per minute
10.
1.36 - 1.09 = 0.27,\quad 1.09 - 1.0225 = 0.0675
Differences of successive estimates.
\dfrac{0.27}{0.0675} = 4 = 2^2Each halving of h cuts the change by 4.
Answer: p = 2
Richardson extrapolation FAQ
What is Richardson extrapolation?
It is a way to combine two approximations, made with step sizes h and h/2, so that the leading error term cancels. The result is more accurate than either approximation.
What is the Richardson extrapolation formula for central differences?
R = [4D(h/2) − D(h)]/3. It turns two second-order estimates into one fourth-order estimate.
How does Richardson extrapolation estimate the error?
The difference [A(h/2) − A(h)]/(2ᵖ − 1) approximates the error in A(h/2). This lets you check accuracy without knowing the exact answer.
When does Richardson extrapolation not work well?
It needs the error to follow the assumed pattern Chᵖ. It works poorly when h is too large for that pattern, when the function is not smooth, or when round-off or measurement noise is larger than the error being removed.
Summary
- If A(h) has error about Chᵖ, then R = [2ᵖA(h/2) − A(h)]/(2ᵖ − 1) has a higher-order error.
- For central differences, R = [4D(h/2) − D(h)]/3 is fourth order; for forward differences, R = 2F(h/2) − F(h).
- [A(h/2) − A(h)]/(2ᵖ − 1) estimates the error in A(h/2).
- Repeat with weights 16 and 15 (then 64 and 63) to build a Richardson table.
- Applied to the trapezoidal rule, the same idea gives Simpson’s rule and Romberg integration.
Previous lesson: Numerical Differentiation
Next lesson: Romberg Integration
Back to the Numerical Methods Index