Back to Euler's method

Exercise 8

Avg difficulty 2.5

In this problem, we'll modify Euler's method to obtain better approximations to solutions of initial value problems. This method is called the Improved Euler's method.

In Euler's method, we walk across an interval of width Δt\Delta t using the slope obtained from the differential equation at the left endpoint of the interval. Of course, the slope of the solution will most likely change over this interval. We can improve our approximation by trying to incorporate the change in the slope over the interval.

Let's again consider the initial value problem dy/dt=ydy/dt = y and y(0)=1y(0) = 1, which we will approximate using steps of width Δt=0.2\Delta t = 0.2. Our first interval is therefore 0≤t≤0.20\leq t \leq 0.2. At t=0t=0, the differential equation tells us that the slope is 1, and the approximation we obtain from Euler's method is that y(0.2)≈y1=1+1(0.2)=1.2y(0.2)\approx y_1= 1+ 1(0.2)= 1.2.

This gives us some idea for how the slope has changed over the interval 0≤t≤0.20\leq t\leq 0.2. We know the slope at t=0t=0 is 1, while the slope at t=0.2t=0.2 is 1.2, trusting in the Euler's method approximation. We will therefore refine our estimate of the initial slope to be the average of these two slopes; that is, we will estimate the slope to be (1+1.2)/2=1.1(1+1.2)/2 = 1.1. This gives the new approximation y(1)=y1=1+1.1(0.2)=1.22y(1) = y_1 = 1 + 1.1(0.2) = 1.22.

The first few steps look like what is found in Table.

The first several steps of the improved Euler's method
tit_iyiy_iSlope at (ti+1,yi+1)(t_{i+1},y_{i+1})Average slope
0.00.01.00001.00001.20001.20001.10001.1000
0.20.21.22001.22001.46401.46401.34201.3420
0.40.41.48841.48841.78611.78611.63721.6372
⋮\vdots⋮\vdots⋮\vdots⋮\vdots
  1. Continue with this method to obtain an approximation for y(1)=ey(1) = e.

  2. Repeat this method with Δt=0.1\Delta t = 0.1 to obtain a better approximation for y(1)y(1).

  3. We saw that the error in Euler's method is proportional to Δt\Delta t. Using your results from parts (a) and (b), what power of Δt\Delta t appears to be proportional to the error in the Improved Euler's Method?

Boelkins, Active Calculus, §7.3 Euler's method, Exercise 8

AI Tutor

Adapted from Active Calculus © 2012–2025 Matthew Boelkins. Licensed under CC BY-SA 4.0. Source: Active Calculus. Imported at revision dc86ba3.