Interpolation with unequal intervals

Slides:



Advertisements
Similar presentations
High Accuracy Differentiation Formulas
Advertisements

2. Numerical differentiation. Approximate a derivative of a given function. Approximate a derivative of a function defined by discrete data at the discrete.
Chapter 18 Interpolation The Islamic University of Gaza
Numerical Integration Lecture (II)1
KFUPM SE301: Numerical Methods Topic 5: Interpolation Lectures 20-22:
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.
Polynomial Interpolation
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.
CSE Interpolation Roger Crawfis.
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,
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.
Lagrange interpolation Gives the same results as Newton, but different method.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 21 CURVE FITTING Chapter 18 Function Interpolation and Approximation.
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.
Finding an Inverse Function with a Table. Inverse Notation Original function Inverse function “Inverse of f(x)”
Part 4 Chapter 17 Polynomial Interpolation PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill.
Interpolation produces a function that matches the given data exactly. The function then can be utilized to approximate the data values at intermediate.
Solving Logarithmic Equations
Lecture 22 Numerical Analysis. Chapter 5 Interpolation.
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.
5. Interpolation 5.1 Definition of interpolation. 5.2 Formulas for Interpolation. 5.3 Formulas for Interpolation for unequal interval. 5.4 Applications.
Interpolation - Introduction
1 Approximating functions, polynomial interpolation (Lagrange and Newton’s divided differences) formulas, error approximations.
Section 3.2 Polynomial Functions and Their Graphs
Please log on to your computers.
NUMERICAL DIFFERENTIATION Forward Difference Formula
High Accuracy Differentiation Formulas
Polynomial Interpolation
Chapter 7 Numerical Differentiation and Integration
Numerical Analysis Lecture 25.
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.
Advanced Numerical Methods (S. A. Sahu) Code: AMC 51151
Smooth, Continuous Graphs
Lecture 4: Numerical Methods
Numerical Integration Formulas
Section 3.2 Polynomial Functions and Their Graphs
INTERPOLATION Interpolation produces a function that matches the given data exactly. The function then can be utilized to approximate the data values.
Interpolation.
Chapter 18.
Inverse Linear Functions
Chapter 23.
Numerical Analysis Lecture 45.
Chapter 7 Numerical Differentiation and Integration
Polynomial Multiplicity
Interpolasi Pertemuan - 7 Mata Kuliah : Analisis Numerik
Numerical Analysis Lecture 23.
POLYNOMIAL INTERPOLATION
Numerical Analysis Lecture 26.
Section 2.3 Polynomial Functions and Their Graphs
MATH 174: Numerical Analysis
Numerical Computation and Optimization
Numerical Analysis Lecture 19.
Section 3.2 Polynomial Functions and Their Graphs
Factorial Design.
LAGRANGIAN INTERPOLATION rajesh chauhan
SKTN 2393 Numerical Methods for Nuclear Engineers
Numerical Analysis Lecture 21.
  NUMERICAL METHODS.
Warm-Up Algebra 2 Honors 2/12/18
Numerical Analysis Lecture 24.
Theory of Approximation: Interpolation
Presentation transcript:

Interpolation with unequal intervals The disadvantage for the previous interpolation formulas is that, they are used only for equal intervals. The following are the interpolation with unequal intervals. (i) Lagrange’s formula for unequal intervals (ii) Newton’s divided difference formula 10/4/2019 Dr.G.Suresh Kumar@KL University

Lagranges Interpolation formula If y = f(x) takes the values y0, y1, y2, …, yn corresponding to x0, x1, x2, …, xn, then Which is known as Lagrange’s formula. 10/4/2019 Dr.G.Suresh Kumar@KL University

Divided Differences If (x0, y0), (x1, y1), …, (xn, yn) are given points, then the first divided differences for the argument x0, x1 is defined by [x0, x1] = (y1 – y0)/ (x1 – x0) Similarly [x1, x2] = (y2 – y1)/ (x2 – x1) [x2, x3] = (y3 – y2)/ (x3 – x2) … [xn-1, xn] = (yn – yn-1)/ (xn – xn-1). 10/4/2019 Dr.G.Suresh Kumar@KL University

