Calculus · Grade 12 and undergraduate
Euler's Method
Quick answer
Euler's method approximates the solution of dy/dx = f(x, y) through a point without solving the equation. From the current point, follow the tangent line for a step h: the new point is x + h and y + h·f(x, y). Repeating the step traces a broken line that follows the slope field. Smaller steps give better approximations, with the error shrinking roughly in proportion to h. When the solution curve is concave up the method underestimates, and when it is concave down it overestimates.
What you'll learn
- Carry out Euler's method for a given step size
- Explain Euler's method as repeated linear approximation
- Decide from concavity whether an estimate is too high or too low
- Describe how the error changes with the step size
Following the slope field
A slope field shows the direction a solution travels at every point, but most differential equations have no formula for their solutions. Euler’s method walks along the field instead. From the starting point, move a short distance in the direction the slope gives, look up the slope at the new point, and move again.
Definition
To approximate the solution of through with step size , repeat
- exact solution y = eˣ
Why each step is a tangent line
A single step is the linear approximation from the lesson on derivatives: . The differential equation supplies the derivative, , so no formula for is needed. Euler’s method is linear approximation, repeated, with the slope field supplying each slope.
Each step errs a little, because the solution curves away from its tangent line, and the errors add up. Halving makes each step’s error about four times smaller but doubles the number of steps, so the total error at a fixed point is roughly halved.
Over or under?
The concavity of the solution decides the direction of the error. Where the solution is concave up, its tangent lines lie below it, so each step lands low and the estimate is too small, as in the graph. Where it is concave down, the estimate is too large. Find the concavity by differentiating the equation itself: for , .
Worked examples
Common mistakes
Practice problems
-
Use two steps of size to estimate for , .
Answer
Full solution
, then .
-
Use two steps of size to estimate for , . Compare with the exact solution.
Answer
; the exact value is
Full solution
The slope at is , so . The slope at is , so . The exact solution is , with .
-
Use two steps of size to estimate for , .
Answer
Full solution
The slope at is : . The slope at is : .
-
Use two steps of size to estimate for , . Is the estimate too high or too low?
Answer
About , too high
Full solution
and . The solution is , with . It is concave down, since , so the estimate is too high.
-
Use two steps of size to estimate for , .
Answer
Full solution
The slope at is : . The slope at is : .
-
For , , use two steps of size to estimate , and decide from concavity whether the estimate is too high or too low.
Answer
, too low
Full solution
and . Differentiating the equation, , so the solution is concave up and the estimate is low. Indeed .
-
Use one step of size to estimate for , .
Answer
Full solution
The slope at is , so .
-
A function has and . Use two steps of size to estimate , and compare with the exact value.
Answer
; the exact value is
Full solution
The slope at is : . The slope at is : . Exactly, .
-
For , , Euler’s method with step gives . What happens as ?
Answer
The estimates approach .
Full solution
Each of the steps multiplies by . The limit of as is , the exact value of .
-
For , , a student estimates with as . What went wrong?
Hint
How far does change over a run of at slope ?
Answer
The student added the slope instead of times the slope. The estimate is .
Full solution
, close to .
Frequently asked questions
What is the formula for Euler's method?
From (xₙ, yₙ), take x₍ₙ₊₁₎ = xₙ + h and y₍ₙ₊₁₎ = yₙ + h·f(xₙ, yₙ), where dy/dx = f(x, y) and h is the step size.
Why does Euler's method work?
Each step is a linear approximation: it follows the tangent line, whose slope the differential equation supplies, for a short distance.
How do I know if Euler's method overestimates or underestimates?
Check the concavity of the solution. Concave up means the tangent lines lie below the curve, so the estimate is too low; concave down means it is too high.
How does the step size affect the error?
Smaller steps give smaller errors. Halving h roughly halves the error at a fixed point, at the cost of twice as many steps.
Can Euler's method step backward?
Yes. Use a negative step h to estimate values to the left of the starting point.