Figure: A coordinate graph illustrating the stability issue of the Forward Euler method. The vertical axis is y and the horizontal axis is t. A green curve labeled 'true y' starts at (t0, y0) on the y-axis and decays exponentially towards the t-axis, remaining positive. A dashed line also starts at (t0, y0) but has a steeper downward slope, crossing the t-axis at time t1 to reach a point labeled y1 below the axis. This illustrates that if the step size is too large, the numerical solution y1 becomes negative, which is incorrect since the true solution is always positive.
true \( y > 0 \)
notice if step is too big, \( y_1 < 0 \) (clearly wrong)
if \( h < \frac{1}{10} \), \( y_n, y_{n+1}, y_{n+2}, \dots \) all have same sign and decreasing in magnitude (ok)
if \( h = \frac{1}{5} \), \( y_{n+1} = y_n(-2) \) doubles magnitude, alternating sign
PAGE 2
Figure: A graph on a horizontal \(t\)-axis showing a solid green curve decaying smoothly. A dashed blue curve oscillates with increasing amplitude, with red dots marking the extreme points.
stability issue!
Backward Euler (Adams-Moulton order 1)
use the slope at the end of the step instead of at the start
Figure: A graph illustrating the Backward Euler method. The horizontal axis is labeled \(t\) and has points \(t_0\) and \(t_1\) with a bracketed interval labeled \(h\). The vertical axis has points \(y_0\), \(y_1\), and \(y_1^*\). A solid green curve represents the true solution, labeled 'true y'. A red dotted line represents the slope \(f(t_1, y_1)\) at the end of the step, showing the backward-looking approximation.
this "looking back" eliminates the stability issue noted above
PAGE 3
\[ y_{n+1} = y_n + f(t_{n+1}, y_{n+1}) h \]
need \( y_{n+1} \) to find \( f(t_{n+1}, y_{n+1}) \) which is used to estimate \( y_{n+1} \)
need, for example, a root-finding technique such as Newton's method
PAGE 4
Improved Euler ( Heun's method) is a combination of these two
basic idea: use forward Euler to find \(\tilde{y}_{n+1}\)
use that to find slope at the end : \(f(t_{n+1}, \tilde{y}_{n+1})\)
so back to \((t_n, y_n)\) , use average of the two slopes to move to \((t_{n+1}, y_{n+1}^*)\)
Figure: A coordinate graph illustrating Heun's method (Improved Euler). The horizontal axis is labeled 't' and the vertical axis is labeled 'y'. A solid green curve represents the 'true y' solution. On the t-axis, two points t0 and t1 are marked, with the interval between them labeled 'h'. On the y-axis, points y0, y_tilde_1, and y1_star are marked. From the starting point (t0, y0), a black dashed line with slope f(t0, y0) (labeled 'Forward') extends to (t1, y_tilde_1). A red dotted line with slope f(t1, y_tilde_1) (labeled 'Backward') is shown starting from (t0, y0). A blue dashed line, representing the average of these two slopes (labeled '1/2 [f(t0, y0) + f(t1, y_tilde_1)]'), starts at (t0, y0) and ends at the improved estimate (t1, y1_star).