请输入您要查询的百科知识:

 

词条 Lagrange polynomial
释义

  1. Definition

  2. Proof

  3. A perspective from linear algebra

  4. Examples

     Example 1  Example 2  Notes 

  5. Barycentric form

  6. Remainder in Lagrange interpolation formula

  7. Derivatives

  8. Finite fields

  9. See also

  10. References

  11. External links

In numerical analysis, Lagrange polynomials are used for polynomial interpolation. For a given set of points with no two values equal, the Lagrange polynomial is the polynomial of lowest degree that assumes at each value the corresponding value (i.e. the functions coincide at each point).

The interpolating polynomial of the least degree is unique, however, and since it can be arrived at through multiple methods, referring to "the Lagrange polynomial" is perhaps not as correct as referring to "the Lagrange form" of that unique polynomial.

Although named after Joseph Louis Lagrange, who published it in 1795, the method was first discovered in 1779 by Edward Waring[1] It is also an easy consequence of a formula published in 1783 by Leonhard Euler.[2]

Uses of Lagrange polynomials include the Newton–Cotes method of numerical integration and Shamir's secret sharing scheme in cryptography.

Lagrange interpolation is susceptible to Runge's phenomenon of large oscillation. As changing the points requires recalculating the entire interpolant, it is often easier to use Newton polynomials instead.

Definition

Given a set of k + 1 data points

where no two are the same, the interpolation polynomial in the Lagrange form is a linear combination

of Lagrange basis polynomials

where . Note how, given the initial assumption that no two are the same, , so this expression is always well-defined. The reason pairs with are not allowed is that no interpolation function such that would exist; a function can only get one value for each argument . On the other hand, if also , then those two points would actually be one single point.

For all , includes the term in the numerator, so the whole product will be zero at :

On the other hand,

In other words, all basis polynomials are zero at , except , for which it holds that , because it lacks the term.

It follows that , so at each point , , showing that interpolates the function exactly.

Proof

The function L(x) being sought is a polynomial in of the least degree that interpolates the given data set; that is, assumes value at the corresponding for all data points :

Observe that:

  1. In there are k factors in the product and each factor contains one x, so L(x) (which is a sum of these k-degree polynomials) must be a polynomial of degree at most k.

We consider what happens when this product is expanded. Because the product skips , if then all terms are (except where , but that case is impossible, as pointed out in the definition section—in that term, , and since , , contrary to ).

Also if then since does not preclude it, one term in the product will be for , i.e. , zeroing the entire product. So

where is the Kronecker delta. So:

Thus the function L(x) is a polynomial with degree at most k and where .

Additionally, the interpolating polynomial is unique, as shown by the unisolvence theorem at the polynomial interpolation article.

A perspective from linear algebra

Solving an interpolation problem leads to a problem in linear algebra amounting to inversion of a matrix. Using a standard monomial basis for our interpolation polynomial , we must invert the Vandermonde matrix to solve for the coefficients of . By choosing a better basis, the Lagrange basis, , we merely get the identity matrix, , which is its own inverse: the Lagrange basis automatically inverts the analog of the Vandermonde matrix.

This construction is analogous to the Chinese Remainder Theorem. Instead of checking for remainders of integers modulo prime numbers, we are checking for remainders of polynomials when divided by linears.

Furthermore, when the order is large, Fast Fourier Transformation can be used to solve for the coefficients of the interpolated polynomial.

Examples

Example 1

We wish to interpolate ƒ(x) = x2 over the range 1 ≤ x ≤ 3, given these three points:

The interpolating polynomial is:

Example 2

We wish to interpolate ƒ(x) = x3 over the range 1 ≤ x ≤ 3, given these three points:

The interpolating polynomial is:

Notes

The Lagrange form of the interpolation polynomial shows the linear character of polynomial interpolation and the uniqueness of the interpolation polynomial. Therefore, it is preferred in proofs and theoretical arguments. Uniqueness can also be seen from the invertibility of the Vandermonde matrix, due to the non-vanishing of the Vandermonde determinant.

But, as can be seen from the construction, each time a node xk changes, all Lagrange basis polynomials have to be recalculated. A better form of the interpolation polynomial for practical (or computational) purposes is the barycentric form of the Lagrange interpolation (see below) or Newton polynomials.

Lagrange and other interpolation at equally spaced points, as in the example above, yield a polynomial oscillating above and below the true function. This behaviour tends to grow with the number of points, leading to a divergence known as Runge's phenomenon; the problem may be eliminated by choosing interpolation points at Chebyshev nodes.[3]

The Lagrange basis polynomials can be used in numerical integration to derive the Newton–Cotes formulas.

Barycentric form

Using

we can rewrite the Lagrange basis polynomials as

or, by defining the barycentric weights[4]

we can simply write

