MA2213 Lecture 2 Interpolation.

Slides:



Advertisements
Similar presentations
Splines and Piecewise Interpolation
Advertisements

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.
Polynomial Approximation PSCI 702 October 05, 2005.
Polynomial Functions and Models Lesson 4.2. Review General polynomial formula a 0, a 1, …,a n are constant coefficients n is the degree of the polynomial.
Mathematics1 Mathematics 1 Applied Informatics Štefan BEREŽNÝ.
CSE 330: Numerical Methods
CE33500 – Computational Methods in Civil Engineering Differentiation Provided by : Shahab Afshari
Spline Functions – An Elegant View of Interpolation Bruce Cohen David Sklar
Data mining and statistical learning - lecture 6
MATH 685/ CSI 700/ OR 682 Lecture Notes
Basis Expansion and Regularization Presenter: Hongliang Fei Brian Quanz Brian Quanz Date: July 03, 2008.
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
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 Interpolation
Curve-Fitting Polynomial Interpolation
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.
NUMERICAL METHODS WITH C++ PROGRAMMING
CISE301_Topic7KFUPM1 SE301: Numerical Methods Topic 7 Numerical Integration Lecture KFUPM Read Chapter 21, Section 1 Read Chapter 22, Sections 2-3.
Polynomials. 2 Content Evaluation Root finding Root Bracketing Interpolation Resultant.
CpE- 310B Engineering Computation and Simulation Dr. Manal Al-Bzoor
Applied Discrete Mathematics Week 9: Relations
MA2213 Lecture 1 Rootfinding. Class Schedule Lectures: Tuesday 2-4 in LT31 (building S16) Groups:Class will be divided into 5 groups Each group (of about.
MA2213 Lecture 4 Numerical Integration. Introduction Definition is the limit of Riemann sums I(f)
Scientific Computing Linear and Quadratic Splines.
Curve Fitting and Interpolation: Lecture (I)
Lecture 3 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.
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)
Introduction to Numerical Analysis I MATH/CMPSC 455 Interpolation.
Lesson 2.5, page 312 Zeros of Polynomial Functions Objective: To find a polynomial with specified zeros, rational zeros, and other zeros, and to use Descartes’
Chapter 3 Roots of Equations. Objectives Understanding what roots problems are and where they occur in engineering and science Knowing how to determine.
Numerical Methods for Engineering MECN 3500
Numerical Methods.
CHAPTER 3 NUMERICAL METHODS
Lecture 22 Numerical Analysis. Chapter 5 Interpolation.
Chapter 3 Interpolation
Computers in Civil Engineering 53:081 Spring 2003 Lecture #15 Spline Interpolation.
Example Ex. Find Sol. So. Example Ex. Find (1) (2) (3) Sol. (1) (2) (3)
KFUPM SE301: Numerical Methods Topic 5: Interpolation Lectures 20-22:
MECN 3500 Inter - Bayamon Lecture 6 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Jump to first page Chapter 3 Splines Definition (3.1) : Given a function f defined on [a, b] and a set of numbers, a = x 0 < x 1 < x 2 < ……. < x n = b,
Numerical Methods Solution of Equation.
Introduction to Numerical Analysis I MATH/CMPSC 455 Splines.
 3.3 Hermite Interpolation Chapter 3 Interpolation and Polynomial Approximation -- Hermite Interpolation Find the osculating polynomial P(x) such that.
Specialist Mathematics Polynomials Week 3. Graphs of Cubic Polynomials.
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.
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.
Announcements Topics: -sections 7.3 (definite integrals), 7.4 (FTC), and 7.5 (additional techniques of integration) * Read these sections and study solved.
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.
NUMERICAL ANALYSIS I. Introduction Numerical analysis is concerned with the process by which mathematical problems are solved by the operations.
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
Numerical Analysis Lecture 25.
Numerical Analysis Lecture 7.
Spline Interpolation Class XVII.
Apply the Fundamental Theorem of Algebra
Numerical Analysis Lecture 26.
Numerical Computation and Optimization
5.3 Higher-Order Taylor Methods
Half Test Review! Day 6.
Fixed- Point Iteration
Theory of Approximation: Interpolation
Presentation transcript:

