# 显式方法与隐式方法

**显式方法与隐式方法**是用于对常微分方程（ODE）和含时偏微分方程（PDE）进行数值积分的两族时间步进格式。在显式方法中，时刻 \( t^{n+1} \) 的新值由已知的较早时刻的值直接算出；在隐式方法中，新值同时出现在更新式的两端，因此每一步都需要求解一个方程。这一区别之所以重要，是因为两族方法在每步成本与稳定性之间各执一端：显式格式便宜，但限制步长；隐式格式每步更贵，但对大得多的步长仍保持稳定。<sup>[1](https://www.cs.cornell.edu/courses/cs5220/2024fa/slides/07-simulations2.html)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义性差别 | 显式：下一步只依赖之前的步（前向欧拉，\( x_{k+1} = x_k + \Delta t\, f(x_k) \)）；隐式：下一步依赖自身（后向欧拉，\( x_{k+1} = x_k + \Delta t\, f(x_{k+1}) \)）<sup>[1](https://www.cs.cornell.edu/courses/cs5220/2024fa/slides/07-simulations2.html)</sup> |
| 显式欧拉的稳定性 | 对实数参数 \( \lambda < 0 \) 的测试方程 \( y' = \lambda y \)，仅当 \( h < 2/|\lambda| \) 时稳定<sup>[2](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/07_ode/07_stiffness.html)</sup> |
| 隐式欧拉的稳定性 | 放大因子 \( 1/(1 - h\lambda) \) 对所有 \( \operatorname{Re}(h\lambda) < 0 \) 都衰减：A稳定，稳定性不限制步长<sup>[2](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/07_ode/07_stiffness.html)</sup> |
| 达尔奎斯特屏障 | 任何显式龙格–库塔方法都不可能A稳定；其稳定域永远是左半平面内的有界子集<sup>[2](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/07_ode/07_stiffness.html)</sup> |
| 热方程的极限 | FTCS（时间前向、空间中心）仅当 \( r = D\Delta t/\Delta x^2 \le 1/2 \) 时稳定；BTCS（后向欧拉）无条件稳定<sup>[3](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/08_pde/01_diffusion_ftcs_btcs.html)</sup> |
| 每步成本 | 隐式步需要线性或非线性求解（对非线性 \( f \) 用牛顿法）；显式步只需函数求值或一次稀疏矩阵–向量乘<sup>[1](https://www.cs.cornell.edu/courses/cs5220/2024fa/slides/07-simulations2.html)</sup><sup> • </sup><sup>[4](https://heath.cs.illinois.edu/iem/ode/stiff/)</sup> |
| 实用法则 | 对刚性ODE，隐式方法往往比精度相当的显式方法高效得多，因为更大的稳定域允许大得多的步长<sup>[4](https://heath.cs.illinois.edu/iem/ode/stiff/)</sup> |

## 两种欧拉方法

最简单的一对格式把这种对比具体化。前向欧拉在当前点计算右端项，

\[ v^{n+1} = v^n + \Delta t\, f(v^n, t^n), \]

因此每一步都是直接计算。后向欧拉在新时间点计算 \( f \)，

\[ v^{n+1} = v^n + \Delta t\, f(v^{n+1}, t^{n+1}), \]

因此 \( v^{n+1} \) 是自身的隐函数。<sup>[5](https://mitocw.ups.edu.ec/courses/aeronautics-and-astronautics/16-90-computational-methods-in-aerospace-engineering-spring-2014/numerical-integration-of-ordinary-differential-equations/stiffness-and-implicit-methods/)</sup> 两者都是一阶精度；差别完全在于稳定性和成本。

应用于测试方程 \( y' = \lambda y \)，前向欧拉给出放大因子 \( 1 + h\lambda \)，仅当 \( |1 + h\lambda| < 1 \) 时衰减。对实负的 \( \lambda \)，这要求 \( h < 2/|\lambda| \)。当 \( |\lambda| \) 很大时，这迫使 \( h \) 变得极小，远小于仅由精度所要求的步长；这正是刚性的标志。<sup>[2](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/07_ode/07_stiffness.html)</sup> 后向欧拉给出 \( \eta_{i+1} = \eta_i/(1 - h\lambda) \)，对每个满足 \( \operatorname{Re}(h\lambda) < 0 \) 的 \( h\lambda \) 都衰减，无论 \( |\lambda| \) 有多大。<sup>[2](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/07_ode/07_stiffness.html)</sup>

**刚性。** 刚性ODE是指其解快速衰减趋向一个共同的、缓慢变化的解，或者更操作化地说，用劳伦斯·尚派恩（Lawrence Shampine）的表述，是指显式方法比隐式方法更慢的ODE。<sup>[4](https://heath.cs.illinois.edu/iem/ode/stiff/)</sup><sup> • </sup><sup>[6](https://mitmath.github.io/18S096SciML/lecture5/stiffness)</sup> 在化学动力学、电路仿真以及时间尺度相差悬殊的机械系统中，刚性方程是常态而非例外。<sup>[2](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/07_ode/07_stiffness.html)</sup> 在此类问题上，显式方法要么变得不稳定（若 \( h > 2/|\lambda| \)），要么把精力浪费在远低于精度要求的步长上。<sup>[2](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/07_ode/07_stiffness.html)</sup>

## A稳定性与达尔奎斯特屏障

若一个方法的稳定域包含复 \( h\lambda \) 平面的整个左半部分，即 \( \{ z : \operatorname{Re}(z) \le 0 \} \subseteq \mathcal{S} \)，则称该方法是**A稳定**的。若真解衰减，则A稳定方法对任意步长 \( h > 0 \) 都给出数值衰减；此后 \( h \) 只受精度限制，不再受稳定性限制。<sup>[2](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/07_ode/07_stiffness.html)</sup>

一个基本定理——达尔奎斯特屏障——指出：任何显式龙格–库塔方法都不可能A稳定：显式方法的稳定函数是一个多项式（\( e^z \) 的截断泰勒展开），其稳定域永远是左半平面内的有界有限子集，因此足够大的 \( |\lambda| \) 总会对 \( h \) 施加一个由稳定性决定的上限。<sup>[2](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/07_ode/07_stiffness.html)</sup> 对多步法，同样的屏障表现为两种形式：\( s \) 步方法若为显式，阶数不能超过 \( s \)；若为隐式，阶数不能超过 \( s + 1 + \mathrm{iseven}(s) \)；显式多步格式根本不可能A稳定，而隐式多步格式最多只能到二阶A稳定。<sup>[7](https://github.com/mitmath/numerical_hub/blob/main/README.md)</sup>

**L稳定性**强化了A稳定性。隐式方法的稳定函数是有理的，\( R(z) = P(z)/Q(z) \)；若还满足当 \( \operatorname{Re}(z) \to -\infty \) 时 \( R(z) \to 0 \)，则方法是L稳定的，于是极刚性的分量在单步内被驱至零，而不仅仅是被保持有界。隐式欧拉，其 \( R(z) = 1/(1-z) \to 0 \)，以及Radau IIA都是L稳定的。梯形法则是A稳定的，但 \( R(z) = (1 + \tfrac{1}{2}z)/(1 - \tfrac{1}{2}z) \to -1 \)，因此 \( |\lambda| \gg 1 \) 的分量产生的数值解会以单位振幅振荡而非衰减。<sup>[2](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/07_ode/07_stiffness.html)</sup>

## 高阶格式与多步格式

两族方法平行地推广到高阶。梯形法则（也称克兰克–尼科尔森方法），

\[ v^{n+1} = v^n + \frac{\Delta t}{2}\left( f^{n+1} + f^n \right), \]

是二阶格式的隐式对应物：它具有二阶精度，且在整个左半平面上稳定，对于特征值位于虚轴上的非耗散振荡系统往往效果很好，尽管对强耗散系统会表现出振荡误差。<sup>[7](https://github.com/mitmath/numerical_hub/blob/main/README.md)</sup><sup> • </sup><sup>[5](https://mitocw.ups.edu.ec/courses/aeronautics-and-astronautics/16-90-computational-methods-in-aerospace-engineering-spring-2014/numerical-integration-of-ordinary-differential-equations/stiffness-and-implicit-methods/)</sup> 高阶A稳定隐式方法包括隐式欧拉（一阶，L稳定）、梯形法则（二阶，A稳定）、三阶段Radau IIA（五阶，L稳定），以及 \( k = 1, \ldots, 6 \) 的向后差分公式BDF\( k \)（\( k \) 阶，\( k \le 2 \) 时A稳定）。<sup>[2](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/07_ode/07_stiffness.html)</sup>

在多步方法中，亚当斯–巴什福斯（显式）和亚当斯–莫尔顿（隐式）公式通过使用更多 \( f \) 的历史值，将前向和后向欧拉推广到高阶；BDF公式则使用更多 \( v \) 的历史值来推广后向欧拉，因其稳定域包含整个负实轴，对刚性耗散系统尤其有吸引力。<sup>[7](https://github.com/mitmath/numerical_hub/blob/main/README.md)</sup>

## 成本方面：求解隐式方程

隐式性的代价是每步都要做一次求解。对线性 \( f \)，这是一个线性系统；对非线性 \( f \)，隐式方程通常用牛顿法求解，以当前近似解作为初始猜测。<sup>[4](https://heath.cs.illinois.edu/iem/ode/stiff/)</sup> 随着 \( \Delta t \) 变小，牛顿步越来越接近恒等映射，收敛更快，这本身也是步长选择中的一种权衡。<sup>[7](https://github.com/mitmath/numerical_hub/blob/main/README.md)</sup> 在结构动力学软件中，隐式分析内的每一次牛顿迭代都涉及求解一个大型线性方程组，这一操作消耗大量计算资源、磁盘存储和内存；当问题规模很大时，这些求解器需求变得占主导地位，因此能处理的最大问题常常受限于手头的磁盘和内存，而非计算所需的时间。<sup>[8](https://ceae-server.colorado.edu/v2016/books/gsa/ch09s02.html)</sup>

相比之下，显式步不涉及联立方程。在显式结构动力学中，质量矩阵是对角的（集中质量），因此求解加速度轻而易举，每个增量都很便宜，尽管需要成千上万个小增量。<sup>[8](https://ceae-server.colorado.edu/v2016/books/gsa/ch09s02.html)</sup> 在线性PDE离散化中，显式步是一次稀疏矩阵–向量乘。<sup>[1](https://www.cs.cornell.edu/courses/cs5220/2024fa/slides/07-simulations2.html)</sup>

## 从ODE到PDE：FTCS与BTCS

直线法通过先离散空间、保持时间连续，把PDE转化为ODE系统，之后任何ODE积分器都适用。对 \( [0, L] \) 上零边界值的一维热方程 \( u_t = D u_{xx} \)，中心二阶差分给出一个三对角系统 \( \dot{\mathbf{u}} = A\mathbf{u} \)，其特征值全为负实数，\( \lambda_k = -\frac{4D}{\Delta x^2}\sin^2\!\left(\frac{k\pi}{2(N+1)}\right) \)，这是一个刚性、分布广泛的谱，其刚性来自空间离散化。<sup>[3](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/08_pde/01_diffusion_ftcs_btcs.html)</sup>

在时间上应用前向欧拉得到FTCS格式（时间前向、空间中心），\( u_i^{n+1} = u_i^n + r\,(u_{i+1}^n - 2u_i^n + u_{i-1}^n) \)，其中 \( r = D\Delta t/\Delta x^2 \)。冯·诺依曼稳定性分析给出逐模增长因子 \( g(k) = 1 - 4r\sin^2(k\Delta x/2) \)，该格式稳定当且仅当 \( r \le 1/2 \)。这是一种CFL型限制（柯朗（Courant）、弗里德里希斯（Friedrichs）和莱维（Lewy）于1928年首次为有限差分格式指出了此类限制；扩散方程没有有限传播速度，因此该条件是CFL型而非字面意义上的CFL）。其实际后果很严重：空间网格加密一倍，迫使 \( \Delta t \) 缩小为四分之一。<sup>[3](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/08_pde/01_diffusion_ftcs_btcs.html)</sup> 在一个 \( N = 40 \) 个网格点、200步的演示中，\( r = 0.5 \) 时衰减，而 \( r = 0.6 \) 时发散到约 \( 1.6 \times 10^{12} \)，这是舍入误差在最不稳定模式上的放大。<sup>[3](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/08_pde/01_diffusion_ftcs_btcs.html)</sup>

改用后向欧拉则得到BTCS，\( (I - \Delta t A)\,\mathbf{u}^{n+1} = \mathbf{u}^n \)。由于 \( I - \Delta t A \) 是三对角的，每步成本为一次三对角求解，用托马斯算法为 \( \mathcal{O}(N) \) 次运算。增长因子 \( g(k) = 1/(1 + 4r\sin^2(k\Delta x/2)) \) 对每个 \( r > 0 \) 和每个模式都满足 \( 0 < g(k) \le 1 \)，因此BTCS无条件稳定。代价是它仍然只有时间一阶精度，且对衰减模式在数值上比精确解耗散更弱，因此在 \( r \) 较大时，它对高频模式的阻尼不如精确解强。<sup>[3](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/08_pde/01_diffusion_ftcs_btcs.html)</sup> 在二维情形，隐式步不再归结为三对角求解：二维热方程的克兰克–尼科尔森系统是块三对角矩阵，比一维情形难以高效求解得多，大量巧思被投入到串行和并行求解此类系统上。<sup>[9](https://people.eecs.berkeley.edu/~demmel/cs267/lecture17/lecture17.html)</sup>

## 如何在两者间选择，以及IMEX

选择取决于问题的谱。显式方法以有限速率传播信息，每步成本为一次稀疏矩阵–向量乘，其稳定步长由最快的时间尺度决定；它们对双曲型（波状）PDE效果良好。隐式方法无需分辨最快的时间尺度，可以取长步，但每步需要一次线性或非线性求解；它们对抛物型（扩散型）PDE至关重要。<sup>[1](https://www.cs.cornell.edu/courses/cs5220/2024fa/slides/07-simulations2.html)</sup> 对刚性方程，若精度所需步长远大于显式格式受稳定性限制的步长，隐式方法通常胜出。<sup>[10](https://ocw.mit.edu/ans7870/2/2.086/S13/MIT2_086S13_Textbook.pdf)</sup>

**IMEX格式**结合了两族方法。流体和等离子体流动等复杂系统混合了刚性的、主要是线性的项（扩散及类似效应，时间尺度范围大），最好隐式处理，以及非刚性的、主要是非线性的项（空间导数较少的对流），最容易显式处理。显式处理刚性项会施加严重的步长限制；隐式处理非刚性项则需要昂贵的迭代求解器。隐显式（IMEX）时间推进格式对刚性项应用隐式算法、对非刚性项应用显式算法，同时保持高精度。<sup>[11](https://jacobsschool.ucsd.edu/news/release/1713)</sup> 一个相关思路是按网格区域分裂：在块自适应网格上，局部稳定性要求未被违反的块使用显式格式，会被违反的块使用隐式格式。<sup>[12](https://websites.umich.edu/~gtoth/Papers/Toth2006_implicit.pdf)</sup> 降低隐式性每步成本的研究仍在继续，例如线性隐式多步法，每个时间步只需一次线性求解，同时保持最高五阶的精度。<sup>[13](https://vtechworks.lib.vt.edu/items/ed1bb29e-eab4-491e-9f71-3f2d934f8e2b)</sup>

## References

1. [CS 5220 Slides and Notes: Simulations II, Cornell University](https://www.cs.cornell.edu/courses/cs5220/2024fa/slides/07-simulations2.html)
2. [Stiff Differential Equations, Computational Physics lecture notes (SoSe 2026), Universität Bielefeld](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/07_ode/07_stiffness.html)
3. [Explicit and Implicit Time-Stepping: FTCS and BTCS, Computational Physics lecture notes (SoSe 2026), Universität Bielefeld](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/08_pde/01_diffusion_ftcs_btcs.html)
4. [Interactive Educational Modules in Scientific Computing: Stiff ODEs, Michael T. Heath, University of Illinois](https://heath.cs.illinois.edu/iem/ode/stiff/)
5. [Stiffness and Implicit Methods, Computational Methods in Aerospace Engineering, MIT OpenCourseWare](https://mitocw.ups.edu.ec/courses/aeronautics-and-astronautics/16-90-computational-methods-in-aerospace-engineering-spring-2014/numerical-integration-of-ordinary-differential-equations/stiffness-and-implicit-methods/)
6. [Stiffness, Stability, and Automatic Differentiation, MIT 18.S096 SciML lecture notes](https://mitmath.github.io/18S096SciML/lecture5/stiffness)
7. [numerical_hub course notes, MIT 18.335/related numerical mathematics course repository](https://github.com/mitmath/numerical_hub/blob/main/README.md)
8. [Explicit dynamic finite element methods (Abaus analysis user documentation, University of Colorado mirror)](https://ceae-server.colorado.edu/v2016/books/gsa/ch09s02.html)
9. [CS267 Lecture Notes: Solving the 2D Heat Equation, James Demmel, UC Berkeley](https://people.eecs.berkeley.edu/~demmel/cs267/lecture17/lecture17.html)
10. [Math, Numerics, and Programming (for Mechanical Engineers), MIT 2.086 textbook](https://ocw.mit.edu/ans7870/2/2.086/S13/MIT2_086S13_Textbook.pdf)
11. [Engineers develop new methods to speed up time-resolved simulations, UC San Diego Jacobs School of Engineering](https://jacobsschool.ucsd.edu/news/release/1713)
12. [A Parallel Explicit/Implicit Time Stepping Scheme on Block-Adaptive Grids, G. Tóth et al., University of Michigan](https://websites.umich.edu/~gtoth/Papers/Toth2006_implicit.pdf)
13. [Linearly Implicit Multistep Methods for Time Integration, Glandon, Narayanamurthi, and Sandu, SIAM (2022), Virginia Tech repository](https://vtechworks.lib.vt.edu/items/ed1bb29e-eab4-491e-9f71-3f2d934f8e2b)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Oct 15, 2026 · Edited: Sep 17, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 物理学 › 物理学方法、实践与学术共同体 › Applied and interdisciplinary physics › Computational and simulation physics › Numerical methods in physics › Field and continuum simulation methods › Time integration for field simulations

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/explicit-and-implicit-methods

English original: https://www.edgepedia.org/explicit-and-implicit-methods
