# 克兰克－尼科尔森方法

**克兰克－尼科尔森方法**（Crank–Nicolson method）是一种有限差分格式，用于含时偏微分方程的数值求解，其中最著名的是热方程；在该格式中，空间项取当前时间层与下一时间层取值的平均。该方法由约翰·克兰克（John Crank）与菲利斯·尼科尔森（Phyllis Nicolson）在1947年的论文《一种用于热传导类偏微分方程解的数值计算的实用方法》中提出。<sup>[1](https://pkarnakov.com/am205/slides/unit3/)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 对半离散化偏微分方程在时间上应用梯形法则；等价于 θ = 1/2 的 θ 方法<sup>[2](https://cpp-review-dune.github.io/python-pde/TMA4125/NumericalMethodsHeatEquation.html)</sup><sup> • </sup><sup>[1](https://pkarnakov.com/am205/slides/unit3/)</sup> |
| 起源 | 克兰克与尼科尔森，1947年，针对热传导类方程<sup>[1](https://pkarnakov.com/am205/slides/unit3/)</sup> |
| 精度 | 时间上二阶；与空间二阶中心差分结合后整体为二阶<sup>[2](https://cpp-review-dune.github.io/python-pde/TMA4125/NumericalMethodsHeatEquation.html)</sup><sup> • </sup><sup>[3](https://www.math.cuhk.edu.hk/courses/2122/math3240/Tutorial%2011%20with%20solutions.pdf)</sup> |
| 稳定性 | 无条件稳定（A稳定）：对热方程的时间步长没有限制<sup>[2](https://cpp-review-dune.github.io/python-pde/TMA4125/NumericalMethodsHeatEquation.html)</sup><sup> • </sup><sup>[4](https://persson.berkeley.edu/math228b/html/finite_difference_methods_for_PDEs.html)</sup> |
| 阻尼 | A稳定但非L稳定；对非常刚性的模式，放大因子趋于 −1，因此可能出现衰减的伪振荡<sup>[5](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/07_ode/07_stiffness.html)</sup> |
| 每步代价 | 每步需解一个隐式线性系统；在一维情形下矩阵为三对角，可廉价求解<sup>[6](https://www.wilmerlab.com/teaching/mathmethods_che2410/NU_446-1_DifferenceMethods_CourseNotes-Bayliss.pdf)</sup> |
| 粗糙数据的补救 | Rannacher时间步进，即用阻尼后向欧拉子步替换最初几步，可对非光滑初始数据恢复光滑收敛<sup>[7](https://www.sciencedirect.com/science/article/pii/S0168927421003391)</sup> |

## 格式

对一维热方程 \( u_t = u_{xx} \)，该方法先用标准二阶中心差分离散空间，再对所得的刚性常微分方程半离散系统在时间上应用梯形法则。记 \( U^n_j \) 为网格点 \( j \)、时间层 \( n \) 处的数值解，并令 \( r = \Delta t / (\Delta x)^2 \)，则格式为<sup>[4](https://persson.berkeley.edu/math228b/html/finite_difference_methods_for_PDEs.html)</sup>

\[ -r U^{n+1}_{j-1} + (1+2r) U^{n+1}_j - r U^{n+1}_{j+1} = r U^{n}_{j-1} + (1-2r) U^{n}_j + r U^{n}_{j+1}. \]

空间二阶差分在两个时间层上取平均，这正是该方法位于 θ 方法族中点的原因<sup>[1](https://pkarnakov.com/am205/slides/unit3/)</sup>

\[ \frac{U^{n+1}_j - U^n_j}{\Delta t} - \theta \frac{U^{n+1}_{j-1} - 2U^{n+1}_j + U^{n+1}_{j+1}}{(\Delta x)^2} - (1-\theta) \frac{U^{n}_{j-1} - 2U^n_j + U^n_{j+1}}{(\Delta x)^2} = 0, \]

其中 θ = 0 给出前向欧拉，θ = 1 给出后向欧拉，而只有 θ = 1/2 才能得到时间上二阶精确的方法；其他所有 θ 值都只有一阶。<sup>[1](https://pkarnakov.com/am205/slides/unit3/)</sup><sup> • </sup><sup>[8](https://www.studocu.com/en-gb/document/university-of-dundee/partial-differential-equations-and-their-approximation/chapter-9-fdms-for-parabolic-equations-methods/14332546?origin=related-document)</sup>

## 稳定性

冯·诺依曼分析将每个傅里叶模式 \( U^n_j = g(k)^n e^{ikj\Delta x} \) 代入格式，得到放大因子<sup>[4](https://persson.berkeley.edu/math228b/html/finite_difference_methods_for_PDEs.html)</sup><sup> • </sup><sup>[9](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/08_pde/02_crank_nicolson.html)</sup>

\[ g(k) = \frac{1 - 2r \sin^2(k\Delta x/2)}{1 + 2r \sin^2(k\Delta x/2)}. \]

由于对每个波数和每个 \( \Delta t > 0 \) 都有 \( |g(k)| \le 1 \)，该方法对热方程无条件稳定。<sup>[9](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/08_pde/02_crank_nicolson.html)</sup> 同一结论也可由常微分方程理论得出：梯形法则是A稳定的，因此克兰克－尼科尔森方法对任意时间步长 \( k > 0 \) 都稳定。<sup>[4](https://persson.berkeley.edu/math228b/html/finite_difference_methods_for_PDEs.html)</sup> 这与热方程的显式前向欧拉离散形成对比：后者只在严格限制 \( \Delta t \le (\Delta x)^2 / 2 \) 下稳定，这一迹象表明半离散系统是刚性的。<sup>[10](https://courses.seas.harvard.edu/courses/am205/fall13/AM205_unit_3_chapter_4.pdf)</sup>

**稳定性的局限。** A稳定保证不增长，但不保证衰减。梯形法则的稳定性函数为 \( R(z) = (1 + \tfrac{1}{2}z)/(1 - \tfrac{1}{2}z) \)，当 \( z \to -\infty \) 时趋于 −1；因此一个非常刚性的分量会产生以单位振幅振荡而非衰减的数值解。<sup>[5](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/07_ode/07_stiffness.html)</sup> 用偏微分方程的语言说，当扩散数 \( r \) 较大时，计算解可能含有衰减的伪振荡；贾尔斯（Giles）与卡特（Carter）证明，对非光滑初始数据，克兰克－尼科尔森格式的精度不足，尽管它在 \( L^2 \) 范数下仍然无条件稳定。<sup>[7](https://www.sciencedirect.com/science/article/pii/S0168927421003391)</sup> 标准的补救措施是Rannacher时间步进技术：以若干后向欧拉子步开始积分（每步取半步长并执行两次）以阻尼粗糙模式；在此类问题上，它比后向欧拉和经典克兰克－尼科尔森格式都表现更好，不过收敛在时间上仅为线性。<sup>[7](https://www.sciencedirect.com/science/article/pii/S0168927421003391)</sup><sup> • </sup><sup>[11](https://www.researchgate.net/publication/228988294_Convergence_remedies_for_non-Smooth_payoffs_in_option_pricing)</sup>

## 实现

由于格式是隐式的，每个时间步都需要求解一个线性方程组 \( K \mathbf{U}_{n+1} = \mathbf{b} \)。<sup>[2](https://cpp-review-dune.github.io/python-pde/TMA4125/NumericalMethodsHeatEquation.html)</sup> 在一维情形下系数矩阵是三对角的，因此可用直接三对角算法求解，代价与网格点数成正比，隐式格式的计算代价并不高。<sup>[6](https://www.wilmerlab.com/teaching/mathmethods_che2410/NU_446-1_DifferenceMethods_CourseNotes-Bayliss.pdf)</sup>

在二维空间中，直接离散产生的是更宽的带状系统，而非三对角系统。

## 应用

其二阶精度与稳定性使它成为许多计算科学领域的基石：

- 在定量金融中，定价偏微分方程的克兰克－尼科尔森离散被广泛使用，而Rannacher启动法正是为修正带折点或不连续期权收益所带来的缓慢、振荡收敛而引入的。<sup>[11](https://www.researchgate.net/publication/228988294_Convergence_remedies_for_non-Smooth_payoffs_in_option_pricing)</sup>
- 在随机分析中，倒向随机微分方程的克兰克－尼科尔森格式已被证明对解耦的FBSDE具有二阶强收敛率。<sup>[13](https://arxiv.org/abs/1606.06560)</sup>
- 在相场与流体建模中，Cahn–Hilliard方程的稳定化线性克兰克－尼科尔森格式无条件能量稳定，且时间上二阶精确。<sup>[14](https://arxiv.org/abs/1710.03604)</sup>
- 在磁流体力学中，非定常不可压MHD方程的克兰克－尼科尔森蛙跳格式稳定且收敛，具有二阶 \( L^2 \) 误差估计。<sup>[16](https://arxiv.org/abs/2210.14401)</sup>

## 与邻近格式的比较

在 θ 方法族内，θ 的选择在精度与阻尼之间权衡。前向欧拉（θ = 0）是显式的，每步代价低，但对扩散带有严苛的 \( \Delta t \le (\Delta x)^2/2 \) 限制。<sup>[10](https://courses.seas.harvard.edu/courses/am205/fall13/AM205_unit_3_chapter_4.pdf)</sup> 克兰克－尼科尔森位于两者之间：二阶且无条件稳定，但对最刚性的模式没有阻尼。一个相关的结构性质是：对于生成元为反对称伴随的问题，二阶克兰克－尼科尔森格式可以精确守恒底层物理量，而四阶方法仍可能放大此类生成元的每个模式。<sup>[17](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/08_pde/00_pde.html)</sup>

## References

1. [AM205 Unit 3: Numerical Calculus (heat equation, θ-method, Crank & Nicolson 1947 reference)](https://pkarnakov.com/am205/slides/unit3/)
2. [Numerical methods for the heat equation, PDE tutorial (TMA4125)](https://cpp-review-dune.github.io/python-pde/TMA4125/NumericalMethodsHeatEquation.html)
3. [MATH3240 Tutorial 11 with solutions, CUHK](https://www.math.cuhk.edu.hk/courses/2122/math3240/Tutorial%2011%20with%20solutions.pdf)
4. [Finite Difference Methods for PDEs, UC Berkeley Math 228B (Persson)](https://persson.berkeley.edu/math228b/html/finite_difference_methods_for_PDEs.html)
5. [Stiff Differential Equations, Computational Physics lecture notes (Bielefeld)](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/07_ode/07_stiffness.html)
6. [Numerical Solution of Partial Differential Equations, course notes (Bayliss)](https://www.wilmerlab.com/teaching/mathmethods_che2410/NU_446-1_DifferenceMethods_CourseNotes-Bayliss.pdf)
7. [A highly accurate algorithm for retrieving the predicted behavior of problems with piecewise-smooth initial data, ScienceDirect](https://www.sciencedirect.com/science/article/pii/S0168927421003391)
8. [Chapter 9: Finite Difference Methods for Parabolic PDEs, University of Dundee](https://www.studocu.com/en-gb/document/university-of-dundee/partial-differential-equations-and-their-approximation/chapter-9-fdms-for-parabolic-equations-methods/14332546?origin=related-document)
9. [Crank–Nicolson, Computational Physics lecture notes (Bielefeld)](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/08_pde/02_crank_nicolson.html)
10. [Applied Mathematics 205, Unit III: Numerical Calculus (Harvard)](https://courses.seas.harvard.edu/courses/am205/fall13/AM205_unit_3_chapter_4.pdf)
11. [Convergence remedies for non-smooth payoffs in option pricing](https://www.researchgate.net/publication/228988294_Convergence_remedies_for_non-Smooth_payoffs_in_option_pricing)
12. [Numerical Solution of PDE, BYU Math 511 class notes](https://mathdept.byu.edu/~vianey/Math511/ClassNotesNew.html)
13. [Convergence Error Estimates of the Crank–Nicolson Scheme for Solving Decoupled FBSDEs, arXiv](https://arxiv.org/abs/1606.06560)
14. [Convergence Analysis of an Unconditionally Energy Stable Linear Crank–Nicolson Scheme for the Cahn–Hilliard Equation, arXiv](https://arxiv.org/abs/1710.03604)
15. [Using Crank–Nicolson Scheme to Solve the KdV Equation, arXiv](https://arxiv.org/abs/2410.06240)
16. [A Crank–Nicolson leap-frog scheme for the unsteady incompressible MHD equations, arXiv](https://arxiv.org/abs/2210.14401)
17. [Partial Differential Equations, Computational Physics lecture notes (Bielefeld)](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/08_pde/00_pde.html)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: 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 › Finite difference methods

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/crank-nicolson-method

English original: https://www.edgepedia.org/crank-nicolson-method
