Separate positivity from decay
A mode obeys \(y'=-4y\). Starting at one, find the first two forward Euler values for steps 0.2, 0.35 and 0.55. Classify the histories by sign and decay, and find the exact positive-step threshold for each property.
Worked solution
The three factors \(1-4h\) are 0.2, −0.4 and −1.2. The first two values are respectively \((0.2,0.04)\), \((-0.4,0.16)\) and \((-1.2,1.44)\). The first sequence is nonnegative and decreasing, the second sign-changing with decreasing magnitude, and the third sign-changing with growing magnitude.
For positive steps, nonnegative propagation requires \(h\leq0.25\); decay of magnitudes requires \(h<0.5\). At 0.5 the amplitude remains one while the sign alternates.
Explore the related calculation with adjustable inputs. Change the parameters in the corresponding calculation and compare its independently recomputed values with the equation derived in this solution.
Switch off a stiff transient
At a proposed step, a fast mode has \(z=-50\). Compute its factors under backward Euler and the trapezoidal method, and the magnitude after two steps. Which would you use when the desired late-time response should no longer contain the fast mode?
Worked solution
Backward Euler gives \(1/51=0.01961\), hence \(1/2601=0.0003845\) after two steps. Trapezoidal gives \((1-25)/(1+25)=-12/13\), hence \(144/169=0.8521\) in magnitude after two steps. The physical magnitude is \(e^{-100}\).
Backward Euler suppresses this unresolved transient much more strongly. If the early transient itself were the observable, reducing the step would remain necessary even with the more strongly damping formula.
Explore the related calculation with adjustable inputs. Change the parameters in the corresponding calculation and compare its independently recomputed values with the equation derived in this solution.
Diagnose a parasitic solution
For \(y'=0\), a proposed two-step recurrence gives
Start at \(y_0=1,y_1=1+\epsilon\). Obtain \(y_n\) and compare with BDF2 from the same values. Which can bound the propagated starting error independently of step count?
Worked solution
The characteristic polynomial is \((z-1)^2\). Solving for the constants in \(a+bn\) gives
the starting error grows linearly with step count.
BDF2 gives
The initial conditions yield
Its departure from one stays bounded by \(1.5|\epsilon|\) for all \(n\). Two simple roots behave differently from a repeated unit root even when all root magnitudes are at most one.
Explore the related calculation with adjustable inputs. Change the parameters in the corresponding calculation and compare its independently recomputed values with the equation derived in this solution.