# 拉格朗日多项式

**拉格朗日多项式**（Lagrange polynomial）是基多项式 \( L_i(x) \) 之一，用于写出通过 \( n+1 \) 个横坐标互异的给定数据点的唯一一个次数不超过 \( n \) 的多项式。在数值分析中，用这组基写出的整个插值多项式称为拉格朗日形式的插值多项式，而基函数本身则称为拉格朗日多项式或拉格朗日基。<sup>[1](https://ndl.ethernet.edu.et/bitstream/123456789/42680/1/2.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 对互异节点 \( x_0,\ldots,x_n \)，\( L_i(x)=\prod_{j\ne i}\frac{x-x_j}{x_i-x_j} \)，这是一个次数为 \( n \) 的多项式，满足当 \( j\ne i \) 时 \( L_i(x_j)=0 \)，且 \( L_i(x_i)=1 \)<sup>[1](https://ndl.ethernet.edu.et/bitstream/123456789/42680/1/2.pdf)</sup> |
| 插值多项式 | \( p_n(x)=\sum_{i=0}^{n} f(x_i)L_i(x) \) 是满足 \( p_n(x_j)=f(x_j) \) 的唯一一个次数 \( \le n \) 的多项式<sup>[1](https://ndl.ethernet.edu.et/bitstream/123456789/42680/1/2.pdf)</sup> |
| 基性质 | 这 \( n+1 \) 个函数 \( \ell_j \) 构成次数不超过 \( n \) 的多项式向量空间 \( P_n \) 的一组基<sup>[2](https://math.ucla.edu/~njhu/notes/na/interp/polyinterp/)</sup> |
| 归属 | 爱德华·华林（Edward Waring）于1779年、莱昂哈德·欧拉（Leonhard Euler）于1783年分别描述过，均早于约瑟夫-路易·拉格朗日（Joseph-Louis Lagrange）于1795年发表的使用这些基多项式的著作<sup>[3](https://www.d.umn.edu/~mhampton/NA/Interpolation/)</sup> |
| 重心形式 | 取权重 \( w_j=1/\prod_{i\ne j}(x_j-x_i) \)（仅依赖于节点），多项式可用重心公式求值，从而避免直接形式的许多浮点问题<sup>[2](https://math.ucla.edu/~njhu/notes/na/interp/polyinterp/)</sup><sup> • </sup><sup>[4](https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.BarycentricInterpolator.html)</sup> |
| 误差结构 | 插值误差具有泰勒余项的形式，其中节点多项式 \( \omega_{n+1} \) 取代了 \( (x-a)^{n+1} \)<sup>[5](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/02_interpolation/04_properties.html)</sup> |
| 主要局限 | 使用等距节点时，某些光滑函数的插值随 \( n \) 增大而发散（龙格现象）；对于在 \( [-1,1] \) 上 \( f \) 与 \( f' \) 均连续的函数，切比雪夫节点可消除这一失效<sup>[6](https://wme.pwr.edu.pl/download/rsBEQUJBFnegQLQRkGWFYFPWoGASw_Dw0RDBtQb1cpFi0WXh49Fmd3GCRVEw%2CrgEEsDOwIDKlAvTwQuCQULA1ICFD44ChxYSGBBE1wXHD0EQQ4sFVg7QDMKESFSQRZFDlVJ/mathews_9.pdf)</sup> |

## 定义与唯一性

设 \( f \) 是定义在 \( n+1 \) 个两两互异的点 \( x_0,\ldots,x_n \) 上的函数，这些点称为节点。拉格朗日插值定理指出，恰有一个次数不超过 \( n \) 的多项式 \( p_n \) 在每个节点处满足 \( p_n(x_j)=f(x_j) \)，并可显式地写为<sup>[1](https://ndl.ethernet.edu.et/bitstream/123456789/42680/1/2.pdf)</sup>

\[ p_n(x)=\sum_{i=0}^{n} f(x_i)L_i(x), \qquad L_i(x):=\prod_{\substack{j=0 \\ j\ne i}}^{n}\frac{x-x_j}{x_i-x_j}. \]

每个基多项式 \( L_i \) 的次数为 \( n \)，并满足基数性质：当 \( i\ne j \) 时 \( L_i(x_j)=0 \)，而 \( L_i(x_i)=1 \)。因此把节点 \( x_j \) 代入求和式后只剩 \( f(x_j) \) 一项，于是 \( p_n \) 按构造即插值于 \( f \)。<sup>[1](https://ndl.ethernet.edu.et/bitstream/123456789/42680/1/2.pdf)</sup>

唯一性可由次数论证得到。若 \( p \) 是另一个次数不超过 \( n \)、且在所有 \( n+1 \) 个节点处与 \( f \) 一致的多项式，则 \( p_n-p \) 有 \( n+1 \) 个互异零点，而其次数不超过 \( n \)。次数 \( \le n \) 的非零多项式不可能有多于其次数的零点，故 \( p_n-p \) 必恒为零。<sup>[1](https://ndl.ethernet.edu.et/bitstream/123456789/42680/1/2.pdf)</sup>

由于插值多项式由数据决定，与写法无关，拉格朗日形式只是若干等价表示之一。其他形式，例如牛顿差商形式，可能因使用方便、计算代价或数值稳定性而更受青睐。<sup>[1](https://ndl.ethernet.edu.et/bitstream/123456789/42680/1/2.pdf)</sup>

## 拉格朗日基

函数组 \( \{\ell_j\}_{j=0}^{n} \) 构成 \( P_n \) 的一组基，这里 \( P_n \) 是次数不超过 \( n \) 的实多项式向量空间。把插值多项式写成 \( p_n=\sum_j f(x_j)\ell_j \)，意味着系数就是数据值 \( f(x_j) \)，这正是该基在实用上的吸引力：无需解线性方程组即可求得系数。<sup>[2](https://math.ucla.edu/~njhu/notes/na/interp/polyinterp/)</sup><sup> • </sup><sup>[7](https://people.math.sc.edu/Burkardt/m_src/lagrange_basis_display/lagrange_basis_display.html)</sup>

对固定的节点集，还有一个等价的封闭形式，用到节点多项式 \( \phi(x)=\prod_i (x-x_i) \)：<sup>[3](https://www.d.umn.edu/~mhampton/NA/Interpolation/)</sup>

\[ l_i(x)=\frac{\phi(x)}{(x-x_i)\,\phi'(x_i)}, \]

这是用复分析研究插值多项式时有用的形式。<sup>[3](https://www.d.umn.edu/~mhampton/NA/Interpolation/)</sup>

## 重心形式

定义重心权重 \( w_j:=1/\prod_{i\ne j}(x_j-x_i) \)，它只依赖于节点而不依赖于数据值，则插值多项式可整理为重心公式 \( \omega(x)\sum_j \frac{w_j f(x_j)}{x-x_j} \)，其中 \( \omega(x)=\prod_i (x-x_i) \) 是节点多项式；在节点本身处，\( p_n \) 的值直接给出。<sup>[2](https://math.ucla.edu/~njhu/notes/na/interp/polyinterp/)</sup> 软件库采用这一表示，因为它避免了多项式插值在浮点运算中本来会遇到的许多问题。<sup>[4](https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.BarycentricInterpolator.html)</sup>

## 误差与龙格现象

若被插函数 \( f \) 有 \( n+1 \) 阶连续导数，则点 \( x \) 处的误差 \( f(x)-p_n(x) \) 具有类似于泰勒余项的形式，其中节点多项式 \( \omega_{n+1}(x)=\prod_{j}(x-x_j) \) 扮演了泰勒展开中 \( (x-a)^{n+1} \) 的角色。<sup>[5](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/02_interpolation/04_properties.html)</sup><sup> • </sup><sup>[8](https://github.com/djeada/Numerical-Methods/blob/master/notes/6_regression/lagrange_polynomial_interpolation.md)</sup> 因此误差的大小强烈依赖于 \( \|\omega_{n+1}\|_\infty \) 在区间上的大小，而这又由节点的布置所控制。

使用等距节点时，\( \|\omega_{n+1}\|_\infty \) 在区间端点附近可能取到很大的值，因为误差界中的阶乘 \( (n+1)! \) 在增长，而 \( \|\omega_{n+1}\|_\infty \) 取决于区间与节点间距<sup>[10](https://cpraveen.github.io/numa/lagrange/)</sup>，而节点间距在缩小，对某些光滑函数，误差随 \( n \) 增大；这一失效即龙格现象，由数学家和物理学家卡尔·龙格（Carl Runge）发现。标准例子是 \( f(x)=1/(1+12x^2) \)，用等距点构造的十次插值多项式无法在该区间上准确逼近它。<sup>[5](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/02_interpolation/04_properties.html)</sup><sup> • </sup><sup>[6](https://wme.pwr.edu.pl/download/rsBEQUJBFnegQLQRkGWFYFPWoGASw_Dw0RDBtQb1cpFi0WXh49Fmd3GCRVEw%2CrgEEsDOwIDKlAvTwQuCQULA1ICFD44ChxYSGBBE1wXHD0EQQ4sFVg7QDMKESFSQRZFDlVJ/mathews_9.pdf)</sup><sup> • </sup><sup>[9](https://numerary.readthedocs.io/en/latest/lagrange-interpolation.html)</sup>

**节点的选择。** 补救办法是让节点在区间两端附近聚集。若用切比雪夫节点构造 \( 1/(1+12x^2) \) 的十次插值多项式，误差远小于等距节点情形。更一般地，若 \( f \) 与 \( f' \) 在 \( [-1,1] \) 上连续，则切比雪夫插值产生的多项式序列在 \( [-1,1] \) 上一致收敛于 \( f \)。<sup>[6](https://wme.pwr.edu.pl/download/rsBEQUJBFnegQLQRkGWFYFPWoGASw_Dw0RDBtQb1cpFi0WXh49Fmd3GCRVEw%2CrgEEsDOwIDKlAvTwQuCQULA1ICFD44ChxYSGBBE1wXHD0EQQ4sFVg7QDMKESFSQRZFDlVJ/mathews_9.pdf)</sup>

## 历史

这一名称有部分名不副实。基多项式由爱德华·华林于1779年、莱昂哈德·欧拉于1783年分别描述过，均早于约瑟夫-路易·拉格朗日于1795年发表的使用这些基多项式的著作。<sup>[3](https://www.d.umn.edu/~mhampton/NA/Interpolation/)</sup>

## References

1. [Introduction to Numerical Analysis, Section 3.1, Interpolation by Polynomials](https://ndl.ethernet.edu.et/bitstream/123456789/42680/1/2.pdf)
2. [Nicholas Hu, Polynomial interpolation, UCLA](https://math.ucla.edu/~njhu/notes/na/interp/polyinterp/)
3. [Interpolation, Introduction to Numerical Methods, University of Minnesota Duluth](https://www.d.umn.edu/~mhampton/NA/Interpolation/)
4. [scipy.interpolate.BarycentricInterpolator, SciPy v1.18.0 Manual](https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.BarycentricInterpolator.html)
5. [Properties of interpolation, Computational Physics lecture notes, Universität Bielefeld](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/02_interpolation/04_properties.html)
6. [Chapter 4, Interpolation and Polynomial Approximation (Mathews & Fink), Wrocław University of Science and Technology mirror](https://wme.pwr.edu.pl/download/rsBEQUJBFnegQLQRkGWFYFPWoGASw_Dw0RDBtQb1cpFi0WXh49Fmd3GCRVEw%2CrgEEsDOwIDKlAvTwQuCQULA1ICFD44ChxYSGBBE1wXHD0EQQ4sFVg7QDMKESFSQRZFDlVJ/mathews_9.pdf)
7. [LAGRANGE_BASIS_DISPLAY, Burkardt source codes, University of South Carolina](https://people.math.sc.edu/Burkardt/m_src/lagrange_basis_display/lagrange_basis_display.html)
8. [Lagrange polynomial interpolation, djeada/Numerical-Methods notes](https://github.com/djeada/Numerical-Methods/blob/master/notes/6_regression/lagrange_polynomial_interpolation.md)
9. [Lagrange's interpolation, Numerary documentation](https://numerary.readthedocs.io/en/latest/lagrange-interpolation.html)
10. [Interpolation using polynomials - Numerical Analysis](https://cpraveen.github.io/numa/lagrange/)

---
*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/lagrange-polynomial

English original: https://www.edgepedia.org/lagrange-polynomial
