4.8.23 · D5Numerical Methods
Question bank — Modified Euler (Heun's method)
The one picture to keep in your head: two slopes drawn at the two ends of a step, and a single walk taken along their average direction.

True or false — justify
Heun's method is always more accurate than plain Euler for the same .
Usually, not always. For smooth problems it is far better ( vs ), but on a very stiff or badly-scaled ODE with too-large , the predictor can overshoot so wildly that the corrected step is worse than Euler's — accuracy order only describes the limit as .
Heun's method evaluates the function exactly twice per step.
True for basic Heun: once for and once for . The iterated corrector variant re-evaluates again for each extra sweep, so it costs more.
The predictor value is the final answer for the step.
False. is only a scratch guess whose sole purpose is to let us compute the end-slope ; it is thrown away and replaced by the corrected .
Heun's method is a Runge–Kutta method.
True. It is RK2 — a 2-stage Runge–Kutta scheme with equal weights on its two slopes.
If depends only on (not on ), Heun's method reduces to the trapezoidal rule for a plain integral.
True. When , the predicted never enters , so — exactly the Trapezoidal Rule applied to .
Doubling the step size roughly doubles Heun's global error.
False. Global error is , so doubling multiplies error by about , not . (Doubling does roughly double plain Euler's error.)
The in the corrector is a rounding convenience with no deeper meaning.
False. The is the average of two slopes: each slope contributes half the step. Replace it with and you take a double-length step — a genuine error, not a style choice.
Heun's local (per-step) error and global error have the same order.
False. Local error is per step; accumulating over steps drops one power, giving global . This one-power drop is generic to one-step methods.
Spot the error
A student writes the corrector as . What's wrong?
The end-slope is evaluated at the old instead of the predicted . Ignoring how moved across the step destroys the second-order accuracy — you lose the very "look-ahead" that defines Heun.
A student computes — same , moved . Fix it.
The end-slope must be sampled at the end point , so . Advancing but not evaluates at a point that never exists on the step.
A student uses the corrected back inside before finishing the step. Why is this circular?
is fixed by the start of the step and is known before anything else. Feeding a later value into it means you no longer have a start-slope — the method loses its predictor and stops being Heun.
Someone writes . Diagnose.
They kept a full Euler step and added a half end-slope — a mix of Euler and Heun. The correct total weight on the two slopes must sum to : it should be .
In Example 3 a student iterates the corrector but keeps re-using the very first predictor for each sweep. What's the mistake?
Iterating means re-predicting the end-slope from the latest corrected (e.g. ), so updates each sweep. Freezing at the original guess just repeats the first corrector and converges to nothing new.
Why questions
Why do we predict before we can correct it?
The trapezoidal corrector needs , but is the unknown we are solving for. A cheap Euler predictor breaks this chicken-and-egg deadlock with a first guess.
Why average the two slopes instead of just using the end-slope ?
Using only would over-correct — the true slope varies across the whole interval, and the mean of entry and exit slopes matches the interval's behaviour to one order higher than either endpoint alone.
Why is Heun called a "predictor–corrector" method rather than just "Euler twice"?
The two stages play different roles: the predictor makes a rough forward guess, the corrector uses that guess to build a better-averaged step. See Predictor-Corrector Methods — this asymmetry is the defining feature.
Why does Heun match the true Taylor series up to the term but fail at ?
Averaging start and end slopes reproduces and exactly, but the term needs (curvature-of-curvature) which two slope samples cannot capture. Getting right is what pushes you to RK4. See Taylor Series Methods.
Why does halving help Heun more than it helps Euler?
Heun's error scales as , Euler's as ; halving divides them by and respectively — the higher power rewards refinement more. This is the whole point of Order of Accuracy and Step Size.
Why can iterating the corrector improve the answer, yet never reach the exact solution?
Iteration solves the implicit trapezoidal equation more precisely, removing predictor error — but the trapezoidal rule itself still has an discretisation error that no amount of iterating can erase.
Why is Heun exact when the true solution is a straight line ()?
A straight solution has constant slope, so and their average equals the true slope everywhere. The trapezoid is exact whenever the integrand is constant, so no error is introduced.
Edge cases
What does Heun do when (flat start slope)?
The predictor stays put (), but can be nonzero, so the corrector still moves. This is exactly why Heun "notices" curvature that plain Euler misses when it starts flat (see Example 2).
If the step size is , what does the formula give?
and — no step is taken. Both predictor and corrector collapse to identity; the method is consistent (a zero step changes nothing).
Suppose is linear in , say . Is the predictor still needed?
Yes in practice, but note the corrector becomes an explicit linear equation you could solve directly for . Heun sidesteps that by predicting — trading exactness for a fixed, cheap recipe.
What happens to the corrector if the predictor massively overshoots (huge on a fast-decaying ODE)?
is sampled at a wildly wrong , so the averaged slope is corrupted and can be worse than Euler's — a stability failure. Order-2 accuracy is a small- promise, not a large- guarantee.
For a purely oscillatory problem like over one step, does Heun's answer sit above or below the true decay?
Heun's averaged slope slightly under-decays for large because the trapezoid rule over/undershoots curved integrands; for small the discrepancy is tiny ( per step) and Heun tracks the true exponential closely.
If two different smooth ODEs share the same , and at a step, do they take the same Heun step?
Yes — Heun's step depends only on and the two slope samples, not on the underlying formula. Identical inputs to the recipe give an identical output, by construction.
Connections
- Euler's Method — the predictor is one plain Euler step.
- Trapezoidal Rule — the corrector is this rule in disguise (and equals it when ).
- Runge-Kutta Methods — Heun is RK2; RK4 fixes the gap.
- Order of Accuracy and Step Size — why rewards halving .
- Predictor-Corrector Methods — Heun is the simplest member.
- Taylor Series Methods — the tool that proves Heun is second order.