Tutorials › Calculus I › Richardson Extrapolation for Euler Values

Euler's Method and Numerical Solutions · Tutorial 1440 of 1495

Richardson Extrapolation for Euler Values

Combine coarse- and fine-step Euler values to cancel the leading error term and understand when the improved endpoint estimate is justified.

Advanced 10 min read

What You'll Learn

  • Define the coarse and refined Euler endpoint values used in extrapolation.
  • Derive the combination that cancels the leading first-order error.
  • Identify the smoothness and matching-endpoint conditions behind the method.
  • Compute Richardson estimates for scalar and time-dependent equations.
  • Recognize why the extrapolated value is not another Euler step.

Why Combine Two Euler Approximations?

Forward Euler gives an approximation to a solution of an initial-value problem by taking repeated tangent-line steps. When the step size is reduced, the endpoint approximation generally improves. The earlier material on global error establishes that, under suitable conditions, forward Euler has first-order convergence: its endpoint error is proportional to the step size to leading order.

That leading error has a predictable scaling. If the step size is halved, the leading error is approximately halved as well. Richardson extrapolation uses that relationship to combine the two endpoint values so that the leading error cancels. The result is a more accurate endpoint estimate without simply choosing an even smaller step size.

Central idea: If the Euler endpoint value has the form \(Y_h=y(T)+Ch+O(h^2)\), then the combination \(2Y_{h/2}-Y_h\) cancels the term \(Ch\). Under the stated error expansion, the combined value differs from the exact endpoint by \(O(h^2)\).

Euler Endpoint Values and the Extrapolation Formula

