Newton's forward interpolation formula

Similar documents
Curve Fitting. Objectives

UNIT-II INTERPOLATION & APPROXIMATION

Numerical Analysis Solution of Algebraic Equation (non-linear equation) 1- Trial and Error. 2- Fixed point

Engineering Mathematics through Applications

Engg. Math. II (Unit-IV) Numerical Analysis

BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination December, 2015 BCS-054 : COMPUTER ORIENTED NUMERICAL TECHNIQUES

Interpolation Theory

1 Lecture 8: Interpolating polynomials.

Interpolation and Approximation

Numerical Methods. King Saud University

BSM510 Numerical Analysis

Math 651 Introduction to Numerical Analysis I Fall SOLUTIONS: Homework Set 1

Exam 2. Average: 85.6 Median: 87.0 Maximum: Minimum: 55.0 Standard Deviation: Numerical Methods Fall 2011 Lecture 20

1 Motivation for Newton interpolation

Numerical Methods and Computation Prof. S.R.K. Iyengar Department of Mathematics Indian Institute of Technology Delhi

FINITE DIFFERENCES. Lecture 1: (a) Operators (b) Forward Differences and their calculations. (c) Backward Differences and their calculations.

Additional exercises with Numerieke Analyse

Solution of Algebric & Transcendental Equations

Quartic Equation. By CH vd Westhuizen A unique Solution assuming Complex roots. Ax^4 + Bx^3 + Cx^2 + Dx + E = 0

Interpolation. P. Sam Johnson. January 30, P. Sam Johnson (NITK) Interpolation January 30, / 75

Then, Lagrange s interpolation formula is. 2. What is the Lagrange s interpolation formula to find, if three sets of values. are given.

Backward divided difference: Representation of numerical data by a polynomial curve

Preliminary Examination in Numerical Analysis

5.1 Polynomial Functions

M.SC. PHYSICS - II YEAR

Department of Applied Mathematics and Theoretical Physics. AMA 204 Numerical analysis. Exam Winter 2004

Module 5 : Linear and Quadratic Approximations, Error Estimates, Taylor's Theorem, Newton and Picard Methods

Computational Methods. Solving Equations

Numerical Analysis: Interpolation Part 1

Q 0 x if x 0 x x 1. S 1 x if x 1 x x 2. i 0,1,...,n 1, and L x L n 1 x if x n 1 x x n

Curve Fitting and Interpolation

Unit 1 Vocabulary. A function that contains 1 or more or terms. The variables may be to any non-negative power.

Higher-Degree Polynomial Functions. Polynomials. Polynomials

Introduction Linear system Nonlinear equation Interpolation

MA6452 STATISTICS AND NUMERICAL METHODS UNIT IV NUMERICAL DIFFERENTIATION AND INTEGRATION

Taylor Series and Numerical Approximations

Power Series Solutions to the Legendre Equation

Neville s Method. MATH 375 Numerical Analysis. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan Neville s Method

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

1 Solutions to selected problems

Hermite Interpolation

Interpolation. s(s 1)(s 2) Δ 3 f ! s(s 1) Δ 2 f 0 + 2! f(x s )=f 0 + sδf 0 +

Chapter 5: Numerical Integration and Differentiation

Differentiation of Discrete Functions

Lecture 10 Polynomial interpolation

Math Numerical Analysis Mid-Term Test Solutions

Hence a root lies between 1 and 2. Since f a is negative and f(x 0 ) is positive The root lies between a and x 0 i.e. 1 and 1.

Cubic Splines MATH 375. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan Cubic Splines

Section 9.7 and 9.10: Taylor Polynomials and Approximations/Taylor and Maclaurin Series

Solutions 2. January 23, x x

Lesson 5: The Graph of the Equation y = f(x)

Fall 2014 MAT 375 Numerical Methods. Numerical Differentiation (Chapter 9)

Two hours. To be provided by Examinations Office: Mathematical Formula Tables. THE UNIVERSITY OF MANCHESTER. 29 May :45 11:45

Analysis Methods in Atmospheric and Oceanic Science

Math 578: Assignment 2

Skills Practice Skills Practice for Lesson 10.1

Mathematical Focus 1 Complex numbers adhere to certain arithmetic properties for which they and their complex conjugates are defined.

Numerical Methods. Lecture Notes #08 Discrete Least Square Approximation

