Stable Discretization

Chapter 20 Dynamics & diffusion

Chapter 20: ODE, SDE, and Continuous Limits of Algorithms — Stable Discretization

From the book

Chapter 20: ODE, SDE, and Continuous Limits of Algorithms. In the chapter mind map this icon labels Stable Discretization. The discussion below is excerpted and lightly edited from § Stable Discretization in Mathematics for AI and Machine Learning.

A computer runs the model at time steps $\Delta > 0$, as the discrete-time system

and the discretization method determines $\bar{A}$ and $\bar{B}$. Forward Euler replaces $\dot{\mathbf h}$ in @eq:linear-state-space-ode by the difference $(\mathbf{h}_{k+1} - \mathbf{h}_k)/\Delta$. Zero-order hold solves the ODE exactly, assuming the input is constant on each interval $[k\Delta, (k+1)\Delta)$ (the closed form of $\bar B$ needs $A$ invertible). The bilinear transform replaces $\frac{d}{dt}$ by $\frac{2}{\Delta}\frac{1 - z^{-1}}{1 + z^{-1}}$, the trapezoidal rule, and gives an implicit scheme:

Method$\bar{A}$AccuracyStabilityComplexity
Forward Euler$I + \Delta A$$O(\Delta)$ConditionalLow
Zero-Order Hold$\exp(\Delta A)$ExactPreservingHigh
Bilinear$(I - \frac{\Delta}{2}A)^{-1}(I + \frac{\Delta}{2}A)$$O(\Delta^2)$PreservingMedium

Forward Euler is the cheapest but stable only for small steps, so stiff systems force tiny steps. Zero-order hold is exact for piecewise-constant inputs at the cost of a matrix exponential. The bilinear transform is second-order accurate, maps the imaginary axis onto the unit circle, and preserves stability for one matrix inverse.

What this drawing shows

What you see. Left-half-plane $\mathrm{Re}<0$ region brightens while the Euler stability disk fades, contrasting stability-preserving vs Euler maps.

In the mind map. Chapter 20 — Stable Discretization. See From the book above for definitions, figures, and worked examples.

Where to read next

Open Chapter 20 companion →

Read the full definitions, figures, and worked examples in Chapter 20: ODE, SDE, and Continuous Limits of Algorithms — see the mind-map node Stable Discretization.

PNG Icons

Textless (256×256 px)
PNG 256×256 px Copy PNG URL
Textless (64×64 px)
PNG 64×64 px Copy PNG URL
Textless (32×32 px)
PNG 32×32 px Copy PNG URL

Animated GIFs

Animated GIF (256×256 px)
GIF 256×256 px Copy GIF URL
Animated GIF (128×128 px)
GIF 128×128 px Copy GIF URL
Animated GIF (64×64 px)
GIF 64×64 px Copy GIF URL