EE3561_Unit 5(c)AL-DHAIFALLAH14361 EE 3561 : Computational Methods Unit 5 : Interpolation Dr. Mujahed AlDhaifallah (Term 351) Read Chapter 18, Sections.

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.
Numerical Methods.  Polynomial interpolation involves finding a polynomial of order n that passes through the n+1 points.  Several methods to obtain.
Computers in Civil Engineering 53:081 Spring 2003 Lecture #14 Interpolation.
CISE301_Topic61 SE301: Numerical Methods Topic 6 Numerical Differentiation Lecture 23 KFUPM Read Chapter 23, Sections 1-2.
EE3561_Unit 6(c)AL-DHAIFALLAH14351 EE 3561 : Computational Methods Unit 6 Numerical Differentiation Dr. Mujahed AlDhaifallah ( Term 342)
Chapter 7 Numerical Differentiation and Integration
CE33500 – Computational Methods in Civil Engineering Differentiation Provided by : Shahab Afshari
Numerical Analysis –Interpolation
Copyright © Cengage Learning. All rights reserved.
KFUPM SE301: Numerical Methods Topic 5: Interpolation Lectures 20-22:
Curve-Fitting Interpolation
14 Aug 2007 KKKQ 3013 PENGIRAAN BERANGKA Week 6 – Interpolation & Curve Fitting 14 August am – 9.00 am.
Curve-Fitting Polynomial Interpolation
Interpolation Used to estimate values between data points difference from regression - goes through data points no error in data points.
Curve Fitting and Interpolation: Lecture (II)
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 Lecture 23 CURVE FITTING Chapter 18 Function Interpolation and Approximation.
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW II.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Interpolation Chapter 18.
Mujahed AlDhaifallah (Term 342) Read Chapter 9 of the textbook
Chapter 6 Numerical Interpolation
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 21 CURVE FITTING Chapter 18 Function Interpolation and Approximation.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM.
CISE301_Topic7KFUPM1 SE301: Numerical Methods Topic 7 Numerical Integration Lecture KFUPM Read Chapter 21, Section 1 Read Chapter 22, Sections 2-3.
CISE301_Topic71 SE301: Numerical Methods Topic 7 Numerical Integration Lecture KFUPM (Term 101) Section 04 Read Chapter 21, Section 1 Read Chapter.
Polynomials. 2 Content Evaluation Root finding Root Bracketing Interpolation Resultant.
CpE- 310B Engineering Computation and Simulation Dr. Manal Al-Bzoor
Interpolation. Interpolation is important concept in numerical analysis. Quite often functions may not be available explicitly but only the values of.
EE3561_Unit 8Al-Dhaifallah14351 EE 3561 : Computational Methods Unit 8 Solution of Ordinary Differential Equations Lesson 3: Midpoint and Heun’s Predictor.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
EE 3561_Unit_1(c)Al-Dhaifallah EE 3561 : - Computational Methods in Electrical Engineering Unit 1: Introduction to Computational Methods and Taylor.
Curve Fitting and Interpolation: Lecture (I)
Polynomial Interpolation You will frequently have occasions to estimate intermediate values between precise data points. The function you use to interpolate.
EE3561_Unit 7Al-Dhaifallah EE 3561 : Computational Methods Unit 7 Numerical Integration Dr. Mujahed AlDhaifallah ( Term 342)
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
Chapter 8 Curve Fitting.
Chapter 4 Interpolation and Approximation. 4.1 Lagrange Interpolation The basic interpolation problem can be posed in one of two ways: The basic interpolation.
Introduction to Numerical Analysis I MATH/CMPSC 455 Interpolation.
Interpolation produces a function that matches the given data exactly. The function then can be utilized to approximate the data values at intermediate.
EE3561_Unit 4(c)AL-DHAIFALLAH14351 EE 3561 : Computational Methods Unit 4 : Least Squares Curve Fitting Dr. Mujahed Al-Dhaifallah (Term 342) Reading Assignment.
CHAPTER 3 NUMERICAL METHODS
Chapter 3 Interpolation
KFUPM SE301: Numerical Methods Topic 5: Interpolation Lectures 20-22:
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.
By: Mark Coose Joetta Swift Micah Weiss. What Problems Can Interpolation Solve? Given a table of values, find a simple function that passes through the.
5. Interpolation 5.1 Definition of interpolation. 5.2 Formulas for Interpolation. 5.3 Formulas for Interpolation for unequal interval. 5.4 Applications.
CSE 330 Numerical Methods Lecture 05 Chapter 5: Numerical Differentiation Md. Omar Faruqe
1 Approximating functions, polynomial interpolation (Lagrange and Newton’s divided differences) formulas, error approximations.
Interpolation.
Interpolation Estimation of intermediate values between precise data points. The most common method is: Although there is one and only one nth-order.
Chapter 18.
Interpolation.
Chapter 18.
Numerical Analysis Lecture 7.
MATH 2140 Numerical Methods
Interpolasi Pertemuan - 7 Mata Kuliah : Analisis Numerik
POLYNOMIAL INTERPOLATION
11.1 – Polynomial Approximations of Functions
Numerical Analysis Lecture 26.
Numerical Computation and Optimization
INTERPOLASI.
Lagrangian Interpolation
Lagrangian Interpolation
Linearization and Newton’s Method
Linearization and Newton’s Method
Numerical Computation and Optimization
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Interpolation with unequal intervals
Theory of Approximation: Interpolation
Presentation transcript:

