Curve Fitting and Interpolation: Lecture (II)

Slides:



Advertisements
Similar presentations
Numerical Methods.  Polynomial interpolation involves finding a polynomial of order n that passes through the n+1 points.  Several methods to obtain.
Advertisements

Chapter 18 Interpolation The Islamic University of Gaza
1 Curve-Fitting Spline Interpolation. 2 Curve Fitting Regression Linear Regression Polynomial Regression Multiple Linear Regression Non-linear Regression.
Warm up 1. Solve. 2. Solve. m m + 30 = 0 x = 0.
Numerical Integration Lecture (II)1
KFUPM SE301: Numerical Methods Topic 5: Interpolation Lectures 20-22:
Dr. Jie Zou PHY Chapter 2 Solution of Nonlinear Equations: Lecture (III)
Curve-Fitting Interpolation
Curve Fitting and Interpolation: Lecture (IV)
Interpolation Used to estimate values between data points difference from regression - goes through data points no error in data points.
Polynomial Interpolation
Dr. Jie Zou PHY Chapter 9 Ordinary Differential Equations: Initial-Value Problems Lecture (II) 1 1 Besides the main textbook, also see Ref.: “Applied.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 22 CURVE FITTING Chapter 18 Function Interpolation and Approximation.
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.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 24 Regression Analysis-Chapter 17.
Numerical Integration Lecture (I)1
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW II.
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.
Dr. Jie Zou PHY Chapter 7 Numerical Differentiation: 1 Lecture (I) 1 Ref: “Applied Numerical Methods with MATLAB for Engineers and Scientists”, Steven.
Chapter 6 Numerical Interpolation
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 21 CURVE FITTING Chapter 18 Function Interpolation and Approximation.
Numerical Differentiation:1* Lecture (II)
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 171 Least.
7.1 – Completing the Square
Numerical Integration Formulas
Chapter 4 Roots of Polynomials.
CpE- 310B Engineering Computation and Simulation Dr. Manal Al-Bzoor
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.
Curve Fitting and Interpolation: Lecture (I)
Consider the following: Now, use the reciprocal function and tangent line to get an approximation. Lecture 31 – Approximating Functions
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Applied Numerical Methods With MATLAB ® for Engineers.
Part 4 Chapter 17 Polynomial Interpolation PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill.
Polynomial Interpolation You will frequently have occasions to estimate intermediate values between precise data points. The function you use to interpolate.
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
Chapter 8 Curve Fitting.
Chapter 14 Curve Fitting : Polynomial Interpolation Gab Byung Chae.
CHAPTER 3 NUMERICAL METHODS
Chapter 3 Interpolation
Numerical Integration
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.
Lecture 16 - Approximation Methods CVEN 302 July 15, 2002.
Dr. Jie Zou PHY Chapter 2 Solution of Nonlinear Equations: Lecture (II)
MECN 3500 Inter - Bayamon Lecture 6 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
5. Interpolation 5.1 Definition of interpolation. 5.2 Formulas for Interpolation. 5.3 Formulas for Interpolation for unequal interval. 5.4 Applications.
Section 3.9 Linear Approximation and the Derivative.
Math 495B Polynomial Interpolation Special case of a step function. Frederic Gibou.
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.
NUMERICAL DIFFERENTIATION Forward Difference Formula
High Accuracy Differentiation Formulas
Polynomial Interpolation
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 Estimation of intermediate values between precise data points. The most common method is: Although there is one and only one nth-order.
Chapter 18.
Numerical Integration Formulas
Chapter 18.
Chapter 12 Curve Fitting : Fitting a Straight Line Gab-Byung Chae
Chapter 23.
Today’s class Multiple Variable Linear Regression
MATH 2140 Numerical Methods
POLYNOMIAL INTERPOLATION
Numerical Computation and Optimization
MATH 174: NUMERICAL ANALYSIS I
Theory of Approximation: Interpolation
Presentation transcript:

Curve Fitting and Interpolation: Lecture (II) Chapter 5 Curve Fitting and Interpolation: Lecture (II) Dr. Jie Zou PHY 3320

Outline Interpolation: (2) Newton’s Divided-Difference Interpolating Polynomials Linear Interpolation (1st-order polynomial) Quadratic Interpolation (2nd-order polynomial) Nth-order polynomial interpolation (Lecture (III)) Dr. Jie Zou PHY 3320

Newton’s linear interpolation Case: Two data points are available - {x0, f(x0)} and {x1, f(x1)}. Note: f(x)=the actual function Task: Determine the formula for the linear interpolating function f1(x). Note: f1(x) = the (approximating) interpolation polynomial; “1” indicates the order of the polynomial. Dr. Jie Zou PHY 3320

Linear interpolation formula: Derivation Consider the similar triangles ADE and ABC: DE/AE=BC/AC, or Solving for f1(x) gives the Linear interpolation formula: Note: a1 represents the finite-divided-difference approximation of the first derivative, df(x)/d(x) or f’(x). Dr. Jie Zou PHY 3320

Example 5.6 Develop a linear interpolation formula for the function e0.5x using the values at x0 = 0 and x1 = 2, and use it to estimate the value of e0.5x at x = 1. Also, find the percent error in the interpolation. Dr. Jie Zou PHY 3320

Newton’s quadratic interpolation Case: Three data points are available - {x0, f(x0)}, {x1, f(x1)}, and {x2, f(x2)}. Note: f(x)=the actual function Task: Determine the formula for the quadratic interpolating function, f2(x). Note: f2(x) = the (approximating) interpolation polynomial; “2” indicates the order of the polynomial. Dr. Jie Zou PHY 3320

Quadratic interpolation formula: Derivation Assume the quadratic interpolation formula of the form: f2(x) = a0 + a1(x–x0) + a2(x–x0)(x-x1) Determine the coefficients a0, a1, and a2 using the data points: Since f2(x0)= f(x0) = a0, a0 = f (x0) Since f2(x1) = f(x1)= a0 + a1(x1 - x0), Since f2(x2) = f(x2) = a0 + a1(x2 - x0) + a2(x2 - x0)(x2 - x1), Finite-divided-difference approx. of f’’(x).

Example 5.7 Develop a quadratic interpolation formula for the function e0.5x using the values at x0, x1 = 2, and x2 = 4 and use it to estimate the value of e0.5x at x = 1. Also, check the percent error in the interpolation. Compare with the linear interpolation in Example 5.6. Dr. Jie Zou PHY 3320

Comparison Quadratic (2nd-order) interpolation Linear (1st-order) interpolation Note: The error usually decreases with an increase in the order of the polynomial, n. Dr. Jie Zou PHY 3320