which is commonly referred to as the first form of the barycentric interpolation formula.

The advantage of this representation is that the interpolation polynomial may now be evaluated as

which, if the weights have been pre-computed, requires only operations (evaluating and the weights ) as opposed to for evaluating the Lagrange basis polynomials individually.

The barycentric interpolation formula can also easily be updated to incorporate a new node by dividing each of the , by and constructing the new as above.

We can further simplify the first form by first considering the barycentric interpolation of the constant function :

Dividing by does not modify the interpolation, yet yields

which is referred to as the second form or true form of the barycentric interpolation formula. This second form has the advantage that need not be evaluated for each evaluation of .

Remainder in Lagrange interpolation formula

When interpolating a given function f by a polynomial of degree {{mvar|n}} at the nodes x0,...,xn we get the remainder which can be expressed as[5]

where is the notation for divided differences. Alternatively, the remainder can be expressed as a contour integral in complex domain as

The remainder can be bound as

Derivatives

The th derivatives of the Lagrange polynomial can be written as

.

For the first derivative, the coefficients are given by

and for the second derivative

.

Through recursion, one can compute formulas for higher derivatives.

Finite fields

The Lagrange polynomial can also be computed in finite fields. This has applications in cryptography, such as in Shamir's Secret Sharing scheme.

See also

  • Neville's algorithm
  • Newton form of the interpolation polynomial
  • Bernstein polynomial
  • Carlson's theorem
  • Lebesgue constant (interpolation)
  • The Chebfun system
  • Table of Newtonian series
  • Frobenius covariant
  • Sylvester's formula
  • Finite difference coefficient

References

1. ^{{cite journal |title=Problems concerning interpolations |first=Edward |last=Waring |authorlink=Edward Waring |journal=Philosophical Transactions of the Royal Society |date=9 January 1779 |volume=69 |pages=59–67 |doi=10.1098/rstl.1779.0008 |url=http://rstl.royalsocietypublishing.org/content/69/59.full.pdf}}
2. ^{{Cite journal | last1=Meijering | first1=Erik | title=A chronology of interpolation: from ancient astronomy to modern signal and image processing | doi=10.1109/5.993400 | year=2002 | journal=Proceedings of the IEEE | volume=90 | issue=3 | pages=319–342 | url = http://bigwww.epfl.ch/publications/meijering0201.pdf}}
3. ^{{cite book|title=Scientific Computing with MATLAB|volume=2|series=Texts in computational science and engineering|first1=Alfio|last1=Quarteroni|first2=Fausto|last2=Saleri|publisher=Springer|year=2003|isbn=978-3-540-44363-6|page=66|url=https://books.google.com/books?id=fE1W5jsU4zoC&pg=PA66}}.
4. ^{{cite journal | first1 = Jean-Paul | last1 = Berrut | first2 = Lloyd N. | last2 = Trefethen |authorlink = Lloyd N. Trefethen | year = 2004 | title = Barycentric Lagrange Interpolation | journal = SIAM Review | volume = 46 | issue = 3 | pages = 501–517 | doi = 10.1137/S0036144502417715 | url = https://people.maths.ox.ac.uk/trefethen/barycentric.pdf }}
5. ^{{AS ref|25, eqn 25.2.3|878}}

External links

  • {{springer|title=Lagrange interpolation formula|id=p/l057170}}
  • ALGLIB has an implementations in C++ / C# / VBA / Pascal.
  • [https://www.gnu.org/software/gsl/ GSL] has a polynomial interpolation code in C
  • [https://stackoverflow.com/questions/11029615/lagrange-interpolation-method/11552763 SO] has a MATLAB example that demonstrates the algorithm and recreates the first image in this article
  • Lagrange Method of Interpolation — Notes, PPT, Mathcad, Mathematica, MATLAB, Maple at Holistic Numerical Methods Institute
  • Lagrange interpolation polynomial on www.math-linux.com
  • [https://www.computerscienceai.com/2019/03/lagrange-interpolation.html Lagrange Interpolation in Scilab]
  • {{MathWorld|urlname=LagrangeInterpolatingPolynomial|title=Lagrange Interpolating Polynomial}}
{{ProofWiki|id=Lagrange_Polynomial_Approximation|title=Estimate of the error in Lagrange Polynomial Approximation}}
  • Dynamic Lagrange interpolation with JSXGraph
  • Numerical computing with functions: [https://web.archive.org/web/20101013180326/http://www2.maths.ox.ac.uk/chebfun/ The Chebfun Project]
  • Excel Worksheet Function for Bicubic Lagrange Interpolation
  • Lagrange polynomials in Python
{{DEFAULTSORT:Lagrange Polynomial}}Lagrange-Polynomאינטרפולציה#צורת לגראנז'

3 : Interpolation|Polynomials|Articles containing proofs

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/13 9:53:22