# 截断误差

截断误差是数值方法因将精确数学运算（如导数或积分）替换为有限近似而产生的误差。在有限差分方法的分析中，它被定义为将控制方程的精确解代入有限差分近似后所得的余项。<sup>[1](https://mitocw.ups.edu.ec/courses/aeronautics-and-astronautics/16-90-computational-methods-in-aerospace-engineering-spring-2014/numerical-methods-for-partial-differential-equations/analysis-of-finite-difference-methods/1690r-truncation-error-for-a-pde/)</sup> 这一名称反映了将无穷泰勒级数截断到有限项后的做法；被舍弃的项即为误差。

| 关键事实 | 详情 |
|---|---|
| 定义 | 将控制方程的精确解代入有限差分近似后所得的余项，通过泰勒级数展开计算。<sup>[1](https://mitocw.ups.edu.ec/courses/aeronautics-and-astronautics/16-90-computational-methods-in-aerospace-engineering-spring-2014/numerical-methods-for-partial-differential-equations/analysis-of-finite-difference-methods/1690r-truncation-error-for-a-pde/)</sup> |
| 精度阶数 | 若截断误差满足 \( \tau_f(h) = O(h^{m}) \)，其中 \( m \) 为正整数，则 \( m \) 为该公式的精度阶数。<sup>[2](https://fncbook.com/julia/fd-converge/)</sup> |
| 标准差分 | 前向差分和后向差分的截断阶数为 \( O(h) \)；中心差分以两次函数求值为代价获得 \( O(h^{2}) \)。<sup>[3](https://cs357.cs.illinois.edu/textbook/notes/finite-difference.html)</sup> |
| 常微分方程积分器 | 显式欧拉法具有 \( O(h) \) 截断误差，休恩法为 \( O(h^{2}) \)，四阶段龙格–库塔法为 \( O(h^{4}) \)。<sup>[4](https://personal.math.vt.edu/embree/math5466/nanotes.pdf)</sup> |
| 在收敛性中的作用 | 相容性（即截断误差随步长趋于零而趋于零）与稳定性共同蕴含数值方法的收敛性。<sup>[5](https://people.maths.ox.ac.uk/suli/lecture_notes.pdf)</sup> |
| 实际限制 | 减小步长可降低截断误差，但会增大舍入误差，从而产生一个使总误差最小的最优步长 \( h = \sqrt{\epsilon_{m} \lvert f(x) \rvert / M} \)。<sup>[3](https://cs357.cs.illinois.edu/textbook/notes/finite-difference.html)</sup> |

## 定义与局部截断误差

对于写为 \( K U = F \) 的数值格式，局部截断误差（LTE）是用精确解 \( u(x_{j}) \) 代替数值解 \( U_{j} \) 时所产生的误差。它即为 \( K u = F + \tau \) 中的量 \( \tau \)。<sup>[6](https://ocw.mit.edu/courses/18-330-introduction-to-numerical-analysis-spring-2012/a9d2bd9be098f0ada172af40379a17cc_MIT18_330S12_Chapter5.pdf)</sup> 局部截断误差直接由有限差分格式的截断误差得到；对于标准二阶导数模板，局部截断误差为 \( O(h^{2}) \)。<sup>[6](https://ocw.mit.edu/courses/18-330-introduction-to-numerical-analysis-spring-2012/a9d2bd9be098f0ada172af40379a17cc_MIT18_330S12_Chapter5.pdf)</sup>

局部截断误差与计算解的实际误差并不相同。写出 \( K u = F + \tau \) 和 \( K U = F \) 并相减，得 \( K e = \tau \)，因此实际误差向量为 \( e = K^{-1} \tau \)。<sup>[6](https://ocw.mit.edu/courses/18-330-introduction-to-numerical-analysis-spring-2012/a9d2bd9be098f0ada172af40379a17cc_MIT18_330S12_Chapter5.pdf)</sup> 于是截断误差被离散算子的逆所放大，要使方法收敛，需要 \( K^{-1} \) 有界。<sup>[6](https://ocw.mit.edu/courses/18-330-introduction-to-numerical-analysis-spring-2012/a9d2bd9be098f0ada172af40379a17cc_MIT18_330S12_Chapter5.pdf)</sup>

对于常微分方程积分器，定义具有平行形式。显式单步法的截断误差为

\[ T_{k} = \frac{x(t_{k+1}) - x(t_{k})}{h} - \Phi(t_{k}, x(t_{k}); h), \]

它衡量的是：若给定完美数据 \( x(t_{k}) \)，该方法在单步中会产生的误差。若 \( h \to 0 \) 时 \( T_{k} \to 0 \)，则方法是相容的；若 \( T_{k} = O(h^{p}) \)，则方法具有 \( p \) 阶截断误差。<sup>[4](https://personal.math.vt.edu/embree/math5466/nanotes.pdf)</sup> 对于偏微分方程，定义略有不同：截断误差是将精确解代入以逼近控制偏微分方程的形式写出的方法后所得的余项，而非常微分方程所用的数值解与精确解之间的单步差。<sup>[1](https://mitocw.ups.edu.ec/courses/aeronautics-and-astronautics/16-90-computational-methods-in-aerospace-engineering-spring-2014/numerical-methods-for-partial-differential-equations/analysis-of-finite-difference-methods/1690r-truncation-error-for-a-pde/)</sup>

## 计算截断误差

截断误差的形式总是可以计算的，通常利用泰勒级数，从有限差分近似和微分算子出发求得。<sup>[7](https://lavinia.as.arizona.edu/~vpaschal/Lecture1_notes.pdf)</sup> 其步骤是将精确解的泰勒展开代入格式，并收集剩余的主导项。

**导数近似。** 前向差分 \( df(x) = (f(x+h) - f(x))/h \) 的截断阶数为 \( O(h) \)，其误差被 \( M h \geq \lvert f'(x) - df(x) \rvert \) 所界定，其中 \( M \) 为常数。中心差分 \( (f(x+h) - f(x-h))/(2h) \) 的截断阶数为 \( O(h^{2}) \)。<sup>[3](https://cs357.cs.illinois.edu/textbook/notes/finite-difference.html)</sup> 对于 \( f(x) = 2x^{2} + 15x + 1 \)，在 \( x = 10 \) 处取 \( h = 0.01 \)，前向差分和后向差分相对于精确导数 \( f'(10) = 55 \) 的绝对截断误差均为 0.02，而中心差分的误差为 0.0。<sup>[3](https://cs357.cs.illinois.edu/textbook/notes/finite-difference.html)</sup>

**含时偏微分方程。** 对于应用于一维对流扩散方程的 FTCS 格式，泰勒展开表明时间离散引入 \( O(\Delta t) \) 项，空间离散引入 \( O(\Delta x^{2}) \) 项，因此该方法在时间上一阶精度、在空间上二阶精度。<sup>[1](https://mitocw.ups.edu.ec/courses/aeronautics-and-astronautics/16-90-computational-methods-in-aerospace-engineering-spring-2014/numerical-methods-for-partial-differential-equations/analysis-of-finite-difference-methods/1690r-truncation-error-for-a-pde/)</sup> 对于热方程，取时间步长 \( k \) 和网格间距 \( h \)，主导截断误差为

\[ T^{n}_{i} = \left( \frac{k}{2} \frac{\partial^{2} U}{\partial t^{2}} - \frac{h^{2}}{12} \frac{\partial^{4} U}{\partial x^{4}} \right)^{n}_{i} + \text{高阶项}, \]

因此 \( T^{n}_{i} = O(k) + O(h^{2}) \)。重写主导项并选取网格比 \( D = k/h^{2} = 1/6 \) 可消去 \( O(h^{2}) \) 贡献，将截断误差提升至 \( O(k^{2}) + O(h^{4}) \)。<sup>[8](https://leifh.folk.ntnu.no/teaching/tkt4140/._main067.html)</sup>

## 精度阶数与收敛性

若有限差分公式的截断误差满足 \( \tau_{f}(h) = O(h^{m}) \)，其中 \( m \) 为正整数，则 \( m \) 为精度阶数。阶数通过在 \( h = 0 \) 处对 \( \tau_{f} \) 作泰勒展开并保留主导项来确定。更高的阶数更受青睐，因为 \( O(h^{m}) \) 在 \( m \) 较大时消失得更快；一般而言，在有限差分公式中纳入更多函数值可提高精度阶数。<sup>[2](https://fncbook.com/julia/fd-converge/)</sup>

相容性是指截断误差随步长趋于零而趋于零；它是全局误差收敛的必要条件。<sup>[4](https://personal.math.vt.edu/embree/math5466/nanotes.pdf)</sup> 微分方程数值方法分析中反复出现的主题是：稳定性与相容性共同蕴含收敛性。<sup>[5](https://people.maths.ox.ac.uk/suli/lecture_notes.pdf)</sup> 对于常微分方程积分器，这体现为达尔奎斯特等价定理；对于偏微分方程离散化，存在类似的相容性加稳定性概念，相应的结果为拉克斯等价定理。<sup>[1](https://mitocw.ups.edu.ec/courses/aeronautics-and-astronautics/16-90-computational-methods-in-aerospace-engineering-spring-2014/numerical-methods-for-partial-differential-equations/analysis-of-finite-difference-methods/1690r-truncation-error-for-a-pde/)</sup>

在单步常微分方程方法中，显式欧拉法具有 \( O(h) \) 截断误差，休恩法和改进欧拉法具有 \( O(h^{2}) \)，四阶段龙格–库塔法具有 \( O(h^{4}) \)。\( m \) 次对 \( f \) 的求值给出 \( O(h^{m}) \) 截断误差这一规律在 \( m = 4 \) 之后不再成立：所有具有 \( O(h^{5}) \) 截断误差的龙格–库塔法都至少需要对 \( f \) 求值六次。<sup>[4](https://personal.math.vt.edu/embree/math5466/nanotes.pdf)</sup>

## 截断误差与舍入误差

截断误差只是计算解中误差的一个组成部分。设 \( A \) 为偏微分方程的解析解，\( D \) 为有限差分方程的精确解，则离散误差为 \( A - D \)，等于截断误差加上边界条件处理所引入的误差；有限精度算术产生的舍入误差则叠加在其上。<sup>[9](https://archive.nptel.ac.in/content/storage2/courses/112104030/lecture7/7_4.htm)</sup>

随着步长的变化，两种主要误差来源的作用方向相反。减小 \( h \) 会降低截断误差，但极小的 \( h \) 会产生被 \( \epsilon_{m} \lvert f(x) \rvert / h \) 界定的相消误差，其中 \( \epsilon_{m} \) 为机器epsilon。总误差近似为 \( \epsilon_{m} \lvert f(x) \rvert / h + M h \)，在

\[ h = \sqrt{\frac{\epsilon_{m} \lvert f(x) \rvert}{M}}, \]

处取得最小值，即截断误差与舍入误差贡献相交之点。<sup>[3](https://cs357.cs.illinois.edu/textbook/notes/finite-difference.html)</sup> 因此，将 \( h \) 推至该最优值以下会增加总误差，尽管公式的形式截断阶数并未改变。<sup>[10](https://technav.ieee.org/topic/approximation-error/)</sup>

## 历史发展

椭圆型问题差分近似的误差界最早由盖尔施戈林（Gerschgorin）于1930年导出，基于拉普拉斯方程极值原理的离散类比。随后，一般初值问题和抛物型问题的有限差分理论在20世纪50年代和60年代得到密集发展，其间稳定性概念在拉克斯等价定理和克赖斯矩阵引理中得到探讨。<sup>[11](https://doi.org/10.1016/s0377-0427(00)00507-0)</sup> 这一框架——其中截断误差量化相容性、稳定性完成收敛性证明——至今仍是分析离散化方法的标准结构。<sup>[5](https://people.maths.ox.ac.uk/suli/lecture_notes.pdf)</sup>

## 误差界之外的用途

由于截断误差可以局部计算，它可作为实用的误差指示器。监测插值误差和局部截断误差的策略构成了自适应网格生成中误差均匀分布理论的基础，其中网格被调整以使误差均匀分布。<sup>[12](https://epubs.siam.org/doi/10.1137/0915050)</sup> 截断误差估计也驱动着液滴模拟中的自适应网格加密，计算所得的误差估计控制网格在何处加密。<sup>[13](https://arxiv.org/abs/2508.15081)</sup> 在高阶间断伽辽金方法中，截断误差的 \( \tau \) 估计指导非定常流动的各向异性多项式阶数自适应，足以减少自由度数目，相对于均匀加密，欧拉测试案例获得最高 \( \times 4.5 \) 的加速，纳维–斯托克斯测试案例获得 \( \times 2.2 \) 的加速。<sup>[14](https://arxiv.org/abs/2210.03523)</sup>

## References

1. [Truncation Error for a PDE, MIT OpenCourseWare 16.90, Computational Methods in Aerospace Engineering](https://mitocw.ups.edu.ec/courses/aeronautics-and-astronautics/16-90-computational-methods-in-aerospace-engineering-spring-2014/numerical-methods-for-partial-differential-equations/analysis-of-finite-difference-methods/1690r-truncation-error-for-a-pde/)
2. [Convergence of finite differences, Fundamentals of Numerical Computation](https://fncbook.com/julia/fd-converge/)
3. [Finite Difference Methods, CS 357 Textbook, University of Illinois](https://cs357.cs.illinois.edu/textbook/notes/finite-difference.html)
4. [Lecture Notes on Numerical Analysis, Virginia Tech (M. Embree)](https://personal.math.vt.edu/embree/math5466/nanotes.pdf)
5. [Lecture Notes, Numerical Analysis for Differential Equations, University of Oxford (E. Süli)](https://people.maths.ox.ac.uk/suli/lecture_notes.pdf)
6. [Introduction to Numerical Analysis, Lecture 5, MIT OpenCourseWare 18.330](https://ocw.mit.edu/courses/18-330-introduction-to-numerical-analysis-spring-2012/a9d2bd9be098f0ada172af40379a17cc_MIT18_330S12_Chapter5.pdf)
7. [A First Course on Numerical Analysis, Lecture Notes, University of Arizona](https://lavinia.as.arizona.edu/~vpaschal/Lecture1_notes.pdf)
8. [Numerical Methods for Engineers, Chapter 7.6, NTNU](https://leifh.folk.ntnu.no/teaching/tkt4140/._main067.html)
9. [Lecture 7: Errors in CFD, NPTEL course notes](https://archive.nptel.ac.in/content/storage2/courses/112104030/lecture7/7_4.htm)
10. [Approximation Error, IEEE Technology Navigator](https://technav.ieee.org/topic/approximation-error/)
11. [From finite differences to finite elements: A short history of numerical analysis of partial differential equations, Journal of Computational and Applied Mathematics 128 (2001) 1–54](https://doi.org/10.1016/s0377-0427(00)00507-0)
12. [Error Equidistribution and Mesh Adaptation, SIAM Journal on Scientific Computing](https://epubs.siam.org/doi/10.1137/0915050)
13. [Error Estimation for Adaptive Mesh Refinement in Droplet Simulations, arXiv:2508.15081](https://arxiv.org/abs/2508.15081)
14. [Truncation Error-Based Anisotropic p-Adaptation for Unsteady Flows for High-Order Discontinuous Galerkin Methods, arXiv:2210.03523](https://arxiv.org/abs/2210.03523)

---
*Initially written 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/truncation-error

English original: https://www.edgepedia.org/truncation-error
