By: Mark Coose Joetta Swift Micah Weiss. What Problems Can Interpolation Solve? Given a table of values, find a simple function that passes through the.

Slides:



Advertisements
Similar presentations
Arc-length computation and arc-length parameterization
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.
Interpolation A method of constructing a function that crosses through a discrete set of known data points. .
Chapter 3. Interpolation and Extrapolation Hui Pan, Yunfei Duan.
MATH 685/ CSI 700/ OR 682 Lecture Notes
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.
KFUPM SE301: Numerical Methods Topic 5: Interpolation Lectures 20-22:
Curve-Fitting Interpolation
Curve-Fitting 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 Lecture 24 Regression Analysis-Chapter 17.
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.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 21 CURVE FITTING Chapter 18 Function Interpolation and Approximation.
Derivative of an Inverse AB Free Response 3.
CpE- 310B Engineering Computation and Simulation Dr. Manal Al-Bzoor
Chapter 4 Numerical Differentiation and Integration 1/16 Given x 0, approximate f ’(x 0 ). h xfhxf xf h )()( lim)('    x0x0 x1x1 h x1x1 x0x0.
CSE 330 : Numerical Methods
Interpolation. Interpolation is important concept in numerical analysis. Quite often functions may not be available explicitly but only the values of.
Scientific Computing Linear and Quadratic Splines.
Simpson Rule For Integration.
Review of Interpolation. A method of constructing a function that crosses through a discrete set of known data points.
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.
Today’s class Spline Interpolation Quadratic Spline Cubic Spline Fourier Approximation Numerical Methods Lecture 21 Prof. Jinbo Bi CSE, UConn 1.
Polynomial Interpolation You will frequently have occasions to estimate intermediate values between precise data points. The function you use to interpolate.
Polynomials. Overview Definition – 1 or more terms, each term consisting of a constant multiplier and one or more variables raised to nonnegative integral.
1. Interpolating polynomials Polynomial of degree n,, is a linear combination of Definitions: (interval, continuous function, abscissas, and polynomial)
Newton’s Interpolation. Newton Interpolation Newton’s Interpolating polynomial for a set of data {( x 1, y 1 ),( x 2, y 2 ),( x 3, y 3 ),…,( x m,y m )}
Interpolation produces a function that matches the given data exactly. The function then can be utilized to approximate the data values at intermediate.
Chap. 11 Numerical Differentiation and Integration
CHAPTER 3 NUMERICAL METHODS
Chapter 3 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.
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.
Cubic Spline Interpolation. Cubic Splines attempt to solve the problem of the smoothness of a graph as well as reduce error. Polynomial interpolation.
Principles of Extrapolation
 3.3 Hermite Interpolation Chapter 3 Interpolation and Polynomial Approximation -- Hermite Interpolation Find the osculating polynomial P(x) such that.
MA2213 Lecture 2 Interpolation.
Fourier Approximation Related Matters Concerning Fourier Series.
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.
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.
Computational Methods CMSC/AMSC/MAPL 460 Polynomial Interpolation Ramani Duraiswami, Dept. of Computer Science.
CHAPTER 3 NUMERICAL METHODS
Curve-Fitting Spline Interpolation
1. 2 What is Integration? Integration The process of measuring the area under a curve. Where: f(x) is the integrand a= lower limit of integration b=
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.
Interpolation.
Chapter 18.
Spline Interpolation Class XVII.
POLYNOMIAL INTERPOLATION
Numerical Analysis Lecture 26.
INTERPOLASI.
MATH 174: Numerical Analysis I
Numerical Computation and Optimization
Numerical Computation and Optimization
Presentation transcript:

By: Mark Coose Joetta Swift Micah Weiss

What Problems Can Interpolation Solve? Given a table of values, find a simple function that passes through the given points exactly Given a table of experimental data, find a formula that approximates the data and possibly filters out errors Given an arbitrary function f, find an approximation in the form of a simpler function g

How Do We Find An Interpolating Polynomial? Lagrange form Newton’s form Cubic Splines

Lagrange Form of the Interpolating Polynomial A linear combination of n+1 polynomials Each term is a polynomial of degree n

Consider the Table Begin by finding n+1=3 cardinal functions l i (x) Or, X1/3¼1 f(x)27

X1/3¼1 f(x)27

Use these values for l i (x) to find the interpolating polynomial of degree 2 X1/3¼1 f(x)27

Disadvantages of Lagrange Form Each cardinal polynomial term is degree n To add one point we must recalculate each cardinal function from scratch

Newton Form of Interpolating Polynomial Data points can be added without recalculating existing sequence Pn(x i )=f(x i ) for i=0,1,…,n The polynomial p n is of deg ≤ n P n (x) = a 0 + a 1 (x-x 0 ) + a 2 (x-x 0 )(x-x 1 ) + … + a n (x – x n-1 )

Finding Coefficients using divided differences XF[] x0x0 f[x 0 ] x1x1 f[x 1 ] x2x2 f[x 2 ] x3x3 f[x 3 ] F[, ]F[,, ] f[x 0,x 1 ] f[x 1,x 2 ] f[x 2,x 3 ] f[x 0,x 1,x 2 ] f[x 1,x 2,x 3,] f[x 0,x 1,x 2,x 3 ]

Our Example Revisited XF[x]F[, ]F [,, ] 1/3 1/ /3 -38

Adding a Point Xf[ ]f[, ]f[,, ]F[,,, ] 1/32 1/ / /21 -88/35 The beauty of Newton’s form of the interpolating polynomial is that it allows us to add points and extend the polynomial without redoing previous calculations. The additional point only requires us to calculate the three values shown in red.

Disadvantages of Polynomial Interpolation The function can oscillate wildly Each polynomial can be of degree n (computationally expensive for large n = number of points).

Splines Definition: A function is called a spline of degree k if The domain of S is an interval[a,b] There are points t i such that a=t 0 <t 1 <…<t n =b and S is a polynomial of degree at most k on each subinterval [t i, t i+1 ] S, S’, S’’,…,S (k-1) are all continuous functions on [a,b]

Splines Linear,Quadratic Splines Cubic Splines Cubic Splines are almost always used over polynomial interpolation because of its increased accuracy (smaller error) and the final curve is smoother than polynomial interpolation

Linear Spline vs. Cubic Spline

Cubic Spline Smoothness Property If S is the natural cubic spline function that interpolates a twice-continuous differentiable function f at knots a=t 0 <t 1 <…<t n =b, then

What Does This Mean? A function with large second derivatives is subject to wild oscillations. The Smoothness Property ensures that the spline S oscillates less than the function that it interpolates. An example is shown, here.

Proof of Smoothness Property Let g(x)=f(x)-s(x) Then, f”(x)=g”(x)+s”(x) And,

Apply integration by parts Let u=s’’(x) and dv=g’’(x) Then, Since, this is a natural cubic spline, s’’=0, so the first term is equal to zero. Which leaves

Integration by Parts cont. [break this up into sub integrals] = (s’’’ is a constant within this integral) = [g(t(i) + 1) – g(t(i))] = 0 because g(t(i) + 1) = g(t(i)) = 0

So, But, So,