4.8.22 · D5Numerical Methods

Question bank — ODE solvers — Euler's method (derivation, global error)

1,422 words6 min readBack to topic

The whole page tests one thing: do you know which error is which, when the method behaves, and why the geometry is a straight step along a curving path. No arithmetic grinding here — that lives in the worked-example pages.


True or false — justify

Euler's method is second order because its local truncation error is .
False. The local error of one step is , but the global error at a fixed endpoint accumulates over steps, losing one power to give — so Euler is first order.
Halving the step roughly halves the global error.
True. Global error , so scaling by scales the error by about . (If it quartered, the method would be second order.)
If we always start each step exactly on the true curve, the only error left is the local truncation error.
True — that is the very definition of LTE: the error of a single step assuming a perfect start. Global error is what you get when you don't restart on the curve each time and mistakes compound.
Making as small as your computer allows always gives the most accurate answer.
False. Shrinking cuts truncation error but multiplies the number of steps, so round-off error accumulates and cost explodes. There is a sweet spot, not a limit at zero.
For a linear ODE with , Euler's approximation always decays like the true solution.
False. Euler gives ; decay only happens if . Too large an makes this factor in magnitude and the numerical solution grows or oscillates — a stability failure, not an accuracy one. See Numerical Stability.
The global error bound says error grows without limit as we integrate further.
True in the worst case: for a fixed , pushing the endpoint further makes the factor larger, so accumulated error can grow exponentially along the interval.
Euler's method needs a closed-form solution of the ODE to run.
False. It needs only the slope function and a starting point. The whole point is it works precisely when no closed form exists.
If everywhere (the true solution is a straight line), Euler's method is exact.
True. The discarded term is , so there is nothing to throw away — the tangent step lands exactly on the line.

Spot the error

" — that's Euler's update."
Wrong — that uses the slope at the new point, which is Backward (implicit) Euler and requires solving for . Forward Euler uses , the slope at the current point.
"Global error LTE , so the error is ."
The algebra is right up to the last claim: is linear in , i.e. , not . The student misread as .
"The step formula is ."
The step size is missing. Without it the update takes a full unit-length rise regardless of how far actually is — it must be .
" steps, and since each new step is independent, errors just add and stay total."
Two mistakes: errors don't stay because grows as shrinks, and they aren't independent — earlier errors are amplified by later steps, which is exactly where the factor comes from.
"To get the tangent at we need to know near there."
No — the ODE hands us the slope directly as . That is the whole trick: we get the tangent's slope without knowing the curve.
"Since LTE with unknown, we can't say anything useful about the error."
We can: bounding on the interval turns the unknown into a usable inequality , which drives the whole global bound.

Why questions

Why does global error lose exactly one power of compared to local error?
Because reaching a fixed endpoint takes steps, and grows like . Multiplying the per-step by steps kills one power: .
Why does the error bound contain an exponential rather than a plain sum?
Because an error made early doesn't just sit there — it gets fed back through at every later step, and nearby solutions can diverge at rate (the Lipschitz constant). The worst-case compounding of such growth is exponential.
Why do we use a forward difference and not the exact derivative?
A computer cannot take the limit that defines the derivative. Keeping finite gives a usable, computable approximation — the price is the truncation error we then analyse.
Why is Taylor's theorem the right tool for the error, rather than just guessing?
Taylor's theorem is exact: the remainder term is not an approximation but the precise thing we discard. That lets us name and bound the error instead of hand-waving. See Taylor Series Expansion.
Why does the Lipschitz condition on matter for Euler at all?
It guarantees nearby solutions can't diverge faster than rate , which is exactly what keeps accumulated errors bounded. Without it, the factor — and the whole error guarantee — could fail to exist.
Why does a small step keep us close to a curving true solution even though we walk in straight lines?
Over a tiny horizontal distance , the curve barely bends, so its tangent and the curve nearly coincide. The gap per step is — shrinking makes each straight step hug the curve tighter.

Edge cases

What does Euler do when at a step (slope is flat)?
The update becomes : the point stays put for that step. It's a perfectly valid step — a horizontal tangent — not an error.
For , with , Euler gives then stays at . What went wrong?
The factor collapses the value to exactly zero, and the true is badly missed. The step is too big for the fast decay — an instability, curable by shrinking .
What happens to Euler if the true solution has a vertical asymptote (blows up) inside the interval?
Euler keeps taking finite tangent steps and produces finite numbers even where the true solution is infinite, so it silently gives nonsense past the blow-up. The bound assumed , which fails there.
If is chosen so that overshoots the target , what's the danger?
The final step lands past , so you evaluate the solution at the wrong point. Choose so that is a whole number, or take a smaller final step.
What is the smallest meaningful number of steps, ?
A single Euler step from to : it's just one tangent jump. Global and local error coincide here because there's nothing to accumulate yet.
Does Euler behave differently if the slope function depends only on (i.e. )?
Then Euler reduces to the left-endpoint rectangle rule for the integral — a familiar first-order quadrature. It confirms the order from a different angle.

Connections

  • Euler's Method — Derivation & Global Error — the parent this bank drills
  • Taylor Series Expansion — source of the exact remainder term
  • Numerical Stability — the decay/blow-up edge cases
  • Backward Euler & Implicit Methods — the implicit look-alike trap
  • Lipschitz Continuity — why the exponential error factor exists
  • Runge-Kutta Methods — higher-order fixes for the order-one limit
  • Finite Difference Approximations — the forward-difference derivation route