# 时间离散化

时间离散化是一种数值技术，它将微分方程中的时间导数替换为在离散时间步上求值的差商，从而使含时常微分方程或偏微分方程可以通过迭代一个代数更新公式来求解。应用于初值问题时，它产生一个网格函数：一组定义在离散时间点上的值 \( u^{n} \)（\( n = 0, \ldots, N_{t} \)），仅在离散时间点上有定义，点与点之间通常采用线性插值。<sup>[1](http://hplgit.github.io/num-methods-for-PDEs/doc/pub/decay/sphinx/._main_decay001.html)</sup>

| 关键事实 | 内容 |
|---|---|
| 离散化的输出 | 一个网格函数 \( u^{n} \)，\( n = 0, \ldots, N_{t} \)，定义在离散时间点上<sup>[1](http://hplgit.github.io/num-methods-for-PDEs/doc/pub/decay/sphinx/._main_decay001.html)</sup> |
| 统一单步族 | \( \theta \)-规则：前向欧拉（\( \theta = 0 \)）、Crank–Nicolson（\( \theta = 1/2 \)）、后向欧拉（\( \theta = 1 \)）<sup>[1](http://hplgit.github.io/num-methods-for-PDEs/doc/pub/decay/sphinx/._main_decay001.html)</sup> |
| 前向欧拉稳定性（扩散） | 仅当 \( F = \alpha \cdot \Delta t / \Delta x^{2} \le 1/2 \) 时稳定<sup>[2](https://hplgit.github.io/fdm-book/doc/pub/diffu/pdf/slides_diffu-beamer.pdf)</sup> |
| 单步方法的稳定域 | \( S = \{ z \in \mathbb{C}: |R(z)| \le 1 \} \)；当包含左半平面时为A稳定<sup>[3](https://dml.cz/bitstream/handle/10338.dmlcz/146700/AplMat_62-2017-2_4.pdf)</sup> |
| 第二Dahlquist壁垒 | A稳定的线性多步方法必须是隐式的，且阶数 \( \le 2 \)<sup>[4](https://courses.cs.vt.edu/cs4414/alexey/LECTURES/ODE_solvers.2000.pdf)</sup><sup> • </sup><sup>[5](https://tobydriscoll.net/fnc-julia/diffusion/stiffness.html)</sup> |
| BDF稳定扇区 | 至六阶为A(α)稳定，k = 1, …, 6时α分别为90°、90°、86°、73°、51°、17°<sup>[6](https://www.unige.ch/~hairer/preprints/pcam-ode.pdf)</sup> |
| 刚性阶 | 全局误差一致地被 \( C \cdot h^{p} \) 界住，其中 \( C \) 与刚性和步长无关<sup>[7](https://na.math.kit.edu/download/papers/acta-final.pdf)</sup> |

## 工作原理

其原则是要求微分方程仅在离散时间点上成立，并用有限差分近似时间导数。对于模型问题 \( u' = -a \cdot u \)，前向欧拉格式将解推进为 \( u^{n+1} = u^{n} - a \cdot (t_{n+1} - t_{n}) \cdot u^{n} \)，而后向欧拉格式给出 \( u^{n+1} = u^{n} / (1 + a \cdot (t_{n+1} - t_{n})) \)。<sup>[1](http://hplgit.github.io/num-methods-for-PDEs/doc/pub/decay/sphinx/._main_decay001.html)</sup> Crank–Nicolson格式对步长起点和终点的右端项取平均，使用两端点解值的算术平均 \( (u^{n} + u^{n+1})/2 \)。<sup>[1](http://hplgit.github.io/num-methods-for-PDEs/doc/pub/decay/sphinx/._main_decay001.html)</sup> Runge–Kutta方法源于等价的积分视角：用求积规则近似 \( \int f \, dt \)；特定的二阶方法可由梯形规则导出，而经典的四阶方法类似于Simpson规则，在中点和端点处采样斜率，权重为 \( 1/6, 1/3, 1/3, 1/6 \)，不过其两个中点级通常具有不同的级值。<sup>[8](https://www.math.ntu.edu.tw/~chern/notes/FD2018.pdf)</sup>

**截断误差**衡量差分公式偏离微分方程的程度。局部截断误差是假定前一点处解精确时一步中所产生的误差；若其为 \( O(\Delta t^{r}) \)，则全局误差一般要差一阶，为 \( O(\Delta t^{r-1}) \)。<sup>[9](https://people.sc.fsu.edu/~jpeterson/IVP.pdf)</sup>

两个等价性定理将精度与收敛性联系起来。对于常微分方程，Dahlquist等价定理指出，相容性加上零稳定性等价于收敛性。<sup>[8](https://www.math.ntu.edu.tw/~chern/notes/FD2018.pdf)</sup> 对于线性偏微分方程，Lax等价定理指出，差分方法在 \( \Delta x, \Delta t \to 0 \) 时收敛，当且仅当它在该极限下相容且稳定。<sup>[10](https://services.math.duke.edu/~jtwong/math563-2020/lectures/Lec10-PDEs.pdf)</sup> 稳定性本身通过Runge–Kutta方法的稳定函数 \( R(z) = 1 + z \cdot b^{T} \cdot (I - z \cdot A)^{-1} \cdot e \) 来量化；稳定域为 \( S = \{ z \in \mathbb{C}: |R(z)| \le 1 \} \)，当 \( S \) 包含整个左半平面时，方法为A稳定。<sup>[11](https://people.cs.vt.edu/~asandu/Public/Qual2011/DiffEqn/Butcher_1996_RK-history.pdf)</sup><sup> • </sup><sup>[3](https://dml.cz/bitstream/handle/10338.dmlcz/146700/AplMat_62-2017-2_4.pdf)</sup> 由于显式Runge–Kutta方法的稳定域总是有界集，它们不可能具有A稳定性。<sup>[11](https://people.cs.vt.edu/~asandu/Public/Qual2011/DiffEqn/Butcher_1996_RK-history.pdf)</sup>

## 实施方法

常微分方程的有限差分处理遵循四个步骤：离散化区域、要求在离散时间点上满足方程、用有限差分替换导数、建立递推算法。<sup>[1](http://hplgit.github.io/num-methods-for-PDEs/doc/pub/decay/sphinx/._main_decay001.html)</sup> 对于用直线法处理的偏微分方程，更完整的工作流程有九个步骤：离散化空间导数、离散化时间导数、定义参数、创建网格、定义初始条件、定义边界条件、建立方程组、求解方程组、重复直至到达最终时间步。<sup>[12](https://mude.citg.tudelft.nl/book/2024/numerical_methods/9-starting_with_PDEs.html)</sup> 直线法首先通过用数值近似替换空间导数，将偏微分方程转化为常微分方程组；对于扩散方程，中心差分在内点处给出 \( dT_{i}/dt = (\nu / \Delta x^{2}) \cdot (T_{i-1} - 2 T_{i} + T_{i+1}) \)。<sup>[12](https://mude.citg.tudelft.nl/book/2024/numerical_methods/9-starting_with_PDEs.html)</sup><sup> • </sup><sup>[10](https://services.math.duke.edu/~jtwong/math563-2020/lectures/Lec10-PDEs.pdf)</sup>

**选择格式与步长。** 显式格式将未知量直接表示为已知量的函数；隐式格式将未知量表示为自身的函数，需要在每一步求解一个通常为非线性的方程。<sup>[9](https://people.sc.fsu.edu/~jpeterson/IVP.pdf)</sup> 在直线法系统上使用后向欧拉时，每一步变成一个线性方程组 \( A \cdot y = b \)，对角元为 \( 1 + 2 \nu \cdot \Delta t / \Delta x^{2} \)，非对角元为 \( -\nu \cdot \Delta t / \Delta x^{2} \)。<sup>[12](https://mude.citg.tudelft.nl/book/2024/numerical_methods/9-starting_with_PDEs.html)</sup>

**自适应步进。** 自适应方法使用可变步长，在截断误差允许处取大步，不允许处取小步。<sup>[13](https://skim.math.msstate.edu/LectureNotes/NumerPDEs_Lecture.pdf)</sup> 标准实现通过比较两个共享相同级系数的 \( p \) 阶和 \( p-1 \) 阶Runge–Kutta方法之差来估计局部误差，并调整步长使每步的截断误差大致均匀；2/3阶和4/5阶的嵌入对已在 `scipy.integrate.solve_ivp` 中实现。<sup>[8](https://www.math.ntu.edu.tw/~chern/notes/FD2018.pdf)</sup><sup> • </sup><sup>[14](https://pastewka.github.io/Simulationstechniken/_lecture/time-dependent-problems.html)</sup>

## 起源

常用格式以十八世纪末至二十世纪中叶数学家的名字命名，原始论文收录于本文引用的历史综述中。<sup>[4](https://courses.cs.vt.edu/cs4414/alexey/LECTURES/ODE_solvers.2000.pdf)</sup><sup> • </sup><sup>[11](https://people.cs.vt.edu/~asandu/Public/Qual2011/DiffEqn/Butcher_1996_RK-history.pdf)</sup><sup> • </sup><sup>[6](https://www.unige.ch/~hairer/preprints/pcam-ode.pdf)</sup> 一篇有代表性的原始文献是关于热传导型方程解数值计算的论文，发表于《剑桥哲学会数学会刊》第43卷第1期，1947年1月，第50–67页；该文针对带有内部热源的非线性热传导方程，例如由温度相关的化学反应产生的热。<sup>[15](https://www.cambridge.org/core/journals/mathematical-proceedings-of-the-cambridge-philosophical-society/article/abs/practical-method-for-numerical-evaluation-of-solutions-of-partial-differential-equations-of-the-heatconduction-type/B3230893A53384D418228AB39D41A451)</sup> 线性多步方法的理论框架写成一般形式 \( \sum \alpha_{j} \cdot y_{n+j} = h \cdot \sum \beta_{j} \cdot f_{n+j} \)。<sup>[16](http://www.scholarpedia.org/article/Linear_multistep_method)</sup>

## 变体

**θ格式。** θ规则将 \( u' = -a \cdot u \) 的三个基本单步格式统一为 \( u^{n+1} = \frac{1 - (1-\theta) \cdot a \cdot (t_{n+1} - t_{n})}{1 + \theta \cdot a \cdot (t_{n+1} - t_{n})} \cdot u^{n} \)，其中 \( \theta = 0 \) 给出显式前向欧拉，\( \theta = 1 \) 给出隐式后向欧拉，\( \theta = 1/2 \) 给出隐式Crank–Nicolson。<sup>[1](http://hplgit.github.io/num-methods-for-PDEs/doc/pub/decay/sphinx/._main_decay001.html)</sup><sup> • </sup><sup>[17](https://bpb-us-w2.wpmucdn.com/sites.brown.edu/dist/1/376/files/2022/04/Chapter-3-Review-of-Time-Stepping-Algorithms-for-ODEs.pdf)</sup> 对于扩散问题，后向欧拉无条件稳定，放大因子为 \( A = (1 + 4F \sin^{2} p)^{-1} \)，对所有 \( \Delta t > 0 \) 满足 \( |A| \le 1 \)（非零模态下 \( |A| < 1 \)），且无振荡。<sup>[2](https://hplgit.github.io/fdm-book/doc/pub/diffu/pdf/slides_diffu-beamer.pdf)</sup>

**Runge–Kutta族。** 基于Gauss求积的隐式Runge–Kutta方法（Kuntzmann–Butcher方法或Gauss–Legendre方法）的稳定函数等于对角Padé近似，阶数为 \( 2k \)，且为A稳定；Radau IIA方法的阶数为 \( 2k - 1 \)，也是A稳定的。<sup>[3](https://dml.cz/bitstream/handle/10338.dmlcz/146700/AplMat_62-2017-2_4.pdf)</sup>

**多步法与蛙跳。** 显式Adams–Bashforth和隐式Adams–Moulton格式可以组合为预测–校正方法；多步方法每步只需一两次 \( f \) 的求值即可达到高精度，而Runge–Kutta方法是自启动的复合单步方法。<sup>[8](https://www.math.ntu.edu.tw/~chern/notes/FD2018.pdf)</sup> 蛙跳格式在时间和空间上都使用中心差分，在CFL条件下对对流方程稳定。<sup>[10](https://services.math.duke.edu/~jtwong/math563-2020/lectures/Lec10-PDEs.pdf)</sup>

**BDF方法。** 后向差分公式是 \( k \) 阶隐式多步方法，\( k > 6 \) 时不稳定；五阶以下的方法是刚性问题中最广泛使用的方法之一，BDF方法因其稳健和廉价而在刚性问题上广受欢迎。<sup>[6](https://www.unige.ch/~hairer/preprints/pcam-ode.pdf)</sup><sup> • </sup><sup>[3](https://dml.cz/bitstream/handle/10338.dmlcz/146700/AplMat_62-2017-2_4.pdf)</sup>

**IMEX格式。** 隐–显方法对刚性项隐式处理，对非刚性项显式处理；对于扩散–对流偏微分方程，这通常意味着对扩散用隐式格式，对对流用显式格式。<sup>[18](https://epubs.siam.org/doi/10.1137/0732037)</sup> IMEX公式有多步方法形式、加性Runge–Kutta对形式（对刚性项 \( g(u) \) 用DIRK格式，对 \( f(u) \) 用显式Runge–Kutta格式），以及Butcher一般线性方法的统一框架。<sup>[18](https://epubs.siam.org/doi/10.1137/0732037)</sup><sup> • </sup><sup>[19](https://persson.berkeley.edu/pub/persson11imex.pdf)</sup>

**分裂方法。** Lie–Trotter格式 \( y_{n+1} = e^{h \cdot A_{2}} \cdot e^{h \cdot A_{1}} \cdot y_{n} \) 是一阶的，当算子对易时是精确的；Strang分裂 \( y_{n+1} = e^{(h/2) \cdot A_{1}} \cdot e^{h \cdot A_{2}} \cdot e^{(h/2) \cdot A_{1}} \cdot y_{n} \) 是二阶的。分裂在构造上保持几何性质：若每个子问题的积分器是辛的、酉的或保体积的，则复合格式也是。<sup>[20](https://arxiv.org/pdf/2401.01722)</sup>

## 应用

时间离散化是遍及偏微分方程谱系的数值求解的基础。对于热方程等抛物型问题，显式前向欧拉更新为 \( u_{i}^{n+1} = u_{i}^{n} + F \cdot (u_{i+1}^{n} - 2 u_{i}^{n} + u_{i-1}^{n}) \)，网格Fourier数为 \( F = \alpha \cdot \Delta t / \Delta x^{2} \)，仅当 \( F \le 1/2 \) 时稳定；将 \( \Delta x \) 减半需要将 \( \Delta t \) 减为四分之一，使固定模拟时长的成本增至原来的8倍。<sup>[2](https://hplgit.github.io/fdm-book/doc/pub/diffu/pdf/slides_diffu-beamer.pdf)</sup><sup> • </sup><sup>[14](https://pastewka.github.io/Simulationstechniken/_lecture/time-dependent-problems.html)</sup>

**刚性。** 时间步长由稳定性而非精度决定的问题称为刚性问题；刚性有连续变化的程度之分，而非非此即彼，除最轻微的情形外，隐式方法是最佳选择。<sup>[5](https://tobydriscoll.net/fnc-julia/diffusion/stiffness.html)</sup> 当时间和空间均为二阶时，总截断误差为 \( O(h^{2} + \tau^{2}) \)，因此 \( \tau = O(h) \) 即可满足精度，使得 \( \tau = O(h^{2}) \) 的稳定性限制远严于精度要求。<sup>[5](https://tobydriscoll.net/fnc-julia/diffusion/stiffness.html)</sup> 双曲型方程的隐式方法通常是无条件稳定的，因此大时间步长可以充分补偿每步的额外工作量，尽管精度仍限制步长；它们不太适合需要跟踪所有传播模态的波动型方程。

**阶数匹配。** 对于以恒定比率 \( \Delta t / \Delta x \) 加密的稳定格式，收敛性由空间阶和时间阶中的较小者决定，即 \( O(\Delta x^{\min(\alpha,\beta)}) \)；仅在空间或仅在时间上加密无法保证收敛，且使用比空间离散更高阶的时间积分器是不切实际的。<sup>[21](https://ar5iv.labs.arxiv.org/html/2105.01822)</sup>

## 局限与替代方案

**失效模式。** 刚性问题中的阶数降级将观测到的收敛阶从经典阶 \( p \) 降至有效阶 \( \min(p, p_{1}) \)。<sup>[3](https://dml.cz/bitstream/handle/10338.dmlcz/146700/AplMat_62-2017-2_4.pdf)</sup> Crank–Nicolson对任意 \( \Delta t > 0 \) 稳定，但在大 \( F \) 下会产生振荡，且对短波的阻尼不足；<sup>[2](https://hplgit.github.io/fdm-book/doc/pub/diffu/pdf/slides_diffu-beamer.pdf)</sup> Crank–Nicolson与二阶Adams–Bashforth的流行组合也因同样原因不被推荐，因为高频模态的弱衰减导致额外的多重网格迭代和谱配点中的混叠。<sup>[18](https://epubs.siam.org/doi/10.1137/0732037)</sup> Lax–Friedrichs格式通过添加人工扩散来稳定输运，这平滑了解但模糊了尖锐特征。<sup>[10](https://services.math.duke.edu/~jtwong/math563-2020/lectures/Lec10-PDEs.pdf)</sup> 三阶及以上的分裂格式必然涉及负系数，需要时间上倒退的子步，这对反应–扩散方程有严重影响；普通分裂也无法捕捉正确的稳态，这一缺陷由平衡分裂纠正。<sup>[20](https://arxiv.org/pdf/2401.01722)</sup> 当线性算子具有接近零的特征值时，高阶指数时间差分（ETD）格式会遭受灾难性的抵消误差；在Kassam和Trefethen对KdV、Kuramoto–Sivashinsky、Burgers和Allen–Cahn方程的基准测试中，ETDRK4的围道积分修正优于IMEX、积分因子和时间分裂方法。<sup>[22](https://people.maths.ox.ac.uk/trefethen/fourth-order.pdf)</sup>

**替代方案。** 指数积分器将刚性系统线性化为原型 \( v'(t) + A \cdot v(t) = 0 \)，其精确解为 \( v(t) = e^{-t \cdot A} \cdot v_{0} \)，使用矩阵指数和相关φ函数；实现需要借助Chebyshev、Krylov、Leja点或围道积分方法计算矩阵函数乘积，其误差界与刚性无关。<sup>[7](https://na.math.kit.edu/download/papers/acta-final.pdf)</sup> 时间并行方法提供了另一条途径：PARAREAL是一种时间并行版本的拟牛顿迭代，配有粗、细传播子；PARAEXP专用于线性常微分方程问题，二者都针对时间步进的串行特性。<sup>[23](https://link.springer.com/article/10.1186/s40323-016-0063-y)</sup>

## References

1. [Finite difference methods for the model ODE u'=-au (Langtangen & Linge, num-methods-for-PDEs)](http://hplgit.github.io/num-methods-for-PDEs/doc/pub/decay/sphinx/._main_decay001.html)
2. [Finite difference schemes for diffusion (Langtangen, FDM book slides)](https://hplgit.github.io/fdm-book/doc/pub/diffu/pdf/slides_diffu-beamer.pdf)
3. [Time discretization of linear parabolic problems (Applications of Mathematics, 2017; also mirrored at https://dmlcz-proxy.ics.muni.cz/manakin/bitstream/handle/10338.dmlcz/146700/AplMat_62-2017-2_4.pdf)](https://dml.cz/bitstream/handle/10338.dmlcz/146700/AplMat_62-2017-2_4.pdf)
4. [Numerical methods for ordinary differential equations in the 20th century (J.C. Butcher, 2000, Journal of Computational and Applied Mathematics)](https://courses.cs.vt.edu/cs4414/alexey/LECTURES/ODE_solvers.2000.pdf)
5. [11.4. Stiffness, Fundamentals of Numerical Computation](https://tobydriscoll.net/fnc-julia/diffusion/stiffness.html)
6. [Numerical solution of ordinary differential equations (Hairer, lecture notes/preprint; also mirrored at https://unige.ch/~hairer/preprints/pcam-ode.pdf)](https://www.unige.ch/~hairer/preprints/pcam-ode.pdf)
7. [Exponential integrators (Hochbruck & Ostermann, Acta Numerica survey)](https://na.math.kit.edu/download/papers/acta-final.pdf)
8. [Finite Difference Methods course notes (R. Chern, National Taiwan University)](https://www.math.ntu.edu.tw/~chern/notes/FD2018.pdf)
9. [Introduction to Discretization / Initial Value Problems (J. Peterson, Florida State University)](https://people.sc.fsu.edu/~jpeterson/IVP.pdf)
10. [Math 563 lecture notes: Method of lines, stability, and Von Neumann analysis (J. Wong, Duke University)](https://services.math.duke.edu/~jtwong/math563-2020/lectures/Lec10-PDEs.pdf)
11. [The History of Runge-Kutta Methods (J.C. Butcher, 1996)](https://people.cs.vt.edu/~asandu/Public/Qual2011/DiffEqn/Butcher_1996_RK-history.pdf)
12. [Treatment of Partial Differential Equations: a start, MUDE textbook (TU Delft)](https://mude.citg.tudelft.nl/book/2024/numerical_methods/9-starting_with_PDEs.html)
13. [Numerical Methods for Partial Differential Equations (lecture notes)](https://skim.math.msstate.edu/LectureNotes/NumerPDEs_Lecture.pdf)
14. [Chapter 13: Time-dependent problems (Simulationstechniken lecture notes)](https://pastewka.github.io/Simulationstechniken/_lecture/time-dependent-problems.html)
15. [A practical method for numerical evaluation of solutions of partial differential equations of the heat-conduction type (Crank & Nicolson)](https://www.cambridge.org/core/journals/mathematical-proceedings-of-the-cambridge-philosophical-society/article/abs/practical-method-for-numerical-evaluation-of-solutions-of-partial-differential-equations-of-the-heatconduction-type/B3230893A53384D418228AB39D41A451)
16. [Linear multistep method (Scholarpedia, Hairer & Wanner)](http://www.scholarpedia.org/article/Linear_multistep_method)
17. [Review of Time-Stepping Algorithms for ODEs (Brown University course chapter)](https://bpb-us-w2.wpmucdn.com/sites.brown.edu/dist/1/376/files/2022/04/Chapter-3-Review-of-Time-Stepping-Algorithms-for-ODEs.pdf)
18. [Implicit-Explicit Methods for Time-Dependent Partial Differential Equations (Ascher, Ruuth, Wetton, SIAM J. Numer. Anal. 32(3), 1995)](https://epubs.siam.org/doi/10.1137/0732037)
19. [Implicit-Explicit Runge-Kutta Schemes (Persson, AIAA paper)](https://persson.berkeley.edu/pub/persson11imex.pdf)
20. [Splitting methods for differential equations (Blanes, Casas, Murua)](https://arxiv.org/pdf/2401.01722)
21. [On the Spatial and Temporal Order of Convergence of Hyperbolic PDEs](https://ar5iv.labs.arxiv.org/html/2105.01822)
22. [Kassam & Trefethen, Fourth-Order Time-Stepping for Stiff PDEs](https://people.maths.ox.ac.uk/trefethen/fourth-order.pdf)
23. [Efficient solvers for time-dependent problems: a review of IMEX, LATIN, PARAEXP and PARAREAL algorithms for heat-type problems](https://link.springer.com/article/10.1186/s40323-016-0063-y)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数学分析与数学模型 › Numerical analysis and computation › Time integration methods

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/temporal-discretization

English original: https://www.edgepedia.org/temporal-discretization
