Dove's LibraryDove's Library

7.5 - Approximating Solutions Using Euler's Method (BC ONLY)

Note: this is a BC Calculus topic only, and it isn’t required for AB Calculus.

Introduction to Euler’s Method

Euler’s Method, pronounced “OY-ler,” is a technique for finding an approximate solution to a differential equation when you can’t easily find an exact one. It was developed by the Swiss mathematician Leonhard Euler.
The key idea: instead of finding the actual solution curve, we build a series of small tangent line segments that approximate it. Each segment uses the slope given by the differential equation.

The Concept: Tangent Line Approximations

Consider a differential equation dydx=f(x,y)\frac{dy}{dx} = f(x, y) with an initial condition, meaning a point the solution passes through.
Starting at the known point, we:
  1. Calculate the slope using the differential equation
  1. Move a small distance, the step size, along the tangent line
  1. Find our new point
  1. Repeat
Each tangent line segment approximates a small piece of the actual solution curve.

Visual Representation

Example: For dydx=1+y\frac{dy}{dx} = 1 + y passing through (0,0)(0, 0) with step size Δx=0.5\Delta x = 0.5
7.5 - Approximating Solutions Using Euler's Method (BC ONLY)
Observation: the Euler approximation stays close to the actual curve at first, but it drifts further away as you keep going. Smaller step sizes give more accurate approximations.

The Step Size Formula

The step size, written Δx\Delta x, is the horizontal distance between consecutive points.
If you need to approximate f(b)f(b) starting from f(a)f(a) using nn steps:
Δx=b−an\Delta x = \frac{b - a}{n}
Example: to approximate f(3)f(3) starting from f(1)f(1) using 4 steps:
Δx=3−14=24=0.5\Delta x = \frac{3 - 1}{4} = \frac{2}{4} = 0.5
So each step moves 0.50.5 units in the xx-direction.

The Euler’s Method Formula

