# 有限差分

有限差分是函数在两个邻近点处取值之差，用作导数的离散对应物：按定义，函数的导数是当步长 h 趋于零时有限差商的极限，而保持 h 很小但有限，就得到一种数值近似。<sup>[1](https://www-users.cse.umn.edu/~olver/num_/lnp.pdf)</sup> 有限差分是插值公式、数值微分与数值积分的基础，也是在网格上求解常微分方程和偏微分方程的有限差分方法的基础。<sup>[2](https://epgp.inflibnet.ac.in/epgpdata/uploads/epgp_content/S000025MS/P001476/M014243/ET/1456308687E-textofChapter1Module3.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 前向差分 | \( \Delta f(x_0) = f(x_0+h) - f(x_0) \)；高阶差分由迭代定义，\( \Delta^{r+1}f(x) = \Delta^r f(x+h) - \Delta^r f(x) \)<sup>[3](https://archive.nptel.ac.in/content/storage2/courses/122104019/numerical-analysis/kadalbajoo/second/lect2/node1.html)</sup> |
| 后向差分与中心差分 | \( \nabla f(x_0) = f(x_0) - f(x_0-h) \) 和 \( \delta f(x_0) = f(x_0+\tfrac{1}{2}h) - f(x_0-\tfrac{1}{2}h) \)<sup>[3](https://archive.nptel.ac.in/content/storage2/courses/122104019/numerical-analysis/kadalbajoo/second/lect2/node1.html)</sup> |
| 精度阶 | 前向差分和后向差分以步长的一阶精度近似 \( f'(x) \)；中心差分为二阶<sup>[4](https://robertsj.github.io/ne415_notes/lectures/L19_NumericalDifferentiation.html)</sup> |
| 二阶导数 | \( f''(x) \approx [f(x+\Delta) - 2f(x) + f(x-\Delta)]/\Delta^2 \)，截断误差为二阶<sup>[4](https://robertsj.github.io/ne415_notes/lectures/L19_NumericalDifferentiation.html)</sup> |
| 早期历史 | 涉及逐阶有限差分的插值公式曾由詹姆斯·格雷戈里（James Gregory）在1670—1671年使用，比泰勒（Taylor）和麦克劳林（Maclaurin）的级数早四十多年<sup>[5](https://mathshistory.st-andrews.ac.uk/Extras/Turnbull_Scottish/)</sup> |
| 经典论著 | 乔治·布尔（George Boole）的《有限差分演算论》（*A Treatise on the Calculus of Finite Differences*）于1860年问世<sup>[6](https://www.ucc.ie/en/heritage/history/people/ucc-staff/professor-george-boole/)</sup> |
| 偏微分方程理论 | 对于线性常系数偏微分方程，有限差分格式的稳定性加上相容性可推出收敛性<sup>[7](https://academic.oup.com/book/52870/chapter-abstract/421903203)</sup> |

## 三种基本算子

通常考虑三种基本类型：前向差分、后向差分和中心差分。<sup>[8](https://mail.kngac.ac.in/elearning-portal/ec/admin/contents/2_18KP2PELP2_2021012812453355.pdf)</sup> 设间距为 h，前向差分算子 Δ 给出 \( \Delta f(x_0) = f(x_0+h) - f(x_0) \)，后向差分算子 ∇ 给出 \( \nabla f(x_0) = f(x_0) - f(x_0-h) \)，中心差分算子 δ 给出 \( \delta f(x_0) = f(x_0+\tfrac{1}{2}h) - f(x_0-\tfrac{1}{2}h) \)。每一类的高阶差分都通过对算子迭代来定义，三者之间互有关联：例如 \( \Delta f_0 = \delta f_{1/2} = \nabla f_1 \) 以及 \( \Delta^2 f_0 = \delta^2 f_1 = \nabla^2 f_2 \)，因此同一张差分表可以用这三种记号中的任何一种来读取。<sup>[3](https://archive.nptel.ac.in/content/storage2/courses/122104019/numerical-analysis/kadalbajoo/second/lect2/node1.html)</sup>

从几何上看，差商是过两点 \( (x, u(x)) \) 和 \( (x+h, u(x+h)) \) 的割线斜率；当 h 为正时，该差商称为前向差分，当 h 为负时称为后向差分。<sup>[1](https://www-users.cse.umn.edu/~olver/num_/lnp.pdf)</sup> 以表格形式来说，前向差分 \( y_1 - y_0, y_2 - y_1, \ldots, y_n - y_{n-1} \) 就是数据表的一阶前向差分，由它们构造的差分表是牛顿前向公式和后向公式等插值方法的基础。<sup>[9](https://www.bdu.ac.in/cde/SLM-REVISED-OLD/BSc%20Information%20Technology/Numerical%20and%20Statistical%20Methods_CRC.pdf)</sup>

## 近似导数

每一种基本差分都能由采样或计算得到的函数值给出一个导数估计。前向差分用过 \( (x_j, f(x_j)) \) 和 \( (x_{j+1}, f(x_{j+1})) \) 的直线来估计 \( x_j \) 处的斜率；后向差分用 \( (x_{j-1}, f(x_{j-1})) \) 和 \( (x_j, f(x_j)) \)；中心差分用外侧两点 \( (x_{j-1}, f(x_{j-1})) \) 和 \( (x_{j+1}, f(x_{j+1})) \)。<sup>[10](https://pythonnumericalmethods.studentorg.berkeley.edu/notebooks/chapter20.02-Finite-Difference-Approximating-Derivatives.html)</sup> 用公式表示，

\[ f'(x) \approx \frac{f(x+\Delta)-f(x)}{\Delta}, \qquad f'(x) \approx \frac{f(x)-f(x-\Delta)}{\Delta}, \qquad f'(x) \approx \frac{f(x+\Delta)-f(x-\Delta)}{2\Delta}. \]

泰勒级数分析确定了每一种近似的精度。将 \( f(x+\Delta) \) 在 x 处展开可以看出，前向差分略去了正比于 \( \Delta \) 的项，因此其截断误差为一阶；后向差分同样是一阶。将 \( f(x+\Delta) \) 与 \( f(x-\Delta) \) 的展开式相减，偶次项相互抵消，得到 \( f'(x) = [f(x+\Delta)-f(x-\Delta)]/(2\Delta) + \mathcal{O}(\Delta^2) \)，这是二阶近似。<sup>[4](https://robertsj.github.io/ne415_notes/lectures/L19_NumericalDifferentiation.html)</sup> 若将同样的两个展开式相加，则可分离出二阶导数，

\[ f''(x) = \frac{f(x+\Delta)-2f(x)+f(x-\Delta)}{\Delta^2} + \mathcal{O}(\Delta^2), \]

其中 \( f' \) 项和 \( f''' \) 项都抵消了。<sup>[4](https://robertsj.github.io/ne415_notes/lectures/L19_NumericalDifferentiation.html)</sup> 更高阶的公式可由同样的泰勒级数方法得到；一种延迟修正的做法把标准的后向、前向和中心公式作为差分算子的形式幂级数恢复出来，并推广到任意阶。<sup>[11](https://arxiv.org/abs/2005.11754)</sup>

**步长的实际限制。** 截断误差随步长减小而减小，但浮点运算会带来相反的效应。当 \( f(x+\Delta) \) 与 \( f(x) \) 接近相等时，相减会抵消共同的数位，再除以很小的 \( \Delta \)，就会放大剩余的舍入噪声，因此步长取得越小，最终反而会使结果变差而非改善。<sup>[4](https://robertsj.github.io/ne415_notes/lectures/L19_NumericalDifferentiation.html)</sup> 对于可以接受复数输入的解析函数，复步长近似 \( f'(x) \approx \operatorname{Im}[f(x+i\Delta)]/\Delta \) 完全避免了这种相减抵消，无需对两个接近相等的实数作除法即可得到二阶估计；但它不适用于已经采样的数据，也不适用于非解析运算。<sup>[4](https://robertsj.github.io/ne415_notes/lectures/L19_NumericalDifferentiation.html)</sup> 公式的选择也因情形而异：如果计算 f 代价高昂，而且需要的正是该点自身的值，那么复用该点函数值的前向差分或后向差分，可能比中心差分更可取。<sup>[12](https://compphys.notes.dmaitre.phyip3.dur.ac.uk/lectures/lecture-1/finite-difference/)</sup>

## 历史

这一方法早于已发表的级数演算。涉及逐阶有限差分的插值公式，以及后来由泰勒和麦克劳林发现的幂级数，早在四十多年前的1670—1671年就已被詹姆斯·格雷戈里（James Gregory，1638—1675）使用。<sup>[5](https://mathshistory.st-andrews.ac.uk/Extras/Turnbull_Scottish/)</sup> 在1670年11月23日写给约翰·柯林斯（John Collins）的一封信中，格雷戈里给出了今天称为格雷戈里—牛顿公式的插值公式，它由 \( x_0 \) 处的前向差分 \( \Delta^h f(x_0) \) 给出函数在 \( x_0 + ct \) 处的插值。<sup>[13](https://nzdr.ru/data/media/biblio/kolxoz/M/MPop/Ferraro%20S.%20The%20rise%20and%20development%20of%20the%20theory%20of%20series%20up%20to%20the%20early%201820s%20%28Springer%2C%202008%29%28ISBN%200387734675%29%28394s%29_MPop_.pdf)</sup> 对其手稿的考察表明，格雷戈里似乎是最早系统地利用有限差分插值公式来发现新的无穷级数的数学家——他通过格雷戈里—牛顿公式得到了二项式定理和泰勒级数等结果——并且经由牛顿、格雷戈里和莱布尼茨（Leibniz）的努力，有限差分在发现新级数方面的作用几乎与微积分同等重要。<sup>[14](https://www.cambridge.org/core/books/abs/sources-in-the-development-of-mathematics/series-transformation-by-finite-differences/B8EE47F5BC27E435FEE65F670C9E9812)</sup>

这门学问后来被组织成一门独立的演算。乔治·布尔（George Boole，1815—1864）是科克女王学院的数学教授，以逻辑学方面的工作最为知名，他于1860年出版了《有限差分演算论》（*A Treatise on the Calculus of Finite Differences*），尤其关注其方法与微分学方法之间的联系。<sup>[6](https://www.ucc.ie/en/heritage/history/people/ucc-staff/professor-george-boole/)</sup><sup> • </sup><sup>[15](https://www.cambridge.org/core/books/abs/treatise-on-the-calculus-of-finite-differences/preface/9CFD051A6EDFA06E4AAED0FB330FEB92)</sup> 1933年一篇评述 L. M. 米尔恩-汤姆森（L. M. Milne-Thomson）《有限差分演算》（*The Calculus of Finite Differences*，麦克米伦出版社，xxiii + 558页）的书评，记录了此前六十年间的基础性进展：谢泼德（Sheppard）引入中心差分、蒂勒（Thiele）的倒数差分、埃弗里特（Everett）的插值公式，以及努尔隆德（Nörlund）把有限差分演算改造为分析学的一个分支，此外还有伯克霍夫（Birkhoff）对线性差分方程的矩阵处理。<sup>[16](https://www.nature.com/articles/134231a0)</sup>

## 求解微分方程的有限差分方法

把微分方程中的导数在网格点上换成差商，就将方程变成了代数方程组，这就是有限差分方法。对此类格式的分析建立在三个概念之上：相容性，即当步长缩小时离散方程趋于连续的微分方程；稳定性；以及收敛性。对于线性常系数偏微分方程，格式的稳定性加上相容性可推出其收敛性，这就是拉克斯等价框架的内容。<sup>[7](https://academic.oup.com/book/52870/chapter-abstract/421903203)</sup><sup> • </sup><sup>[17](https://www.dm.unibo.it/~morigi/homepage_file/courses_file/file_dl/pde_4_fd_E.pdf)</sup>

**高阶格式与边界稳定格式。** 高阶有限差分格式具有效率高、编程直接、易于扩展到多个维度以及可以局部修改（例如处理激波时）等优点，但其历史上的主要缺点在于，为保持格式稳定而需要对边界和界面处的稳定性作复杂——有时甚至显得神秘——的处理。分部求和（SBP）算子是一类模仿分部积分的有限差分算子，配合通过调校惩罚项以弱形式施加边界条件的联立近似项（SAT），使得稳定的高阶多块格式能够以系统化、积木式的方式构造出来。<sup>[18](https://www.sciencedirect.com/science/article/abs/pii/S002199911400151X)</sup><sup> • </sup><sup>[19](https://arxiv.org/abs/1103.5182)</sup> 由于 SBP 算子具有特殊的边界闭合处理，而内部仍保持常规的基于模板的差分，高阶算子易于构造，并且能很好地映射到 GPU 等现代硬件上。<sup>[20](https://link.springer.com/article/10.1007/s10915-026-03254-3)</sup>

**与邻近方法的比较。** 在求解偏微分方程的主要方法族中，有限差分、有限元、有限体积和谱方法各自在精度、成本和几何灵活性上作出不同的权衡。<sup>[21](https://ijpub.org/ijvra/viewpaperforall.php?paper=IJVRA2609463)</sup> 在近岸海洋建模中，有限差分方法具有代码结构简单和计算效率高的优点，但难以精确拟合不规则的岸线几何；而有限体积方法对控制方程的积分形式进行离散，能更好地保证单个控制单元以及整个区域内的质量守恒。<sup>[22](https://agupubs.onlinelibrary.wiley.com/doi/10.1029/2006JC003485)</sup> 在建筑物理中，对热湿扩散问题的比较研究发现，标准的有限差分方法与谱方法吻合良好，谱方法最为精确，而有限差分格式则属于计算上最经济的方法之列。<sup>[23](https://arxiv.org/abs/1905.13035)</sup> 一个专门的应用领域是时域有限差分（FDTD）方法，它求解麦克斯韦方程，以处理电磁波与任意结构的相互作用。<sup>[24](https://www.sciencedirect.com/science/article/pii/0165212588900121)</sup>

## References

1. [Olver, P. J., Numerical Analysis II lecture notes, University of Minnesota](https://www-users.cse.umn.edu/~olver/num_/lnp.pdf)
2. [Finite difference operators in numerical analysis, e-PG Pathshala (INFLIBNET)](https://epgp.inflibnet.ac.in/epgpdata/uploads/epgp_content/S000025MS/P001476/M014243/ET/1456308687E-textofChapter1Module3.pdf)
3. [Difference Notation, NPTEL Numerical Analysis (Kadalbajoo)](https://archive.nptel.ac.in/content/storage2/courses/122104019/numerical-analysis/kadalbajoo/second/lect2/node1.html)
4. [Numerical Differentiation, NE 415 lecture notes, Roberts](https://robertsj.github.io/ne415_notes/lectures/L19_NumericalDifferentiation.html)
5. [Turnbull, H. W., "Scottish Contribution to the Calculus", MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/Extras/Turnbull_Scottish/)
6. [Professor George Boole, University College Cork](https://www.ucc.ie/en/heritage/history/people/ucc-staff/professor-george-boole/)
7. [Allaire, G., Numerical Analysis and Optimization, Chapter 2: Finite difference method, Oxford University Press](https://academic.oup.com/book/52870/chapter-abstract/421903203)
8. [Numerical Methods course notes, Kongunadu Arts and Science College](https://mail.kngac.ac.in/elearning-portal/ec/admin/contents/2_18KP2PELP2_2021012812453355.pdf)
9. [Numerical and Statistical Methods, Bharathidasan University study material](https://www.bdu.ac.in/cde/SLM-REVISED-OLD/BSc%20Information%20Technology/Numerical%20and%20Statistical%20Methods_CRC.pdf)
10. [Finite Difference Approximating Derivatives, Python Numerical Methods, UC Berkeley](https://pythonnumericalmethods.studentorg.berkeley.edu/notebooks/chapter20.02-Finite-Difference-Approximating-Derivatives.html)
11. [Finite difference approximation and numerical differentiation: general formulae from deferred corrections, arXiv:2005.11754](https://arxiv.org/abs/2005.11754)
12. [Finite difference, Computational Physics lecture notes, Durham University](https://compphys.notes.dmaitre.phyip3.dur.ac.uk/lectures/lecture-1/finite-difference/)
13. [Ferraro, G., The Rise and Development of the Theory of Series up to the Early 1820s, Springer](https://nzdr.ru/data/media/biblio/kolxoz/M/MPop/Ferraro%20S.%20The%20rise%20and%20development%20of%20the%20theory%20of%20series%20up%20to%20the%20early%201820s%20%28Springer%2C%202008%29%28ISBN%200387734675%29%28394s%29_MPop_.pdf)
14. [Series Transformation by Finite Differences, in Sources in the Development of Mathematics, Cambridge University Press](https://www.cambridge.org/core/books/abs/sources-in-the-development-of-mathematics/series-transformation-by-finite-differences/B8EE47F5BC27E435FEE65F670C9E9812)
15. [Preface, A Treatise on the Calculus of Finite Differences, Cambridge University Press](https://www.cambridge.org/core/books/abs/treatise-on-the-calculus-of-finite-differences/preface/9CFD051A6EDFA06E4AAED0FB330FEB92)
16. [Review of Milne-Thomson, The Calculus of Finite Differences, Nature 134, 231 (1933)](https://www.nature.com/articles/134231a0)
17. [Numerical Methods for PDE: Finite Differences and Finite Volumes, Université Côte d'Azur](https://www.dm.unibo.it/~morigi/homepage_file/courses_file/file_dl/pde_4_fd_E.pdf)
18. [Svärd, M., and Nordström, J., "Review of summation-by-parts schemes for initial–boundary-value problems", Journal of Computational Physics 268, 17–38 (2014)](https://www.sciencedirect.com/science/article/abs/pii/S002199911400151X)
19. [Summation-By-Parts Operators and High-Order Quadrature, arXiv:1103.5182](https://arxiv.org/abs/1103.5182)
20. [Provably Stable and High-Order Accurate Multi-Block Finite Difference Discretisation for Incompressible Flow, Journal of Scientific Computing](https://link.springer.com/article/10.1007/s10915-026-03254-3)
21. [A Comparative Study of Numerical Methods for Partial Differential Equations, IJVRA](https://ijpub.org/ijvra/viewpaperforall.php?paper=IJVRA2609463)
22. [Chen, C., "A finite volume numerical approach for coastal ocean circulation studies", Journal of Geophysical Research: Oceans (2007)](https://agupubs.onlinelibrary.wiley.com/doi/10.1029/2006JC003485)
23. [On the comparison of three numerical methods applied to building simulation, arXiv:1905.13035](https://arxiv.org/abs/1905.13035)
24. [Review of the formulation and applications of the finite-difference time-domain method, ScienceDirect](https://www.sciencedirect.com/science/article/pii/0165212588900121)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/finite-difference

English original: https://www.edgepedia.org/finite-difference
