1 Chapter 3 INTERPOLATION. 2 WHAT IS INTERPOLATION? Given (x 0,y 0 ), (x 1,y 1 ), …, (x n,y n ), finding the value of ‘y’ at a value of ‘x’ in ( x 0,

Slides:



Advertisements
Similar presentations
Numerical Integration
Advertisements

Interpolation A standard idea in interpolation now is to find a polynomial pn(x) of degree n (or less) that assumes the given values; thus (1) We call.
2. Numerical differentiation. Approximate a derivative of a given function. Approximate a derivative of a function defined by discrete data at the discrete.
CE33500 – Computational Methods in Civil Engineering Differentiation Provided by : Shahab Afshari
1 Direct Method of Interpolation Electrical Engineering Majors Authors: Autar Kaw, Jai Paul
KFUPM SE301: Numerical Methods Topic 5: Interpolation Lectures 20-22:
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 22 CURVE FITTING Chapter 18 Function Interpolation and Approximation.
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW III.
7/2/ Differentiation-Discrete Functions Industrial Engineering Majors Authors: Autar Kaw, Sri Harsha Garapati.
1 Chapter 6 NUMERICAL DIFFERENTIATION. 2 When we have to differentiate a function given by a set of tabulated values or when a complicated function is.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 21 CURVE FITTING Chapter 18 Function Interpolation and Approximation.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Standing.
9.1Concepts of Definite Integrals 9.2Finding Definite Integrals of Functions 9.3Further Techniques of Definite Integration Chapter Summary Case Study Definite.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Part 6 Calculus.
1 Chapter 7 NUMERICAL INTEGRATION. 2 PRELIMINARIES We use numerical integration when the function f(x) may not be integrable in closed form or even in.
Interpolation. Interpolation is important concept in numerical analysis. Quite often functions may not be available explicitly but only the values of.
CHAPTER Continuity Integration by Parts The formula for integration by parts  f (x) g’(x) dx = f (x) g(x) -  g(x) f’(x) dx. Substitution Rule that.
1 Interpolation. 2 What is Interpolation ? Given (x 0,y 0 ), (x 1,y 1 ), …… (x n,y n ), find the value of ‘y’ at a.
INTEGRATION & AREA NB: we should think of a line as a very simple curve! Consider X Y y = 2x A B A is (1,5) & B is (5,13) (I) (II) Area(I)
Numerical Methods For Slides Thanks to Lecture 6 Interpolation
Interpolation produces a function that matches the given data exactly. The function then can be utilized to approximate the data values at intermediate.
CHAPTER 3 NUMERICAL METHODS
Lecture 22 Numerical Analysis. Chapter 5 Interpolation.
Chapter 3 Interpolation
Chapter 7 Point Estimation of Parameters. Learning Objectives Explain the general concepts of estimating Explain important properties of point estimators.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapter 21.
KFUPM SE301: Numerical Methods Topic 5: Interpolation Lectures 20-22:
EE3561_Unit 5(c)AL-DHAIFALLAH14361 EE 3561 : Computational Methods Unit 5 : Interpolation Dr. Mujahed AlDhaifallah (Term 351) Read Chapter 18, Sections.
1. Solve by factoring: 2x 2 – 13x = Solve by quadratic formula: 8x 2 – 3x = Find the discriminant and fully describe the roots: 5x 2 – 3x.
1 INTERPOLASI. Direct Method of Interpolation 3 What is Interpolation ? Given (x 0,y 0 ), (x 1,y 1 ), …… (x n,y n ), find the value of ‘y’ at a value.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 5 Integration and Differentiation.
1 Direct Method of Interpolation Mechanical Engineering Majors Authors: Autar Kaw, Jai Paul
4-5 Exploring Polynomial Functions Locating Zeros.
5. Interpolation 5.1 Definition of interpolation. 5.2 Formulas for Interpolation. 5.3 Formulas for Interpolation for unequal interval. 5.4 Applications.
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
1 Newton’s Divided Difference Polynomial Method of Interpolation Mechanical Engineering Majors Authors: Autar Kaw,
1 Spline Interpolation Method Mechanical Engineering Majors Authors: Autar Kaw, Jai Paul
1 Approximating functions, polynomial interpolation (Lagrange and Newton’s divided differences) formulas, error approximations.
11/22/ Differentiation-Discrete Functions.
High Accuracy Differentiation Formulas
Part 6 - Chapter 21.
Chapter 7 Numerical Differentiation and Integration
Numerical Analysis Lecture 25.
Interpolation.
Differentiation-Discrete Functions
Chapter 8: Fundamental Sampling Distributions and Data Descriptions:
Advanced Numerical Methods (S. A. Sahu) Code: AMC 51151
Differentiation-Discrete Functions
Reading Between the Lines
Numerical Analysis Lecture 27.
INTERPOLATION Interpolation produces a function that matches the given data exactly. The function then can be utilized to approximate the data values.
Spline Interpolation Method
Chapter 23.
Numerical Analysis Lecture 45.
Numerical Analysis Lecture 23.
POLYNOMIAL INTERPOLATION
Numerical Analysis Lecture 26.
Numerical Analysis Lecture 19.
INTERPOLASI.
Newton’s Divided Difference Polynomial Method of Interpolation
Lagrangian Interpolation
SKTN 2393 Numerical Methods for Nuclear Engineers
SKTN 2393 Numerical Methods for Nuclear Engineers
CHAPTER 2: Basic Summary Statistics
Numerical Analysis Lecture 21.
Chapter 8: Fundamental Sampling Distributions and Data Descriptions:
  NUMERICAL METHODS.
Numerical Analysis Lecture 24.
Interpolation with unequal intervals
Approximation of Functions
Presentation transcript:

1 Chapter 3 INTERPOLATION

2 WHAT IS INTERPOLATION? Given (x 0,y 0 ), (x 1,y 1 ), …, (x n,y n ), finding the value of ‘y’ at a value of ‘x’ in ( x 0, x n ) is called interpolation.

3 INTERPOLANTS Polynomials are the most common choice of interpolants because they are easy to: Evaluate, Differentiate, and Integrate.

4 LAGRANGIAN INTERPOLATION Lagrangian interpolating polynomial is given by    n i iin xfxLxf 0 )()()( where ‘n’ in)(xf n stands for the th n order polynomial that approximates the function)(xfy  given at)1(  n data points as      nnnn yxyxyxyx,,,,...,,,, , and       n ij j ji j i xx xx xL 0 )( )(xL i is a weighting function that includes a product of)1(  n terms with terms ofij  omitted.

5 Example A manufacturer of thermistors makes the following observations on a thermistor. Determine the temperature corresponding to ohms using the Lagrangian method for interpolation. R T Ohm C 

6 Solution

7

8

9 NEWTONS DIVIDED DIFFERENCE What is divided difference? f[x 0,x 1,x 2 ] = f[x 0,x 1 ] = f[x 1,x 2 ] – f[x 0,x 1 ] x 2 – x 1 f[x 0, x 1, …, x k-1, x k ] = for k = 3, 4, ….. n. These I st, II nd... and k th order differences are denoted by f,  2 f, …,  k f. f[x 1 ] – f[x 0 ] x 1 – x 0

10 INTERPOLATION USING DIVIDED DIFFERENCE The divided difference interpolation polynomial is: P(x) = f(x 0 ) + (x – x 0 ) f [x 0, x 1 ] + L + (x – x 0 ) L (x – x n-1 ) f[x 0, x 1, …, x n ]

11 Example For the data x:–1025 f(x) : Find the divided difference polynomial and estimate f(1).

12 Solution

13 INTERPOLATION FOR EQUALLY SPACED POINTS Let (X 0,,Y 0 ), (X 1,,Y 1 ), …, (X n,,Y n ) be the given points with X i+1 = X i +h,i = 0,1,2,…, (n-1). Finite Difference Operators ● Forward difference operator  f(x i ) = f (x i + h) – f (x i ) ● Backward difference operator  f(x i ) = f (x i ) – f (x i – h) ● Central difference operator  f(x i ) = f - f

14 INTERPOLATION FOR EQUALLY SPACED POINTS ● Shift operators ● Averaging operator

15 RELATION BETWEEN OPERATORS  f i =  f i+1 = df i+ ½  = E – 1,  = 1 – E -1  = E ½ – E -½  = ( E ½ + E - ½ )

16 NEWTON GREGORY FORWARD INTERPOLATION For convenience we put p = and f 0 = y 0. Then we have

17 Example Estimate f (3.17)from the data using Newton Forward Interpolation. x: f(x):

18 Solution

19 Solution

20 NEWTON GREGORY BACKWARD INTERPOLATION FORMULA

21 Estimate f(42) from the following data using newton backward interpolation. x: f(x): Example

22 Solution Here x n = 45, h = 5, x = 42 and p = - 0.6

23 Solution

24 INTERPOLATION USING CENTRAL DIFFERENCES Suppose the values of the function f (x) are known at the points a -3h, a – 2h, a – h, a, a +h, a + 2h, a + 3h,... etc. Let these values be y -3, y -2, y -1, y 0, y 1, y 2, y 3..., and so on. Then we can form the central difference table as: We can relate the central difference operator  with  and E using the operator relation  = E½.

25 GAUSS FORWARD INTERPOLATION FORMULA

26 GAUSS FORWARD INTERPOLATION FORMULA The value p is measured forwardly from the origin and 0<p<1. The above formula involves odd differences below the central horizontal line and even differences on the line. This is explained in the following figure.

27 Example Find f(30) from the following table values using Gauss forward difference formula: x: F(x):

28 Solution f (30) =

29 GAUSS BACKWARD INTERPOLATION FORMULA This formula is used to interpolate the value of the function for a negative value of p and–1<p<0. By substituting for  y 0,  2 y 0,  3 y 0, in terms of central difference in the Newton Forward Difference formula, we get P(x) = y 0 +         1 p  y -1 +          2 1p  2 y -1 +          3 1p  3 y -2 +          4 2p  4 y -2 +…

30 GAUSS BACKWARD INTERPOLATION FORMULA This formula involves odd differences above the central horizontal line and even differences on the central line.

31 Example Estimate cos 51  42' by Gauss backward interpolation from the following data: x: 50  51  52  53  54  cos x:

32 Solution

33 Solution P(51.7) =

34 STIRLING’S FORMULA This formula gives the average of the values obtained by Gauss forward and backward interpolation formulae. For using this formula we should have – ½ < p< ½. We can get very good estimates if - ¼ < p < ¼. The formula is:

35 Example Using Sterling Formula estimate f (1.63) from the following table: x: f(x): Solution X 0 = 1.60, x = 1.63, h = 0.1

36 Solution Difference table

37 BESSELS’ INTERPOLATION FORMULA This formula involves means of even difference on and below the central line and odd difference below the line. The formula is

38 Note When p = 1/2, the terms containing odd differences vanish. Then we get the formula in a more simple form: BESSELS’ INTERPOLATION FORMULA

39 Example Use Bessels’ Formula to find (46.24) 1/3 from the following table of x 1/3.

40 Solution x 0 = 45,x = 46.24, h = 4 p = 0.31 Difference table is: Applying Bessels’ formula, we get (46.24) 1/3 =