MATH 174: Numerical Analysis

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

Computer Programming (TKK-2144) 13/14 Semester 1 Instructor: Rama Oktavian Office Hr.: M.13-15, W Th , F
CE33500 – Computational Methods in Civil Engineering Differentiation Provided by : Shahab Afshari
1 Chapter 4 Interpolation and Approximation Lagrange Interpolation The basic interpolation problem can be posed in one of two ways: The basic interpolation.
Chapter 3, Interpolation and Extrapolation. Interpolation & Extrapolation (x i,y i ) Find an analytic function f(x) that passes through given N points.
KFUPM SE301: Numerical Methods Topic 5: Interpolation Lectures 20-22:
Curve-Fitting Polynomial Interpolation
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.
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.
MA2213 Lecture 4 Numerical Integration. Introduction Definition is the limit of Riemann sums I(f)
Scientific Computing Interpolation – Divided Differences Efficiency and Error Analysis.
1. Interpolating polynomials Polynomial of degree n,, is a linear combination of Definitions: (interval, continuous function, abscissas, and polynomial)
Karatsuba’s Algorithm for Integer Multiplication
Introduction to Numerical Analysis I MATH/CMPSC 455 Interpolation.
Interpolation produces a function that matches the given data exactly. The function then can be utilized to approximate the data values at intermediate.
Applied Symbolic Computation1 Applied Symbolic Computation (CS 300) Karatsuba’s Algorithm for Integer Multiplication Jeremy R. Johnson.
Lecture 22 Numerical Analysis. Chapter 5 Interpolation.
Chapter 3 Interpolation
KFUPM SE301: Numerical Methods Topic 5: Interpolation Lectures 20-22:
5. Interpolation 5.1 Definition of interpolation. 5.2 Formulas for Interpolation. 5.3 Formulas for Interpolation for unequal interval. 5.4 Applications.
1 Approximating functions, polynomial interpolation (Lagrange and Newton’s divided differences) formulas, error approximations.
CHAPTER 3 NUMERICAL METHODS
Chapter 4, Integration of Functions
Data manipulation II: Least Squares Fitting
High Accuracy Differentiation Formulas
Polynomial Interpolation
Curve-Fitting Spline Interpolation
Numerical Analysis Lecture 25.
Chapter 4: Linear Differential Equations
Ch 4.1: Higher Order Linear ODEs: General Theory
Class Notes 7: High Order Linear Differential Equation Homogeneous
Advanced Numerical Methods (S. A. Sahu) Code: AMC 51151
Chapter 3, Interpolation and Extrapolation
Applied Symbolic Computation
Interpolation.
Polynomials and the FFT(UNIT-3)
Chapter 23.
Today’s class Multiple Variable Linear Regression
Ch 5.2: Series Solutions Near an Ordinary Point, Part I
Applied Symbolic Computation
Numerical Analysis Lecture 23.
Numerical differentiation
3.4 Zeros of Polynomial Functions: Real, Rational, and Complex
Numerical Analysis Lecture 26.
Linear Algebra Lecture 3.
Numerical Computation and Optimization
Numerical Analysis Lecture 19.
MATH 174: Numerical Analysis I
Ch 4.1: Higher Order Linear ODEs: General Theory
Solving Special Cases.
MATH 174: NUMERICAL ANALYSIS I
Warm Up: Put on the back of guided notes
SKTN 2393 Numerical Methods for Nuclear Engineers
Interpolation Practice-6 Additional chapters of mathematics
9. Data Fitting Fitting Experimental Spectrum
Numerical Analysis Lecture 21.
  NUMERICAL METHODS.
Solving Special Cases.
Applied Symbolic Computation
Curve Fitting Filling in the gaps.
Numerical Analysis Lecture 24.
Interpolation with unequal intervals
Approximation of Functions
Generalized Finite Element Methods
Chapter 4, Integration of Functions
Approximation of Functions
Theory of Approximation: Interpolation
Chapter 3, Interpolation and Extrapolation
Presentation transcript:

