LAGRANGE INTERPOLATION 1. Introduction Polynomial

LAGRANGE INTERPOLATION 1. Introduction Polynomial

LAGRANGE INTERPOLATION DARYL DEFORD 1. Introduction Polynomial interpolation is a method for solving the following problem: n Given a set of n of data points with distinct x{coordinates f(xi; yi)gi=1 find a poly- nomial of degree at most n − 1 that passes through each point. Example graphs of these polynomials for different data sets are shown below: (a) (b) (c) (d) (e) (f) These interpolating polynomials provide a smooth approximation to the data points allowing for efficient extrapolation of the data. These methods are often used for constructing numerical approximations for computing complicated function values and evaluating differential equations. Methods for constructing interpolating polynomials go back hundreds of years. Any polynomial interpolation problem can be solved by realizing the coefficients as the solution to a linear system of the form: 2 2 n−13 2 3 2 3 1 x1 x1 ··· x1 c0 y1 2 n−1 61 x2 x2 ··· x2 7 6 c1 7 6y27 6 2 n−17 6 7 6 7 61 x3 x3 ··· x3 7 6 c2 7 = 6y37 6. 7 6 . 7 6 . 7 4. 5 4 . 5 4 . 5 2 n−1 1 xn xn ··· xn cn−1 yn Date: September 25, 2015. 1 The theory of Vandermonde determinants shows that this system has a unique solutions and n−1 n−2 hence there exists a unique interpolating polynomial: cn−1x +cn−2x +···+c1x+c0. However, solving this system requires inverting a n × n matrix which can be computationally infeasible and can introduce distortions due to poor matrix conditioning. The method presented in class, which is described the section below, is due to a combination of Euler, Waring, and Lagrange, and was published in the late 1700's. 2. Formula n The Lagrange interpolation formula writes the interpolating polynomial for f(xi; yi)gi=1 as a linear combination of n degree n−1 polynomials each of which is zero at exactly n−1 of the points. The polynomials are given by the general formula: Y x − xj ` = i x − x 0≤j≤n: i j j6=i and the interpolation polynomial is calculated as: n X L(x) = yi`i(x) i=1 In Math 1 we looked specifically at the version where n = 3 so we obtain the following quadratic polynomials for f(x1; y1); (x2; y2); (x3; y3)g: x − x2 x − x3 `1 = x1 − x2 x1 − x3 x − x1 x − x3 `2 = x2 − x1 x2 − x3 x − x1 x − x2 `3 = x3 − x1 x3 − x2 L(x) = y1`1 + y2`2 + y3`3 x − x2 x − x3 x − x1 x − x3 x − x1 x − x2 = y1 + y2 + y3 x1 − x2 x1 − x3 x2 − x1 x2 − x3 x3 − x1 x3 − x2 2 3. Example Fit a quadratic polynomial to the following data points f(−2; 9); (5; −12); (10; 33)g. x − 5 x − 10 ` = 1 −2 − 5 −2 − 10 x − 5 x − 10 −7 −12 x2 − 15x + 50 84 x + 2 x − 10 ` = 2 5 + 2 5 − 10 x + 2 x − 10 7 −5 x2 − 8x − 20 −35 x + 2 x − 5 ` = 3 10 + 2 10 − 5 x + 2 x − 5 12 5 x2 − 3x − 10 60 x2 − 15x + 50 x2 − 8x − 20 x2 − 3x − 10 L(x) = y + y + y 1 84 2 −35 3 60 x2 − 15x + 50 x2 − 8x − 20 x2 − 3x − 10 = 9 + −12 + 33 84 −35 60 = x2 − 6x − 7 (a) (b) Department of Mathematics, Dartmouth College E-mail address: [email protected] 3.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    3 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us