Chapter 4 Interpolation and Approximation. 4.1 Lagrange Interpolation The basic interpolation problem can be posed in one of two ways: The basic interpolation.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Numerical Methods.  Polynomial interpolation involves finding a polynomial of order n that passes through the n+1 points.  Several methods to obtain.
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.
Computational Methods in Physics PHYS 3437
ES 240: Scientific and Engineering Computation. InterpolationPolynomial  Definition –a function f(x) that can be written as a finite series of power functions.
Numerical Analysis –Interpolation
Infinite Sequences and Series
KFUPM SE301: Numerical Methods Topic 5: Interpolation Lectures 20-22:
Curve-Fitting Interpolation
Curve-Fitting Polynomial Interpolation
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 181 Interpolation Chapter 18 Estimation of intermediate.
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. by Lale Yurttas, Texas A&M University Chapter 181 Interpolation.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Interpolation Chapter 18.
Chapter 6 Numerical Interpolation
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 171 Least.
Chapter 3 Root Finding.
Section 3.4 Zeros of Polynomial Functions. The Rational Zero Theorem.
Division Algorithm Let (x) and g(x) be polynomials with g(x) of lower degree than (x) and g(x) of degree one or more. There exists unique polynomials.
Section 8.1 Completing the Square. Factoring Before today the only way we had for solving quadratics was to factor. x 2 - 2x - 15 = 0 (x + 3)(x - 5) =
CpE- 310B Engineering Computation and Simulation Dr. Manal Al-Bzoor
1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
Section 7.3 Using the Quadratic Formula to Find Real Solutions.
Interpolation. Interpolation is important concept in numerical analysis. Quite often functions may not be available explicitly but only the values of.
Simpson Rule For Integration.
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
Chapter 8 Curve Fitting.
Chapter 14 Curve Fitting : Polynomial Interpolation Gab Byung Chae.
1 Nonlinear Equations Jyun-Ming Chen. 2 Contents Bisection False Position Newton Quasi-Newton Inverse Interpolation Method Comparison.
1. Interpolating polynomials Polynomial of degree n,, is a linear combination of Definitions: (interval, continuous function, abscissas, and polynomial)
Approximation on Finite Elements Bruce A. Finlayson Rehnberg Professor of Chemical Engineering.
Derivation of the Quadratic Formula The following shows how the method of Completing the Square can be used to derive the Quadratic Formula. Start with.
CHAPTER 3 NUMERICAL METHODS
Lecture 22 Numerical Analysis. Chapter 5 Interpolation.
Computers in Civil Engineering 53:081 Spring 2003 Lecture #15 Spline 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.
Computer Programming (TKK-2144) 13/14 Semester 1 Instructor: Rama Oktavian Office Hr.: M.13-15, W Th , F
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.
Spline Interpolation A Primer on the Basics by Don Allen.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
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.
MA4229 Lectures 15, 16 Week 13 Nov 1, Chapter 18 Interpolation by piecewise polynomials.
Section 3.4 Zeros of Polynomial Functions. The Rational Zero Theorem.
Interpolation - Introduction
Answers for Review Questions for Lectures 1-4. Review Lectures 1-4 Problems Question 2. Derive a closed form for the estimate of the solution of the equation.
1 Approximating functions, polynomial interpolation (Lagrange and Newton’s divided differences) formulas, error approximations.
CHAPTER 3 NUMERICAL METHODS
Numerical Analysis Lecture 25.
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.
Solving Polynomial Functions
Chapter 18.
Chapter 23.
Numerical Analysis Lecture 7.
Today’s class Multiple Variable Linear Regression
Numerical Analysis Lecture 23.
POLYNOMIAL INTERPOLATION
Numerical Analysis Lecture 26.
INTERPOLASI.
SKTN 2393 Numerical Methods for Nuclear Engineers
Integrated Math 3 – Mod 3 Test Review
Chapter 2 A Survey of Simple Methods and Tools
Theory of Approximation: Interpolation
Presentation transcript:

Chapter 4 Interpolation and Approximation

