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

Similar documents
Interpolating Accuracy without underlying f (x)

Chapter 3 Interpolation and Polynomial Approximation

Accelerating Convergence

Computer Arithmetic. MATH 375 Numerical Analysis. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan Computer Arithmetic

Introduction Linear system Nonlinear equation Interpolation

3 Interpolation and Polynomial Approximation

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

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

3.1 Interpolation and the Lagrange Polynomial

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

Interpolation and the Lagrange Polynomial

Romberg Integration. MATH 375 Numerical Analysis. J. Robert Buchanan. Spring Department of Mathematics

Finite Elements. Colin Cotter. January 18, Colin Cotter FEM

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

Equations in Quadratic Form

Review of Power Series

Math 4310 Solutions to homework 7 Due 10/27/16

Interpolation and Approximation

Downloaded from

Elementary Matrices. MATH 322, Linear Algebra I. J. Robert Buchanan. Spring Department of Mathematics

Fixed-Point Iteration

Solving Quadratic Equations

(2) Dividing both sides of the equation in (1) by the divisor, 3, gives: =

Lagrange Interpolation and Neville s Algorithm. Ron Goldman Department of Computer Science Rice University

S56 (5.1) Polynomials.notebook August 25, 2016

CS 323: Numerical Analysis and Computing

Polynomial Interpolation Part II

