Educerie

Educerie · AP · Calculus

Unit 7 Differential Equations · 7.5 Approximating Solutions Using Euler's Method

BC only. This topic is on the AP Calculus BC exam and not on the AB exam.

Big ideas: FUN (Analysis of Functions): when an equation has no solution you can write down, you can still walk along it in small steps and estimate a value.

The question this unit answers: If you know the slope at every point and one starting value, how do you estimate the function a short way along?

Where it is examined: BC only. Section I multiple choice: one or two steps of Euler's method on a short equation, usually with no calculator and friendly numbers. Section II: Euler's method has appeared in the mixed BC question 5 (2024 and 2025), next to other techniques. The 2025 chief reader report records errors in the first step of Euler's method. A common slip is also a calculator answer written with no setup.


AP Calculus AB and BC 7.5

Approximating Solutions Using Euler's Method

If you know the slope at every point and one starting value, how do you estimate the function a short way along?

What you will learn

  • Understand Euler's method as the tangent line approximation repeated in equal steps
  • Know the step rule new y equals old y plus step size times the slope at the old point
  • Understand how the step size comes from the interval and the number of steps
  • Know how to use the sign of the second derivative to say whether an estimate is too high or too low

You must be able to

  1. Approximate a value of a solution with Euler's method for a given step size
  2. Choose the step size from an interval and a number of steps
  3. Set out the steps in a table with the slope shown each time
  4. Apply the method in a context and give units
  5. Say whether an estimate is too high or too low and give the reason
  6. Describe what each step does in terms of a tangent line

1The formula

For a starting point (x0,y0)(x_0,y_0) and a step size hh:

xn+1=xn+h,yn+1=yn+h⋅f(xn,yn)x_{n+1} = x_n + h, \qquad y_{n+1} = y_n + h\cdot f(x_n,y_n)

Read the second formula in words: new yy = old yy + step size times slope at the old point. The slope uses the old point, (xn,yn)(x_n,y_n), not the new one.

You do not need to memorize the formula. It is one line of reasoning. The change in yy is about slope times change in xx, and the slope is the right-hand side of the equation at the point where the step begins.

2A worked example in a table

Worked example 1. The function y=f(x)y=f(x) satisfies dydx=x+y\frac{dy}{dx}=x+y and f(0)=1f(0)=1. Use Euler's method with two steps, each of size h=0.5h=0.5, to approximate f(1)f(1).

Set out a table. The slope column is x+yx+y for that row.

Stepxnx_nyny_nSlope xn+ynx_n+y_nyn+1=yn+0.5⋅slopey_{n+1}=y_n+0.5\cdot\text{slope}
00011111+0.5(1)=1.51+0.5(1)=1.5
10.50.51.51.5221.5+0.5(2)=2.51.5+0.5(2)=2.5

After two steps x=1x=1, so f(1)≈2.5f(1)\approx2.5.

Figure 1. Euler's method with step 0.5 for dy/dx = x + y, y(0) = 1: each step follows the tangent line for 0.5 and lands below the true curve, which bends upward 0 0.5 1 1 2 3 4 y x Euler: 2.5 true: 3.44
Figure 1 · Euler's method with step 0.5 for dy ÷ dx = x + y, y(0) = 1: each step follows the tangent line for 0.5 and lands below the true curve, which bends upward

Figure 1 shows what the table does. From (0,1)(0,1), the first piece has slope 11 and reaches (0.5,1.5)(0.5,1.5). From there, the second piece has slope 22 and reaches (1,2.5)(1,2.5). The path is made of two tangent-line pieces.

The true curve for this equation and starting value is y=2ex−x−1y=2e^{x}-x-1, so f(1)=2e−2≈3.44f(1)=2e-2\approx3.44. The Euler estimate 2.52.5 is below it. Why it falls short is the subject of Section 6.

A smaller step gets closer. With h=0.25h=0.25 and four steps, the same method gives y(1)≈2.88y(1)\approx2.88, closer to 3.443.44 than 2.52.5 is. You will not need to do four steps by hand on a no-calculator part, but you should know what the smaller step does.

3Choosing the step size

A question may give the step size, or give the number of steps and leave you to work out the size.

h=length of the intervalnumber of stepsh = \frac{\text{length of the interval}}{\text{number of steps}}

Worked example 2. Approximate y(2)y(2) with two equal Euler steps from x=1x=1, for dydx=xy\frac{dy}{dx}=xy with y(1)=2y(1)=2.

The interval from 11 to 22 has length 11, so h=12=0.5h=\frac{1}{2}=0.5.

Stepxnx_nyny_nSlope xnynx_ny_nyn+1y_{n+1}
01122222+0.5(2)=32+0.5(2)=3
11.51.5334.54.53+0.5(4.5)=5.253+0.5(4.5)=5.25

So y(2)≈5.25y(2)\approx5.25.

Common slips: using h=1h=1, forgetting that two steps means two rows, or calculating the second slope with the old yy value 22 instead of 33.

4Euler's method in a context

Worked example 3 (invented). The volume VV of water in a reservoir, in thousands of cubic meters, changes with time tt, in days, so that

dVdt=5−0.02V\frac{dV}{dt} = 5 - 0.02V

At t=0t=0, V=100V=100. Use Euler's method with two steps of size 22 days to approximate V(4)V(4).

First step, from t=0t=0:

dVdt∣V=100=5−0.02(100)=3,V(2)≈100+2(3)=106\left.\frac{dV}{dt}\right|_{V=100} = 5-0.02(100) = 3, \qquad V(2)\approx100+2(3)=106

Second step, from t=2t=2:

dVdt∣V=106=5−0.02(106)=2.88,V(4)≈106+2(2.88)=111.76\left.\frac{dV}{dt}\right|_{V=106} = 5-0.02(106) = 2.88, \qquad V(4)\approx106+2(2.88)=111.76

The estimate is V(4)≈111.76V(4)\approx111.76 thousand cubic meters. Give the unit. The equation does not contain tt, so the slope depended only on VV. That happens often in context problems.

5Too high or too low?

The first step is exactly the tangent line to the true curve at the starting point. So you can use concavity (Topic 7.4). The usual argument, and the one to write, applies it to the whole path when the second derivative keeps one sign:

  • If the true curve is concave up at the start, it lies above its tangent line, so the estimate is too low.
  • If it is concave down, the estimate is too high.

Find the second derivative by differentiating the equation.

Worked example 1, continued. For dydx=x+y\frac{dy}{dx}=x+y:

d2ydx2=1+dydx=1+x+y\frac{d^2y}{dx^2} = 1+\frac{dy}{dx} = 1+x+y

At (0,1)(0,1) the value is 1+0+1=2>01+0+1=2>0, so the curve is concave up. Along the path of the example, xx and yy are positive, so 1+x+y>01+x+y>0 there too. The curve is concave up throughout, and the path of tangent-line pieces stays below it. The estimate 2.52.5 is too low, as Figure 1 shows.

Worked example 3, continued. d2Vdt2=−0.02dVdt=−0.02(5−0.02V)\frac{d^2V}{dt^2}=-0.02\frac{dV}{dt}=-0.02(5-0.02V). For VV between 100100 and 112112, dVdt>0\frac{dV}{dt}>0, so d2Vdt2<0\frac{d^2V}{dt^2}<0: concave down. The estimate 111.76111.76 is too high.

Say the sign, say concave up or down, and say what that does to the tangent line and the estimate.

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.