MATH 174: Numerical Analysis Lecturer: Jomar F. Rabajante 1st Sem AY 2018-2019

INTERPOLATION THEORY We want to select a function p(x) from a given class of functions in such a way that the graph of y=p(x) passes through a finite set of given data points (nodes). We are going to start with POLYNOMIAL INTERPOLATION.

POLYNOMIAL INTERPOLATION Given a set of  n+1 data points (xi ,yi) where no two  xi  are the same, we want to find a polynomial  p  of degree at most  n  with the property p(xi)=yi , i=0,1,…,n

POLYNOMIAL INTERPOLATION UNISOLVENCE THEOREM (Existence and Uniqueness Theorem) Polynomial interpolation defines a linear bijection where {(xi ,yi) , i=0,1,…,n} ϵ 𝕂n+1. Пn is the vector space of polynomials (defined on any interval containing the nodes) of degree at most n.

POLYNOMIAL INTERPOLATION UNISOLVENCE THEOREM (Existence and Uniqueness Theorem) In other words, Given n+1 interpolation nodes (xi ,yi), where xi’s are distinct, there is a polynomial p(x) of degree less than or equal to n that interpolates yi at xi , i=0,1,…,n. This polynomial p(x) is unique among the set of all polynomials of degree at most n.

POLYNOMIAL INTERPOLATION Proof of existence and uniqueness of the interpolating polynomial: We can write p(x) as There are m+1 coefficients. By hypothesis, there are n+1 conditions on p(x), set m=n. We want to find the values of the coefficients: (This is a system of n+1 linear equations in n+1 unknowns. Solving it is equivalent to solving the polynomial interpolation problem.)

POLYNOMIAL INTERPOLATION Proof of existence and uniqueness of the interpolating polynomial We can write the system of linear equations in matrix form: Vandermonde matrix

POLYNOMIAL INTERPOLATION Proof of existence and uniqueness of the interpolating polynomial Denote the Vandermonde matrix as X. It can be shown using cofactor expansion that Since the points xi are distinct, Thus, X is nonsingular and the system of linear equation has a unique solution (for ai’s). This proves the existence and uniqueness of an interpolating polynomial of degree less than or equal to n.

POLYNOMIAL INTERPOLATION SOME WAYS OF CONSTRUCTING THE INTERPOLATING POLYNOMIAL UNIVARIATE General Case (can be used for unequally spaced data points) Lagrange Interpolation Newton’s Divided Differences Neville’s Method Special Case (for equally spaced data points) Forward Differences Backward Differences Centered Differences MULTIVARIATE OSCULATING POLYNOMIALS The outputs here are the same (using same set of nodes).

LAGRANGE INTERPOLATION Given the finite data points below, the Lagrange Formula is as follows: i xi yi x0 y0 1 x1 y1 . n-1 xn-1 yn-1 n xn yn

LAGRANGE INTERPOLATION Given the finite data points below, the Lagrange Formula is as follows: pn, being a linear combination of the polynomials li, is itself a polynomial. The formula is invariant under different order of the data set. i xi yi x0 y0 1 x1 y1 . n-1 xn-1 yn-1 n xn yn

LAGRANGE INTERPOLATION Example 1: Function Interpolation Representing continuous functions by interpolating polynomials Interpolate ln(2) using 2 equally-spaced points Assume that the given points are (rounded off up to 6 decimal places)

LAGRANGE INTERPOLATION Example 1: This is called linear interpolation. Try y-0 = 1.098612(x-1)/2 The interpolating polynomial

LAGRANGE INTERPOLATION Does this polynomial really passes through the given points? Assume xj is one of the given abscissas. The li functions obey the Kronecker delta equation: Try it here:

LAGRANGE INTERPOLATION Example 2: Data Interpolation Interpolating discrete data sets The viscosity of water has been experimentally determined at different temperatures, as indicated in the following table: From this table, how can we estimate a reasonable value for the viscosity at temperature 8 degrees? Use Polynomial Interpolation. Temp (deg) 5 10 15 Viscosity 1.792 1.519 1.308 1.140 Let’s try this on the board!