NUMERICAL METHODS. x n+1 = 2x n x 2 n. In particular: which of them gives faster convergence, and why? [Work to four decimal places.

Lecture 10 Polynomial interpolation

Use the Rational Zero Theorem to list all the possible rational zeros of the following polynomials. (1-2) 4 3 2

Roots and Coefficients Polynomials Preliminary Maths Extension 1

Polynomial Interpolation with n + 1 nodes

Limit Theorems. MATH 464/506, Real Analysis. J. Robert Buchanan. Summer Department of Mathematics. J. Robert Buchanan Limit Theorems

Section 3.1: Characteristics of Polynomial Functions

( 3) ( ) ( ) ( ) ( ) ( )

Direct Proof Universal Statements

Symmetries and Polynomials

CSE373: Data Structures and Algorithms Lecture 3: Math Review; Algorithm Analysis. Catie Baker Spring 2015

Homework For each of the following matrices, find the minimal polynomial and determine whether the matrix is diagonalizable.

On the positivity of linear weights in WENO approximations. Abstract

Section 0.2 & 0.3 Worksheet. Types of Functions

MATH10001 Mathematical Workshop Graph Fitting Project part 2

LIMITS AT INFINITY MR. VELAZQUEZ AP CALCULUS

A first order divided difference

Section 19 Integral domains

INTERPOLATION. and y i = cos x i, i = 0, 1, 2 This gives us the three points. Now find a quadratic polynomial. p(x) = a 0 + a 1 x + a 2 x 2.

L1 2.1 Long Division of Polynomials and The Remainder Theorem Lesson MHF4U Jensen

Chapter 1 Numerical approximation of data : interpolation, least squares method

INTERPOLATION Background Polynomial Approximation Problem:

Mathematics for Engineers. Numerical mathematics

Chapter 2 notes from powerpoints

Chapter 2 Interpolation

Question 1: The graphs of y = p(x) are given in following figure, for some Polynomials p(x). Find the number of zeroes of p(x), in each case.

We consider the problem of finding a polynomial that interpolates a given set of values:

Linear Independence. MATH 322, Linear Algebra I. J. Robert Buchanan. Spring Department of Mathematics

ON A WEIGHTED INTERPOLATION OF FUNCTIONS WITH CIRCULAR MAJORANT

Short multipliers for the extended gcd problem

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

L1 2.1 Long Division of Polynomials and The Remainder Theorem Lesson MHF4U Jensen

Series Solutions Near a Regular Singular Point

Theorems About Roots of Polynomial Equations. Rational Root Theorem

Interpolation. Escuela de Ingeniería Informática de Oviedo. (Dpto. de Matemáticas-UniOvi) Numerical Computation Interpolation 1 / 34

Permutations and Polynomials Sarah Kitchen February 7, 2006

Math 1310 Section 4.1: Polynomial Functions and Their Graphs. A polynomial function is a function of the form ...

Unit 1: Polynomial Functions SuggestedTime:14 hours

Subtraction games. Chapter The Bachet game

The absolute value (modulus) of a number

Intermediate Math Circles March 11, 2009 Sequences and Series

Lecture 20: Lagrange Interpolation and Neville s Algorithm. for I will pass through thee, saith the LORD. Amos 5:17

Solving Systems of Linear and Quadratic Equations

Numerical Mathematics & Computing, 7 Ed. 4.1 Interpolation

Homework Set 5 Solutions

Diagonalization. MATH 322, Linear Algebra I. J. Robert Buchanan. Spring Department of Mathematics

Numerical Marine Hydrodynamics

MEMORIAL UNIVERSITY OF NEWFOUNDLAND

Solutions 2. January 23, x x

MHF4U Unit 2 Polynomial Equation and Inequalities

How can you factor the trinomial x 2 + bx + c into the product of two binomials? ACTIVITY: Finding Binomial Factors

8.5 Taylor Polynomials and Taylor Series

+ 1 3 x2 2x x3 + 3x 2 + 0x x x2 2x + 3 4

Chapter 4E - Combinations of Functions

Math123 Lecture 1. Dr. Robert C. Busby. Lecturer: Office: Korman 266 Phone :

Newton's forward interpolation formula

1 Lecture 8: Interpolating polynomials.

Limits and Continuity

Systems of Ordinary Differential Equations

Numerical Programming I (for CSE)

Taylor and Maclaurin Series

4 Unit Math Homework for Year 12

Chapter 4: Interpolation and Approximation. October 28, 2005

Power Series and Analytic Function

Numerical Analysis: Interpolation Part 1

Here each term has degree 2 (the sum of exponents is 2 for all summands). A quadratic form of three variables looks as

Review 1 Math 321: Linear Algebra Spring 2010

Roots & Zeros of Polynomials. How the roots, solutions, zeros, x-intercepts and factors of a polynomial function are related.

Midterm Review. Igor Yanovsky (Math 151A TA)

you expect to encounter difficulties when trying to solve A x = b? 4. A composite quadrature rule has error associated with it in the following form

Properties of Logarithms

EECS 275 Matrix Computation

Problems in Algebra. 2 4ac. 2a

Transcription:

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

Motivation We have learned how to approximate a function using Lagrange polynomials and how to estimate the error in such an approximation. Today we will learn how to interpolate between data values found in a table without knowing the function that generated the values. We will see that we can perform the interpolation without explicitly writing out the interpolating polynomial.

Interpolation from Data Suppose we had only the following table of data for f (x): x f (x) 10.1 0.17537 22.2 0.37784 32.0 0.52992 41.6 0.66393 50.5 0.63608 Approximate f (27.5) using polynomial interpolation.

Interpolation from Data Suppose we had only the following table of data for f (x): x f (x) 10.1 0.17537 22.2 0.37784 32.0 0.52992 41.6 0.66393 50.5 0.63608 Approximate f (27.5) using polynomial interpolation. Linear approximation: P 1 (27.5) = (27.5 32.0) 22.2) f (22.2)+(27.5 f (32.0) 0.46009 (22.2 32.0) (32.0 22.2)

Higher Order Approximations Quadratic approximation: (two choices) P 2 (27.5) = ˆP 2 (27.5) = (27.5 22.2)(27.5 32.0) (10.1 22.2)(10.1 32.0) f (10.1) (27.5 10.1)(27.5 32.0) + (22.2 10.1)(22.2 32.0) f (22.2) (27.5 10.1)(27.5 22.2) + f (32.0) 0.46141 (32.0 10.1)(32.0 22.2) (27.5 32.0)(27.5 41.6) (22.2 32.0)(22.2 41.6) f (22.2) (27.5 22.2)(27.5 41.6) + (32.0 22.2)(32.0 41.6) f (32.0) (27.5 22.2)(27.5 32.0) + f (41.6) 0.46200 (41.6 22.2)(41.6 32.0) There are also two potential cubic interpolating polynomials and a single quartic polynomial.

Remarks Without knowing f (x) we have no idea of the size of the errors in these approximations. The highest degree polynomial does not necessarily deliver the smallest error. Knowing the Lagrange Interpolating Polynomial of degree k does not help us find the one of degree k + 1.

Remarks Without knowing f (x) we have no idea of the size of the errors in these approximations. The highest degree polynomial does not necessarily deliver the smallest error. Knowing the Lagrange Interpolating Polynomial of degree k does not help us find the one of degree k + 1. There is a method for using previous calculations to derive higher order interpolations.

Lagrange Polynomials Definition If f is a function defined at x 0, x 1,..., x n distinct real numbers and m 1, m 2,..., m k are k distinct integers with 0 m i n, then the Lagrange polynomial that agrees with f at the k points x m1, x m2,..., x mk is denoted P m1,m 2,,m k.

Example (1 of 2) Let x 0 = 1, x 1 = 2, x 2 = 4, x 3 = 5, and x 4 = 7 and f (x) = J 0 (x) (Bessel function of the first kind of order zero). Determine P 1,3,4 (x).

Example (1 of 2) Let x 0 = 1, x 1 = 2, x 2 = 4, x 3 = 5, and x 4 = 7 and f (x) = J 0 (x) (Bessel function of the first kind of order zero). Determine P 1,3,4 (x). P 1,3,4 (x) = = (x 5)(x 7) (2 5)(2 7) J (x 2)(x 7) 0(2) + (5 2)(5 7) J 0(5) (x 2)(x 5) + (7 2)(7 5) J 0(7) [ 1 15 x 2 4 5 x + 7 ] [ J 0 (2) + 1 3 6 x 2 + 3 2 x + 7 ] J 0 (5) 3 [ 1 + 10 x 2 7 ] 10 x + 1 J 0 (7)

Example (2 of 2) Let x 0 = 1, x 1 = 2, x 2 = 4, x 3 = 5, and x 4 = 7 and f (x) = J 0 (x). Use P 1,3,4 (3) to approximate J 0 (3).

Example (2 of 2) Let x 0 = 1, x 1 = 2, x 2 = 4, x 3 = 5, and x 4 = 7 and f (x) = J 0 (x). Use P 1,3,4 (3) to approximate J 0 (3). P 1,3,4 (x) = (x 5)(x 7) (2 5)(2 7) J (x 2)(x 7) 0(2) + (5 2)(5 7) J 0(5) (x 2)(x 5) + (7 2)(7 5) J 0(7) P 1,3,4 (3) = 8 15 J 0(2) + 2 3 J 0(5) 1 5 J 0(7) 0.0590053

Example (2 of 2) Let x 0 = 1, x 1 = 2, x 2 = 4, x 3 = 5, and x 4 = 7 and f (x) = J 0 (x). Use P 1,3,4 (3) to approximate J 0 (3). P 1,3,4 (x) = (x 5)(x 7) (2 5)(2 7) J (x 2)(x 7) 0(2) + (5 2)(5 7) J 0(5) (x 2)(x 5) + (7 2)(7 5) J 0(7) P 1,3,4 (3) = 8 15 J 0(2) + 2 3 J 0(5) 1 5 J 0(7) 0.0590053 Actual value: J 0 (3) 0.260052

Theoretical Result Theorem Let f be defined at x 0, x 1,..., x k and x i and x j be two distinct real numbers in this set. Then the kth degree Lagrange polynomial that interpolates f at x 0, x 1,..., x k is P(x) = (x x j) (x i x j ) P 0,1,...,j 1,j+1,...,k(x) (x x i) (x i x j ) P 0,1,...,i 1,i+1,...,k(x).

Theoretical Result Theorem Let f be defined at x 0, x 1,..., x k and x i and x j be two distinct real numbers in this set. Then the kth degree Lagrange polynomial that interpolates f at x 0, x 1,..., x k is P(x) = (x x j) (x i x j ) P 0,1,...,j 1,j+1,...,k(x) (x x i) (x i x j ) P 0,1,...,i 1,i+1,...,k(x). This theorem allows us to build a Lagrange polynomial of degree k from two Lagrange polynomials each of degree k 1.

Proof Let Q(x) = P 0,1,...,j 1,j+1,...,k (x) and ˆQ(x) = P 0,1,...,i 1,i+1,...,k (x), then P(x) = (x x j)q(x) (x x i ) ˆQ(x). (x i x j )

Proof Let Q(x) = P 0,1,...,j 1,j+1,...,k (x) and ˆQ(x) = P 0,1,...,i 1,i+1,...,k (x), then P(x) = (x x j)q(x) (x x i ) ˆQ(x). (x i x j ) If x = x i, then P(x i ) = Q(x i ) = f (x i ). If x = x j, then P(x j ) = ˆQ(x j ) = f (x j ). If l {0, 1,..., k} with i l j then P(x l ) = (x l x j )Q(x l ) (x l x i ) ˆQ(x l ) (x i x j ) = (x l x j )f (x l ) (x l x i )f (x l ) = f (x l ). (x i x j )

Proof Let Q(x) = P 0,1,...,j 1,j+1,...,k (x) and ˆQ(x) = P 0,1,...,i 1,i+1,...,k (x), then P(x) = (x x j)q(x) (x x i ) ˆQ(x). (x i x j ) If x = x i, then P(x i ) = Q(x i ) = f (x i ). If x = x j, then P(x j ) = ˆQ(x j ) = f (x j ). If l {0, 1,..., k} with i l j then P(x l ) = (x l x j )Q(x l ) (x l x i ) ˆQ(x l ) (x i x j ) = (x l x j )f (x l ) (x l x i )f (x l ) = f (x l ). (x i x j ) Thus P(x) is a polynomial of degree at most k + 1 which interpolates f (x) at x i for i = 0, 1,..., k and thus P(x) = P 0,1,...,k (x).

Recursive Generation of Polynomials P 0,1 (x) = P 1,2 (x) = P 0,1,2 (x) =. 1 [(x x 0 )P 1 (x x 1 )P 0 ] x 1 x 0 1 [(x x 1 )P 2 (x x 2 )P 1 ] x 2 x 1 1 [ ] (x x0 )P 1,2 (x x 2 )P 0,1 x 2 x 0

Neville s Method Define polynomial Q i,j (x) = P i j,i j+1,...,i (x) where 0 j i. j represents the degree of the polynomial. i determines the consecutive values of x used. Q i,j (x) can be found recursively. Q i,j (x) = (x x i j)q i,j 1 (x) (x x i )Q i 1,j 1 (x) x i x i j

Tabular Calculation Given x 0, x 1,..., x n and f (x 0 ), f (x 1 ),... f (x n ) we can arrange the Lagrange interpolating polynomials in the following table. x 0 f (x 0 ) = P 0 = Q 0,0 x 1 f (x 1 ) = P 1 = Q 1,0 P 0,1 = Q 1,1 x 2 f (x 2 ) = P 2 = Q 2,0 P 1,2 = Q 2,1 P 0,1,2 = Q 2,2.... x n f (x n ) = P n = Q n,0 P n 1,n = Q n,1 P n 2,n 1,n = Q n,2 P 0,1,...,n = Q n,n

Example Approximate f (27.5) from the following data. x i f (x i ) 10.1 0.17537 22.2 0.37784 32.0 0.52992 41.6 0.66393 50.5 0.63608

Example Order points by increasing distance from x = 27.5. x i Q i,0 32.0 0.52992 22.2 0.37784 41.6 0.66393 10.1 0.17537 50.5 0.63608

Example x i Q i,0 Q i,1 32.0 0.52992 22.2 0.37784 0.46009 41.6 0.66393 0.45600 10.1 0.17537 0.44524 50.5 0.63608 0.37380 0.46009 = 0.45600 = 0.44524 = 0.37380 = (27.5 32.0)(0.37784) (27.5 22.2)(0.52992) 22.2 32.0 (27.5 22.2)(0.66393) (27.5 41.6)(0.37784) 41.6 22.2 (27.5 41.6)(0.17537) (27.5 10.1)(0.66393) 10.1 41.6 (27.5 10.1)(0.63608) (27.5 50.5)(0.17537) 50.5 10.1

Example x i Q i,0 Q i,1 Q i,2 32.0 0.52992 22.2 0.37784 0.46009 41.6 0.66393 0.45600 0.46200 10.1 0.17537 0.44524 0.46071 50.5 0.63608 0.37380 0.55843 0.46200 = 0.46071 = 0.55843 = (27.5 32.0)(0.45600) (27.5 41.6)(0.46009) 41.6 32.0 (27.5 22.2)(0.44524) (27.5 10.1)(0.45600) 10.1 22.2 (27.5 41.6)(0.37380) (27.5 50.5)(0.44524) 50.5 41.6

Example x i Q i,0 Q i,1 Q i,2 Q i,3 32.0 0.52992 22.2 0.37784 0.46009 41.6 0.66393 0.45600 0.46200 10.1 0.17537 0.44524 0.46071 0.46174 50.5 0.63608 0.37380 0.55843 0.47901 0.46174 = 0.47901 = (27.5 32.0)(0.46071) (27.5 10.1)(0.46200) 10.1 32.0 (27.5 22.2)(0.55843) (27.5 50.5)(0.46071) 50.5 22.2

Example x i Q i,0 Q i,1 Q i,2 Q i,3 Q i,4 32.0 0.52992 22.2 0.37784 0.46009 41.6 0.66393 0.45600 0.46200 10.1 0.17537 0.44524 0.46071 0.46174 50.5 0.63608 0.37380 0.55843 0.47901 0.45754 0.45754 = (27.5 32.0)(0.47901) (27.5 50.5)(0.46174) 50.5 32.0

Neville s Iterated Interpolation Algorithm Goal: evaluate the interpolating polynomial P on n + 1 distinct numbers x 0,..., x n at x to approximate f (x). INPUT values x, x 0,..., x n, f (x 0 ),..., f (x n ) STEP 1 For i = 0, 1,..., n set Q i,0 = f (x i ). STEP 2 For i = 1, 2,..., n for j = 1, 2,..., i set Q i,j = 1 x i x j [ (x xi j )Q i,j 1 (x x i )Q i 1,j 1 ]. STEP 3 OUTPUT Q. STOP.

Homework Read Section 3.2. Exercises: 1a, 3, 5, 7