4.1 Lagrange Interpolation The basic interpolation problem can be posed in one of two ways: The basic interpolation problem can be posed in one of two ways:

Example 4.1 e -1/2

Discussion The construction presented in this section is called Lagrange interpolation. The construction presented in this section is called Lagrange interpolation. How good is interpolation at approximating a function? (Sections 4.3, 4.11) How good is interpolation at approximating a function? (Sections 4.3, 4.11) Consider another example: Consider another example: If we use a fourth-degree interpolating polynomial to approximate this function, the results are as shown in Figure 4.3 (a). If we use a fourth-degree interpolating polynomial to approximate this function, the results are as shown in Figure 4.3 (a).

Error for n=8

Discussion There are circumstances in which polynomial interpolation as approximation will work very well, and other circumstances in which it will not. There are circumstances in which polynomial interpolation as approximation will work very well, and other circumstances in which it will not. The Lagrange form of the interpolating polynomial is not well suited for actual computations, and there is an alternative construction that is far superior to it. The Lagrange form of the interpolating polynomial is not well suited for actual computations, and there is an alternative construction that is far superior to it.

4.2 Newton Interpolation and Divided Differences The disadvantage of the Lagrange form The disadvantage of the Lagrange form If we decide to add a point to the set of nodes, we have to completely recompute all of the functions. If we decide to add a point to the set of nodes, we have to completely recompute all of the functions. Here we introduce an alternative form of the polynomial: the Newton form. Here we introduce an alternative form of the polynomial: the Newton form. It can allow us to easily write in terms of It can allow us to easily write in terms of

=0

Example 4.2

Discussion The coefficients are called divided differences. The coefficients are called divided differences. We can use divided-difference table to find them. We can use divided-difference table to find them.

Example 4.3

Example 4.3 (Con.)

Table 4.5

4.3 Interpolation Error

Norms The infinity norm of pointwise norm: The infinity norm of pointwise norm: The 2-norm: The 2-norm:

The interpolation error of linear interpolation

Example 4.5

Example 4.5 (Con.)

4.4 Application: Muller’s Method and Inverse Quadratic Interpolation We can use the idea of interpolation to develop more sophisticated root-finding methods. We can use the idea of interpolation to develop more sophisticated root-finding methods. For example: Muller ’ s Method For example: Muller ’ s Method Given three points we find the quadratic polynomial such that 0,1,2; and then define as the root of that is closest to. Given three points we find the quadratic polynomial such that 0,1,2; and then define as the root of that is closest to.

compare

An Alternative to Muller’s Method Inverse quadratic interpolation: Inverse quadratic interpolation:

Discussion One great utility of Muller ’ s method is that it is able to find complex roots of real-valued functions, because of the square root in the computation. One great utility of Muller ’ s method is that it is able to find complex roots of real-valued functions, because of the square root in the computation. Inverse quadratic interpolation is used as part of Brent- Dekker root-finding algorithm, which is a commonly implemented automatic root-finding program. Inverse quadratic interpolation is used as part of Brent- Dekker root-finding algorithm, which is a commonly implemented automatic root-finding program.

4.5 Application: More Approximations to the Derivative depends on x

4.5 Application: More Approximations to the Derivative The interpolating polynomial in Lagrange form is The interpolating polynomial in Lagrange form is The error is given as in (4.20), thus The error is given as in (4.20), thus We get We get

We can use above equations to get:

4.6 Hermite Interpolation Hermite interpolation problem: Hermite interpolation problem: Can we do this? Yes. Can we do this? Yes.

Divided-Difference Table

An example

error

Hermite Interpolation Error Theorem

4.7 Piecewise Polynomial Interpolation If we keep the order of the polynomial fixed and use different polynomials over different intervals, with the length of the intervals getting smaller and smaller, then interpolation can be a very accurate and powerful approximation tool. If we keep the order of the polynomial fixed and use different polynomials over different intervals, with the length of the intervals getting smaller and smaller, then interpolation can be a very accurate and powerful approximation tool. For example: For example:

Example 4.6