All courses › Numerical Methods › Stiffness and stability

Stiffness and stability

A stiff problem has widely different time scales, so an explicit method like Euler needs tiny steps to stay stable, even though the solution otherwise changes slowly. The stability limit for explicit Euler on y′=λyy' = \lambda y is h≤2/∣λ∣h \leq 2/|\lambda|.

∣1+hλ∣≤1|1 + h\lambda| \leq 1stability requirement for explicit Euler on y′=λyy' = \lambda y

Symbols

λ\lambdathe growth rate in the equation (negative for a decaying solution)
hhstep size

Example

y′=−50yy' = -50y: stability requires h≤2/50=0.04h \leq 2/50 = 0.04.

A larger step gives a solution that oscillates and grows unrealistically.

For stiff problems, switch to an implicit method (e.g. backward Euler) instead of just shortening hh.
Practise differential equations and stability for free →

← Runge–Kutta (RK4) · System of first-order equations →

Part of Numerical Methods: Differential equations and stability.