170 likes | 505 Views
POLYNOMIAL INTERPOLATION. Fitting polynomial to given data points Most of numerical method schemes are based on polynomial interpolation, e.g. numerical integration and differentiation. LINEAR INTERPOLATION. The linear interpolation shown in figure previous is given by
E N D
POLYNOMIAL INTERPOLATION • Fitting polynomial to given data points • Most of numerical method schemes are based on polynomial interpolation, e.g. numerical integration and differentiation.
LINEAR INTERPOLATION • The linear interpolation shown in figure previous is given by • The maximum error of the linear interpolation is expressed in the form
LAGRANGE INTERPOLATION • Suppose N+1 data points are given. The Lagrange interpolation formula of order N-th is written as follows
The maximum error of Lagrange interpolation is expressed in the form • There is no guarantee that the interpolation polynomial converges to the exact function when the number of data point is increased. In general, interpolation with a large-order polynomial should be avoided or used with extreme cautions
NEWTON INTERPOLATION The drawback of the Lagrange interpolation: • The amount of computation needed for one interpolation is large • No part of the previous application can be used to interpolate another value of x • When the number of data points has to be increased or decreased, the results of the previous computations cannot be used • Evaluation of error is not easy
DIVIDED DIFFERENCE • To evaluate a Newton interpolation formula, a forward difference table is necessary
Therefore, the forward difference table is given by (for third order)
Hence, the Newton interpolation formula is written as follows where are obtained from forward difference table • The maximum error of Newton interpolation is in the form
Consider the data points given in the following table Application
Derive the Lagrange and Newton forward interpolation fitted to the data points at a. i = 0, 1, 2 (evaluate for x = 0.21) b. i = 1, 2, 3 (evaluate for x = 0.21) c. i = 1, 2, 3, 4 (evaluate for x = 0.21) • Estimate the maximum error for every evaluate of x