# 二次插值

二次插值是数值分析方法，通过拟合穿过三个横坐标互异的已知数据点的唯一一个次数至多为二次的多项式，并在这些点之间对该多项式求值，来估计函数的中间值。一般二次函数 \( f(x) = ax^2 + bx + c \) 有三个参数，因此三个点足以唯一确定它。<sup>[1](https://files.eric.ed.gov/fulltext/EJ1231189.pdf)</sup> 由于在实际中很少在整个区间上使用很高阶的插值，网格段上的标准选择是线性插值或使用三个节点的二次插值。<sup>[2](https://encyclopediaofmath.org/wiki/Interpolation_in_numerical_mathematics)</sup>

| 关键事实 | 细节 |
|---|---|
| 产生的结果 | 穿过三个点的唯一抛物线，并在这些点之间求值<sup>[3](http://www.math.iit.edu/~fass/Notes350_Ch3Print.pdf)</sup> |
| 拉格朗日（Lagrange）形式 | \( p(x) = L_1(x) \cdot y_1 + L_2(x) \cdot y_2 + L_3(x) \cdot y_3 \)，其中基多项式满足 \( L_i(x_j) = \delta_{ij} \)<sup>[3](http://www.math.iit.edu/~fass/Notes350_Ch3Print.pdf)</sup> |
| 误差项 | \( R_2(x) = \frac{f^{(3)}(\xi)}{3!}(x-x_0)(x-x_1)(x-x_2) \)<sup>[4](https://dlmf.nist.gov/3.3)</sup> |
| 最坏情况误差（等距节点） | \( \frac{1}{9\sqrt{3}} M h^3 \)，其中 \( M = \max |f^{(3)}| \)<sup>[5](https://math.stackexchange.com/questions/2647115/lagrange-linear-quadratic-and-cubic-interpolations-maximum-interpolation-error)</sup> |
| 节点乘积最大值 | 三个等距节点时为 \( \frac{2h^3}{3\sqrt{3}} \)<sup>[6](https://facultyweb.kennesaw.edu/lritter/Mar3_2335_51_Sp16f.pdf)</sup> |
| 在求根中的作用 | 布伦特（Brent）方法以包围和二分法作为防护，通常具有超线性收敛，且从不比二分法慢很多<sup>[7](https://epubs.siam.org/doi/10.1137/0906016)</sup> |

## 工作原理

给定三个互异点 \( (x_1, y_1) \)、\( (x_2, y_2) \)、\( (x_3, y_3) \)，插值多项式为

\[ p(x) = \frac{(x-x_2)(x-x_3)}{(x_1-x_2)(x_1-x_3)} y_1 + \frac{(x-x_1)(x-x_3)}{(x_2-x_1)(x_2-x_3)} y_2 + \frac{(x-x_1)(x-x_2)}{(x_3-x_1)(x_3-x_2)} y_3 = L_1(x) \cdot y_1 + L_2(x) \cdot y_2 + L_3(x) \cdot y_3. \]

基多项式 \( L_i \) 满足 \( L_i(x_j) = \delta_{ij} \)，因此 \( p \) 穿过全部三个点，并且是该数据的唯一二次插值多项式；这些 \( L_i \) 就是二次多项式插值的拉格朗日基。<sup>[3](http://www.math.iit.edu/~fass/Notes350_Ch3Print.pdf)</sup> 同一个多项式也可以由均差（用于构造牛顿（Newton）插值多项式的递归斜率表）构造，牛顿形式为

\[ f_2(x) = b_0 + b_1 \cdot (x - x_0) + b_2 \cdot (x - x_0) \cdot (x - x_1), \qquad b_2 = \frac{ \frac{f(x_2)-f(x_1)}{x_2-x_1} - \frac{f(x_1)-f(x_0)}{x_1-x_0} }{x_2 - x_0}, \]

其中 \( b_2 \) 是二阶均差。<sup>[8](https://mathforcollege.com/nm/NumericalMethodsTextbookUnabridged/chapter-05.03-newtons-divided-difference-method-of-interpolation.html)</sup>

二次插值多项式的误差为

\[ R_2(x) = \frac{f^{(3)}(\xi)}{3!} \prod_{i=0}^{2}(x - x_i), \]

一般形式为 \( R_n(x) = \frac{f^{(n+1)}(\xi)}{(n+1)!}\,\omega_{n+1}(x) \)。<sup>[4](https://dlmf.nist.gov/3.3)</sup><sup> • </sup><sup>[9](https://www.cs.odu.edu/~tkennedy/cs417/s26/Public/interpolationErrorExampleQuadratic/index.html)</sup> 对于间距为 \( h \) 的等距节点，节点乘积 \( |\Psi_2(x)| \) 的最大值为 \( 2h^3/(3\sqrt{3}) \)。<sup>[6](https://facultyweb.kennesaw.edu/lritter/Mar3_2335_51_Sp16f.pdf)</sup> 除以 \( 3! \) 并记 \( M = \max_{x_0 \le x \le x_2} |f^{(3)}(x)| \)，最坏情况误差为 \( \frac{1}{9\sqrt{3}} M \cdot h^3 \)，节点乘积 \( |t(t-1)(t-2)| \) 的峰值为 \( 2\sqrt{3}/9 \)。

## 实施步骤

实践者遵循四个步骤。第一，选择最接近目标值并且也包围目标值的三个数据点；要在表中条目位于 10、15 和 20 的情况下在 \( t = 16 \) 处求值，三个点是 \( t_0 = 10 \)、\( t_1 = 15 \) 和 \( t_2 = 20 \)。<sup>[8](https://mathforcollege.com/nm/NumericalMethodsTextbookUnabridged/chapter-05.03-newtons-divided-difference-method-of-interpolation.html)</sup> 第二，计算系数，或者用均差，或者通过求解 \( ax^2 + bx + c \) 中 \( a \)、\( b \) 和 \( c \) 的三个线性方程。<sup>[10](https://ece.uwaterloo.ca/~dwharder/nm/Lecture_materials/pdfs/3.4%20Interpolating%20polynomials.pdf)</sup> 第三，在目标点处对多项式求值。第四，由三阶导数和节点乘积给出误差界；在 \( f(x) = \sqrt{x} \) 的一个已演算例子中，界定 \( |f(x) - p_2(x)| \le \frac{|f^{(3)}(\xi)|}{6}|(x-x_0)(x-x_1)(x-x_2)| \) 通过节点乘积控制误差，而在三阶导数有固定界 \( M \) 的情况下，通用估计 \( M h^3/(9\sqrt{3}) \) 要求 \( h \le (9\sqrt{3}\epsilon/M)^{1/3} \) 才能达到目标误差 \( \epsilon \)。<sup>[9](https://www.cs.odu.edu/~tkennedy/cs417/s26/Public/interpolationErrorExampleQuadratic/index.html)</sup>

## 起源

牛顿（Newton）关于插值的工作出现在 1675 年写给史密斯（Smith）的一封信、1711 年出版的《微分方法》（Methodus Differentialis）、1676 年写成的《差分法则》（Regula Differentiarum），以及 1687 年《原理》（Principia）第三卷的引理 V 中，其中第一个公式处理等间隔数据。<sup>[11](https://imagescience.org/meijering/publications/download/pieee2002.pdf)</sup> 这项工作奠定了经典插值理论的基础。<sup>[12](https://nm.mathforcollege.com/mcd/gen/05inp/mcd_gen_inp_bck_history.pdf)</sup><sup> • </sup><sup>[12](https://nm.mathforcollege.com/mcd/gen/05inp/mcd_gen_inp_bck_history.pdf)</sup>；他把适当次数的多项式作为最简单的解，通过均差表推导出牛顿形式，然后通过初等代数操作得到以他命名的公式。<sup>[13](https://seminariomatematico.polito.it/rendiconti/70-4/347.pdf)</sup> 理查德·P·布伦特（Richard P. Brent）1971 年关于在不计算导数的情况下求零点和极值的报告，把二次插值作为一个特例包含在内。<sup>[14](https://apps.dtic.mil/sti/tr/pdf/AD0726170.pdf)</sup>

## 变体

拉格朗日形式与牛顿形式各有不同的取舍。牛顿公式便于更新：增加一个新点只需追加一项并计算其均差，而且它对点重合是稳健的。<sup>[4](https://dlmf.nist.gov/3.3)</sup> 拉格朗日形式的一个计算优势是，它所需的 \( O(n^2) \) 个量不依赖于数据值 \( f_j \)，因此一旦权重已知，就可以用每次 \( O(n) \) 次运算对许多函数进行插值。<sup>[15](https://depts.washington.edu/ph506/BarycentricLagrange.pdf)</sup>

二次插值也出现在无导数算法内部。逆二次插值（IQI）把该方法反过来运行，用 y 值作为输入、x 值作为输出，因此在根处（\( y = 0 \)）答案直接由 \( x_1 \)、\( x_2 \) 和 \( x_3 \) 的拉格朗日式加权组合给出；IQI 很少单独使用。<sup>[16](https://pesky-imps.readthedocs.io/en/latest/equation/eq_IQI.html)</sup> 它是布伦特方法不可或缺的组成部分，后者是一种结合根的包围、二分法和逆二次插值的求根算法。<sup>[17](https://indrag49.github.io/Numerical-Optimization/solving-one-dimensional-optimization-problems.html)</sup> 布伦特 1973 年的分析表明，把二分法与逆二次插值结合的方法，其收敛通常为超线性，且从不比二分法慢很多，求值次数取决于函数和初始包围区间。<sup>[7](https://epubs.siam.org/doi/10.1137/0906016)</sup>

对于最小化，逐次抛物线插值构造一条穿过三个点的割线抛物线，并反复用该抛物线的临界点替换最旧的点，

\[ x = \frac{a+b}{2} - \frac{\alpha}{2\beta}, \qquad \alpha = \frac{f(b)-f(a)}{b-a}, \quad \beta = \frac{f(c) - f(a) - \alpha(c-a)}{(c-a)(c-b)}. \]

《数值食谱》（Numerical Recipes）中的等价公式只在三个点共线时失效，此时分母为零。<sup>[18](https://iate.oac.uncor.edu/~mario/materia/nr/numrec/f10-2.pdf)</sup><sup> • </sup><sup>[19](https://drlvk.github.io/nm/section-parabolic-interpolation.html)</sup>

## 应用

除布伦特式求根之外，一种修改同时构造两个二次插值多项式；如果三阶导数在局部化区间上不变号，则根位于这两个二次多项式的根之间，从而缩小区间并减少达到给定精度所需的步数。该方法曾被应用于在水轮机山形图建模中计算等值线。<sup>[20](https://www.mathnet.ru/php/archive.phtml?wshow=paper&jrnid=sjim&paperid=1243&option_lang=eng)</sup>

在无导数信赖域优化中，二次插值提供多项式模型，而一种近期技术通过最小化相邻二次模型之差的 \( H_2 \) 范数来更新欠定二次模型，并给出了插值误差分析。<sup>[21](https://escholarship.org/content/qt4w15p8vg/qt4w15p8vg.pdf)</sup>

## 局限与替代方法

在节点跨度之外求值是外推，此时误差会迅速增大；而更高次的插值多项式通常带来更大的误差，因此低次插值多项式更受青睐。<sup>[10](https://ece.uwaterloo.ca/~dwharder/nm/Lecture_materials/pdfs/3.4%20Interpolating%20polynomials.pdf)</sup> 高次全局插值可能遭遇龙格（Runge）现象，即在区间端点附近出现不规则振荡，尤其是在使用等距节点时，所以面对大表通常只使用最近的几个点。<sup>[22](https://phys.au.dk/~fedorov/Numeric/08/interp.pdf)</sup> 法贝尔（Faber）在 1914 年证明，对任意插值点选择，都存在一个连续函数使拉格朗日插值发散。<sup>[13](https://seminariomatematico.polito.it/rendiconti/70-4/347.pdf)</sup> 样条正是为解决这些振荡而引入的。<sup>[23](https://users.encs.concordia.ca/~kadem/Interpolation%20and%20Regression.pdf)</sup>

抛物线极小值公式既容易跳到抛物线极大值，也容易跳到极小值，因此任何仅依赖它的最小化方案都不太可能稳健<sup>[18](https://iate.oac.uncor.edu/~mario/materia/nr/numrec/f10-2.pdf)</sup>；逐次抛物线插值不区分 \( f \) 与 \( -f \)，可能收敛到局部极大值，所以当插值抛物线开口向下时，应把它与后备方案结合使用。<sup>[19](https://drlvk.github.io/nm/section-parabolic-interpolation.html)</sup> 如果任意两个函数值相同或非常接近，逆二次插值就会失效；当根被包围时它工作良好，因为包围使函数值更可能不同。<sup>[24](https://ece.uwaterloo.ca/~dwharder/nm/Lecture_materials/pdfs/6.2.6%20Inverse%20quadratic%20interpolation.pdf)</sup>

在样条替代方案中，抛物线样条或三次样条在实践中使用最多；亏度为 1 的三次样条是每个分段上的三次多项式，并且二阶连续可微。<sup>[2](https://encyclopediaofmath.org/wiki/Interpolation_in_numerical_mathematics)</sup> 当表中所列的函数快速变化后紧跟近乎常值的区域时，二次样条会令人不适地振荡，而三次样条较不易受影响，尽管二次样条编程更简单。<sup>[22](https://phys.au.dk/~fedorov/Numeric/08/interp.pdf)</sup> 已发表的比较没有量化噪声敏感性，也没有将二次插值与保形插值进行比较。

## References

1. [Lagrange's interpolation formula (quadratic case proof)](https://files.eric.ed.gov/fulltext/EJ1231189.pdf)
2. [Interpolation in numerical mathematics - Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Interpolation_in_numerical_mathematics)
3. [MATH 350: Introduction to Computational Mathematics - Chapter III: Interpolation (IIT)](http://www.math.iit.edu/~fass/Notes350_Ch3Print.pdf)
4. [DLMF: §3.3 Interpolation (NIST Digital Library of Mathematical Functions)](https://dlmf.nist.gov/3.3)
5. [Lagrange linear, quadratic, and cubic interpolations maximum interpolation error functions comparison (Math StackExchange)](https://math.stackexchange.com/questions/2647115/lagrange-linear-quadratic-and-cubic-interpolations-maximum-interpolation-error)
6. [Math 2335 lecture notes (Kennesaw State), March 3 2016](https://facultyweb.kennesaw.edu/lritter/Mar3_2335_51_Sp16f.pdf)
7. [Three New Rapidly Convergent Algorithms for Finding a Zero of a Function](https://epubs.siam.org/doi/10.1137/0906016)
8. [Chapter 05.03: Newton's Divided Difference Method of Interpolation | Numerical Methods with Applications](https://mathforcollege.com/nm/NumericalMethodsTextbookUnabridged/chapter-05.03-newtons-divided-difference-method-of-interpolation.html)
9. [Interpolation Error Example - Quadratic (with Bounding), ODU CS417](https://www.cs.odu.edu/~tkennedy/cs417/s26/Public/interpolationErrorExampleQuadratic/index.html)
10. [Interpolating polynomials (ECE lecture notes, University of Waterloo)](https://ece.uwaterloo.ca/~dwharder/nm/Lecture_materials/pdfs/3.4%20Interpolating%20polynomials.pdf)
11. [A Chronology of Interpolation: From Ancient Astronomy to Modern Signal and Image Processing](https://imagescience.org/meijering/publications/download/pieee2002.pdf)
12. [History of Interpolation (Text Book Notes)](https://nm.mathforcollege.com/mcd/gen/05inp/mcd_gen_inp_bck_history.pdf)
13. [W. Gautschi, Interpolation Before and After Lagrange](https://seminariomatematico.polito.it/rendiconti/70-4/347.pdf)
14. [Algorithms for Finding Zeros and Extrema of Functions Without Calculating Derivatives (Brent, DTIC report AD0726170)](https://apps.dtic.mil/sti/tr/pdf/AD0726170.pdf)
15. [Barycentric Lagrange Interpolation (Berrut & Trefethen, SIAM Review)](https://depts.washington.edu/ph506/BarycentricLagrange.pdf)
16. [Inverse Quadratic Interpolation (equation reference)](https://pesky-imps.readthedocs.io/en/latest/equation/eq_IQI.html)
17. [Chapter 3: Solving One Dimensional Optimization Problems](https://indrag49.github.io/Numerical-Optimization/solving-one-dimensional-optimization-problems.html)
18. [Numerical Recipes §10.2: Parabolic Interpolation and Brent's Method](https://iate.oac.uncor.edu/~mario/materia/nr/numrec/f10-2.pdf)
19. [Successive Parabolic Interpolation (Notes on Numerical Methods)](https://drlvk.github.io/nm/section-parabolic-interpolation.html)
20. [V. V. Bogdanov, Yu. S. Volkov, “A modified quadratic interpolation method for root finding”, J. Appl. Industr. Math., 17:3 (2023), 491–497](https://www.mathnet.ru/php/archive.phtml?wshow=paper&jrnid=sjim&paperid=1243&option_lang=eng)
21. [Least norm updating of quadratic interpolation models for derivative-free trust-region algorithms](https://escholarship.org/content/qt4w15p8vg/qt4w15p8vg.pdf)
22. [Interpolation (lecture notes, Aarhus University)](https://phys.au.dk/~fedorov/Numeric/08/interp.pdf)
23. [Chapter V: Interpolation and Regression (Concordia University course notes)](https://users.encs.concordia.ca/~kadem/Interpolation%20and%20Regression.pdf)
24. [Inverse Quadratic Interpolation (lecture notes, U. Waterloo ECE)](https://ece.uwaterloo.ca/~dwharder/nm/Lecture_materials/pdfs/6.2.6%20Inverse%20quadratic%20interpolation.pdf)

---
*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/quadratic-interpolation

English original: https://www.edgepedia.org/quadratic-interpolation
