Numerical ODE: Euler, Runge–Kutta
Why this is asked: Know the local vs global order (Euler: local O(h²), global O(h)), the RK2 order conditions, and the stability interval for Euler applied to y′ = λy.
In one sentence
Euler is first order, Runge–Kutta 4 is fourth, and being higher order says nothing about being stable — an explicit method with too large a step produces growth where the true solution decays.
Why the exam asks it
Because order and stability are independent properties that both sound like "accuracy", and because the stability condition for Euler is a one-line computation that gives a definite number.
The idea
For , , step :
Euler: .
Local truncation error is the error of one step from exact data: for Euler. Global error accumulates over steps, giving — so Euler is first order, and halving halves the error.
The general relation is that a method with local error has global order . Options quote one for the other.
The standard methods
| method | stages | order |
|---|---|---|
| Euler | 1 | 1 |
| Heun / improved Euler | 2 | 2 |
| midpoint | 2 | 2 |
| classical Runge–Kutta | 4 | 4 |
RK4 is
with , , , .
Four function evaluations per step for fourth-order accuracy — the reason it is the default.
Stability
Apply a method to with , whose true solution decays. Euler gives
so the numerical solution decays only when . For real that means
Exceed it and the computed solution grows while the true one decays — not inaccuracy but qualitative nonsense. With the boundary is ; at the factor is and the values oscillate with growing magnitude.
Every explicit method has a bounded stability region, RK4 included. Being fourth order does not help: a step outside the region diverges however accurate the method is on paper.
Backward Euler gives factor , which has modulus below for every when . It is A-stable, unconditionally stable, at the price of solving an equation at each step.
Stiff problems have widely separated timescales — a large forcing a tiny for stability even after the fast component has died. That is exactly when implicit methods are worth their cost, and recognising stiffness is usually what the question is really about.
Convergence
Lax: consistency stability convergence. A consistent method that is unstable does not converge however small becomes, and this is the theorem behind the whole subject.
In practice, shrinking helps only until rounding error dominates: total error behaves like , so there is an optimal below which accuracy gets worse.
Where intuition breaks
"Higher order means more stable." Independent. RK4 has a bounded stability region like every explicit method; with too large a step it diverges.
"Local error makes Euler second order." Global order is one less. locally is order globally.
"Smaller is always better." Until rounding dominates. The error curve turns back up, and the optimum is where meets .
"Implicit methods are more accurate." More stable. Backward Euler is A-stable and still only first order.
"A stable method gives an accurate answer." Stability stops it exploding; accuracy is the order. A stable first-order method can be very wrong and still bounded.
"RK4 uses four steps." Four evaluations within one step. The step count is unchanged.
"Stiffness means the problem is hard." It means the timescales are separated, so an explicit method needs a step set by the fastest component even long after it has decayed.
The exam's angle
- Read order from the global error. Halving and dividing the error by identifies directly, which is how these questions are usually posed.
- For stability, apply the method to and require the amplification factor to have modulus below . For Euler that is .
- Count function evaluations, not steps, when comparing cost.
- If the question mentions widely different rates, it is about stiffness and the answer is an implicit method.
- Distinguish stability from accuracy — options routinely offer one as evidence of the other.
The night before
- Local error global order . Euler: local , global .
- Heun and midpoint order ; RK4 order with four evaluations per step.
- Euler stability: , so for real . Beyond it the numerical solution grows while the true one decays.
- Every explicit method has a bounded stability region — order does not rescue it.
- Backward Euler is A-stable, factor , and still first order.
- Stiff: separated timescales; use implicit methods.
- Lax: consistency stability convergence.
- Total error : there is an optimal .
See it move
Check yourself
Using Euler's method with step size 0.05, the approximate value of the solution of dy/dx , at x = 1.1 (rounded to two decimal places) is
More in Numerical Analysis
Take it further
- The mistake this prevents: numerical convergence → real wrong options, and why each one tempts
- Previous-year questions set on this — every option and the answer, free:June 2025 · Part CJune 2024 · Part BDecember 2024 · Part CDecember 2023 · Part BDecember 2023 · Part C
Last revised . Found a mistake? Tell us — corrections are the fastest thing we act on.
Next: Euler–Lagrange equation and standard functionals
Create a free account to keep your place and have this feed your study plan.
Open this in the full syllabus view · Unit 3