# 求积法则

求积法则是一种数值方法，通过在选定点上函数值的加权和来近似函数的定积分，记作 \( I_{n}(f) = \sum_{j} w_{j} f(x_{j}) \)，其中 \( x_{j} \) 为互异节点，\( w_{j} \) 为权重，误差为 \( E_{n}(f) = I_{n}(f) - I(f) \)。<sup>[1](https://people.maths.ox.ac.uk/trefethen/exactness.pdf)</sup> 当被积函数光滑且每次求值代价高昂时——例如昂贵的实验数据或多重积分中的重复积分——高斯型法则更为可取。<sup>[2](https://encyclopediaofmath.org/wiki/Gauss_quadrature_formula)</sup>

| 关键事实 | 详情 |
|---|---|
| 形式 | \( I_{n}(f) = \sum_{j} w_{j} f(x_{j}) \)；节点 \( x_{j} \)，权重 \( w_{j} \)，余项 \( R_{n}(f) \)<sup>[3](https://www.cs.purdue.edu/homes/wxg/selected_works/section_12/074.pdf)</sup> |
| 精确度 | 若法则对所有 \( d \) 次多项式精确，且对某个 \( d+1 \) 次多项式不精确，则称其精确度为 \( d \)<sup>[4](https://www.math.unipd.it/~dottmath/corsi2012/lecturenotes/Meurant/Chap5.pdf)</sup> |
| 高斯极大值 | 自由节点的 \( n \) 点法则至多达到 \( 2n-1 \) 次精确度，高斯求积即达到此上界<sup>[1](https://people.maths.ox.ac.uk/trefethen/exactness.pdf)</sup> |
| 实用构造 | 由雅可比矩阵的特征值与特征向量得到高斯节点与权重（戈卢布与韦尔施，1969）<sup>[5](https://doi.org/10.1090/s0025-5718-69-99647-1)</sup> |
| 梯形误差界 | \( \lvert \int f \, dx - T_{n} \rvert \le K_{2}(b-a)^{3}/(12 n^{2}) \)，其中 \( K_{2} \) 为 \( \lvert f'' \rvert \) 的界<sup>[6](https://kconrad.math.uconn.edu/math1132s20/handouts/numericalintegralestimates.pdf)</sup> |
| 典型法则规模 | 自适应复合软件中少于 10 个点；高斯–勒让德与高斯–埃尔米特法则为数十个点；Chebfun 与 ApproxFun 中为数百至数千个点<sup>[1](https://people.maths.ox.ac.uk/trefethen/exactness.pdf)</sup> |
| 蒙特卡洛比较 | 蒙特卡洛误差按 \( \sim 1/\sqrt{n} \) 缩放<sup>[7](https://juliamath.github.io/QuadGK.jl/stable/gauss-kronrod/)</sup> |

## 工作原理

基本原理是插值。给定 \( n \) 个节点，存在唯一的 \( n-1 \) 次多项式在这些节点上与 \( f \) 一致，可通过均差表示；对该多项式而非 \( f \) 积分，便得到精确度至少为 \( n-1 \) 的插值型求积公式。<sup>[8](http://elib.mi.sanu.ac.rs/files/journals/bltn/33/r2008_2.pdf)</sup> 反过来，任何精确度为 \( n-1 \) 的法则都由此方式产生。<sup>[9](https://www.cs.purdue.edu/homes/wxg/selected_works/section_04/146.pdf)</sup> 这样的法则至少对 \( n-1 \) 次多项式精确，也可能具有更高的精确度。<sup>[3](https://www.cs.purdue.edu/homes/wxg/selected_works/section_12/074.pdf)</sup>

精确性是经典的质量度量：若法则的余项 \( R[p] \) 对所有 \( d \) 次多项式为零，且对某个 \( d+1 \) 次多项式非零，则称其精确度为 \( d \)。<sup>[4](https://www.math.unipd.it/~dottmath/corsi2012/lecturenotes/Meurant/Chap5.pdf)</sup> 在自由节点下，\( M \) 点法则可达到的最大精确度为 \( 2M-1 \)，当且仅当节点为积分权重对应的 \( M \) 次正交多项式的根时达到。<sup>[10](https://sandialabs.github.io/pyapprox/gauss_quadrature.html)</sup> 这就是高斯法则；一个刻画定理指出，若法则为插值型且其节点多项式与所有次数不超过 \( m-1 \) 的多项式正交，则它至少对 \( n-1+m \) 次多项式精确，而精确度恰为 \( n-1+m \) 的必要条件是存在某个 \( m \) 次多项式与其不正交。<sup>[9](https://www.cs.purdue.edu/homes/wxg/selected_works/section_04/146.pdf)</sup> 对于 \( [-1,1] \) 上的勒让德权重，节点为 \( n \) 次勒让德多项式的根。<sup>[1](https://people.maths.ox.ac.uk/trefethen/exactness.pdf)</sup>

对于有限区间上的光滑被积函数，具有 \( n \) 个子区间的复合梯形法则满足 \( \lvert \int_{a}^{b} f \, dx - T_{n} \rvert \le K_{2}(b-a)^{3}/(12 n^{2}) \)，其中 \( K_{2} \) 为 \( \lvert f'' \rvert \) 的界；该界要求 \( f'' \) 存在且有界。<sup>[6](https://kconrad.math.uconn.edu/math1132s20/handouts/numericalintegralestimates.pdf)</sup> 在另一极端，高斯求积对每个连续函数 \( f \) 收敛，对解析函数 \( f \) 以指数速率收敛，而牛顿–科茨法则对大多数被积函数——甚至解析函数——以指数速率发散。<sup>[1](https://people.maths.ox.ac.uk/trefethen/exactness.pdf)</sup> Clenshaw–Curtis 法则的权重始终为正，同样对所有连续函数 \( f \) 收敛，对解析函数 \( f \) 指数收敛。<sup>[1](https://people.maths.ox.ac.uk/trefethen/exactness.pdf)</sup> 双指数公式作为函数求值次数 \( N = 2n+1 \) 的函数，达到误差 \( O(\exp(-C \cdot N/\log N)) \)，且没有任何变量变换求积能衰减得更快。<sup>[11](https://www.kurims.kyoto-u.ac.jp/~prims/pdf/41-4/41-4-38.pdf)</sup>

## 实施方法

构造与应用遵循标准流程：在 \( [-1,1] \) 上选取节点，插值，将法则转移到 \( [a,b] \)，在子区间上构造复合法则，并推导用于自适应算法中对照用户给定容差的误差估计。<sup>[12](https://www.math.ntnu.no/emner/TMA4130/2022h/pdf_notes/Quadrature.pdf)</sup> 对于高斯法则，实际计算采用吉恩·H. 戈卢布与约翰·H. 韦尔施的特征值算法（《计算数学》，1969）。<sup>[5](https://doi.org/10.1090/s0025-5718-69-99647-1)</sup> 节点为雅可比矩阵 \( J_{N} \) 的特征值，权重为测度的总质量 \(\mu_{0}\) 乘以归一化特征向量第一个分量的平方，因此当 \(\mu_{0}=1\) 时，权重就是第一个分量的平方。<sup>[4](https://www.math.unipd.it/~dottmath/corsi2012/lecturenotes/Meurant/Chap5.pdf)</sup><sup> • </sup><sup>[28](https://optmat.readthedocs.io/en/latest/generated/sources/golub_1969.html)</sup>

软件中的误差估计依赖嵌入对。高斯–克朗罗德法则用 \( n'+1 \) 个额外点将 \( n' \) 点高斯法则扩展为 \( 2n'+1 \) 点法则，因此两个加权和之差即可估计误差，无需额外函数求值。<sup>[7](https://juliamath.github.io/QuadGK.jl/stable/gauss-kronrod/)</sup> Julia 的 `quadgk` 函数默认阶数为 \( n'=7 \)（15 个点），执行 \( h \) 自适应细分，将区间一分为二并反复应用法则，直至满足所需容差；当被积函数具有局部尖峰或不连续时，\( h \) 自适应比提高法则阶数更稳健。<sup>[7](https://juliamath.github.io/QuadGK.jl/stable/gauss-kronrod/)</sup> 这种自适应细分递归地应用于每个子区间直至收敛，是大多数通用积分程序的基础。<sup>[13](https://gksmyth.github.io/pubs/NumericalIntegration-Preprint.pdf)</sup> 自适应辛普森方法是同一思想的早期例子。<sup>[14](https://www.math.umd.edu/~mariakc/AMSC466/LectureNotes/quadrature.pdf)</sup>

## 起源

计算高斯求积节点与权重的特征值算法由吉恩·H. 戈卢布与约翰·H. 韦尔施于 1969 年在《计算数学》上提出。<sup>[5](https://doi.org/10.1090/s0025-5718-69-99647-1)</sup> 它使一种历史更为悠久的构造变得实用。<sup>[15](https://encyclopediaofmath.org/wiki/Newton%E2%80%93Cotes_quadrature_formula)</sup> 等距权重称为科茨数，已计算至 \( n \le 11 \)。<sup>[3](https://www.cs.purdue.edu/homes/wxg/selected_works/section_12/074.pdf)</sup> 该公式将梯形公式和辛普森公式作为特例包含在内，两者在牛顿之前就已知晓。<sup>[3](https://www.cs.purdue.edu/homes/wxg/selected_works/section_12/074.pdf)</sup> 数值积分方法追问：当节点自由时，可达到的最大精确度是多少；最大值 \( 2n-1 \) 是已证明的上界，由高斯求积达到；\( 2n \) 个未知量（节点与权重）的计数可以启发这一上界，但并不能证明它。<sup>[8](http://elib.mi.sanu.ac.rs/files/journals/bltn/33/r2008_2.pdf)</sup> 所得公式在 \( a=-1 \)、\( b=1 \)、\( p(x) \equiv 1 \) 时，对所有次数不超过 \( 2n-1 \) 的多项式精确，<sup>[2](https://encyclopediaofmath.org/wiki/Gauss_quadrature_formula)</sup> 且没有其他 \( n \) 节点法则能达到这一点。<sup>[16](https://pi.math.cornell.edu/~ajt/papers/QuadratureEssay.pdf)</sup> 高斯的工作由雅可比简化，并在 19 世纪的大部分时间里由梅勒、克里斯托费尔等人进一步发展。<sup>[3](https://www.cs.purdue.edu/homes/wxg/selected_works/section_12/074.pdf)</sup>

## 变体

**牛顿–科茨**法则采用等距节点。<sup>[4](https://www.math.unipd.it/~dottmath/corsi2012/lecturenotes/Meurant/Chap5.pdf)</sup> 其代数精度对奇数 \( n \) 为 \( n \)，对偶数 \( n \) 为 \( n+1 \)；当 \( n = 1 \dots 7, 9 \) 时所有系数为正，但 \( n = 8 \) 及 \( n \ge 10 \) 时出现负系数。<sup>[15](https://encyclopediaofmath.org/wiki/Newton%E2%80%93Cotes_quadrature_formula)</sup> 辛普森法则是实践中最为常用的牛顿–科茨法则，在保持算法简单性的同时具有足够的近似精度。<sup>[17](https://mml-book.github.io/book/additional_chapters/integration-methods.pdf)</sup>

**高斯–勒让德**法则即上文所述的 \( [-1,1] \) 高斯法则。<sup>[16](https://pi.math.cornell.edu/~ajt/papers/QuadratureEssay.pdf)</sup> **高斯–埃尔米特**公式定义在 \( (-\infty,\infty) \) 上，权重为 \( \exp(-x^{2}) \)，据高奇所述由古里耶于 1883 年引入。<sup>[1](https://people.maths.ox.ac.uk/trefethen/exactness.pdf)</sup> **高斯–克朗罗德**法则经济地估计勒让德权重下 \( n \) 点高斯公式的误差，添加 \( n+1 \) 个新节点，连同所有权重一起选取，使扩展后的法则具有最大精确度。<sup>[18](https://etna.ricam.oeaw.ac.at/volumes/2011-2020/vol45/abstract.php?pages=371-404)</sup>

**费耶尔与 Clenshaw–Curtis** 法则使用切比雪夫节点。引入了两种法则，节点分别为 \( T_{n} \) 和 \( U_{n} \) 的根，并针对 \( w \equiv 1 \) 建立了闭式公式和权重的正性。<sup>[19](https://www.math.unipd.it/~alvise/PAPERS/fejer_v2.pdf)</sup> 该法则基于费耶尔第二类节点加上端点 \( -1 \) 和 \( +1 \)，等价于对被积函数的有限切比雪夫展开进行积分；如金特尔曼所示，求值可通过离散余弦变换完成。<sup>[19](https://www.math.unipd.it/~alvise/PAPERS/fejer_v2.pdf)</sup> 节点为 \( x_{j} = \cos(j \cdot \pi/(n-1)) \)，节点与权重可在 \( O(n \log n) \) 内计算。<sup>[1](https://people.maths.ox.ac.uk/trefethen/exactness.pdf)</sup> Clenshaw–Curtis 求积本质上是梯形积分加上一个消除端点问题的坐标变换。<sup>[20](https://math.mit.edu/~stevenj/trapezoidal.pdf)</sup>

**双曲正切–双曲正弦（双指数）**求积在变换 \( x = \phi(t) = \tanh((\pi/2)\sinh t) \) 之后应用梯形公式；变换后的被积函数呈双指数衰减，该方法由此得名。<sup>[11](https://www.kurims.kyoto-u.ac.jp/~prims/pdf/41-4/41-4-38.pdf)</sup> 大卫·H. 贝利称，在计入横坐标计算和误差界的情况下，双曲正切–双曲正弦是当前已知最快的高精度求积方案。<sup>[21](https://davidhbailey.com/dhbpapers/dhb-tanh-sinh.pdf)</sup>

**贝叶斯求积**通过加权和近似关于概率测度的积分，但将计算视为统计推断，这是其在概率数值方法中的定义性特征。<sup>[17](https://mml-book.github.io/book/additional_chapters/integration-methods.pdf)</sup> 它用高斯过程以用户选择的节点近似被积函数 \( f \)，与牛顿–科茨法则采用等距节点、高斯法则采用正交多项式的根形成对比。<sup>[17](https://mml-book.github.io/book/additional_chapters/integration-methods.pdf)</sup> 一篇关于贝叶斯求积的系统综述发表于《机器学习基础与趋势》。<sup>[22](https://www.emerald.com/ftmal/article/19/2-3/121/1396422/Bayesian-quadrature)</sup>

## 应用

双指数公式用于分子物理、流体力学、统计学、土木工程、金融工程和边界元法。<sup>[11](https://www.kurims.kyoto-u.ac.jp/~prims/pdf/41-4/41-4-38.pdf)</sup> 设计多项式求积用于工程问题中的参数算子方程。<sup>[23](https://users.cs.utah.edu/~kirby/Publications/Kirby-113.pdf)</sup> 在软件中，自适应复合法则通常使用少于 10 个点，高斯–勒让德和高斯–埃尔米特法则使用数十个点，Chebfun 和 ApproxFun 使用数百至数千个点。<sup>[1](https://people.maths.ox.ac.uk/trefethen/exactness.pdf)</sup> 高阶牛顿–科茨法则在实践中几乎从不使用；现代积分通常将复合低阶法则应用于自适应算法中，而龙贝格积分对一系列复合梯形近似应用理查森外推。<sup>[24](https://old.maa.org/press/periodicals/convergence/servois-1817-memoir-on-quadratures-the-newton-cotes-formulas)</sup>

## 局限与替代方案

**多项式精确性是不可靠的指南。** 特雷费森表明，精确性原理并不能预测牛顿–科茨、Clenshaw–Curtis 和高斯法则在 \( [-1,1] \) 上的实际精度，以及高斯–埃尔米特法则的精度，其中牛顿–科茨和高斯–埃尔米特的失效尤为极端。<sup>[1](https://people.maths.ox.ac.uk/trefethen/exactness.pdf)</sup> 牛顿–科茨失效的机制是等距点上多项式插值的振荡，这见于龙格 1901 年的论文，并由波利亚于 1933 年严格化。<sup>[1](https://people.maths.ox.ac.uk/trefethen/exactness.pdf)</sup>

**嵌套与维度。** 高斯法则无法嵌套：\( n' \) 点高斯法则的点不是 \( n \) 点法则点的子集（\( 1 < n' < n \)），这就是为什么采用克朗罗德扩展来获得可复用的误差估计。<sup>[7](https://juliamath.github.io/QuadGK.jl/stable/gauss-kronrod/)</sup> 在高维情形下，确定性求积遭受维数灾难，这一问题自巴赫瓦洛夫 1959 年的开创性论文以来得到研究。<sup>[25](https://arxiv.org/abs/1409.6714)</sup> 蒙特卡洛积分以 \( O(N^{-1/2}) \) 的速率收敛，与维度无关，稳健但缓慢，通常限制在约三位有效数字。<sup>[26](https://www.cambridge.org/core/journals/acta-numerica/article/abs/monte-carlo-and-quasimonte-carlo-methods/FE7C779B350CFEA45DB2A4CCB2DA9B5C)</sup><sup> • </sup><sup>[13](https://gksmyth.github.io/pubs/NumericalIntegration-Preprint.pdf)</sup> 拟蒙特卡洛用低差异序列替代随机样本，达到约 \( O((\log N)^{k} N^{-1}) \) 的收敛速度。<sup>[26](https://www.cambridge.org/core/journals/acta-numerica/article/abs/monte-carlo-and-quasimonte-carlo-methods/FE7C779B350CFEA45DB2A4CCB2DA9B5C)</sup> 一份机器学习参考书给出的实用经验法则：对于大约 100 到 1000 维的设置使用蒙特卡洛，而牛顿–科茨、高斯和贝叶斯求积适合低维和中等维度。<sup>[17](https://mml-book.github.io/book/additional_chapters/integration-methods.pdf)</sup> 在高斯与 Clenshaw–Curtis 之间，通过在 \( z = \infty \) 处对 \( \log((z+1)/(z-1)) \) 进行帕德近似得到的精确比较表明，Clenshaw–Curtis 在此处的精度阶数仅为高斯的一半。<sup>[27](https://epubs.siam.org/doi/10.1137/060659831)</sup>

## References

1. [Exactness of Quadrature Formulas (Trefethen, SIAM Review 64, 2022)](https://people.maths.ox.ac.uk/trefethen/exactness.pdf)
2. [Gauss quadrature formula – Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Gauss_quadrature_formula)
3. [Gaussian quadrature (historical survey, Gautschi)](https://www.cs.purdue.edu/homes/wxg/selected_works/section_12/074.pdf)
4. [Chapter 5: Gauss quadrature rules (Meurant lecture notes)](https://www.math.unipd.it/~dottmath/corsi2012/lecturenotes/Meurant/Chap5.pdf)
5. [Gene H. Golub, John H. Welsch (1969). Calculation of Gauss quadrature rules. Mathematics of Computation.](https://doi.org/10.1090/s0025-5718-69-99647-1)
6. [Making Estimates in Numerical Integration (UConn handout)](https://kconrad.math.uconn.edu/math1132s20/handouts/numericalintegralestimates.pdf)
7. [Quadrature rules · QuadGK.jl documentation](https://juliamath.github.io/QuadGK.jl/stable/gauss-kronrod/)
8. [Quadrature processes – development and new directions](http://elib.mi.sanu.ac.rs/files/journals/bltn/33/r2008_2.pdf)
9. [Gautschi, work on orthogonal-polynomial quadrature (Section 04/146)](https://www.cs.purdue.edu/homes/wxg/selected_works/section_04/146.pdf)
10. [Gauss Quadrature: Optimal Nodes from Orthogonal Polynomials – PyApprox (Sandia)](https://sandialabs.github.io/pyapprox/gauss_quadrature.html)
11. [Publications of the Research Institute for Mathematical Sciences (PRIMS) 41-4 paper on the DE formula](https://www.kurims.kyoto-u.ac.jp/~prims/pdf/41-4/41-4-38.pdf)
12. [Quadrature notes (TMA4130, NTNU)](https://www.math.ntnu.no/emner/TMA4130/2022h/pdf_notes/Quadrature.pdf)
13. [Numerical Integration (Smyth, preprint)](https://gksmyth.github.io/pubs/NumericalIntegration-Preprint.pdf)
14. [Quadrature lecture notes (AMSC466, UMD)](https://www.math.umd.edu/~mariakc/AMSC466/LectureNotes/quadrature.pdf)
15. [Newton–Cotes quadrature formula – Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Newton%E2%80%93Cotes_quadrature_formula)
16. [Quadrature essay (A. J. T. / Cornell)](https://pi.math.cornell.edu/~ajt/papers/QuadratureEssay.pdf)
17. [Modern Integration Methods in Machine Learning (MML book chapter)](https://mml-book.github.io/book/additional_chapters/integration-methods.pdf)
18. [ETNA vol. 45 abstract: survey of Gauss–Kronrod quadrature research](https://etna.ricam.oeaw.ac.at/volumes/2011-2020/vol45/abstract.php?pages=371-404)
19. [Fast Construction of Fejér and Clenshaw-Curtis rules for general weight functions](https://www.math.unipd.it/~alvise/PAPERS/fejer_v2.pdf)
20. [Notes on the convergence of trapezoidal-rule quadrature (Steven G. Johnson, MIT)](https://math.mit.edu/~stevenj/trapezoidal.pdf)
21. [Tanh-sinh quadrature paper by David H. Bailey](https://davidhbailey.com/dhbpapers/dhb-tanh-sinh.pdf)
22. [Bayesian quadrature | Foundations and Trends in Machine Learning](https://www.emerald.com/ftmal/article/19/2-3/121/1396422/Bayesian-quadrature)
23. [Numerical Integration in Multiple Dimensions with Designed Quadrature (SIAM J. Sci. Comput., Vol. 40, No. 4)](https://users.cs.utah.edu/~kirby/Publications/Kirby-113.pdf)
24. [Servois' 1817 'Memoir on Quadratures' – The Newton–Cotes Formulas (MAA Convergence)](https://old.maa.org/press/periodicals/convergence/servois-1817-memoir-on-quadratures-the-newton-cotes-formulas)
25. [Some Results on the Complexity of Numerical Integration](https://arxiv.org/abs/1409.6714)
26. [Monte Carlo and quasi-Monte Carlo methods (Acta Numerica)](https://www.cambridge.org/core/journals/acta-numerica/article/abs/monte-carlo-and-quasimonte-carlo-methods/FE7C779B350CFEA45DB2A4CCB2DA9B5C)
27. [Is Gauss Quadrature Better than Clenshaw–Curtis? (SIAM)](https://epubs.siam.org/doi/10.1137/060659831)
28. [golub_1969, optmat](https://optmat.readthedocs.io/en/latest/generated/sources/golub_1969.html)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/quadrature-rule

English original: https://www.edgepedia.org/quadrature-rule
