Mistake Master
Student view — seeing the site as a student does
Mistake Master · AP Calculus · Unit 7 · Step-Through Animation

Approximating Solutions Using Euler's Method

Tangent Lines, Chained

You'll learnto run Euler's method one row at a time, to size and count and point the steps correctly, and to say which side of the true value your estimate lands on before you know the true value.

Euler's method solves a differential equation the way you would cross a dark room: take the direction you have, move a short distance, ask again, repeat. The whole method is one tangent-line step, and the whole difficulty is remembering to ask again. Twelve short steps; press Next for each one.

12 STEPS · 6 QUICK CHECKS · RE-ASK THE SLOPE AT EVERY NEW POINT · v2

each step re-asks the equation where it is standing
Before you start
What you're looking at
A slope field, and a chain of straight steps walked across it. Each step starts where the last one ended.
The question
How wide is a step, how many of them, which way do they go — and is the direction re-asked at every new point, or reused from the first?
Step 1 / 12

Read all 12 steps as text
Step 1

The equation knows the slope here

Start at \((0,\,1)\). Without solving anything, \(\frac{dy}{dx} = x + y\) already says the slope there is \(0 + 1 = 1\).

Step 2

One step follows it

Go along that direction for a short run of \(h = 0.5\): the height rises by \(0.5 \times 1 = 0.5\), landing at \((0.5,\, 1.5)\).

Step 3

Ask again where you land

At \((0.5,\, 1.5)\) the equation gives a fresh slope, \(0.5 + 1.5 = 2\) — twice as steep as the one you started with.

Step 4

Two steps, and a turn

The second step is twice as steep, so the walk visibly turns and arrives at \((1,\, 2.5)\).

Step 5

The true curve, and the gap

This problem happens to be solvable exactly, \(y = 2e^{x} - x - 1\), so the estimate can be measured rather than trusted.

Step 6

Which side, with no solving

Differentiating the differential equation gives \(\frac{d^{2}y}{dx^{2}} = 1 + x + y\), which is positive here, so the curve bends upward and every tangent step lands under it.

Step 7

How wide, and how many

Either the step size is handed to you, or you are given a number of equal steps and \(h = \frac{b - a}{n}\).

Step 8

Smaller steps, smaller gap

The same problem at \(h = 1\), \(h = 0.5\) and \(h = 0.25\) gives errors of \(1.437\), \(0.937\) and \(0.554\): each halving of \(h\) roughly halves the gap.

Step 9

Walking backwards

If the initial condition sits at \(x = 1\) and you want \(y(0.5)\), then \(h = \frac{0.5 - 1}{2} = -0.25\) and the recursion runs unchanged.

Step 10

A bowl and a dome

Both panels start at \((0,\,1)\) with the same two steps; only the equation differs, and the walks end up on opposite sides of their curves.

Step 11

One slope reused

Reusing the first slope for both steps gives \(1 + 0.5(1) + 0.5(1) = 2\), which is the tangent line at the start stretched across the whole interval.

Step 12

The routine

Size the step, count the rows, get the sign of \(h\) right, and re-ask the equation at every new point.