Exercises — ODE solvers — Euler's method (derivation, global error)
Everything below uses only the tools built in the parent note Euler's Method: the update rule the local truncation error , and the global error .
Level 1 — Recognition
Goal: spot the pieces of an IVP and plug into the formula once.
Exercise 1.1
Given the IVP with , identify each of these: the function , the starting point , and the slope of the solution curve at the start.
Recall Solution
- — this is the right-hand side of the ODE, the machine that returns a slope for any point.
- — the known starting value.
- Slope at start .
What we did: we did not solve anything — we only read off the parts. Recognising , the seed point, and evaluating the slope once is the whole skill at L1.
Exercise 1.2
For , take one Euler step with . What is and at what ?
Recall Solution
Slope at start: . Why: "New = Old + step × slope-at-old." One application of the boxed formula, nothing more.
Level 2 — Application
Goal: carry the recursion for several steps by hand.
Exercise 2.1
Solve with for three steps. Find .
Recall Solution
| slope | ||||
|---|---|---|---|---|
| 0 | 0.0 | 1.000 | 1.000 | 1.100 |
| 1 | 0.1 | 1.100 | 1.200 | 1.220 |
| 2 | 0.2 | 1.220 | 1.420 | 1.362 |
So at . What we did: each row reuses the previous — this is the "self-bootstrapping" the parent note described. What it looks like: three short straight segments, each starting where the last ended (see figure below).

Exercise 2.2
Solve with for four steps. Find , then compare with the true value .
Recall Solution
Here , so each step is . True value: Error . Why the multiplication trick? When , the update becomes a constant factor per step — Euler turns the continuous decay into geometric decay . It shrinks, but too fast, because each straight step undershoots the curving-up-toward-zero real solution.
Level 3 — Analysis
Goal: reason about error size and order, not just crank numbers.
Exercise 3.1
For the true solution is . Using the result at (from the parent note), compute the global error at . Then predict the error if you instead used , and state why.
Recall Solution
True value: . Global error at with : Prediction for : Euler is first order, GE . Halving should roughly halve the error, so we expect . Why: the endpoint is fixed. Shrinking from to doubles the number of steps (), but each local error shrinks by a factor of . Net effect: . One power of survives → linear, halving behaviour.
Exercise 3.2
The global error bound is . For on we have (since ) and . Given , find on and evaluate the bound at with . Is the actual error (Ex 3.1) within it?
Recall Solution
is increasing, so its max on is at the right end: . Bound at : Actual error was . Since , the actual error is within the bound. ✓ Why the bound is bigger: it is a worst-case guarantee — it uses the largest and assumes errors amplify at the full Lipschitz rate . Real error is usually a bit smaller.
Level 4 — Synthesis
Goal: combine stepping, error reasoning, and a second concept.
Exercise 4.1
Solve with for two steps to reach . Report , compare with the true value , and explain using the stability quantity (with ) why the answer is so wrong.
Recall Solution
Update: . True: . Error — enormous relative to the answer. Stability reasoning: for a decay problem , one Euler step multiplies by the factor . Here . A factor of exactly collapses the solution to zero in a single step — the tangent at the start is so steep it overshoots straight through the axis. This is a stability failure, not just accuracy: see Numerical Stability. For real decay we need , i.e. here; sits right on the edge case where the factor vanishes.

Exercise 4.2
For the same , choose and take four steps to . Compute , compare with , and confirm the stability factor is now safely below .
Recall Solution
Factor per step: . Since , the numerical solution decays sensibly. True: . Error — still large, but now the solution decays toward zero from above instead of collapsing to exactly zero. Smaller restored qualitatively correct behaviour. Why: the factor guarantees each step shrinks without overshoot, so the numerical solution now looks like the true exponential decay even if the magnitude is not yet accurate.
Level 5 — Mastery
Goal: derive a general result and use it to make a design decision.
Exercise 5.1
You must solve an IVP on with Euler, and your global error at with came out to be . Your tolerance is . Using only the order of the method, find the largest that meets the tolerance, and the number of steps it requires.
Recall Solution
First order ⇒ global error scales linearly: for some constant . From we get . Require . Largest convenient dividing the interval: take , giving What we did: we used only the fact GE to extrapolate from one measured error to the step size that hits a target. Why this works: the constant (which hides , , the factor) cancels in the ratio — the order alone gives the scaling law. This is exactly why knowing "" is practically valuable.
Exercise 5.2
Compare cost: a hypothetical second-order method has GE and produced the same at . Find the and step count it needs for tolerance , and state the lesson versus Euler's 80 steps.
Recall Solution
Second order: . From . Require . Steps: round up to steps (). Lesson: to gain a factor of in accuracy (), Euler needs more steps (), but the second-order method needs only about more (). Higher order pays off dramatically as tolerances tighten — this is precisely the motivation for Runge-Kutta Methods.
Recall One-line summary of all five levels
L1 read off → L2 crank the table → L3 measure global error and see it halve → L4 stability gates accuracy → L5 the order gives a scaling law that drives step-count decisions.
Connections
- Taylor Series Expansion — origin of the local error used in L3.
- Numerical Stability — the threshold that decides L4.
- Runge-Kutta Methods — the higher-order methods motivated by L5.
- Backward Euler & Implicit Methods — the "new-slope" method the L1 trap describes.
- Lipschitz Continuity — the constant in the error bound of Ex 3.2.
- Finite Difference Approximations — the forward difference behind the update.