EE3561_Unit 5(c)AL-DHAIFALLAH14361 EE 3561 : Computational Methods Unit 5 : Interpolation Dr. Mujahed AlDhaifallah (Term 351) Read Chapter 18, Sections 1-5

EE3561_Unit 5(c)AL-DHAIFALLAH14362 Introduction to Interpolation Introduction Interpolation problem Existence and uniqueness Linear and Quadratic interpolation Newton’s Divided Difference method Properties of Divided Differences

EE3561_Unit 5(c)AL-DHAIFALLAH14363 Introduction Interpolation was used for long time to provide an estimate of a tabulated function at values that are not available in the table. What is sin (0.15)? xsin(x) Using Linear Interpolation sin (0.15) ≈ True value( 4 decimal digits) sin (0.15)=

EE3561_Unit 5(c)AL-DHAIFALLAH14364 The interpolation Problem Given a set of n+1 points, find an n th order polynomial that passes through all points

EE3561_Unit 5(c)AL-DHAIFALLAH14365 Example An experiment is used to determine the viscosity of water as a function of temperature. The following table is generated Problem: Estimate the viscosity when the temperature is 8 degrees. Temperature (degree) Viscosity

EE3561_Unit 5(c)AL-DHAIFALLAH14366 Interpolation Problem Find a polynomial that fit the data points exactly. Linear Interpolation V(T)= 1.73 − T V(8)=

EE3561_Unit 5(c)AL-DHAIFALLAH14367 Existence and Uniqueness Given a set of n+1 points Assumption are distinct Theorem: There is a unique polynomial f n (x) of order ≤ n such that

EE3561_Unit 5(c)AL-DHAIFALLAH14368 Examples of Polynomial Interpolation Linear Interpolation  Given any two points, there is one polynomial of order ≤ 1 that passes through the two points. Quadratic Interpolation Given any three points there is one polynomial of order ≤ 2 that passes through the three points.

EE3561_Unit 5(c)AL-DHAIFALLAH14369 Linear Interpolation Given any two points, The line that interpolates the two points is Example : find a polynomial that interpolates (1,2) and (2,4)

EE3561_Unit 5(c)AL-DHAIFALLAH Quadratic Interpolation  Given any three points,  The polynomial that interpolates the three points is

EE3561_Unit 5(c)AL-DHAIFALLAH General n th order Interpolation Given any n+1 points, The polynomial that interpolates all points is

EE3561_Unit 5(c)AL-DHAIFALLAH Divided Differences

EE3561_Unit 5(c)AL-DHAIFALLAH Divided Difference Table xF[ ]F[, ]F[,, ]F[,,,] x0x0 F[x0]F[x 0,x 1 ]F[x 0,x 1, x 2 ]F[x 0,x 1,x 2,x 3 ] x1x1 F[x 1 ]F[x 1,x 2 ]F[x 1,x 2,x 3 ] x2x2 F[x 2 ]F[x 2,x 3 ] x3x3 F[x 3 ]

