5. Interpolation 5.1 Definition of interpolation. 5.2 Formulas for Interpolation. 5.3 Formulas for Interpolation for unequal interval. 5.4 Applications.

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

Interpolation A method of constructing a function that crosses through a discrete set of known data points. .
Factorising polynomials
2. Numerical differentiation. Approximate a derivative of a given function. Approximate a derivative of a function defined by discrete data at the discrete.
1 Chapter 4 Interpolation and Approximation Lagrange Interpolation The basic interpolation problem can be posed in one of two ways: The basic interpolation.
Numerical Analysis –Interpolation
Direct Method of Interpolation
Revision.
Curve Fitting and Interpolation: Lecture (II)
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
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 21 CURVE FITTING Chapter 18 Function Interpolation and Approximation.
Table of Contents Quadratic Equation: Solving Using the Quadratic Formula Example: Solve 2x 2 + 4x = 1. The quadratic formula is Here, a, b, and c refer.
Graphical Analysis of Motion.  First, it must be remembered that there are 3 different descriptions for motion  Constant position (at rest)  Constant.
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.
CSE 330 : Numerical Methods
Scientific Computing Linear and Quadratic Splines.
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.
1 Lagrangian Interpolation Major: All Engineering Majors Authors: Autar Kaw, Jai Paul
Numerical Methods For Slides Thanks to Lecture 6 Interpolation
Chapter 4 Interpolation and Approximation. 4.1 Lagrange Interpolation The basic interpolation problem can be posed in one of two ways: The basic interpolation.
Calculus 3.4 Manipulate real and complex numbers and solve equations AS
CHAPTER 3 NUMERICAL METHODS
Lecture 22 Numerical Analysis. Chapter 5 Interpolation.
Chapter 3 Interpolation
Computer Programming (TKK-2144) 13/14 Semester 1 Instructor: Rama Oktavian Office Hr.: M.13-15, W Th , F
1 Direct Method of Interpolation Major: All Engineering Majors Authors: Autar Kaw, Jai Paul
Table of Contents Solving Quadratic Equations – Quadratic Formula The following shows how to solve quadratic equations using the Quadratic Formula. A quadratic.
Solving Quadratic Equations – Quadratic Formula The following shows how to solve quadratic equations using the Quadratic Formula. A quadratic equation.
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.
Solving a Trigonometric Equation Find the general solution of the equation.
1 Direct Method of Interpolation Mechanical Engineering Majors Authors: Autar Kaw, Jai Paul
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
In this section, we will investigate how we can approximate any function with a polynomial.
Introduction to Polynomials 24 February What is a polynomial? polynomial.
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.
11/22/ Differentiation-Discrete Functions.
CHAPTER 3 NUMERICAL METHODS
Please log on to your computers.
NON LINEAR FUNCTION Quadratic Function.
Numerical Analysis Lecture 25.
Interpolation.
Aim: How do we multiply polynomials?
Solving Polynomial Functions
Chapter 23.
Find all solutions of the polynomial equation by factoring and using the quadratic formula. x = 0 {image}
Spline Interpolation Class XVII.
Numerical Analysis Lecture 23.
Sec 21: Analysis of the Euler Method
POLYNOMIAL INTERPOLATION
Numerical Analysis Lecture 26.
MATH 174: Numerical Analysis
Numerical Analysis Lecture 19.
Solving Systems of Equation by Substitution
INTERPOLASI.
5.3 Higher-Order Taylor Methods
Warm Up: Put on the back of guided notes
5.1 Area.
Polynomial Functions 1 Definitions 2 Degrees 3 Graphing.
Direct Method of Interpolation
Numerical Analysis Lecture 21.
Solving Polynomial Equations
Numerical Analysis Lecture 24.
Interpolation with unequal intervals
Lagrangian Interpolation
Theory of Approximation: Interpolation
Presentation transcript:

