在数值分析中,Lagrange 插值是一种简单地逼近函数的方法,Neville 插值以及著名的 Newton 插值都是基于 Lagrange 插值给出的改进方法。
问题提出[]
该问题的背景是:一个函数
上有
个样本点
,样本点满足
,现要寻找一次数不大于
次的多项式
,使得它经过以上样本点。
称
为被插函数,
为插值多项式,以上问题称作关于节点
的 Lagrange 插值问题。
可以证明,寻找的多项式
存在且唯一。证明是构造性的,证明存在性的同时我们也找出了
如果我们要求的多项式次数比
小,可能不存在这样的多项式;如果我们要求的多项式次数比
大,则可能不唯一。
插值公式[]
假设同上,那么插值多项式为
![{\displaystyle p_{n}=\sum _{i=0}^{n}y_{i}{\dfrac {\omega _{n}(x)}{(x-x_{i})\omega _{n}'(x_{i})}},}](https://services.fandom.com/mathoid-facade/v1/media/math/render/svg/86d27cdecf5f09d25f5bdcd27f9441ab30aeaa47)
其中
![{\displaystyle \omega _{n}(x)=\prod _{j=0}^{n}(x-x_{j}),\quad \omega '(x_{i})=\prod _{\overset {j=0}{\underset {j\neq i}{}}}^{n}(x_{i}-x_{j}).}](https://services.fandom.com/mathoid-facade/v1/media/math/render/svg/b59d9d94313795be3fbd1a309735d0b40e61c45a)
特别地有线性插值公式
![{\displaystyle p_{1}=y_{0}{\dfrac {(x-x_{1})}{(x_{0}-x_{1})}}+y_{1}{\dfrac {x-x_{0}}{x_{1}-x_{0}}}.}](https://services.fandom.com/mathoid-facade/v1/media/math/render/svg/f1df5d5aa683fd66340eb3b8475584c0df1fec08)
函数
![{\displaystyle l_{i}(x)={\dfrac {\omega _{n}(x)}{(x-x_{i})\omega _{n}'(x_{i})}}=\prod _{\overset {j=0}{\underset {j\neq i}{}}}^{n}{\dfrac {x-x_{j}}{x_{i}-x_{j}}},\quad i=0,1,\cdots ,n}](https://services.fandom.com/mathoid-facade/v1/media/math/render/svg/63a2e757d429850315b376d2330689a735391e70)
被称为插值的
基函数,这时
![{\displaystyle p_{n}=\sum _{i=0}^{n}y_{i}l_{i}(x)}](https://services.fandom.com/mathoid-facade/v1/media/math/render/svg/754ae672317606daa9bce49564eb2693437bbc46)
数值效用[]
假设样本点的个数为
,那么使用该方法算术复杂度为
,且样本点发生变化(如增加样本点意图提高插值精确性)时必须重新计算,不具有承袭性。
由此在此基础上又发展出了 Neville 插值方法和 Newton 插值方法。
对于 Lagrange 插值的误差分析,假设
在
上具有
阶连续导数,
在
上存在,则上述插值问题的误差为
![{\displaystyle R_{n}(x)={\dfrac {f^{(n+1)}(\xi )}{(n+1)!}}\prod _{i=0}^{n}(x-x_{i}),\xi \in (a,b).}](https://services.fandom.com/mathoid-facade/v1/media/math/render/svg/76817a660b0b8af4916075b1abb08dc35d1cb6a1)
参考资料