Discretization¶
We consider the initial value problem:
where may be a vector. We assume is Lipschitz continuous, guaranteeing a unique solution.
The solution is a continuous function, but computers work with discrete data. We discretize the time interval into a lattice:
with step sizes . For simplicity, we often use uniform spacing .
A discretization method associates to each lattice a lattice function:
We store only the values —a finite amount of data representing the continuous solution.
The simplest methods replace derivatives with finite differences:
This immediately gives forward Euler: .
The Error Framework for ODEs¶
The error analysis for ODE solvers mirrors the structure we have seen throughout the course:
| Concept | ODE Numerics |
|---|---|
| Per-step accuracy | Local truncation error |
| Global error | |
| Problem sensitivity | Condition number (from Lipschitz constant ) |
| Stability | Amplification factor |
Every numerical method introduces local truncation error at each step. The central question: does this error accumulate controllably, or does it explode?
The factor depends on the problem (its Lipschitz constant and integration time ). Whether the method amplifies or damps these errors depends on the amplification factor, which must stay bounded for the method to be useful. This is the stability requirement.
For stiff problems, where is large, explicit methods require impractically small step sizes for stability even when accuracy would permit larger steps. Implicit methods handle such problems gracefully.
Learning Outcomes¶
After completing this chapter, you should be able to:
L3.1: Derive forward Euler from the forward difference approximation and interpret it geometrically.
L3.2: Derive backward Euler from the backward finite difference and from integral approximations (right rectangle rule).
L3.3: Compute the local truncation error and distinguish it from the one-step error .
L3.4: State the Lipschitz condition and explain its role in convergence of Euler’s method.
L3.5: Derive the condition number of an initial value problem from Grönwall’s inequality.
L3.6: State and interpret the convergence theorem for forward Euler: the global error satisfies when is Lipschitz and the one-step error is .
L3.7: Determine the stability region of forward Euler and compute the step-size restriction . Explain that different ODE methods have stability regions of different sizes, and that larger stability regions allow larger step sizes for stiff problems.
L3.8: Recognize stiff problems and explain why they require methods with large stability regions or adaptive step sizes.
L3.9: Given guidance, derive higher-order methods (Runge–Kutta, Rosenbrock) and adaptive time-stepping schemes by Taylor expanding the solution, matching terms to cancel lower-order error, and explaining how this yields higher-order accuracy. (Practiced on homework—you are not expected to derive these from scratch, but should be able to carry out the derivation in a guided setting.)