A.APR.B.3: Find Zeros of Polynomials B. Understand the relationship between zeros and factors of polynomials.

Quadratic Model To Solve Equations Of Degree n In One Variable

GATE EC Previous Year Solved Paper

Chapter 2 notes from powerpoints

Applied Numerical Analysis Quiz #2

( ) ( ) ( ) ( )( ) A.SSE.A.2: Factor Polynomials. Factoring Monomials:

USHA RAMA COLLEGE OF ENGINEERING & TECHNOLOGY

Newton s Method and Linear Approximations

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF MATHEMATICS ACADEMIC YEAR / EVEN SEMESTER QUESTION BANK

Chapter 3: Root Finding. September 26, 2005

Chapter 3 Interpolation and Polynomial Approximation

Math 110 Midterm 1 Study Guide October 14, 2013

Math 221 Notes on Rolle s Theorem, The Mean Value Theorem, l Hôpital s rule, and the Taylor-Maclaurin formula. 1. Two theorems

SBAME CALCULUS OF FINITE DIFFERENCES AND NUMERICAL ANLAYSIS-I Units : I-V

AP Calculus Testbank (Chapter 9) (Mr. Surowski)

GAUSS-LAGUERRE AND GAUSS-HERMITE QUADRATURE ON 64, 96 AND 128 NODES

Applied Numerical Analysis Homework #3

STATE COUNCIL OF EDUCATIONAL RESEARCH AND TRAINING TNCF DRAFT SYLLABUS

Chapter 8. Numerical Solution of Ordinary Differential Equations. Module No. 2. Predictor-Corrector Methods

Lecture Note 3: Interpolation and Polynomial Approximation. Xiaoqun Zhang Shanghai Jiao Tong University

Q1. Discuss, compare and contrast various curve fitting and interpolation methods

Interpolating Accuracy without underlying f (x)

Lectures 9-10: Polynomial and piecewise polynomial interpolation

Numerical Methods School of Mechanical Engineering Chung-Ang University

Notation Nodes are data points at which functional values are available or at which you wish to compute functional values At the nodes fx i

CS 323: Numerical Analysis and Computing

A first order divided difference

Newton s Method and Linear Approximations

ON PERFECT SUBFIELDS OVER WHICH A FIELD IS SEPARABLY GENERATED

Section 5.3, Exercise 22

HANDOUT ABOUT THE TABLE OF SIGNS METHOD. The method To find the sign of a rational (including polynomial) function

DIFFERENTIAL EQUATIONS

JUST THE MATHS UNIT NUMBER DIFFERENTIATION APPLICATIONS 5 (Maclaurin s and Taylor s series) A.J.Hobson

Measures, orthogonal polynomials, and continued fractions. Michael Anshelevich

Numerical Methods. Roots of Equations

F I F T H E D I T I O N. Introductory Methods of Numerical Analysis. S.S. Sastry

(0, 0), (1, ), (2, ), (3, ), (4, ), (5, ), (6, ).

Approximation, Taylor Polynomials, and Derivatives

X. Numerical Methods

1 Solutions to selected problems

Newton s Method and Linear Approximations 10/19/2011

SKMM 3023 Applied Numerical Methods

Transcription:

Newton's Interpolation Formulae Interpolation is the process of approximating a given function, whose values are known at N + 1 tabular points, by a suitable polynomial, P N (x) of degree N which takes the values y k at x = x k for k = 0, 1, 2,, N. Note that if the given data has errors, it will also be reflected in the polynomial so obtained. In the following, we shall use forward and backward differences to obtain polynomial function approximating y = f(x) when the tabular points x k 's are equally spaced. That is x k x k 1 = h. Newton's forward interpolation formula Let where the polynomial P N (x)is given in the following form: f(x) = P N (x) P N (x) = a 0 + a 1 (x x 0 ) + a 2 (x x 0 )(x x 1 ) + + a k (x x 0 ) (x x k 1 ) + + a N (x x 0 ) (x x N 1 ).. (1) for some constants a 0, a 1,, a N to be determined using the fact that P N (x k ) = y k for k = 0, 1, 2,, N So, for k = 0 substitute x = x 0 in (1) to get P N (x 0 ) = y 0 This gives us a 0 = y 0. Next, for k = 1 substitute x = x 1 in (1), P N (x 1 ) = y 1

