Numerical Stability, Error and Stiffness
Distinguish accuracy from stable propagation and identify a stiffness restriction.
Builds on Midpoint, Heun and Runge–Kutta Methods
The bigger question: How do we trust a numerical trajectory?
On this page
The idea
Accuracy asks how close a numerical solution is to the exact one. Stability asks how errors and modes propagate. A method can have a small local truncation error yet amplify unwanted modes over many steps. The test equation exposes this behavior.
Visual guide
- Exact e⁻¹⁰ᵗ
- Euler with h = 0.3
Method and assumptions
Explicit Euler has amplification , with . Absolute stability requires for a decaying mode. On , this becomes . Backward Euler instead gives and is stable for all negative real , though a large step can still be inaccurate.
Worked example: spurious growth
For , explicit Euler with multiplies each step by . The exact solution decays, but the numerical values alternate and double. With , the factor is zero: stable, yet it erases the solution after one step and can be a poor approximation.
Try it yourself.
Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.
Hint 1 · Find a starting point
Euler multiplies each iterate by 1−10h.
Hint 2 · Take the next step
Decay requires |1−10h|<1.
Show the reasoning
Answer: h=0.1
h=0.1 gives factor 0; h=0.3 gives −2 and grows, while h=0.2 gives −1 and does not decay.
Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.
Worked example: separated time scales
A system with eigenvalues and has a slowly varying mode and a fast transient. Explicit Euler needs for stability even after the fast transient becomes tiny. That restriction motivates an implicit method for stiff problems.
Interpreting the result
At , Euler’s factor is , so magnitude is preserved instead of decaying. This boundary is not asymptotic decay. Step refinement should inspect solution values and qualitative behavior, not only whether the program runs.
Practice
- Is Euler stable for ?
- What is the factor for ?
- Does unconditional stability imply arbitrary-step accuracy?
Show worked solutions
- Yes: , with magnitude below one.
- , so errors grow in magnitude.
- No. Stability controls propagation; truncation error still depends on step size.
Further study
MIT OpenCourseWare: Differential Equations provides a full university course with additional lectures and exercises.
Pause before the next idea.
Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.