This is the key formula to memorize:
ynew=yold+dydx⋅Δx\boxed{y_{\text{new}} = y_{\text{old}} + \frac{dy}{dx} \cdot \Delta x}
Or equivalently:
ynew=yold+y′⋅Δx\boxed{y_{\text{new}} = y_{\text{old}} + y' \cdot \Delta x}
What each term means: - ynewy_{\text{new}}: the yy-coordinate of the next point - yoldy_{\text{old}}: the yy-coordinate of the current point - dydx\frac{dy}{dx} or y′y': the slope from the differential equation, evaluated at the current point - Δx\Delta x: the step size, which stays constant throughout
Connection to point-slope form: this formula comes straight from the point-slope form of a line:
y−y1=m(x−x1)y - y_1 = m(x - x_1)
Solving for yy when x=x1+Δxx = x_1 + \Delta x:
y=y1+m⋅Δxy = y_1 + m \cdot \Delta x

Organizing Your Work: The Euler’s Method Table

The best way to keep Euler’s method calculations organized is with a table:
xx
yy
dydx\frac{dy}{dx}
ynew=y+dydx⋅Δxy_{\text{new}} = y + \frac{dy}{dx} \cdot \Delta x
Process for each row:
  1. Write the current xx and yy values
  1. Calculate dydx\frac{dy}{dx} by substituting xx and yy into the differential equation
  1. Calculate ynewy_{\text{new}} using the Euler formula
  1. Move to the next row, where the new xx = old xx + Δx\Delta x, and yy = ynewy_{\text{new}} from the previous row

Example 1: Two-Step Approximation

Problem: Given dydx=x−y\frac{dy}{dx} = x - y with y(0)=2y(0) = 2, use Euler’s method with Δx=0.5\Delta x = 0.5 to approximate y(1)y(1).
Step 1: Determine the number of steps
From x=0x = 0 to x=1x = 1 with Δx=0.5\Delta x = 0.5:
Number of steps=1−00.5=2 steps\text{Number of steps} = \frac{1 - 0}{0.5} = 2 \text{ steps}
Step 2: Set up the table
xx
yy
dydx=x−y\frac{dy}{dx} = x - y
ynew=y+dydx(0.5)y_{\text{new}} = y + \frac{dy}{dx}(0.5)
00
22
0−2=−20 - 2 = -2
2+(−2)(0.5)=12 + (-2)(0.5) = 1
0.50.5
11
0.5−1=−0.50.5 - 1 = -0.5
1+(−0.5)(0.5)=0.751 + (-0.5)(0.5) = 0.75
11
0.750.75
Step 3: State the answer
y(1)≈0.75y(1) \approx 0.75

Example 2: Three-Step Approximation

Problem: Given dydx=xy\frac{dy}{dx} = xy with y(1)=2y(1) = 2, use Euler’s method with step size 0.40.4 to approximate y(2.2)y(2.2).
Step 1: Calculate the step size information
From x=1x = 1 to x=2.2x = 2.2, the distance is 2.2−1=1.22.2 - 1 = 1.2.
With Δx=0.4\Delta x = 0.4:
Number of steps=1.20.4=3 steps\text{Number of steps} = \frac{1.2}{0.4} = 3 \text{ steps}
Step 2: Create the Euler’s method table
xx
yy
dydx=xy\frac{dy}{dx} = xy
ynew=y+(xy)(0.4)y_{\text{new}} = y + (xy)(0.4)
11
22
(1)(2)=2(1)(2) = 2
2+2(0.4)=2.82 + 2(0.4) = 2.8
1.41.4
2.82.8
(1.4)(2.8)=3.92(1.4)(2.8) = 3.92
2.8+3.92(0.4)=4.3682.8 + 3.92(0.4) = 4.368
1.81.8
4.3684.368
(1.8)(4.368)=7.8624(1.8)(4.368) = 7.8624
4.368+7.8624(0.4)=7.512964.368 + 7.8624(0.4) = 7.51296
2.22.2
7.512967.51296
Step 3: State the answer
y(2.2)≈7.513y(2.2) \approx 7.513
Important: don’t round the intermediate values. Keep all the decimal places until the final answer so rounding errors don’t pile up.

Example 3: Multi-Step Problem with Five Steps

Problem: Given dydx=3x\frac{dy}{dx} = 3x with f(2)=5f(2) = 5, use Euler’s method with 5 steps to approximate f(3)f(3).
Step 1: Calculate the step size
Δx=3−25=15=0.2\Delta x = \frac{3 - 2}{5} = \frac{1}{5} = 0.2
Step 2: Build the table systematically
xx
yy
dydx=3x\frac{dy}{dx} = 3x
ynew=y+(3x)(0.2)y_{\text{new}} = y + (3x)(0.2)
22
55
3(2)=63(2) = 6
5+6(0.2)=6.25 + 6(0.2) = 6.2
2.22.2
6.26.2
3(2.2)=6.63(2.2) = 6.6
6.2+6.6(0.2)=7.526.2 + 6.6(0.2) = 7.52
2.42.4
7.527.52
3(2.4)=7.23(2.4) = 7.2
7.52+7.2(0.2)=8.967.52 + 7.2(0.2) = 8.96
2.62.6
8.968.96
3(2.6)=7.83(2.6) = 7.8
8.96+7.8(0.2)=10.528.96 + 7.8(0.2) = 10.52
2.82.8
10.5210.52
3(2.8)=8.43(2.8) = 8.4
10.52+8.4(0.2)=12.210.52 + 8.4(0.2) = 12.2
33
12.212.2
Answer: f(3)≈12.2f(3) \approx 12.2

Accuracy Considerations

Factors Affecting Accuracy

  1. Step size: smaller Δx\Delta x means a more accurate approximation
  1. Number of steps: more steps means you get closer to the actual solution
  1. Behavior of the function: rapidly changing functions need smaller steps

Error Accumulation

Every step introduces a small error, because you’re using a straight line to approximate a curve. Those errors accumulate over multiple steps, so:
  • Euler’s method is most accurate near the starting point
  • Accuracy gets worse the further you move from the initial condition
  • The approximation typically underestimates or overestimates consistently, based on concavity

Overestimate or Underestimate?

Euler’s method walks along tangent lines, so the shape of the solution curve tells you which way it’s off:
  • Concave up (d2ydx2>0\frac{d^2y}{dx^2} > 0): tangent lines sit below the curve, so Euler’s method gives an underestimate
  • Concave down (d2ydx2<0\frac{d^2y}{dx^2} < 0): tangent lines sit above the curve, so Euler’s method gives an overestimate
To find d2ydx2\frac{d^2y}{dx^2}, differentiate the differential equation (implicitly, since yy depends on xx). The concavity has to hold over the whole interval you step across, not just at the starting point.
Example: In the Visual Representation example above, dydx=1+y\frac{dy}{dx} = 1 + y with y(0)=0y(0) = 0. Then
d2ydx2=dydx=1+y\frac{d^2y}{dx^2} = \frac{dy}{dx} = 1 + y
The solution starts at y=0y = 0 with a positive slope and keeps increasing, so y≥0y \geq 0 and d2ydx2=1+y>0\frac{d^2y}{dx^2} = 1 + y > 0 the whole way. The curve is concave up, so Euler’s method underestimates. That matches the graph: at x=1.5x = 1.5, Euler’s method gives 2.3752.375, but the actual value is e1.5−1≈3.482e^{1.5} - 1 \approx 3.482.

Common Mistakes to Avoid

  • ❌ Rounding too early. Keep all the decimal places during the calculations, and only round the final answer
  • ❌ Forgetting to multiply by Δx\Delta x. The formula is ynew=y+y′⋅Δxy_{\text{new}} = y + y' \cdot \Delta x, not just y+y′y + y'
  • ❌ Using the wrong xx or yy value. Always use the current point’s coordinates to calculate the slope
  • ❌ Miscounting steps. Double-check that Δx=b−an\Delta x = \frac{b-a}{n} was calculated correctly
  • ❌ Copying errors. When you move to the next row, make sure ynewy_{\text{new}} from the previous row becomes the new yy

Step-by-Step Process Summary

Given: a differential equation dydx=f(x,y)\frac{dy}{dx} = f(x, y), an initial condition (x0,y0)(x_0, y_0), and either a step size Δx\Delta x or a number of steps nn
  1. Calculate the step size if you need to: Δx=xfinal−x0n\Delta x = \frac{x_{\text{final}} - x_0}{n}
  1. Set up the table with columns for xx, yy, dydx\frac{dy}{dx}, and ynewy_{\text{new}}
  1. Fill in the initial values. The first row has x0x_0 and y0y_0
  1. For each row:
      • Calculate dydx\frac{dy}{dx} using the differential equation
      • Calculate ynew=y+dydx⋅Δxy_{\text{new}} = y + \frac{dy}{dx} \cdot \Delta x
      • Next row: xnew=x+Δxx_{\text{new}} = x + \Delta x, and yy = ynewy_{\text{new}} from the previous row
  1. Continue until you reach the xx-value you want
  1. State the answer. The final yy-value is your approximation

Key Takeaways

  • Euler’s Method: an approximation technique using tangent line segments to estimate solutions to differential equations
  • Step size formula: Δx=b−an\Delta x = \frac{b - a}{n}, where nn is the number of steps
  • Core formula: ynew=yold+dydx⋅Δxy_{\text{new}} = y_{\text{old}} + \frac{dy}{dx} \cdot \Delta x
  • Table organization: use columns for xx, yy, dydx\frac{dy}{dx}, and ynewy_{\text{new}} to stay organized
  • Accuracy: smaller step sizes give more accurate approximations, but they take more calculations
  • Over or under: if the solution is concave up, Euler’s method underestimates; if it’s concave down, Euler’s method overestimates
  • Calculator use: keep all the decimal places in the intermediate steps, and don’t round until the final answer
  • BC Calculus only. This topic shows up on the BC exam, not the AB exam
  • Each step uses the current point’s coordinates to find the slope, then moves along the tangent line by Δx\Delta x

AP® is a registered trademark of the College Board, which is not affiliated with Dove's Library and was not involved in the production of, and does not endorse, this website.

Providing free, high-quality AP notes to help students succeed, earn college credit, and reach their educational goals, ensuring everyone has access to the resources they need.

© 2026 Standard Learning Group, Inc., which operates Dove's Library. All rights reserved.