Exercise: stability of explicit and implicit Euler
Full analysis of : the amplification factor of each method, the explicit method's stability condition , the unconditional stability of the implicit one and a numerical check with .
Amplification factor
Study the model problem with (decaying Malthus model): the exact solution tends to zero, and a reasonable method should reproduce that behaviour.
Explicit Euler applied to multiplies the solution by a constant factor at each step:
The numerical solution decays if and only if , that is, if . With larger , oscillates with growing amplitude: the method is unstable even though it is consistent.
Implicit Euler has a closed-form solve in this linear problem:
Since , the denominator exceeds 1 for every : the amplification factor stays below 1 and the method is unconditionally stable.
Numerical check
With , on (exact solution ), the explicit method's stability condition is , i.e. . The table shows the maximum error of both methods:
| N | explicit | implicit |
|---|---|---|
| 2 | 81.0000 | 0.0909 |
| 4 | 256.0000 | 0.1599 |
| 8 | 25.6289 | 0.2036 |
| 16 | 0.5365 | 0.1579 |
| 32 | 0.1603 | 0.0922 |
Solving the implicit step in a nonlinear case
Set up the implicit Euler step for and solve for .
The implicit step is . Rearranging yields a quadratic equation in :
For positive solutions take the plus-sign root:
Here each step's equation has a closed-form solution; in general there is none and is solved with the Newton-Raphson method.
The extra cost per step (solving an equation) is the price of the implicit method's unconditional stability.