MA2213 Lecture 2 Interpolation

Introduction Problem : Find / evaluate a function P whose values are specified on some set S The specified values may arise from measurements of a physical function f (ground height, air velocity-pressure-temperature) values of a mathematical function f (cos, log, exp, solution of a differential equation)

An Efficient Spline Basis For Multi-dimensional Applications ... Medicine, Entertainement, Earth Sciences Computer Aided Design and Manufacturing Image Processing, Computer Graphics and Vision Applications of interpolation and area display in EEG. Applications of interpolation and area display in EEG. McGee FE Jr, Lee RG, Harris JA, Melby G, Bickford RG.MeSH Terms Automatic Data Processing* ... An Efficient Spline Basis For Multi-dimensional Applications ... File Format: PDF/Adobe Acrobat In many applications, bilinear interpolation is. used instead of cubic splines because of its simplicity in. implementation. When HDTV is realized, ... http://der.topo.auth.gr/DERMANIS/PDFs/Erice.pdf http://en.wikipedia.org/wiki/Linear_interpolation#Applications http://skagit.meas.ncsu.edu/~helena/gmslab/viz/sinter.html

One Dimensional Case Given a sequence of numbers called nodes, and for each a second number we are looking for a function P so that A pair is called a data point and P is called an interpolant for the data points.

Example Suppose we have a table like this, which gives some values of an unknown function f. 0 0 1 0.8415 2 0.9093 3 0.1411 4 −0.7568 5 −0.9589 6 −0.2794 Plot of the data points as given in the table What value does the function have at, say, x = 2.5? Interpolation answers questions like this.

Choosing a Method Linear Interpolation Polynomial Interpolation There are many different interpolation methods, including linear and polynomial. Some of the concerns to take into account when choosing an appropriate method are: How accurate is the method? How expensive is it? How smooth is the interpolant? How many data points are needed?

Linear Interpolation Formula for the linear interpolant on each of n-1 intervals Remark If n > 2 then the interpolant is not a linear function, however, it is a piecewise linear function

Linear Interpolation Error Definition The max error on the interval is Graph of Remark The error is clearly depends on f(x), not only of the interpolation points. Question Where does the max error occur ?

Linear Interpolation Error The max error occurs at where If has 2 continuous derivatives on then where is the deg 1 TP

Linear Interpolation Basis Functions

Linear Interpolation Basis Functions Question Why is piecewise linear ?

Polynomial Interpolation If then and where  unique solution

Lagrange Basis Functions Question What is degree ?

Polynomial Interpolation Error Theorem 5.3 (page 121) If f has n continuous derivatives on [a,b] and and is the unique polynomial of degree that satisfies and then Corollary

Polynomial Interpolation Error Example sin(.32)=.314567 , sin(.34)=.333487 , sin(.36) = .352274 , compute sin(.3367) Solution Using piecewise linear interpolation

Polynomial Interpolation Error Example sin(.32)=.314567 , sin(.34)=.333487 , sin(.36) = .352274 , compute sin(.3367) Solution using quadratic interploation

Divided Differences Theorem If and is continuous then

Divided Differences Properties Invariance under permutation If is continuous then Definition If is continuous then we define

Divided Differences Computation For Question: How smooth must f be at repeated values of x ?

Newton’s Interpolation Formula denote the unique polynomial Let of degree < n that interpolates a function f at points This means that Then Question How can the interpolant be computed recursively ‘point by point’ ?

Natural Cubic Splines Problem Given such that find a function and that minimizes among all functions that satisfy the interpolatory constraint. Solution Unique function s described on pp.131-134 of Atkinson. Its restriction to each interval is a cubic polynomial determined by and parameters satisfying linear eqns.

Natural Cubic Splines and where Splines – are serious business !

Homework Due at End of Lab 1 Question 1. Write and use a MATLAB program to solve problem 1. a. on page 77 using the bisection method. Make a plot of the errors as a function of the number of iterations. Question 2. Write and use a MATLAB program to find the real root of the polynomial (in the previous question) using Newton’s method. Make a plot of the errors as a function of the number of iterations. Suggested Reading: pages 117-159 Appendix B. Mathematical Formulas