INTERPOLATION Interpolation produces a function that matches the given data exactly. The function then can be utilized to approximate the data values.

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.
ES 240: Scientific and Engineering Computation. InterpolationPolynomial  Definition –a function f(x) that can be written as a finite series of power functions.
DERIVATIVES Linear Approximations and Differentials In this section, we will learn about: Linear approximations and differentials and their applications.
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
Polynomial Interpolation
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 23 CURVE FITTING Chapter 18 Function Interpolation and Approximation.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Interpolation Chapter 18.
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,
ON MULTIVARIATE POLYNOMIAL INTERPOLATION
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.
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.
Chapter 8 Curve Fitting.
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.
Jump to first page Chapter 3 Splines Definition (3.1) : Given a function f defined on [a, b] and a set of numbers, a = x 0 < x 1 < x 2 < ……. < x n = b,
1 3.2 The Mean Value Theorem. 2 Rolle’s Theorem 3 Figure 1 shows the graphs of four such functions. Figure 1 (c) (b) (d) (a) Examples:
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.
Rational Functions and their Graphs. Definition Rational Function A rational function f(x) is a function that can be written as where P(x) and Q(x) are.
Lesson 2.7, page 346 Polynomial and Rational Inequalities.
1 Approximating functions, polynomial interpolation (Lagrange and Newton’s divided differences) formulas, error approximations.
CHAPTER 3 NUMERICAL METHODS
Welcome to Precalculus!
Aim: What are the rational function and asymptotes?
Chapter 7. Classification and Prediction
Precalculus V. J. Motto Polynomial Functions – Part One
MAT 150 Algebra 1-7 Modeling Linear Functions
Section 7.3: Probability Distributions for Continuous Random Variables
Polynomial Interpolation
Chapter 7 Numerical Differentiation and Integration
Introduction Recall that the graph of an equation, such as y = x + 1, is the complete set of solutions for that equation. The values for y are the result.
Copyright © Cengage Learning. All rights reserved.
Numerical Analysis Lecture 25.
Copyright © Cengage Learning. All rights reserved.
Interpolation.
FST Chapter 7 Review Questions.
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.
28 – The Slant Asymptote No Calculator
Advanced Numerical Methods (S. A. Sahu) Code: AMC 51151
Interpolation.
Chapter 18.
INTERPOLATION Prof. Samuel Okolie, Prof. Yinka Adekunle & Dr
4.2 Properties of Polynomial Graphs
Polynomial Approximations of Elementary Functions
MATH 2140 Numerical Methods
MATH 2140 Numerical Methods
Numerical Analysis Lecture 23.
Quadratic Equations and Functions
POLYNOMIAL INTERPOLATION
Numerical Analysis Lecture 26.
MATH 174: Numerical Analysis
Numerical Computation and Optimization
Numerical Analysis Lecture 19.
INTERPOLASI.
Drill: Find the limit of each of the following.
5.3 Higher-Order Taylor Methods
SKTN 2393 Numerical Methods for Nuclear Engineers
Introduction Recall that the graph of an equation, such as y = x + 1, is the complete set of solutions for that equation. The values for y are the result.
Drill: Find the limit of each of the following.
Numerical Analysis Lecture 21.
  NUMERICAL METHODS.
Objectives Graphing Basic Polynomial Functions
Numerical Analysis Lecture 24.
Interpolation with unequal intervals
Presentation transcript:

INTERPOLATION Interpolation produces a function that matches the given data exactly. The function then can be utilized to approximate the data values at intermediate points.

Interpolation may also be used to produce a smooth graph of a function for which values are known only at discrete points, either from measurements or calculations.

Given data points Obtain a function, P(x) P(x) goes through the data points Use P(x) To estimate values at intermediate points

Given data points: At x0 = 2, y0 = 3 and at x1 = 5, y1 = 8 Find the following: At x = 4, y = ?

P(x) should satisfy the following conditions: P(x = 2) = 3 and P(x = 5) = 8 P(x) can satisfy the above conditions if at x = x0 = 2, L0(x) = 1 and L1(x) = 0 and at x = x1= 5, L0(x) = 0 and L1(x) = 1

At x = x0 = 2, L0(x) = 1 and L1(x) = 0 and The conditions can be satisfied if L0(x) and L1(x) are defined in the following way.

Lagrange Interpolating Polynomial

The Lagrange interpolating polynomial passing through three given points; (x0, y0), (x1, y1) and (x2, y2) is:

At x0, L0(x) becomes 1. At all other given data points L0(x) is 0.

At x1, L1(x) becomes 1. At all other given data points L1(x) is 0.

At x2, L2(x) becomes 1. At all other given data points L2(x) is 0.

General form of the Lagrange Interpolating Polynomial

Numerator of

Denominator of

Find the Lagrange Interpolating Polynomial using the three given points.

The three given points were taken from the function

An approximation can be obtained from the Lagrange Interpolating Polynomial as:

 

 

It is suspected that the high amounts of tannin in mature oak leave inhibit the growth of the winter moth larvae that extensively damage these trees in certain years. The following table lists the average weight of two samples of larvae at times in the first 28 days after birth. The first sample was reared on young oak leaves, whereas the second sample was reared on mature leaves from the same tree. Use Lagrange’s interpolation to approximate the average weight curve for each sample. Find an approximate maximum average weight for each sample by determining the maximum of the interpolating polynomial.   Day 6 10 13 17 20 28 Sample 1 average weight(mg) 6.67 17.33 42.67 37.33 30.10 29.31 28.74 Sample 2 average weight(mg) 16.11 18.89 15.00 10.56 9.44 8.89

Newton’s Interpolating Polynomials Newton’s equation of a function that passes through two points and is

Set Set

Newton’s equation of a function that passes through three points and is

To find , set

Newton’s equation of a function that passes through four points can be written by adding a fourth term .

The fourth term will vanish at all three previous points and, therefore, leaving all three previous coefficients intact.

Divided differences and the coefficients The divided difference of a function, with respect to is denoted as It is called as zeroth divided difference and is simply the value of the function, at

The divided difference of a function, called as the first divided difference, is denoted with respect to and

The divided difference of a function, called as the second divided difference, is denoted as with respect to and ,

The third divided difference with respect to , and

The coefficients of Newton’s interpolating polynomial are: and so on.

Example Find Newton’s interpolating polynomial to approximate a function whose 5 data points are given below. 2.0 0.85467 2.3 0.75682 2.6 0.43126 2.9 0.22364 3.2 0.08567

2.0 0.85467 -0.32617 1 2.3 0.75682 -1.26505 -1.08520 2.13363 2 2.6 0.43126 0.65522 -2.02642 -0.69207 -0.29808 3 2.9 0.22364 0.38695 -0.45990 4 3.2 0.08567

The 5 coefficients of the Newton’s interpolating polynomial are:

P(x) can now be used to estimate the value of the function f(x) say at x = 2.8.

 

Complete the divided difference table for the following data and also construct the interpolating polynomial that uses all this data. x f(x) 1.0 0.7651977 1.3 0.6200860 1.6 0.4554022 1.9 0.2818186 2.2 0.1103623