On this page
Take the equation y′ = −1000(y − cos t) with y(0) = 0. Its solution is dull: y climbs to about 1 by t = 0.005, then quietly follows cos t. Yet explicit (forward) Euler explodes on it unless the steps are tiny, while backward Euler, almost identical on paper, handles it easily. The difference has a name: stiffness.
What makes a differential equation stiff?
A stiff equation mixes a fast part that dies out almost at once with a slow, smooth part you actually want to follow. Here the exact solution is very close to y = cos t + 0.001 sin t − e^(−1000t). The exponential term falls below 1% of its starting size by t = 0.005, while cos t changes over whole units of t.
Hairer and Wanner's textbook gives the shortest description, quoted in the Wikipedia article on stiff equations: "Stiff equations are problems for which explicit methods don't work." The same article traces the first mention of stiff equations to a 1952 paper by C. F. Curtiss and J. O. Hirschfelder, Integration of Stiff Equations, written at the University of Wisconsin's chemistry department.
Why does explicit Euler need such small steps?
Explicit Euler uses the slope at the current point: y(n+1) = y(n) + h·f(t(n), y(n)). On the test equation y′ = λy this gives y(n+1) = (1 + hλ)·y(n), so every step multiplies any error by 1 + hλ.
It is stable only when |1 + hλ| ≤ 1, which for a real, negative λ means −2 ≤ hλ ≤ 0 (stiff equation analysis). Our λ is −1000, so h can be at most 0.002.
That limit has nothing to do with accuracy: following a gentle cos t out to t = 10 takes at least 5,000 steps. It holds even if you start exactly on the smooth solution, because any step with |1 + hλ| > 1 excites the instability.
What happens with h = 0.01? A worked comparison
With h = 0.01, hλ = −10, far outside the stable range, and the growth factor 1 + hλ is −9. Explicit Euler becomes y(n+1) = −9·y(n) + 10·cos t(n). Backward Euler becomes y(n+1) = (y(n) + 10·cos t(n+1)) / 11. Our own calculation (radian mode, rounded):
t = 0.01: explicit 10, backward 0.9091, exact 0.9999
t = 0.02: explicit −80.0, backward 0.9916, exact 0.9998
t = 0.03: explicit 730.0, backward 0.9988, exact 0.9996
t = 0.10: explicit about −3.5 billion, backward 0.99510, exact 0.99510
The explicit values follow y(n) ≈ 1 − (−9)^n, so after 10 steps the error is 9^10, about 3.5 billion. Backward Euler is off by 0.09 after one step, since h = 0.01 cannot resolve a transient that mostly decays within 0.005, but each later step divides that error by 11; by t = 0.1 both values round to 0.99510.
Why is backward Euler stable for any step size?
Backward Euler uses the slope at the new point: y(n+1) = y(n) + h·f(t(n+1), y(n+1)). On y′ = λy this gives y(n+1) = y(n) / (1 − hλ). Its stability condition, |1 − hλ|^(−1) ≤ 1, holds for every h > 0 whenever λ has a negative real part (stiff equation analysis).
The price: each step means solving an equation for y(n+1). For nonlinear problems, solvers usually use a Newton-type iteration, the same idea as in Newton's method for optimisation. The overview of explicit and implicit methods puts the trade plainly: for stiff problems, "it takes much less computational time to use an implicit method with larger time steps".
A higher-order explicit scheme such as the Runge–Kutta method does not escape this, because every explicit method has a bounded stability region. For some stiff equations, the stiff-equation article adds, implicit methods can be several orders of magnitude more efficient.
Where does stiffness show up in chemistry and circuits?
Chemical kinetics. Reaction networks often mix very fast steps with slow ones, and an explicit solver must keep stepping at the fast pace.
Electronic circuits. In circuit simulators such as SPICE, the equations are solved "using implicit integration methods, Newton's method and sparse matrix techniques" (SPICE).
Heat and diffusion. Discretised in space, the diffusion equation is a classic stiff system: the explicit step must be proportional to the square of the grid spacing (stiff equation).
How do you check if your own problem is stiff?
Find the fastest decay rate λ: the coefficient in front of y, or the Jacobian eigenvalue with the most negative real part.
Multiply by the time span T. If T·|λ| is much larger than 1, expect stiffness.
Compare the explicit Euler limit h ≤ 2/|λ| with the step that accuracy alone would need. A big gap means use an implicit method.
Halve your step and rerun. A result that changes wildly, or flips sign every step, is instability rather than physics.
For eigenvalues and Jacobians, the Fermi Concept Library gives each concept its own lesson and its place in the map. To practise, the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning rather than printing an answer.