Thus y 1 = a 0 + a 1 (x 1 x 0 ) = y 0 + a 1 h Next, for k = 2 substitute x = x 2 in (1), a 1 = y 1 y 0 h = y 0 h P N (x 2 ) = y 2 y 2 = a 0 + a 1 (x 2 x 0 ) + a 2 (x 2 x 0 )(x 2 x 1 ) = y 0 + 2a 1 h + a 2 (2h)(h) 2h 2 a 2 = y 2 y 0 2a 1 h = y 2 y 0 2h ( y 0 h ) = y 2 y 0 2 y 0 = y 2 y 0 2(y 1 y 0 ) = y 2 2y 1 + y 0 a 2 = y 2 2y 1 + y 0 2h 2 = 2 y 0 2h 2 a 2 = 2 y 0 2h 2 Now, using mathematical induction, we get

a k = k y 0 k! h k Thus, P N (x) = a 0 + a 1 (x x 0 ) + a 2 (x x 0 )(x x 1 ) + + a k (x x 0 ) (x x k 1 ) + + a N (x x 0 ) (x x N 1 ) P N (x) = y 0 + y 0 h (x x 0) + 2 y 0 2h 2 (x x 0)(x x 1 ) + + k y 0 k! h k (x x 0) (x x k 1 ) + + N y 0 N! h N (x x 0) (x x N 1 ).. (2) As this uses the forward differences, it is called NEWTON'S FORWARD DIFFERENCE FORMULA for interpolation, or simply, forward interpolation formula. For calculation purpose, we simplify the formula (2) as done below. Now if we define Then So x p x 0 h = p x p x 0 = ph (x p x 0 )(x p x 1 ) = (x p x 0 )(x p x 0 h) = (ph)(ph h) = h 2 p(p 1)

And (x p x 0 )(x p x 1 ) h 2 = p(p 1) (x p x 0 )(x p x 1 ) (x p x k 1 ) h k = p(p 1) (p k + 1) Thus the NEWTON'S FORWARD DIFFERENCE FORMULA for interpolation formula (2) becomes P N (x p ) = y 0 + p y 0 + 2 y 0 2! + N y 0 N! p(p 1) + + k y 0 k! p(p 1) (p N + 1).. (3) p(p 1) (p k + 1) + EXERCISE Show that and in general, and If N=1, we have a linear interpolation given by f(x p ) = f(x 0 ) + p f(x 0 )

For N=2, we get a quadratic interpolating polynomial: and so on. f(x p ) = f(x 0 ) + p f(x 0 ) + 2 f(x 0 ) p(p 1) 2! It may be pointed out here that if f(x) is a polynomial function of degree then P N (x) coincides with f(x) on the given interval. Otherwise, this gives only an approximation to the true values of f(x).i f we are given additional point x N+1 also, then the error, denoted by is estimated by R N (x) = P N (x) f(x) Newton's backward interpolation formula Similarly, if we assume, P N (x) is of the form then using the fact that P N (x i ) = y i, we have b 0 = y N, b 1 = 1 h y N, b 2 = 1 2! h 2 2 y N, b k = 1 k! h k k y N

Thus, using backward differences and the transformation x p = x N + ph, that is p = x p x N backward interpolation formula as follows: h we obtain the Newton's P N (x p ) = y N + p y N + 2 y N 2! + N y N N! p(p + 1) + + k y N k! p(p + 1) (p + N 1).. (4) p(p + 1) (p + k 1) +

Example 1: Using Newton s forward interpolation formula find the value of y at x=8 from the following table. X 0 5 10 15 20 25 Y 7 11 14 18 24 32 Ans. Here, x0 h xp 0 5 8 Using Newton s forward interpolation formula x p x 0 h = p = 1.6 P N (x p ) = y 0 + p y 0 + 2 y 0 2! + N y 0 N! p(p 1) + + k y 0 k! p(p 1) (p N + 1).. (3) p(p 1) (p k + 1) +

Here N = 5, so till fifth order difference we calculate in the following difference table 2 nd 3 rd n x y First y 2 y 3 y 4 th 4 y 5 th 4 y x0 h xp 0 0 7 0 5 8 4 p= (xp-x0)/h 1 5 11-1 p= 1.6 [p] 1.6 3 2 p-1 0.6 [p]^2 0.96 2 10 14 1-1 p-2-0.4 [p]^3-0.38 4 1 0 p-3-1.4 [p]^4 0.538 3 15 18 2-1 p-4-2.4 [p]^5-1.29 6 0 4 20 24 2 8 f(xp)= 7+6.4-0.48-0.13-0.02+0 5 25 32 Ans.= 12.77