Consider an initial-value problem \(y'=f(t,y)\), \(y(t_0)=y_0\), and a target time \(T>t_0\). Let \(h=(T-t_0)/N\) for a positive integer \(N\), so the interval is divided into \(N\) equal steps. Write \(Y_h\) for the Euler approximation at \(T\), starting from \(Y_0=y_0\) and using the updates

$$ Y_{n+1}=Y_n+h f(t_n,Y_n), \qquad t_n=t_0+nh, \qquad 0\le n<N. $$

Now repeat the computation on the same interval with step size \(h/2\), which uses \(2N\) steps. Denote its endpoint value by \(Y_{h/2}\). Both computations approximate the same solution at the same time \(T\), and they start from the same initial data.

Definition: The Richardson extrapolation of these two Euler endpoint values is \(R_h=2Y_{h/2}-Y_h\). It is an improved estimate of \(y(T)\) when the leading Euler error is proportional to the step size and the remaining error is of order \(h^2\).

The weight 2 is not an arbitrary adjustment. It is chosen to eliminate the first-order error term. This depends on comparing matching computations: if the initial values, differential equation, or target time differ, the cancellation argument does not apply as stated.

Why the Leading Error Cancels

For a sufficiently smooth solution and right-hand side, and with a fixed initial time and endpoint, the Euler endpoint values have a first-order asymptotic expansion of the form

$$ Y_h=y(T)+Ch+O(h^2), $$

where \(C\) depends on the differential equation and the interval, but not on the step size in this expansion. Here \(O(h^2)\) means a remainder whose absolute value is bounded by a constant times \(h^2\) for sufficiently small \(h\). The same expansion applied with step size \(h/2\) gives

$$ Y_{h/2}=y(T)+C\frac{h}{2}+O\!\left(\left(\frac{h}{2}\right)^2\right). $$

Multiplying the refined value by 2 and subtracting the coarse value gives the cancellation directly:

$$ \begin{aligned} 2Y_{h/2}-Y_h &=2\left(y(T)+C\frac{h}{2}+O(h^2)\right) -\left(y(T)+Ch+O(h^2)\right)\\ &=y(T)+Ch-Ch+O(h^2)\\ &=y(T)+O(h^2). \end{aligned} $$

The remainders still have order \(h^2\): multiplying an \(O(h^2)\) term by a fixed number does not change its order. The first-order term disappears because its coefficient is the same \(C\) in both expansions, while its size is halved in the refined computation.

Conclusion: Under the first-order error expansion, Richardson extrapolation raises the endpoint accuracy from first order to second order: \(R_h-y(T)=O(h^2)\). This is an asymptotic statement; it does not guarantee that every particular extrapolated value is closer to the exact answer.

Where the Expansion Comes From

The scaling of the leading error is linked to the local Taylor expansion of the exact solution. For a smooth solution, one exact step satisfies

$$ y(t+h) = y(t)+h f(t,y(t)) +\frac{h^2}{2}y''(t)+O(h^3). $$

Euler takes the first two terms and omits the term involving \(h^2y''(t)/2\). Thus the one-step discrepancy is of order \(h^2\). Across about \((T-t_0)/h\) steps, these local discrepancies accumulate into a global error of order \(h\), as established in the earlier material on local and global error.

For the extrapolation argument, the important refinement is that this global error has a leading coefficient that is stable as the step is refined. Smoothness allows the accumulated leading contributions to be represented by \(Ch\); the remaining terms are of order \(h^2\). Applying this expansion on the same interval with \(h/2\) gives the same leading coefficient \(C\), scaled by one-half. If the solution or right-hand side lacks the regularity needed for this expansion, the claimed second-order improvement need not follow.

1
Compute the coarse endpoint.
Run Euler with step size \(h\) from the initial time to \(T\), obtaining \(Y_h\).
2
Compute the refined endpoint.
Run the same Euler method and initial-value problem with step size \(h/2\), again ending at \(T\), obtaining \(Y_{h/2}\).
3
Combine the endpoint values.
Form \(R_h=2Y_{h/2}-Y_h\). The leading term proportional to \(h\) cancels under the error expansion.

Worked Examples

Worked Example: Extrapolating Euler Values for Exponential Growth

Approximate \(y(1)\) for \(y'=y\), \(y(0)=1\), using \(h=1/2\) and \(h/2=1/4\), then form the Richardson estimate.

For \(h=1/2\), Euler uses \(Y_{n+1}=Y_n+\frac12Y_n=\frac32Y_n\). Starting at \(Y_0=1\), the two updates are

$$ Y_1=1+\frac12(1)=\frac32=1.5, \qquad Y_2=\frac32+\frac12\left(\frac32\right)=\frac94=2.25. $$

Thus \(Y_{1/2}=2.25\). For \(h/2=1/4\), each update multiplies the current value by \(1+\frac14=\frac54\). The four values are

$$ \begin{aligned} Z_1&=1+\frac14(1)=1.25,\\ Z_2&=1.25+\frac14(1.25)=1.5625,\\ Z_3&=1.5625+\frac14(1.5625)=1.953125,\\ Z_4&=1.953125+\frac14(1.953125)=2.44140625. \end{aligned} $$

Hence \(Y_{1/4}=2.44140625\), and the extrapolated endpoint is

$$ R_{1/2} =2(2.44140625)-2.25 =4.8828125-2.25 =2.6328125. $$

As a check, each listed value is obtained by adding one quarter (or one half) of the current value, as required by the Euler update. The exact solution is \(y(t)=e^t\), since its derivative is itself and \(y(0)=1\); therefore the exact endpoint is \(e\). The extrapolated estimate \(2.6328125\) is below \(e\), approximately \(2.71828\). The formula improves the asymptotic order, but this finite-step calculation is not a promise that every estimate will be closer.

Worked Example: A Time-Dependent Slope with Exact Cancellation

For \(y'=2t+1\), \(y(0)=0\), estimate \(y(1)\) using Euler step sizes \(1/2\) and \(1/4\), then extrapolate.

With step size \(1/2\), the slope is evaluated at the left endpoint of each step. The two updates are

$$ \begin{aligned} Y_1&=0+\frac12(2\cdot0+1)=0.5,\\ Y_2&=0.5+\frac12(2\cdot0.5+1)=0.5+1=1.5. \end{aligned} $$

Thus \(Y_{1/2}=1.5\). With step size \(1/4\), the slopes at \(t=0,0.25,0.5,0.75\) are respectively \(1,1.5,2,2.5\). The four updates give

$$ \begin{aligned} Z_1&=0+\frac14(1)=0.25,\\ Z_2&=0.25+\frac14(1.5)=0.625,\\ Z_3&=0.625+\frac14(2)=1.125,\\ Z_4&=1.125+\frac14(2.5)=1.75. \end{aligned} $$

Consequently, \(Y_{1/4}=1.75\), and

$$ R_{1/2}=2(1.75)-1.5=3.5-1.5=2. $$

To check against the exact solution, integrate the given slope and use the initial condition: \(y(t)=t^2+t\), because its derivative is \(2t+1\) and \(y(0)=0\). Hence \(y(1)=2\), exactly the extrapolated value. This exact agreement occurs because the Euler endpoint error here is entirely proportional to \(h\); it is a special case, not the general accuracy guarantee.

Worked Example: Extrapolating Euler Values for a Linear Equation

For \(y'=1+y\), \(y(0)=0\), estimate \(y(1)\) with step sizes \(1/2\) and \(1/4\).

With \(h=1/2\), the update is \(Y_{n+1}=Y_n+\frac12(1+Y_n)\). Therefore

$$ \begin{aligned} Y_1&=0+\frac12(1+0)=0.5,\\ Y_2&=0.5+\frac12(1+0.5) =0.5+\frac12(1.5) =1.25. \end{aligned} $$

Thus the coarse endpoint is \(Y_{1/2}=1.25\). For \(h=1/4\), the update is \(Z_{n+1}=Z_n+\frac14(1+Z_n)\). Applying it four times gives

$$ \begin{aligned} Z_1&=0+\frac14(1+0)=0.25,\\ Z_2&=0.25+\frac14(1.25)=0.5625,\\ Z_3&=0.5625+\frac14(1.5625)=0.953125,\\ Z_4&=0.953125+\frac14(1.953125)=1.44140625. \end{aligned} $$

Each update uses \(1+Z_n\) as the slope and adds one quarter of it, so the fine endpoint is \(Y_{1/4}=1.44140625\). The Richardson value is

$$ R_{1/2} =2(1.44140625)-1.25 =2.8828125-1.25 =1.6328125. $$

The exact solution is \(y(t)=e^t-1\): its derivative is \(e^t=1+y(t)\), and it satisfies \(y(0)=0\). Thus the exact endpoint is \(e-1\), approximately \(1.71828\), which is larger than this extrapolated estimate. This check confirms the exact comparison and also illustrates that Richardson extrapolation is a higher-order approximation, not an exact solver.

Common Mistake: Reversing the Combination

A frequent error is to subtract the refined Euler value from twice the coarse value, using \(2Y_h-Y_{h/2}\). The first-order terms then reinforce rather than cancel. Substituting the error expansions shows why:

$$ \begin{aligned} 2Y_h-Y_{h/2} &=2\bigl(y(T)+Ch+O(h^2)\bigr) -\bigl(y(T)+C h/2+O(h^2)\bigr)\\ &=y(T)+\frac32Ch+O(h^2). \end{aligned} $$

The remaining term \(\frac32Ch\) is still first order. The correct combination is \(2Y_{h/2}-Y_h\): the finer value receives the factor of 2 because its leading error is half as large. A useful check is to substitute \(Y_h=y(T)+Ch\) and \(Y_{h/2}=y(T)+Ch/2\) into any proposed formula and verify that the coefficient of \(C\) is zero.

What Richardson Extrapolation Does—and Does Not Do

Richardson extrapolation produces a new endpoint estimate by combining two completed Euler computations. It is not an Euler update with a modified step, and it does not provide values along the interval between \(t_0\) and \(T\). The two input computations must approximate the same endpoint from the same initial-value problem, with the refined mesh using half the coarse step.

Its second-order conclusion is conditional on a suitable asymptotic error expansion. First-order convergence alone says that the error is bounded in magnitude by a constant times \(h\); the cancellation argument additionally uses a stable leading coefficient \(C\) and a remainder of order \(h^2\). If those assumptions fail, the formula may not improve the order. Even when they hold, the constant in the remaining error can be large, and rounding or other numerical effects can influence computed digits.

The method matters because it extracts more accuracy from the known error pattern of Euler's method. The essential reasoning is not merely “compute twice and combine,” but rather identify the leading error's dependence on \(h\), then choose weights that remove that term.

Check Your Understanding

Answer these questions using the definitions and error expansion in this tutorial.

  1. What conditions must the two Euler computations share for \(2Y_{h/2}-Y_h\) to target the same exact endpoint?
  2. If \(Y_h=y(T)+Ch+O(h^2)\), write the corresponding expansion for \(Y_{h/2}\).
  3. Show by substitution why \(2Y_{h/2}-Y_h\) cancels the term proportional to \(h\).
  4. Why does the formula \(2Y_h-Y_{h/2}\) generally fail to improve the order?
  5. Does an \(O(h^2)\) error guarantee that a particular extrapolated value is closer to the exact answer than either Euler value? Explain.

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon