Numerical Analysis Lecture 25.

Slides:



Advertisements
Similar presentations
Splines and Piecewise Interpolation
Advertisements

Numerical Integration
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.
Chapter 18 Interpolation The Islamic University of Gaza
1 Chapter 4 Interpolation and Approximation Lagrange Interpolation The basic interpolation problem can be posed in one of two ways: The basic interpolation.
1 Curve-Fitting Spline Interpolation. 2 Curve Fitting Regression Linear Regression Polynomial Regression Multiple Linear Regression Non-linear Regression.
KFUPM SE301: Numerical Methods Topic 5: Interpolation Lectures 20-22:
Curve-Fitting Interpolation
Curve-Fitting Polynomial Interpolation
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.
Chapter 6 Numerical Interpolation
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.
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.
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
Interpolation produces a function that matches the given data exactly. The function then can be utilized to approximate the data values at intermediate.
Lecture 22 Numerical Analysis. Chapter 5 Interpolation.
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.
Lecture 40 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
5. Interpolation 5.1 Definition of interpolation. 5.2 Formulas for Interpolation. 5.3 Formulas for Interpolation for unequal interval. 5.4 Applications.
1 Chapter 4 Interpolation and Approximation Lagrange Interpolation The basic interpolation problem can be posed in one of two ways: The basic interpolation.
CSE 330 Numerical Methods Lecture 05 Chapter 5: Numerical Differentiation Md. Omar Faruqe
Introduction to Polynomials 24 February What is a polynomial? polynomial.
Interpolation - Introduction
CHAPTER 3 NUMERICAL METHODS
Chapter 4, Integration of Functions
NUMERICAL DIFFERENTIATION Forward Difference Formula
Polynomial Equations and Factoring
Chapter 7 Numerical Differentiation and Integration
Curve-Fitting Spline Interpolation
Reflexivity, Symmetry, and Transitivity
Interpolation.
Numerical Analysis Lecture12.
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
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.
Interpolation.
Chapter 18.
Numerical Solutions of Ordinary Differential Equations
Polynomials and the FFT(UNIT-3)
Numerical Analysis Lecture 45.
Chapter 7 Numerical Differentiation and Integration
Find all solutions of the polynomial equation by factoring and using the quadratic formula. x = 0 {image}
Numerical Analysis Lecture 16.
Numerical Analysis Lecture 23.
Polynomials.
Splines and Piecewise Interpolation
Numerical Analysis Lecture14.
POLYNOMIAL INTERPOLATION
Numerical Analysis Lecture 26.
Numerical Analysis Lecture13.
MATH 174: Numerical Analysis
Numerical Analysis Lecture 19.
Warm-up: Find all real solutions of the equation X4 – 3x2 + 2 = 0
Numerical Analysis Lecture10.
INTERPOLASI.
Numerical Analysis Lecture 38.
6 Numerical Differentiation
Interpolation Practice-6 Additional chapters of mathematics
Polynomials.
Introduction to Polynomials
SKTN 2393 Numerical Methods for Nuclear Engineers
Numerical Analysis Lecture 21.
Numerical Analysis Lecture 24.
Interpolation with unequal intervals
Chapter 4, Integration of Functions
Theory of Approximation: Interpolation
Presentation transcript:

Numerical Analysis Lecture 25

Chapter 5 Interpolation

Finite Difference Operators Newton’s Forward Difference Finite Difference Operators Newton’s Forward Difference Interpolation Formula Newton’s Backward Difference Interpolation Formula Lagrange’s Interpolation Formula Divided Differences Interpolation in Two Dimensions Cubic Spline Interpolation

Newton’s Forward Difference Interpolation Formula

An alternate expression is

NEWTON’S BACKWARD DIFFERENCE INTERPOLATION FORMULA

The formula is,

Alternatively form Here

LAGRANGE’S INTERPOLATION FORMULA

The Lagrange Formula for Interpolation

Alternatively compact form

Also

Finally, the Lagrange’s interpolation polynomial of degree n can be written as

DIVIDED DIFFERENCES

Let us assume that the function y = f (x) is known for several values of x, (xi, yi), for i=0,1,..n. The divided differences of orders 0, 1, 2, …, n are now defined recursively as:

The zero-th order divided difference

The first order divided difference is defined as

Second order divided difference

Generally

Standard format of the Divided Differences

NEWTON’S DIVIDED DIFFERENCE INTERPOLATION FORMULA

Let y = f (x) be a function which takes values y0, y1, …, yn corresponding to x = xi, i = 0, 1,…, n. We choose an interpolating polynomial, interpolating at x = xi, i = 0, 1, …, n in the following form

Here, the coefficients ak are so chosen as to satisfy above equation by the (n + 1) pairs (xi, yi). Thus, we have

The first equation gives The second equation gives

Third equation yields which can be rewritten as that is

Thus, in terms of second order divided differences, we have Similarly, we can show that

Newton’s divided difference interpolation formula

Newton’s divided differences can also be expressed in terms of forward, backward and central differences.

Assuming equi-spaced values of abscissa, we have

By induction, we can in general arrive at the result

Similarly

In general, we have

Also, in terms of central differences, we have

In general, we have the following pattern

Example Find the interpolating polynomial by (i) Lagrange’s formula and (ii) Newton’s divided difference formula for the following data. Hence show that they represent the same interpolating polynomial. X 1 2 4 Y 5

Solution The divided difference table for the given data is constructed as follows: X Y 1st divided difference 2nd divided difference 3rd divided difference 1 2 1/2 -1/2 4 5 3/2 1/6

(i) Lagrange’s interpolation formula gives

(ii) Newton’s divided difference formula gives We observe that the interpolating polynomial by both Lagrange’s and Newton’s divided difference formulae is one and the same.

Note! Newton’s formula involves less number of arithmetic operations than that of Lagrange’s.

Example Using Newton’s divided difference formula, find the quadratic equation for the following data. Hence find y (2). X 1 4 y 2

Solution: The divided difference table for the given data is constructed as: x y 1st divided difference 2nd divided difference 2 1 -1 1/2 4

Now, using Newton’s divided difference formula, we have Hence, y (2) = 1.

Example A function y = f (x) is given at the sample points x = x0, x1 and x2. Show that the Newton’s divided difference interpolation formula and the corresponding Lagrange’s interpolation formula are identical.

Solution For the function y = f (x), we have the data

The interpolation polynomial using Newton’ divided difference formula is given as

Using the definition of divided differences, we can rewrite the equation in the form

On simplification, it reduces to which is the Lagrange’s form of interpolation polynomial. Hence two forms are identical.

Newton’s Divided Difference Formula with Error Term

Following the basic definition of divided differences, we have for any x

Multiplying the second Equation by (x – x0), third by (x – x0)(x – x1) and so on, and the last by (x – x0)(x – x1) … (x – xn-1) and adding the resulting equations, we obtain

Please note that for x = x0, x1, …, xn, the error term vanishes Where Please note that for x = x0, x1, …, xn, the error term vanishes

Numerical Analysis Lecture 25