Example 2: The following table gives corresponding values of x and y. Prepare a forward difference table and express y as a function of x. Also obtain y when x=2.5. X 0 1 2 3 4 Y 7 10 13 22 43 Ans. First we we form the forward difference table n x y first 2nd 3rd 4th 0 0 7 4 1 1 11-1 3 2 2 2 14 1-1 4 1 3 3 18 2 6 4 4 24 Using the difference table, we can write the Newton forward interpolation polynomial as follows

P N (x) = y 0 + y 0 h (x x 0) + 2 y 0 2h 2 (x x 0)(x x 1 ) + 3 y 0 k! h k (x x 0)(x x 1 )(x x 2 ) + 4 y 0 4! h 4 (x x 0)(x x 1 )(x x 2 )(x x 3 ).. (2) = 7 + 4(x 0) + 1 2 (x 0)(x 1) + 2 6 Now putting x = 2. 5, we get = 15. 789 (ANS). 1 (x 0)(x 1)(x 2) + (x 0)(x 1)(x 2)(x 3) 24 P N (2.5) = 7 + 4(2.5 0) + 1 2 (2.5 0)(2.5 1) + 2 (2.5 0)(2.5 1)(2.5 2) 6 + 1 (2.5 0)(2.5 1)(2.5 2)(2.5 3) 24 Instead of the polynomial if simply f(2. 5) is asked then we could solve as the following. Here, x0 h xp 0 1 2.5 Using Newton s forward interpolation formula x p x 0 h = p = 2.5

P N (x p ) = y 0 + p y 0 + 2 y 0 2! + N y 0 N! p(p 1) + + k y 0 k! p(p 1) (p N + 1).. (3) p(p 1) (p k + 1) + Here N = 4, so till fourth order difference we calculate in the following difference table n x y 0 0 7 First y 4 2 nd 2 y 1 1 11-1 3 rd 3 y 3 2 4 th 4 y 2 2 14 1-1 4 1 3 3 18 2 4 4 24 6 x0 h xp 0 1 2.5 p= (xp-x0)/h p= 2.5 [p] 2.5 p-1 1.5 [p]^2 3.75 p-2 0.5 [p]^3 1.875 p-3-0.5 [p]^4-0.94 f(xp)=7+10-1.88+0.625+0.039 Ans.= 15.78906

Example 3: Find the value of an annuity at 5 3 %, given the following table 8 x 4 4.5 5 5.5 6 y 17.29203 16.28889 15.37245 14.53375 13.76483 Here we have used Newton Forward interpolation to get First y 2 nd 2 y 3 rd n x y 3 y 4 y x0 h xp 0 4 17.29203 4 0.5 5.375-1.00314 p= (xp-x0)/h 4 th 1 2 3 4 4.5 16.28889 0.0867 p= 2.75 [p] 2.75-0.91644-0.00896 p-1 1.75 [p]^2 4.8125 5 15.37245 0.07774 0.001 p-2 0.75 [p]^3 3.609375-0.8387-0.00796 p-3-0.25 [p]^4-0.90234375 5.5 14.53375 0.06978-0.76892 f(xp)=17.29203-2.758635+0.209-0.01 6 13.76483 Ans.= 14.73659

Example 4. Using Newton Backward Interpolation find the population in thousands in the year 1925, given the data for 5 censuses starting from 1891 till 1931. X 1891 1901 1911 1921 1931 F(x) 46 66 81 93 101 Ans. Here, 1925 is near 1931 so we use backward interpolation. xn h xp 1931 10 1925 x p x N h = p Using Newton s backward interpolation formula P N (x p ) = y N + p y N + 2 y N 2! p(p + 1) + + k y N k! 1925 1931 10 = 0.6 p(p + 1) (p + k 1) + + N y N N! p(p + 1) (p + N 1)

x f(x) first 2nd 3rd 4th xn h xp p 1891 46 1931 10 1925-0.6 20 1901 66-5 15 2 p= -0.6, -0.6 1911 81-3 -3 p+1= 0.4, -0.24 12-1 p+2= 1.4, -0.336 1921 93-4 p+3= 2.4, -0.8064 8 p+4= 3.4, -2.74176 1931 101 f(xp)= 101-4.8 0.48 0.056 0.1008 Ans= 96.8368