5. Interpolation 5.1 Definition of interpolation. 5.2 Formulas for Interpolation. 5.3 Formulas for Interpolation for unequal interval. 5.4 Applications of interpolation

5.1 Definition of interpolation. Definition

5.2 DIRECT METHOD Now we consider a polynomial of degree n, i.e. y = a 0 +a 1 x+a 2 x 2 +……..+a n x n, where a 0,a 1,a 2,….a n are constants, on which we suppose (n+1) points like (x 0,y 0 ),(x 1,y 1 ),….,(x n,y n ). (i) Here we have to find (n+1) constants i.e. a 0,a 1,a 2,…..a n, for that we construct (n+1) equations. (ii) Substitute the value of x for the corresponding value of y in the above polynomial.

Table 1 t m/second

Linear Interpolation

Quadratic Interpolation

Error

Cubic Interpolation Example: - The velocity of a train is given in table 1. Find the velocity at t = 9 second using cubic Interpolation method. Solution:- Let v(t) =a 0 +a 1 t+a 2 t 2 +a 3 t 3. v(4)= a 0 +4a 1 +16a 2 +64a 3, v(6)= a 0 +6a 1 +36a a 3, v(8)= a 0 +8a 1 +64a a 3, v(10)= a 0 +10a a a 3.

Continued………

Comparison table Table:-Comparison of different degree of the polynomials. Degree of polynomial 123 v(t=9) meter/sec Absolute relative Approximate error

Newton forward Interpolation formula

Example The velocity of a train is given in table 1. Find the velocity at t= 5 second using Newton forward interpolation formula. Solution:- Forward Difference Table

Continued tv1 st difference2 nd difference3 rd difference4 th difference

Result u=1.5. Putting these values in the Newton forward interpolation formula we get v(5)= m/sec.

Newton Backward Interpolation formula

Example The velocity of a train is given in table 1. Find the velocity at t= 9 second using Newton backward interpolation formula. Solution: - u=-0.5. Putting these values in the Newton backward interpolation formula we get v(9)= m/sec.

5.3 Newton’s Divided Difference method Table 2 t m/secon d

Linear Interpolation

Example

Quadratic Interpolation

Example

Error

Cubic Interpolation

Example

Error

Comparison Table Table:-Comparison of different degree of the polynomials. Degree of polynomial 123 v(t=12) meter/sec Absolute relative Approximate error

Lagrange’s Interpolation

Linear Interpolation

Example The velocity of a train is given in table 2. Find the velocity at t= 12 second using linear method for interpolation. Solution:- Here t 0 =11sec, t 1 =16sec and t=12 sec. Putting these values in the v(t)= L 0 (t)v(t 0 )+ L 1 (t)v(t 1 ) we get v(12)=53.6 m/sec.

Quadratic Interpolation

Example The velocity of a train is given in table 2. Find the velocity at t= 12 second using quadratic method for interpolation. Solution:- Here t 0 =7sec, t 1 =11sec, t 2 =16 sec and t=12 sec. Putting these values in the v(t)= L 0 (t)v(t 0 )+ L 1 (t)v(t 1 ) + L 2 (t)v(t 2 ), we get v(12)= m/sec.

Error

Cubic Interpolation

Example The velocity of a train is given in table 2. Find the velocity at t= 12 second using cubic method for interpolation. Solution:- Here t 0 =5sec, t 1 =7sec, t 2 =11sec, t 3 =16 sec and t=12 sec. Putting the values in the v(t)= L 0 (t)v(t 0 )+ L 1 (t)v(t 1 ) + L 2 (t)v(t 2 ) + L 3 (t)v(t 3 ), we get v(12)= m/sec.

Error

Comparison table Table:-Comparison of different degree of the polynomials. Degree of polynomial123 v(t=12) meter/sec Absolute relative Approximate error

5.4 Applications of interpolation. Form of the function. To fill the gaps in a table. Computer graphics. Census.