Divided differences The second divided differences for x0, x1, x2 [x0, x1, x2]= ([x1, x2] - [x0, x1])/(x2-x0) The third divided differences x0, x1, x2 , x3 [x0, x1, x2, x3]= ([x1, x2, x3] - [x0, x1, x2])/(x3-x0) And so on … All the divided differences systematically set out in a table called divided difference table. 10/4/2019 Dr.G.Suresh Kumar@KL University

Divided difference table x f(x) 1st DD 2nd DD 3rd DD 4th DD x0 y0 [x0, x1] x1 y1 [x0, x1,x2] [x1, x2] [x0, x1,x2, x3] x2 y2 [x1, x2,x3] [x0, x1,x2, x3,x4] [x2, x3] [x1, x2,x3, x4] x3 y3 [x2, x3,x4] [x3, x4] x4 y4 10/4/2019 Dr.G.Suresh Kumar@KL University

Newton’s divided difference formula If y = f(x) takes the values y0, y1, y2, …, yn corresponding to x0, x1, x2, …, xn, then f(x) = y0+(x-x0)[x0, x1] + (x-x0)(x-x1)[x0, x1, x2] + …+(x-x0)(x-x1)…(x-xn-1)[x0, x1, x2, …, xn]. Which is known as Newton’s general interpolation formula with divided differences. 10/4/2019 Dr.G.Suresh Kumar@KL University

Problem#1 Given the values Evaluate f(9), using Lagranges formula Newton’s divided difference formula Ans : 810 X : 5 7 11 13 17 f(x): 150 392 1452 2366 5202 10/4/2019 Dr.G.Suresh Kumar@KL University

Divided difference formula x f(x) 1st DD 2nd DD 3rd DD 4th DD 5 150 121 7 392 24 265 1 11 1452 32 457 13 2366 42 709 17 5202 10/4/2019 Dr.G.Suresh Kumar@KL University

Problem#2 Determine f(x) as a polynomial in x for the following data, using Newton’s divided difference formula Ans: f(x)=3x4-5x3+6x2-14x+5. x -4 -1 2 5 f(x) 1245 33 9 1335 10/4/2019 Dr.G.Suresh Kumar@KL University

Divided difference table x f(x) 1st DD 2nd DD 3rd DD 4th DD -4 1245 -404 -1 33 94 -28 -14 5 10 3 2 13 9 88 442 1335 10/4/2019 Dr.G.Suresh Kumar@KL University

Problem#3 The following table gives the viscosity of an oil as a function of temperature. Using Lagrange’s formula find viscosity of oil at a temperature of 140o. Ans : 7.03 TemperatureO: 110 130 160 190 Viscosity: 150 392 1452 2366 10/4/2019 Dr.G.Suresh Kumar@KL University

Problem#4 Apply Newton’s divided difference formula, evaluate f(8) and f(15) . Ans : f(8) = 448, f(15) = 3150 x 4 5 7 10 11 13 f(x) 48 100 294 900 1210 2028 10/4/2019 Dr.G.Suresh Kumar@KL University

Problem#5 Certain corresponding values of x and log10x are given below Calculate log10310, using Lagrange’s formula Newton’s divided difference formula. Ans : 2.4786 by both formulae. x : 300 304 305 307 log10x : 2.4771 2.4829 2.4843 2.4871 10/4/2019 Dr.G.Suresh Kumar@KL University

Inverse interpolation formula The process of estimating the value of x for a value y is called the inverse interpolation. By interchanging x and y in Lagrange’s formula, is called inverse interpolation formula. 10/4/2019 Dr.G.Suresh Kumar@KL University

Problem#1 The following table gives the values of x and y : Calculate the value of x corresponding to y=12, using Lagranges technique. Ans : 3.55 X : 1.2 2.1 2.8 4.1 4.9 6.2 f(x): 4.2 6.8 9.8 13.4 15.5 19.6 10/4/2019 Dr.G.Suresh Kumar@KL University

Problem#2 Apply Lagrange’s formula inversely to obtain a root of the equation f(x)=0, given that f(30)=-30, f(34)=-13, f(38)=3, and f(42)=18. Ans : 37.23 10/4/2019 Dr.G.Suresh Kumar@KL University