Intuition What this page is for
The parent note built the two
methods and their stability tests. Here we do the drills : every kind of number the test problem
y ′ = λ y (and its friends) can throw at you. The rule of the page — you never meet a case we
did not walk through.
Before anything, a one-line refresher of the two amplification factors — the numbers that get raised to
the power n :
We call z = hλ the stability variable . Every example below is really asking: where does this
z land, and what does each R do there?
Every case a stiff-ODE problem can hand you, and the example that hits it:
Cell
Case class
What is special
Example
A
λ < 0 , small ∣ z ∣
both methods stable, mild step
Ex 1
B
λ < 0 , z in FE danger band (− 2 < z < − 1 )
FE oscillates but bounded
Ex 2
C
λ < 0 , z < − 2
FE blows up, BE fine
Ex 3
D
Boundary z = − 2 exactly
FE marginal (∣ R ∣ = 1 )
Ex 4
E
Degenerate λ = 0 (z = 0 )
no decay, both give constant
Ex 5
F
λ > 0 (true growth)
neither should force → 0 ; check both faithfully grow
Ex 6
G
Complex λ (oscillatory decay)
left half-plane, magnitude test
Ex 7
H
Nonlinear f → Newton needed
implicit solve by iteration
Ex 8
I
Real-world word problem (two time scales)
choose method + step
Ex 9
J
Exam twist: pick largest stable h
invert the stability test
Ex 10
The stability variable z = hλ lives on a number line (real λ ) or in a plane (complex λ ).
This picture shows the safe zones of each method — refer back to it constantly:
Worked example Example 1 — Cell A: both stable, gentle step
y ′ = − 2 y , h = 0.1 , y 0 = 1 . Compute y 1 , y 2 for forward and backward Euler.
Forecast: guess whether the two answers are close. (They should be — small z .)
Form z = hλ = 0.1 × ( − 2 ) = − 0.2 .
Why this step? Everything depends only on this one number; compute it first.
Forward factor R FE = 1 + z = 1 − 0.2 = 0.8 . So y 1 = 0.8 , y 2 = 0.64 .
Why this step? y n = R n y 0 — just multiply.
Backward factor R BE = 1 − z 1 = 1.2 1 = 0.8333 … . So y 1 = 0.8333 , y 2 = 0.6944 .
Why this step? Same recipe, different factor.
Verify: true value e − 2 × 0.1 = e − 0.2 = 0.8187 . Both factors (0.8 and 0.833 ) straddle it —
both first-order accurate, both stable since ∣0.8∣ < 1 and ∣0.833∣ < 1 . ✓
Worked example Example 2 — Cell B: forward Euler oscillates but stays bounded
y ′ = − 15 y , h = 0.1 , y 0 = 1 . What does forward Euler do?
Forecast: stable or unstable? Sign of the terms?
z = 0.1 × ( − 15 ) = − 1.5 .
Why this step? Locate z on the number line of figure s01 — it sits in ( − 2 , − 1 ) .
R FE = 1 + z = 1 − 1.5 = − 0.5 . Negative!
Why this step? A negative factor means the sign of y n flips every step — spurious oscillation.
y 1 = − 0.5 , y 2 = 0.25 , y 3 = − 0.125 , …
Why this step? ( − 0.5 ) n alternates sign but its size shrinks.
Verify: ∣ R FE ∣ = 0.5 < 1 so it is stable (decays to 0), yet oscillates — the true solution
e − 15 t never goes negative, so these sign flips are pure numerical artefact. Backward Euler: R BE = 1/ ( 1 + 1.5 ) = 0.4 > 0 , decays smoothly, no flip. ✓
Worked example Example 3 — Cell C: forward Euler blows up, backward survives
y ′ = − 100 y , h = 0.05 , y 0 = 1 . Compare both to 3 steps.
Forecast: which one explodes?
z = 0.05 × ( − 100 ) = − 5 . On figure s01 this is outside the FE interval ( − 2 , 0 ) .
Why this step? Immediately predicts disaster for FE.
R FE = 1 − 5 = − 4 , so y n = ( − 4 ) n = 1 , − 4 , 16 , − 64 , …
Why this step? ∣ − 4∣ = 4 > 1 : each step multiplies size by 4 — unbounded growth (and sign flips).
R BE = 1 − ( − 5 ) 1 = 6 1 , so y n = ( 1/6 ) n = 1 , 0.1667 , 0.0278 , …
Why this step? 1/6 < 1 : shrinks toward 0, matching e − 100 t → 0 .
Verify: true e − 100 × 0.05 = e − 5 = 0.0067 . After 1 step BE gives 0.167 (crude but bounded ),
FE gives − 4 (catastrophe). Stiffness in action. ✓
Worked example Example 4 — Cell D: the exact boundary
z = − 2
y ′ = − 20 y , h = 0.1 . What does forward Euler do exactly at the edge?
Forecast: decay, blow up, or neither?
z = 0.1 × ( − 20 ) = − 2 exactly.
Why this step? This is the boundary of the FE stability interval.
R FE = 1 + ( − 2 ) = − 1 , so ∣ R ∣ = 1 .
Why this step? ∣ R ∣ = 1 is the razor's edge — neither the < 1 (stable) nor > 1 (unstable) case.
y n = ( − 1 ) n = 1 , − 1 , 1 , − 1 , …
Why this step? Constant magnitude, flipping sign forever — it never decays , so it's not stable.
Verify: the strict test is ∣ R ∣ < 1 ; here we hit = 1 , so the numerical solution neither dies nor grows —
a permanent oscillation while the true e − 20 t vanishes. Boundary belongs to the unstable side. Backward Euler: R BE = 1/ ( 1 + 2 ) = 1/3 < 1 — still fine. ✓
Worked example Example 5 — Cell E: degenerate
λ = 0
y ′ = 0 , i.e. λ = 0 , any h , y 0 = 7 . What do both methods give?
Forecast: the true solution is constant y = 7 . Do the methods know?
z = h × 0 = 0 for any h .
Why this step? A zero rate means no time scale at all — the trivial degenerate case.
R FE = 1 + 0 = 1 ; R BE = 1 − 0 1 = 1 .
Why this step? Both factors equal exactly 1.
y n = 1 n ⋅ 7 = 7 for all n , both methods.
Why this step? Multiplying by 1 keeps it constant — exactly the true solution.
Verify: true solution y ( t ) = 7 constant; both give 7 exactly, error zero. Neither "stable" (< 1 ) nor
"unstable" (> 1 ) — a neutral fixed point, and here it's the correct behaviour. ✓
Worked example Example 6 — Cell F: genuine growth
λ > 0
y ′ = + 3 y , h = 0.1 , y 0 = 1 . The true solution grows ; do the methods track growth honestly?
Forecast: should the numbers get bigger or smaller?
z = 0.1 × 3 = + 0.3 > 0 .
Why this step? Positive z means we are in the right half of figure s01 — outside both stability regions, which is correct because the true solution shouldn't decay.
R FE = 1.3 , R BE = 1 − 0.3 1 = 0.7 1 = 1.4286 .
Why this step? Both factors > 1 , so both grow — good.
y 2 : FE = 1. 3 2 = 1.69 ; BE = 1.428 6 2 = 2.0408 .
Why this step? Track two steps of growth.
Verify: true e 0.3 = 1.3499 per step, e 0.6 = 1.8221 at t = 0.2 . Both methods grow (as they must);
here "unstable" is the right answer . Lesson: A-stability is only desirable when the true solution decays. ✓
Worked example Example 7 — Cell G: complex
λ , oscillatory decay
y ′ = λ y with λ = − 1 + 4 i , h = 0.5 . Is backward Euler stable? (magnitude test)
Forecast: does Re λ < 0 guarantee BE stability?
z = hλ = 0.5 ( − 1 + 4 i ) = − 0.5 + 2 i .
Why this step? Now z is a point in the plane, not on a line.
1 − z = 1 − ( − 0.5 + 2 i ) = 1.5 − 2 i ; its magnitude ∣1 − z ∣ = 1. 5 2 + 2 2 = 2.25 + 4 = 6.25 = 2.5 .
Why this step? ∣ R BE ∣ = ∣1 − z ∣ 1 , so we need the size of the denominator.
∣ R BE ∣ = 2.5 1 = 0.4 < 1 → stable .
Why this step? Magnitude below 1 means the oscillation decays, matching ∣ e λ t ∣ = e − t → 0 .
Verify: Re λ = − 1 < 0 , and A-stability guarantees ∣ R BE ∣ < 1 for the whole left
half-plane — confirmed numerically (0.4 ). Forward Euler here: ∣1 + z ∣ = ∣0.5 + 2 i ∣ = 0.25 + 4 = 4.25 = 2.06 > 1 → FE unstable even though the true solution decays. ✓ (See Region of absolute stability .)
Worked example Example 8 — Cell H: nonlinear
f , one Newton solve
Backward Euler on y ′ = − y 2 , y 0 = 2 , h = 0.5 . Find y 1 using Newton's method for root finding .
Forecast: the implicit equation is quadratic — will Newton land in a couple of steps?
Set up g ( y ) = y − y 0 − h ( − y 2 ) = y − 2 + 0.5 y 2 = 0 .
Why this step? Backward Euler is y 1 = y 0 + h f ( y 1 ) ; moving all terms to one side gives a root problem.
Derivative g ′ ( y ) = 1 + h ⋅ 2 y = 1 + y (since h = 0.5 ).
Why this step? Newton needs g ′ ; here g ′ = 1 − h ∂ f / ∂ y = 1 − 0.5 ( − 2 y ) = 1 + y .
Start y ( 0 ) = y 0 = 2 . g ( 2 ) = 2 − 2 + 0.5 ( 4 ) = 2 , g ′ ( 2 ) = 3 . y ( 1 ) = 2 − 2/3 = 1.3333 .
Why this step? One Newton step: subtract g / g ′ .
g ( 1.3333 ) = 1.3333 − 2 + 0.5 ( 1.7778 ) = 0.2222 , g ′ = 2.3333 . y ( 2 ) = 1.3333 − 0.09524 = 1.2381 .
Why this step? Iterate; residual shrinking fast (quadratic convergence).
One more: g ( 1.2381 ) = 1.2381 − 2 + 0.5 ( 1.5330 ) = 0.00460 , g ′ = 2.2381 , y ( 3 ) = 1.2381 − 0.002056 = 1.23605 .
Verify: exact root of 0.5 y 2 + y − 2 = 0 is y = 1 − 1 + 1 + 4 = 1 − 1 + 5 = 1.23607
(positive root). Newton reached 1.23605 in three steps — matches. And g ( 1.23607 ) = 0 . ✓
Worked example Example 9 — Cell I: real-world two-time-scale problem
A chemical mixes: fast species decays like e − 500 t , slow like e − t , model
y ′ = − 500 y (transient) coupled with a slow drift. To integrate to t = 5 after the fast part is dead,
which method and roughly how many steps?
Forecast: guess the step-count ratio between FE and BE.
Fastest rate ∣ λ ∣ = 500 , so FE needs h < 500 2 = 0.004 .
Why this step? FE step is capped by the fastest scale for stability, even after that scale is gone.
Steps for FE to reach t = 5 : 0.004 5 = 1250 steps.
Why this step? Total time ÷ max step.
BE has no stability cap; the slow scale (rate 1) allows h ≈ 0.1 for accuracy → 0.1 5 = 50 steps.
Why this step? A-stability lets us pick h for accuracy alone.
Verify: FE 1250 vs BE 50 steps — a 25 × saving, and the ratio ≈ ∣ λ fast ∣/∣ λ slow ∣ × ( accuracy factor ) scales with the stiffness ratio 500 . ✓
Worked example Example 10 — Cell J: exam twist, largest stable
h
"For y ′ = − 40 y , find the largest step h for which forward Euler is stable, and confirm backward Euler has no such limit."
Forecast: invert the stability inequality — what's the cutoff?
FE stable needs ∣1 + hλ ∣ < 1 , i.e. − 1 < 1 − 40 h < 1 .
Why this step? Plug λ = − 40 into the test and read off the window.
Left inequality 1 − 40 h > − 1 ⇒ 40 h < 2 ⇒ h < 0.05 . Right inequality 1 − 40 h < 1 is automatic for h > 0 .
Why this step? The binding constraint is h < 2/∣ λ ∣ .
So the supremum is h = 0.05 (strict; at h = 0.05 , ∣ R ∣ = 1 , marginal — see Ex 4).
Why this step? Equality is the boundary, not stable.
Backward Euler: ∣1/ ( 1 − hλ ) ∣ = ∣1/ ( 1 + 40 h ) ∣ < 1 for all h > 0 since 1 + 40 h > 1 .
Why this step? Denominator always exceeds 1 for decaying λ — no upper bound on h .
Verify: 2/∣ λ ∣ = 2/40 = 0.05 matches. At h = 0.05 : R FE = 1 − 2 = − 1 (marginal). BE at even h = 10 :
1/ ( 1 + 400 ) = 0.0025 < 1 still stable. ✓
Recall Quick self-test across the matrix
Which cell blows up forward Euler but leaves backward Euler untouched? ::: Cell C (z < − 2 ), e.g. Ex 3.
At z = − 2 exactly, what does forward Euler do? ::: Oscillates with constant magnitude ∣ R ∣ = 1 — not stable (Cell D).
When is "unstable growth" actually the correct behaviour? ::: When λ > 0 (Cell F): the true solution grows, so both methods should too.
For complex λ , what replaces "z < 0 "? ::: The magnitude test ∣ R ∣ < 1 , e.g. ∣1/ ( 1 − z ) ∣ < 1 over the whole left half-plane (Cell G).
"Find z , then judge R ." Compute z = hλ once, drop it into 1 + z (forward) or 1/ ( 1 − z )
(backward), and ask only: is the size below 1?
4.8.26 Stiff equations — implicit methods, backward Euler (Hinglish)
Forward Euler method
Region of absolute stability
A-stability and L-stability
Trapezoidal / Crank–Nicolson method
Newton's method for root finding
Runge–Kutta methods
Eigenvalues and time scales of linear systems