EE3561_Unit 5(c)AL-DHAIFALLAH Divided Difference Table f(x i ) xF[ ]F[, ]F[,, ] Entries of the divided difference table are obtained from the data table using simple operations

EE3561_Unit 5(c)AL-DHAIFALLAH Divided Difference Table f(x i ) xF[ ]F[, ]F[,, ] The first two column of the table are the data columns Third column : first order differences Fourth column: Second order differences

EE3561_Unit 5(c)AL-DHAIFALLAH Divided Difference Table xF[ ]F[, ]F[,, ]

EE3561_Unit 5(c)AL-DHAIFALLAH Divided Difference Table xF[ ]F[, ]F[,, ]

EE3561_Unit 5(c)AL-DHAIFALLAH Divided Difference Table xF[ ]F[, ]F[,, ]

EE3561_Unit 5(c)AL-DHAIFALLAH Divided Difference Table xF[ ]F[, ]F[,, ] f 2 (x)= F[x 0 ]+F[x 0,x 1 ] (x-x 0 )+F[x 0,x 1,x 2 ] (x-x 0 )(x-x 1 )

EE3561_Unit 5(c)AL-DHAIFALLAH Two Examples xy Obtain the interpolating polynomials for the two examples xy What do you observe?

EE3561_Unit 5(c)AL-DHAIFALLAH Two Examples xY xY Ordering the points should not affect the interpolating polynomial

EE3561_Unit 5(c)AL-DHAIFALLAH Properties of divided Difference Ordering the points should not affect the divided difference

EE3561_Unit 5(c)AL-DHAIFALLAH Example  Find a polynomial to interpolate the data. xf(x)

EE3561_Unit 5(c)AL-DHAIFALLAH Example xf(x)f[, ]f[,, ]f[,,, ]f[,,,, ]

EE3561_Unit 5(c)AL-DHAIFALLAH Summary

EE3561_Unit 5(c)AL-DHAIFALLAH Inverse interpolation Error in polynomial interpolation Dr. Mujahed Al-Dhaifallah (Term 351)

EE3561_Unit 5(c)AL-DHAIFALLAH Inverse Interpolation …. One approach: Use polynomial interpolation to obtain f n (x) to interpolate the data then use Newton’s method to find a solution to

EE3561_Unit 5(c)AL-DHAIFALLAH Inverse Interpolation Alternative Approach …. Inverse interpolation: 1. Exchange the roles of x and y 2. Perform polynomial Interpolation on the new table. 3. Evaluate ….

EE3561_Unit 5(c)AL-DHAIFALLAH Inverse Interpolation x y y x

EE3561_Unit 5(c)AL-DHAIFALLAH Inverse Interpolation Question: What is the limitation of inverse interpolation The original function has an inverse y 1,y 2,…,y n must be distinct.

EE3561_Unit 5(c)AL-DHAIFALLAH Inverse Interpolation Example x123 y

EE3561_Unit 5(c)AL-DHAIFALLAH Errors in polynomial Interpolation  Polynomial interpolations may lead to large error (especially when high order polynomials are used) BE CAREFUL  When an nth order interpolating polynomial is used, the error is related to the (n+1) th order derivative

EE3561_Unit 5(c)AL-DHAIFALLAH th order Polynomial Interpolation

EE3561_Unit 5(c)AL-DHAIFALLAH Error in polynomial interpolation Dr. Mujahed Al-Dhaifallah (Term 351)

EE3561_Unit 5(c)AL-DHAIFALLAH Errors in polynomial Interpolation Theorem

EE3561_Unit 5(c)AL-DHAIFALLAH Example 1

EE3561_Unit 5(c)AL-DHAIFALLAH Interpolation Error Not useful. Why?

EE3561_Unit 5(c)AL-DHAIFALLAH Approximation of the Interpolation Error

Example  Given the following table of data EE3561_Unit 5(c)AL-DHAIFALLAH143639

EE3561_Unit 5(c)AL-DHAIFALLAH143640

EE3561_Unit 5(c)AL-DHAIFALLAH Divided Difference Theorem

EE3561_Unit 5(c)AL-DHAIFALLAH Summary  The interpolating polynomial is unique  Different methods can be used to obtain it Newton’s Divided difference Lagrange interpolation others  Polynomial interpolation can be sensitive to data.  BE CAREFUL when high order polynomials are used