Euler's Method
Most differential equations can’t be solved with a neat formula. Euler’s method (say “OY-ler”) gets a numerical answer anyway: start at a known point, follow the tangent line a short distance, recompute the slope from the differential equation, and repeat. It is linearization used over and over, and it’s the numerical cousin of following a slope field. On the AP Calculus BC exam it usually appears as a short no-calculator part of a differential equations question.
Key ideas
Section titled “Key ideas”One step
Section titled “One step”Suppose and you know the point is on the solution. The slope there is . Move right by a step size along the tangent line:
In words: new = old + slope × step.
Repeat
Section titled “Repeat”At the new point , compute a new slope from the differential equation and step again. A table keeps the work organized:
| at this point | |||
|---|---|---|---|
To reach a target from with step , you need steps.
Step size
Section titled “Step size”Each step follows a tangent line, which drifts away from the true curve. Smaller steps stay closer to the curve and usually give better estimates, at the cost of more arithmetic.
Too high or too low?
Section titled “Too high or too low?”The answer depends on the concavity of the solution:
- If the solution is concave up (), tangent lines lie below the curve, so Euler’s method gives an underestimate.
- If the solution is concave down (), tangent lines lie above the curve, so Euler’s method gives an overestimate.
You can find without solving the equation: differentiate implicitly, then substitute the differential equation in for every . On a test, justify with a sentence like ” on this interval, so the solution curve is concave up and lies above its tangent lines; the Euler approximation is an underestimate.”
Worked examples
Section titled “Worked examples”Example 1: Two steps
Section titled “Example 1: Two steps”Let be the solution of with . Use Euler’s method with two steps of equal size to approximate .
Solution. Two steps from to means .
So .
Example 2: A smaller step, and under or over?
Section titled “Example 2: A smaller step, and under or over?”For the same equation, (a) approximate with four steps, (b) decide whether these approximations are under- or overestimates. (c) The exact solution is . Compare.
Solution.
(a) Now :
So .
(b) Differentiate the differential equation:
Starting from , and both stay positive (the slope is positive, so keeps increasing). So for : the solution is concave up, its tangent lines lie below it, and both Euler approximations are underestimates.
(c) Exactly, . The two-step estimate is off by about ; the four-step estimate is off by about . Halving the step size roughly halved the error.
Example 3: A cooling problem that overestimates
Section titled “Example 3: A cooling problem that overestimates”A cold drink at is set out in a room. Its temperature (in ) after minutes satisfies . (a) Use Euler’s method with to estimate . (b) Is your estimate too high or too low?
Solution.
(a)
So .
(b) Differentiate:
The drink stays colder than the room (), so . The solution is concave down, the tangent lines lie above it, and is an overestimate.
(The exact solution is , so , which confirms it.)
Common mistakes
Section titled “Common mistakes”Using the same slope for every step. The whole point is to recompute at each new point, using the new and the new .
Forgetting to multiply by the step size. The change is , not just . With , a slope of only raises by .
Counting steps wrong. From to with is four steps, and the slope at the last point () is never used.
Mixing up concave up and under/over. Concave up means the curve bends above its tangent lines, so the tangent-line steps fall short: an underestimate. Picture and its tangent lines if you’re unsure.
Forgetting to substitute when finding the second derivative. , and then you must replace with . An answer that still contains can’t be evaluated at a point.
Practice
Section titled “Practice”1. (Warm-up) Let satisfy with . Use Euler’s method with to approximate .
Solution
. (The exact solution gives ; since , the estimate is low, as expected.)
2. (Warm-up) Given and , use one step of Euler’s method with to approximate .
Solution
The slope at is , so
3. (Warm-up) Given and , use Euler’s method with two equal steps to approximate .
Solution
.
.
4. (Core) Let be the solution of with .
- (a) Use Euler’s method with to approximate . Give your answer to 3 decimal places.
- (b) Find in terms of and , and decide whether your answer to (a) is an under- or overestimate.
Solution
(a)
.
(b) By the product rule, .
The slope is never negative for and , so never drops below . Then : the solution is concave up, so is an underestimate. (The exact value is .)
5. (Core) Given and :
- (a) Use Euler’s method with to approximate .
- (b) Show that . Given that the solution satisfies for , is your estimate too high or too low?
Solution
(a)
.
(b) . If , then , so the solution is concave up and is too low. (The exact solution gives .)
6. (Core) Water drains from a tank. The depth in metres after minutes satisfies , with .
- (a) Use Euler’s method with to approximate . Give your answer to 3 decimal places.
- (b) Is the approximation an under- or overestimate? Justify.
Solution
(a) At : slope , so .
At : slope , so m.
(b) By the chain rule,
The solution is concave up, so the estimate is an underestimate. (The exact solution is , giving .)
7. (Core) A quantity satisfies with . One step of Euler’s method with gives . Find .
Solution
The slope at is , so one step gives
8. (Challenge) Let satisfy with .
- (a) Use Euler’s method with two equal steps to approximate .
- (b) Find and explain why the approximation is an underestimate.
Solution
(a) . At : slope , so . At : slope , so .
(b) By the product rule,
Starting at , the slope is never negative while , so stays at least . For , both and , so . The solution is concave up, so is an underestimate. (The exact value is .)
9. (Challenge) For with , show that Euler’s method with equal steps from to gives . What happens as ?
Solution
Let . One step gives . Subtract both sides from :
So the gap is multiplied by at each step. It starts at , so after steps it is , and
As , , so the estimates approach . That is the exact value: the solution is . Smaller and smaller steps converge to the true answer.
Homework
Section titled “Homework”Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.
The step size is written (the same as ), and one step of Euler’s method is with . Any trig uses radians.
Foundations
Section titled “Foundations”H1. (Foundations) Given and , use step size .
- (a) Write the formula for and use it to approximate .
- (b) Take a second step to approximate .
H2. (Foundations) Let satisfy with .
- (a) Use Euler’s method with two equal steps to approximate . Show your work in a table.
- (b) Check that is the exact solution, and find the error in your estimate to 4 decimal places.
- (c) Use to explain why your estimate is too low.
H3. (Core) Let be the solution of with .
- (a) Use Euler’s method with to approximate .
- (b) Use Euler’s method with to approximate .
- (c) The exact solution is . Find the error of each estimate to 4 decimal places. Which step size did better, and by roughly what factor did the error shrink?
- (d) Find in terms of and , and use it to explain why both estimates are underestimates.
H4. (Core) A cup of tea is poured at in a kitchen. In a hypothetical cooling model, its temperature (in ) after minutes satisfies .
- (a) Use Euler’s method with three steps of minutes to estimate .
- (b) Find in terms of , and decide whether your estimate is too high or too low.
- (c) The exact solution is . Find to 2 decimal places and check that it agrees with your answer to (b).
H5. (Core) (AP style) Let be the particular solution to the differential equation with initial condition .
- (a) Find in terms of and . Is the graph of concave up or concave down at the point ? Justify.
- (b) Use Euler’s method, starting at , with two steps of equal size, to approximate . Show the work that leads to your answer in a table with columns for , , , and .
- (c) It is known that the graph of is concave up for . Is your approximation in (b) an underestimate or an overestimate of ? Explain.
H6. (Core) (IB style) Consider the differential equation , where is in radians, with when .
- (a) Use Euler’s method with step length to find an approximate value of when . Give your answer to 4 decimal places.
- (b) The exact solution is . Find the exact value of when , to 4 decimal places.
- (c) Find the percentage error in your answer to (a), using unrounded values.
- (d) Suggest one way to make the Euler approximation more accurate.
Challenge
Section titled “Challenge”H7. (Challenge) For with , a student uses Euler’s method with to approximate . Here is the work:
Answer these:
- (a) Explain the student’s mistake. Write the (incorrect) update rule the student used in the form .
- (b) Find the correct Euler approximation of .
H8. (Challenge) A hypothetical tank is being filled while some water drains out. The volume in litres after minutes satisfies , with . You want to estimate with Euler’s method using equal steps.
- (a) Which of these step sizes land exactly on : , , , , , ? For each one that works, state the number of steps. Explain why the others don’t work.
- (b) Find the step size that gives exactly three steps, and use it to estimate to 3 decimal places.
- (c) Without solving the differential equation, decide whether your estimate is too high or too low. (Assume the volume stays below L.)
- (d) The exact solution is . Find to 3 decimal places and compare.
H9. (Challenge) For with , Euler’s method from to gives these estimates of :
| Step size | |||
|---|---|---|---|
| Estimate of |
The estimates are rounded to 6 decimal places.
- (a) Find the error for each step size, to 4 decimal places.
- (b) Describe the pattern in the errors when is halved.
- (c) Predict, roughly, the error with .
- (d) Explain in words why halving the step size roughly halves the error. (A careful description of what happens on each step is enough; no formula is needed.)
H10. (Challenge) Consider with .
- (a) Use Euler’s method with to approximate .
- (b) Repeat with .
- (c) Show that is the exact solution.
- (d) Your answers to (a) and (b) should be exactly right. Explain why, using and what a tangent line does on a graph with no concavity.