Visual walkthrough — ODE solvers — Euler's method (derivation, global error)
We are chasing a curve we cannot write down. We only know its slope at every point. Watch how that single fact becomes a working method, step by step.
Step 1 — What we are given: a slope field, not a curve
WHAT. We have an Initial Value Problem:
Read every symbol out loud:
- — the horizontal position (how far along we've walked).
- — the height of the curve at that position (what we want to know).
- — "how steep is the curve here", the rise over run of its tangent line.
- — a machine: feed it a point , it hands back a slope. We do have this.
- — the one point we know for certain. Our starting pin.
WHY this framing. We cannot integrate directly because depends on , and is exactly the unknown. So instead of a formula, think of as painting a tiny arrow at every point of the plane — a slope field. The true solution is the curve that always lines up with the local arrow.
PICTURE. Below, the pastel arrows are the slope field for . The single black dot is our known start . There is no curve drawn yet — that's the whole problem.

Step 2 — The one honest move: trust the tangent for a short distance
WHAT. At our known point the arrow points with slope . We build the straight line through the point with exactly that slope — the tangent line — and follow it a short horizontal distance .
Term by term: is . Add that rise to the current height and you land at the new height .
WHY. Right at the start the tangent line is the curve (they touch and share a slope). For a short run they stay close. We can't follow the curve — we have no formula — but we can follow its tangent, because the tangent needs only the slope, which gives us for free.
PICTURE. The right triangle makes the arithmetic visible: horizontal leg , vertical leg , and the hypotenuse is the tangent we walk along.

Step 3 — Where does the step formula come from? Taylor's theorem
WHAT. Taylor's theorem writes the true height a distance ahead exactly:
- is the slope — which the ODE says equals .
- is the curvature: how fast the slope itself changes. is some hidden point between and .
- The term is small when is small, because squaring a small number makes it much smaller.
WHY this tool and not another. Why Taylor? Because it is the one expansion that separates a curve into "a straight line plus a labelled, honest remainder". That remainder tells us exactly what we are throwing away when we keep only the straight-line part. No other tool hands us the error term on a plate.
Drop the term and you get the boxed Euler step of Step 2. The discarded is the local truncation error — the error of a single step.
PICTURE. The true curve rises above the tangent line by exactly the gap . That gap is the correction we chose to ignore.

Step 4 — Repeat: chain the steps into a staircase
WHAT. We only reached . To go further, treat the landing point as a new start, read the slope there, and step again:
WHY. This is the "self-bootstrapping" idea: each answer becomes the input for the next question. We never needed the whole curve at once — only the slope wherever we currently stand.
Notice the danger being born: at we are already slightly below the true curve, so the slope we read is the slope of the wrong point. Small mistakes feed the next step.
PICTURE. A polyline (bent line) of tangent segments — the Euler path — climbing beside the smooth true curve. See the gap open up.

Step 5 — Local error: one step's mistake is
WHAT. The mistake made in one step (assuming we started exactly on the curve) is the term we dropped:
The notation means: "behaves like a constant times for small ." Halve , and this single-step mistake drops to a quarter.
WHY it matters. This is the tempting trap. looks great. But it is the cost of one step, and we take many steps to cross a fixed distance.
PICTURE. Zoom into one step: the vertical bracket between "where the tangent lands" and "where the curve actually is" is the LTE — a tiny sliver proportional to .

Step 6 — Global error: why we lose one power of
WHAT. To reach a fixed endpoint we need As shrinks, grows (smaller steps → more of them). Add up the mistakes:
- : this factor of eats one power of .
- Result: the global error is , not .
WHY. This is the whole reason Euler is called first order. Each step is cheap (), but you pay for it times. One power of survives.
PICTURE. Two staircases across the same interval : a coarse one (big , few steps, wide final gap) and a fine one (small , many steps, narrow gap). The final gap shrinks in proportion to — linearly, not quadratically.

Step 7 — The degenerate case: when a big step overshoots
WHAT. Take , , . The true solution decays smoothly: . But Euler gives It slams to zero and stays there. True .
WHY. The tangent at the start is steeper than the curve for the whole step, so following it straight overshoots the gentle decay entirely. The governing quantity is with : here . If that number exceeds , the numbers would blow up. This is the doorway to Numerical Stability and Backward Euler & Implicit Methods.
PICTURE. The smooth decaying curve versus the Euler point crashing to (and sticking at) zero — the tangent line diving straight through the true curve.

The one-picture summary
Everything on one canvas: the slope field, the known start, the tangent staircase we walk, the growing gap to the true curve, and the label that a coarse step gives a wide gap () while a fine step gives a narrow one.

Recall Feynman retelling of the whole walkthrough
You are lost in fog and can only see, at your feet, which way the path points. You cannot see the path ahead. So you face that direction and take one small step (Step 2). Taylor's theorem is just the honest bookkeeper who whispers, "By walking straight you missed the curve by about " (Step 3). At the new spot you look down again, face the new direction, step again — that's the staircase (Step 4). One step's error is tiny, like (Step 5). But to cross the whole valley you take about steps, so the total drift is times , which is just (Step 6). That's why halving your step size only halves your final error — Euler is first order. And if you take a wildly big step on a curve that's turning fast, you can leap right past it and land somewhere silly (Step 7) — the warning that step size also controls stability.
Connections
- Taylor Series Expansion — the theorem behind Step 3's exact remainder
- Finite Difference Approximations — the tangent step read as a forward difference
- Runge-Kutta Methods — sample several slopes per step to kill more of the error
- Backward Euler & Implicit Methods — cures the Step 7 overshoot
- Numerical Stability — the condition from Step 7
- Lipschitz Continuity — supplies the in the Step 6 bound