Polynomial Interpolation Part II

Size: px
Start display at page:

Download "Polynomial Interpolation Part II"

Transcription

1 Polynomial Interpolation Part II Prof. Dr. Florian Rupp German University of Technology in Oman (GUtech) Introduction to Numerical Methods for ENG & CS (Mathematics IV) Spring Term 2016

2 Exercise Session

3 Reviewing the highlights from last time (1/ 2) Reviewing the highlights from last time Page 174, exercise 4 Verify that the polynomials p(x) = 5x 3 27x 2 +45x 21 q(x) = x 4 5x 3 +8x 2 5x+4 interpolate the data x f(x) = y and explain why this does not violate the uniqueness part of the existence and uniqueness theorem on polynomial interpolation. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 3 / 48

4 Reviewing the highlights from last time (1/ 2) We have x f(x) = y p(x) q(x) and thus and p(x) = 5x 3 27x 2 +45x 21 q(x) = x 4 5x 3 +8x 2 5x+4 are both interpolating polynomials. Though, their degree differs and thus the uniqueness part is not violated. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 4 / 48

5 Reviewing the highlights from last time (2/ 2) Reviewing the highlights from last time Given the table x f(x) = y Page 174, exercise 1 Use the Lagrange interpolation process to obtain a polynomial of least degree that interpolates the above table. Page 174, exercise 1 (reformulated) Use the Newton interpolation process to obtain a polynomial of least degree that interpolates the above table. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 5 / 48

6 Today, we will focus on further details of polynomial interpolation Today s topics: Calculating the coefficients for Newton s interpolation ansatz using divided differences Interpolation with monomials and the Vandermode matrix Corresponding textbook chapters: 4.1 Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 6 / 48

7 Calculating the Newton Coefficients Using Divided Differences

8 The key idea in gaining the Newton coefficients (1/ 4) We now turn to the problem of determining the coefficients a 0,a 1,...,a n of the Newton interpolation polynomial p n (x) = a 0 +a 1 (x x 0 )+a 2 (x x 0 )(x x 1 )+... +a n (x x 0 )(x x 1 ) (x x n 1 ), efficiently. Again, we start with a table of values of a function f: x x 0 x 1 x 2... x n f(x) f(x 0 ) f(x 1 ) f(x 2 )... f(x n ) The points x 0,x 1,x 2,...,x n are assumed to be distinct, but no further assumption is made about their positions on the real line. We already know that for each n = 0,1,... there exists an unique polynomial p n such that the degree of p n is at most n, and p n (x i ) = f(x i ) for all i = 0,1,...,n. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 8 / 48

9 The key idea in gaining the Newton coefficients (2/ 4) A crucial observation about the Newton interpolation polynomial p n (x) = a 0 +a 1 (x x 0 )+a 2 (x x 0 )(x x 1 )+... +a n (x x 0 )(x x 1 ) (x x n 1 ), is that its coefficients a 0,a 1,...,a n do not depend on n. In other words, p n is obtained from p n 1 by adding one more term, without altering the coefficients already present in p n 1 itself: p n (x) = p n 1 (x)+a n (x x 0 )(x x 1 ) (x x n 1 ). Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 9 / 48

10 The key idea in gaining the Newton coefficients (3/ 4) A systematic way of determining the unknown coefficients a 0,a 1,...,a n from the table x x 0 x 1 x 2... x n f(x) f(x 0 ) f(x 1 ) f(x 2 )... f(x n ) is to set x equal in turn to x 0,x 1,...,x n during the construction of the Newton interpolation polynomial i.e. p n (x) = a 0 +a 1 (x x 0 )+a 2 (x x 0 )(x x 1 )+... p 0 (x 0 ) = f(x 0 ) = a 0, +a n (x x 0 )(x x 1 ) (x x n 1 ), p 1 (x 1 ) = f(x 1 ) = a 0 +a 1 (x 1 x 0 ), p 2 (x 2 ) = f(x 2 ) = a 0 +a 1 (x 2 x 0 )+a 2 (x 2 x 0 )(x 2 x 1 ), etc.... Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 10 / 48

11 The key idea in gaining the Newton coefficients (4/ 4) The equations p 0 (x 0 ) = f(x 0 ) = a 0, p 1 (x 1 ) = f(x 1 ) = a 0 +a 1 (x 1 x 0 ), p 2 (x 2 ) = f(x 2 ) = a 0 +a 1 (x 2 x 0 )+a 2 (x 2 x 0 )(x 2 x 1 ), etc. can be solved for the a i s in turn, starting with a 0 : a 0 = f[x 0 ] := f(x 0 ) a 1 = f[x 0,x 1 ] := f(x 1) a 0 x 1 x 0 = f(x 1) f(x 0 ) x 1 x 0 a 2 = f[x 0,x 1,x 2 ] := f(x 2) a 0 a 1 (x 2 x 0 ) (x 2 x 0 )(x 2 x 1 ) = f(x 2 ) f(x 1 ) x 2 x 1 f(x 1) f(x 0 ) x 1 x 0 x 2 x 0, etc. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 11 / 48

12 Some remarks on Newton s divided differences The (bracket) notation a k = f[x 0,x 1,...,x k ] indicates that a k depends on the values of f at the nodes x 0,x 1,...,x n. As the values a k are uniquely determined through the system of equations shown on the last slide we can view the identity a k =: f[x 0,x 1,...,x k ] as definition of the quantity f[x 0,x 1,...,x k ]. The quantity f[x 0,x 1,...,x k ] is called divided difference of order k for f. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 12 / 48

13 Example: Determining divided differences Example Determine the quantities f[x 0 ], f[x 0,x 1 ] and f[x 0,x 1,x 2 ] based on the table x f(x) The determining systems of equations reads as p 0 (x 0 ) = f(x 0 ) = 3 = a 0, p 1 (x 1 ) = f(x 1 ) = 13 = a 0 +a 1 (x 1 x 0 ) = a 0 +a 1 ( 5), p 2 (x 2 ) = f(x 2 ) = 23 = a 0 +a 1 (x 2 x 0 )+a 2 (x 2 x 0 )(x 2 x 1 ) = a 0 +a 1 ( 1)+a 2 ( 1)(4). Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 13 / 48

14 Example: Determining divided differences Example [cont.] From 3 = a 0, 13 = a 0 5a 1, 23 = a 0 a 1 4a 2, we can read of the coefficients of the Newton interpolation polynomial as a 0 = 3 = f[1] a 1 = 2 = f[1, 4] a 2 = 7 = f[1, 4,0]. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 14 / 48

15 Newton s form of the interpolating polynomial With the notation of the divided differences, the Newton form of the interpolating polynomial takes the form p n (x) = = n i=0 (x x j ) a i i 1 j=0 n i 1 f[x 0,x 1,...,x i ] (x x j ), i=0 j=0 with the convention 1 j=0 (x x j) := 1. Notice that the coefficient of x n in p n is f[x 0,x 1,...,x n ] because the term x n occurs only in n 1 j=0 (x x j). Thus, if f is a polynomial of degree n 1, then f[x 0,x 1,...,x n ] = 0 leading to a Newton interpolating polynomial of degree n 1, too. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 15 / 48

16 Computing the divided differences (1/ 2) The determining system of the coefficients (a.k.a. the divided differences) f(x 0 ) = a 0, f(x 1 ) = a 0 +a 1 (x 1 x 0 ), f(x 2 ) = a 0 +a 1 (x 2 x 0 )+a 2 (x 2 x 0 )(x 2 x 1 ), etc. can be rewritten as f(x k ) = k a i i 1 i=0 j=0 (x k x j ), for 0 k n. It is evident, that the computation of the coefficients can be performed recursively. E.g. a 1 can be computed once a 0 is known, a 2 can be computed once a 0 and a 1 are known and so on. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 16 / 48

17 Computing the divided differences (2/ 2) We rewrite f(x k ) = k i=0 a i and get k 1 f(x k ) = a k (x k x j )+ j=0 i 1 j=0 (x k x j ) as k 1 i=0 (x k x j ), a i i 1 j=0 a k = f(x k ) k 1 i=0 (x k x j ) a i i 1 j=0 k 1 (x k x j ) j=0 which allows a recursive computation of the coefficients a i = f[x 0,x 1,...,x i ]. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 17 / 48

18 Algorithm for computing the divided differences Algorithm (Divided Differences) 1. Set f[x 0 ] = f(x 0 ). 2. For k = 1,2,...,n compute f[x 0,x 1,...,x k ] via f[x 0,x 1,...,x k ] = f(x k ) k 1 i=0 i 1 f[x 0,x 1,...,x i ] (x k x j ) k 1 (x k x j ) j=0 j=0 The divided differences f[x 0 ], f[x 0,x 1 ],..., f[x 0,x 1,...,x n ] can thus be computed at the cost of 1 3n(3n+1) additions, (n 1)(n 2) multiplications and n divisions. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 18 / 48

19 The first four divided difference Example Use our algorithm to write out the divided difference formulas for f[x 0 ], f[x 0,x 1 ], f[x 0,x 1,x 2 ] and f[x 0,x 1,x 2,x 3 ]. We have: f[x 0 ] = f(x 0 ) f[x 0,x 1 ] = f(x 1) f[x 0 ] x 1 x 0 f[x 0,x 1,x 2 ] = f(x 2) f[x 0 ] f[x 0,x 1 ](x 2 x 0 ) (x 2 x 0 )(x 2 x 1 ) f[x 0,x 1,x 2,x 3 ] = f(x 3) f[x 0 ] f[x 0,x 1 ](x 3 x 0 ) f[x 0,x 1,x 2 ](x 3 x 0 )(x 3 x 1 ) (x 3 x 0 )(x 3 x 1 )(x 3 x 2 ) Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 19 / 48

20 Improving the Computation of the Divided Differences

21 Improving the computation of the divided differences We have just derived an algorithm that computes the divided differences f[x 0 ], f[x 0,x 1 ],..., f[x 0,x 1,...,x n ] at the cost of 1 3n(3n+1) additions, (n 1)(n 2) multiplications and n divisions. In this section, we will improve this result such that our new algorithm requires only n(n+1) additions, 1 2n(n+1) divisions, and the storage of just three statements (!). The tools that allow for the derivation of this algorithm are the recursive property of the divided differences, and the invariance theorem for divided differences. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 21 / 48

22 The recursive property of the divided differences Theorem (Recursive Property of the Divided Differences) The divided differences obey the formula f[x 0,x 1,...,x k ] = f[x 1,x 2,...,x k ] f[x 0,x 1,...,x k 1 ] x k x 0 For instance, this allows the computation of f[x 0,x 1,x 2 ] via the scheme f[x 0 ] f[x 0,x 1 ] f[x 1 ] f[x 0,x 1,x 2 ] f[x 1,x 2 ] f[x 2 ] Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 22 / 48

23 Proof of the recursive property (1/ 3) Since f[x 0,x 1,...,x k ] was defined to be equal to the coefficient a k in the Newton form of the interpolating polynomial p k (x) = k a i i 1 i=0 j=0 (x x j ), we say that f[x 0,x 1,...,x k ] is the coefficient of x k in the polynomial p k of degree k which interpolates the function f at the points x 0, x 1,..., x k. Similarly, f[x 1,x 2,...,x k ] is the coefficient of x k 1 in the polynomial q of degree k 1 which interpolates the function f at the points x 1, x 2,..., x k. And finally, we can interpret f[x 0,x 1,...,x k 1 ] as the coefficient of x k 1 in the polynomial p k 1 of degree k 1 which interpolates the function f at the points x 0, x 1,..., x k 1. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 23 / 48

24 Proof of the recursive property (2/ 3) We have f[x 0,x 1,...,x k ] is the coefficient of x k in the polynomial p k, f[x 1,x 2,...,x k ] is the coefficient of x k 1 in the polynomial q, and f[x 0,x 1,...,x k 1 ] is the coefficient of x k 1 in the polynomial p k 1. These three polynomials p k, q and p k 1 are related as follows: p k (x)! = q(x)+ x x k x k x 0 (q(x) p k 1 (x)). To establish this, we utilize the interpolation properties of p k, q and p k 1. First, we see that the right hand side is a polynomial of degree at most k. Next, we evaluate the right hand side at x i, i = 1,...,k 1. This gives q(x i )+ x i x k x k x 0 (q(x i ) p k 1 (x i )) = f(x i )+ x i x k x k x 0 (f(x i ) f(x i )) = f(x i ). Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 24 / 48

25 Proof of the recursive property (3/ 3) Similarly, evaluating q(x)+ x x k x k x 0 (q(x) p k 1 (x)) at x 0 and x k gives f(x 0 ) and f(x k ), respectively. Thus, both sides of the identity are interpolating the same k +1 points and are polynomials with a degree at most k. Thus, their difference is a polynomial of degree at most k that vanishes at k +1 points. Hence, the two sides are equal. Finally, as the coefficient of x k 1 in q is f[x 1,x 2,...,x k ] and that of x k 1 in p k 1 is f[x 0,x 1,...,x k 1 ], we have that the coefficient of x k on the right hand side of the equation is f[x 1,x 2,...,x k ] f[x 0,x 1,...,x k 1 ] x k x 0. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 25 / 48

26 The invariance property of the divided differences Notice that f[x 0,x 1,...,x k ] is not changed if the nodes x 0, x 1,..., x k are permuted. Thus, e.g., we have f[x 0,x 1,x 2 ] = f[x 1,x 2,x 0 ]. The reason is that f[x 0,x 1,x 2 ] is the coefficient of x 2 in the quadratic polynomial p 2 interpolating f at x 0, x 1 and x 2, whereas f[x 1,x 2,x 0 ] is the coefficient of x 2 in the quadratic polynomial q 2 interpolating f at x 1, x 2 and x 0. Due to the uniqueness and existence theorem of polynomial interpolation these two polynomials are of course the same. This implies the following theorem: Theorem (Recursive Property of the Divided Differences) The divided difference f[x 0,x 1,...,x k ] is invariant under all permutations of the arguments x 0, x 1,..., x k. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 26 / 48

27 Generalization of the divided difference formula... As the variables x 0, x 1,..., x k and k are arbitrary, the recursive formula can also be written as f[x i,x i+1,...,x j 1,x j ] = f[x i+1,x i+2,...,x j ] f[x i,x i+1,...,x j 1 ] x j x i The first three divided differences are thus f[x i ] = f(x i ) f[x i,x i+1 ] = f[x i+1] f[x i ] x i+1 x i f[x i,x i+1,x i+2 ] = f[x i+1,x i+2 ] f[x i,x i+1 ] x i+2 x i. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 27 / 48

28 ... and the divided difference table As an illustration for n = 3, this leads to the following divided difference table for an arbitrary function f: x f[] f[, ] f[,, ] f[,,, ] x 0 f[x 0 ] f[x 0,x 1 ] x 1 f[x 1 ] f[x 0,x 1,x 2 ] f[x 1,x 2 ] f[x 0,x 1,x 2,x 3 ] x 2 f[x 2 ] f[x 1,x 2,x 3 ] f[x 2,x 3 ] x 3 f[x 2 ] In this table, the coefficients along the top diagonal are the ones needed to form the Newton form of the interpolating polynomial p 3. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 28 / 48

29 Example: Set-up of a divided difference table Example Construct a divided difference table for the function f given in the following data table, and write out the Newton form of the interpolating polynomial: 3 x f(x) We apply the just derived formulas for the divided differences: f[x i ] = f(x i ) f[x i,x i+1 ] = f[x i+1] f[x i ] x i+1 x i f[x i,x i+1,x i+2 ] = f[x i+1,x i+2 ] f[x i,x i+1 ] x i+2 x i, and so on Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 29 / 48

30 Example: Set-up of a divided difference table Example [cont.] Thus, for 3 x f(x) the first entry of the divided difference table for f reads as f[1, 3 2 ] = f[3 2 ] f[1] = ) = 1 2, and, for instance, after completion of the columns for f[] and f[, ] the first entry f[,, ] is given as f[1, 3 2,0] = f[3 2,0] f[1, 3 2 ] 0 1 = = 1 3. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 30 / 48

31 Example: Set-up of a divided difference table Example [cont.] Finally, the complete divided difference table for f reads as x f[] f[, ] f[,, ] f[,,, ] Thus, we obtain p 3 (x) = (x 1)+ 1 3 (x 1)(x 3 2 ) 2(x 1)(x 3 2 )x. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 31 / 48

32 Classroom problem: Set-up of a divided difference table Classroom Problem Construct a divided difference table for the function f given in the following data table, and write out the Newton form of the interpolating polynomial: x f(x) Use the just derived formulas for the divided differences: f[x i ] = f(x i ) f[x i,x i+1 ] = f[x i+1] f[x i ] x i+1 x i f[x i,x i+1,x i+2 ] = f[x i+1,x i+2 ] f[x i,x i+1 ] x i+2 x i. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 32 / 48

33 Classroom problem: Set-up of a divided difference table Classroom Problem [Solution] Thus we obtain x f[] f[, ] f[,, ] p 2 (x) = 3 2(x 1)+7(x 1)(x+4). Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 33 / 48

34 Interpolation with Monomials and the Vandermode Matrix

35 Approximation with basis functions... Another view of interpolation is that for a given set of n+1 data points x x 0 x 1 x 2... x n f(x) = y y 0 y 1 y 2... y n we want to express an interpolating function f(x) as a linear combination of a set of basis functions ϕ 0, ϕ 1,..., ϕ n such that f(x) c 0 ϕ 0 (x)+c 1 ϕ 1 (x)+ +c n ϕ n (x), where the coefficients c 0, c 1,..., c n are to be determined. We want the function f to interpolate the data (x i,y i ), i.e., we want to have linear equations in c 0, c 1,..., c n of the form f(x i ) = c 0 ϕ 0 (x i )+c 1 ϕ 1 (x i )+ +c n ϕ n (x i ) = y i, for each i = 0,1,...,n. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 35 / 48

36 ... leads naturally to linear systems This is a system of linear equations Ac = y, where the entries of the coefficient matrix A are given by a i,j = ϕ j (x i ), which is the value of the jth basis function evaluated at the ith data point. The right-hand side vector y contains the known data values y i, and the components of the vector c are the unknown coefficients c i. Thus, in principle interpolation is nothing else than solving a linear system... Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 36 / 48

37 Monomials as basis functions for polynomial interpolation (1/ 2)... The natural basis for the vector space P n of all polynomials up to degree n consists of monomials ϕ 0 (x) = 1, ϕ 1 (x) = x, ϕ 2 (x) = x 2,... ϕ n (x) = x n. Consequently, a interpolation polynomial p n has the form p n (x) = c 0 +c 1 x+c 2 x 2 + +c n x n, and the associates linear system Ac = y reads as 1 x 0 x x n 0 c 0 1 x 1 x x n 1 c 1 1 x 2 x x n 2 c 2 = y 0 y 1 y x n x 2 n... x n n c n y n Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 37 / 48

38 Monomials as basis functions for polynomial interpolation (2/ 2)... Sketch of the first few monomials on [ 1,1]: φ 0 = 1 φ 2 = x φ 4 = x φ 3 = x φ 1 = x Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 38 / 48

39 ... may not be the smartest choice The coefficient matrix is the well-known Vandermonde matrix. We already know that it is regular provided the points x 0, x 1,..., x n are distinct. So, in principle, we can solve the polynomial interpolation problem. Although, the Vandermonde matrix is invertible, we know that it is ill-conditioned as n increases: For large n, the monomials are less distinguishable from one another (see the figure on the previous slide). Thus, the columns of the Vandermonde matrix become nearly dependent in this case. Moreover, high-degree polynomials often oscillate widely and are highly sensitive to small changes in the data. Up to now, we have discussed three choices for the basis functions of P n : the Lagrange polynomials l i (x), the Newton polynomials π i, and the monomials. It turns out that there are better choices for the basis functions; namely, the Chebysev polynomials have more desirable features. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 39 / 48

40 The Chebysev polynomials... The Chebysev polynomials play an important role in mathematics because they have several special properties such as the recursive relation T 0 (x) = 1, T 1 (x) = x T i (x) = 2xT i 1 (x) T i 2 (x) for i = 2,3,4,... Thus, the first six Chebysev polynomials are T 0 (x) = 1, T 1 (x) = x, T 2 (x) = 2x 2 1, T 3 (x) = 4x 3 3x, T 4 (x) = 8x 4 8x 2 +1, T 5 (x) = 16x 5 20x 3 +5x. The Chebysev polynomials are usually employed on the interval [ 1, 1]. With change of variable, they can be used on any interval. E.g., substituting x by cos(t) allows for their use on the interval [0,2π]. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 40 / 48

41 ... their graphs... Sketch of the first few Chebysev polynomials on [ 1, 1]: T 1 (x) T 0 (x) T 2 (x) T 3 (x) T 4 (x) T 5 (x) Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 41 / 48

42 ... and the equal oscillation property One of the important properties of the Chebysev polynomials is the equal oscillation property. Notice in the previous figure that successive extreme points of the Chebysev polynomials are equal in magnitude and alternate in sign. This property tends to distribute the error uniformly when Chebysev polynomials are used as basis functions. In polynomial interpolation for continuous functions, it is particularly advantageous to select as the interpolation points the roots or the extreme points of a Chebysev polynomial. This causes the maximum error over the interval of the interpolation to be minimized. (We will illustrate this effect next time.) Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 42 / 48

43 Summary & Outlook

44 Major concepts covered today (1/ 4): Newton s form The Newton form of the interpolation polynomial is n i 1 p n (x) = a i (x x j ). i=0 j=0 with divided differences a i = f[x 0,x 1,...,x i ] = f[x 1,x 2,...,x i ] f[x 0,x 1,...,x i 1 ] x i x 0 The Lagrange and the Newton form are just two different representations of the unique polynomial p of degree n that interpolates a table of n+1 pairs of points (x i,f(x i )) for i = 0,1,...,n. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 44 / 48

45 Major concepts covered today (2/ 4): polynomial interpolation example We illustrate the Lagrange and Newton form with the aid of a small table for n = 2: x x 0 x 1 x 2 f(x) f(x 0 ) f(x 1 ) f(x 2 ) The Lagrange interpolation polynomial is p 2 (x) = (x x 1)(x x 2 ) (x 0 x 1 )(x 0 x 2 ) f(x 0)+ (x x 0)(x x 2 ) (x 1 x 0 )(x 1 x 2 ) f(x 1) + (x x 0)(x x 1 ) (x 2 x 0 )(x 2 x 1 ) f(x 2) Clearly, p 2 (x 0 ) = f(x 0 ), p 2 (x 1 ) = f(x 1 ) and p 2 (x 2 ) = f(x 2 ). Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 45 / 48

46 Major concepts covered today (3/ 4): polynomial interpolation example Next, we form the divided difference table x f[] f[, ] f[,, ] x 0 f[x 0 ] f[x 0,x 1 ] x 1 f[x 1 ] f[x 0,x 1,x 2 ] f[x 1,x 2 ] x 2 f[x 2 ] Using the divided difference entries from the top diagonal, we have p 2 (x) = f[x 0 ]+f[x 0,x 1 ](x x 0 )+f[x 0,x 1,x 2 ](x x 0 )(x x 1 ). Again, it can be easily shown that p 2 (x 0 ) = f(x 0 ), p 2 (x 1 ) = f(x 1 ) and p 2 (x 2 ) = f(x 2 ). Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 46 / 48

47 Preparation for the next lecture (1/ 2) Please, prepare these short exercises for the next lecture: 1. Page 175, exercise 10 a Use a divided differences table to construct Newton s interpolation polynomial for the following data: x f(x) Page 175, exercise 10 b Without simplifying the Newton interpolation polynomial obtained above, write this polynomial in nested form for easy evaluation. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 47 / 48

48 Preparation for the next lecture (2/ 2) Please, prepare these short exercises for the next lecture: 3. Page 176, exercise 22 Find a polynomial of least degree that takes these values: x f(x) = y Hint: Rearrange the table so that the non-zero value of f(x) is the last entry, or think of some better way. Prof. Dr. Florian Rupp GUtech 2016: Numerical Methods 48 / 48

Determining the Roots of Non-Linear Equations Part I

Determining the Roots of Non-Linear Equations Part I Determining the Roots of Non-Linear Equations Part I Prof. Dr. Florian Rupp German University of Technology in Oman (GUtech) Introduction to Numerical Methods for ENG & CS (Mathematics IV) Spring Term

More information

Interpolation and Approximation

Interpolation and Approximation Interpolation and Approximation The Basic Problem: Approximate a continuous function f(x), by a polynomial p(x), over [a, b]. f(x) may only be known in tabular form. f(x) may be expensive to compute. Definition:

More information

Numerical Analysis: Interpolation Part 1

Numerical Analysis: Interpolation Part 1 Numerical Analysis: Interpolation Part 1 Computer Science, Ben-Gurion University (slides based mostly on Prof. Ben-Shahar s notes) 2018/2019, Fall Semester BGU CS Interpolation (ver. 1.00) AY 2018/2019,

More information

1 Motivation for Newton interpolation

1 Motivation for Newton interpolation cs412: introduction to numerical analysis 09/30/10 Lecture 7: Newton Interpolation Instructor: Professor Amos Ron Scribes: Yunpeng Li, Mark Cowlishaw, Nathanael Fillmore 1 Motivation for Newton interpolation

More information

BSM510 Numerical Analysis

BSM510 Numerical Analysis BSM510 Numerical Analysis Polynomial Interpolation Prof. Manar Mohaisen Department of EEC Engineering Review of Precedent Lecture Polynomial Regression Multiple Linear Regression Nonlinear Regression Lecture

More information

Function approximation

Function approximation Week 9: Monday, Mar 26 Function approximation A common task in scientific computing is to approximate a function. The approximated function might be available only through tabulated data, or it may be

More information

CS 323: Numerical Analysis and Computing

CS 323: Numerical Analysis and Computing CS 323: Numerical Analysis and Computing MIDTERM #2 Instructions: This is an open notes exam, i.e., you are allowed to consult any textbook, your class notes, homeworks, or any of the handouts from us.

More information

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

Two hours. To be provided by Examinations Office: Mathematical Formula Tables. THE UNIVERSITY OF MANCHESTER. 29 May :45 11:45 Two hours MATH20602 To be provided by Examinations Office: Mathematical Formula Tables. THE UNIVERSITY OF MANCHESTER NUMERICAL ANALYSIS 1 29 May 2015 9:45 11:45 Answer THREE of the FOUR questions. If more

More information

Numerical Mathematics & Computing, 7 Ed. 4.1 Interpolation

Numerical Mathematics & Computing, 7 Ed. 4.1 Interpolation Numerical Mathematics & Computing, 7 Ed. 4.1 Interpolation Ward Cheney/David Kincaid c UT Austin Engage Learning: Thomson-Brooks/Cole www.engage.com www.ma.utexas.edu/cna/nmc6 November 7, 2011 2011 1 /

More information

1 Lecture 8: Interpolating polynomials.

1 Lecture 8: Interpolating polynomials. 1 Lecture 8: Interpolating polynomials. 1.1 Horner s method Before turning to the main idea of this part of the course, we consider how to evaluate a polynomial. Recall that a polynomial is an expression

More information

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.

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. INTERPOLATION Interpolation is a process of finding a formula (often a polynomial) whose graph will pass through a given set of points (x, y). As an example, consider defining and x 0 = 0, x 1 = π/4, x

More information

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

FINITE DIFFERENCES. Lecture 1: (a) Operators (b) Forward Differences and their calculations. (c) Backward Differences and their calculations. FINITE DIFFERENCES Lecture 1: (a) Operators (b) Forward Differences and their calculations. (c) Backward Differences and their calculations. 1. Introduction When a function is known explicitly, it is easy

More information

MA2501 Numerical Methods Spring 2015

MA2501 Numerical Methods Spring 2015 Norwegian University of Science and Technology Department of Mathematics MA5 Numerical Methods Spring 5 Solutions to exercise set 9 Find approximate values of the following integrals using the adaptive

More information

Physics 331 Introduction to Numerical Techniques in Physics

Physics 331 Introduction to Numerical Techniques in Physics Physics 331 Introduction to Numerical Techniques in Physics Instructor: Joaquín Drut Lecture 12 Last time: Polynomial interpolation: basics; Lagrange interpolation. Today: Quick review. Formal properties.

More information

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

Here each term has degree 2 (the sum of exponents is 2 for all summands). A quadratic form of three variables looks as Reading [SB], Ch. 16.1-16.3, p. 375-393 1 Quadratic Forms A quadratic function f : R R has the form f(x) = a x. Generalization of this notion to two variables is the quadratic form Q(x 1, x ) = a 11 x

More information

Inverses. Stephen Boyd. EE103 Stanford University. October 28, 2017

Inverses. Stephen Boyd. EE103 Stanford University. October 28, 2017 Inverses Stephen Boyd EE103 Stanford University October 28, 2017 Outline Left and right inverses Inverse Solving linear equations Examples Pseudo-inverse Left and right inverses 2 Left inverses a number

More information

Scientific Computing

Scientific Computing 2301678 Scientific Computing Chapter 2 Interpolation and Approximation Paisan Nakmahachalasint Paisan.N@chula.ac.th Chapter 2 Interpolation and Approximation p. 1/66 Contents 1. Polynomial interpolation

More information

MA2501 Numerical Methods Spring 2015

MA2501 Numerical Methods Spring 2015 Norwegian University of Science and Technology Department of Mathematics MA2501 Numerical Methods Spring 2015 Solutions to exercise set 7 1 Cf. Cheney and Kincaid, Exercise 4.1.9 Consider the data points

More information

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

Neville s Method. MATH 375 Numerical Analysis. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan Neville s Method 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

More information

Approximation theory

Approximation theory Approximation theory Xiaojing Ye, Math & Stat, Georgia State University Spring 2019 Numerical Analysis II Xiaojing Ye, Math & Stat, Georgia State University 1 1 1.3 6 8.8 2 3.5 7 10.1 Least 3squares 4.2

More information

Math (P)refresher Lecture 8: Unconstrained Optimization

Math (P)refresher Lecture 8: Unconstrained Optimization Math (P)refresher Lecture 8: Unconstrained Optimization September 2006 Today s Topics : Quadratic Forms Definiteness of Quadratic Forms Maxima and Minima in R n First Order Conditions Second Order Conditions

More information

3.1 Interpolation and the Lagrange Polynomial

3.1 Interpolation and the Lagrange Polynomial MATH 4073 Chapter 3 Interpolation and Polynomial Approximation Fall 2003 1 Consider a sample x x 0 x 1 x n y y 0 y 1 y n. Can we get a function out of discrete data above that gives a reasonable estimate

More information

Midterm for Introduction to Numerical Analysis I, AMSC/CMSC 466, on 10/29/2015

Midterm for Introduction to Numerical Analysis I, AMSC/CMSC 466, on 10/29/2015 Midterm for Introduction to Numerical Analysis I, AMSC/CMSC 466, on 10/29/2015 The test lasts 1 hour and 15 minutes. No documents are allowed. The use of a calculator, cell phone or other equivalent electronic

More information

Cubic Splines; Bézier Curves

Cubic Splines; Bézier Curves Cubic Splines; Bézier Curves 1 Cubic Splines piecewise approximation with cubic polynomials conditions on the coefficients of the splines 2 Bézier Curves computer-aided design and manufacturing MCS 471

More information

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

(0, 0), (1, ), (2, ), (3, ), (4, ), (5, ), (6, ). 1 Interpolation: The method of constructing new data points within the range of a finite set of known data points That is if (x i, y i ), i = 1, N are known, with y i the dependent variable and x i [x

More information

Even-Numbered Homework Solutions

Even-Numbered Homework Solutions -6 Even-Numbered Homework Solutions Suppose that the matric B has λ = + 5i as an eigenvalue with eigenvector Y 0 = solution to dy = BY Using Euler s formula, we can write the complex-valued solution Y

More information

Review all the activities leading to Midterm 3. Review all the problems in the previous online homework sets (8+9+10).

Review all the activities leading to Midterm 3. Review all the problems in the previous online homework sets (8+9+10). MA109, Activity 34: Review (Sections 3.6+3.7+4.1+4.2+4.3) Date: Objective: Additional Assignments: To prepare for Midterm 3, make sure that you can solve the types of problems listed in Activities 33 and

More information

Interpolation. Chapter Interpolation. 7.2 Existence, Uniqueness and conditioning

Interpolation. Chapter Interpolation. 7.2 Existence, Uniqueness and conditioning 76 Chapter 7 Interpolation 7.1 Interpolation Definition 7.1.1. Interpolation of a given function f defined on an interval [a,b] by a polynomial p: Given a set of specified points {(t i,y i } n with {t

More information

1 Solutions to selected problems

1 Solutions to selected problems Solutions to selected problems Section., #a,c,d. a. p x = n for i = n : 0 p x = xp x + i end b. z = x, y = x for i = : n y = y + x i z = zy end c. y = (t x ), p t = a for i = : n y = y(t x i ) p t = p

More information

CS 323: Numerical Analysis and Computing

CS 323: Numerical Analysis and Computing CS 323: Numerical Analysis and Computing MIDTERM #2 Instructions: This is an open notes exam, i.e., you are allowed to consult any textbook, your class notes, homeworks, or any of the handouts from us.

More information

Quadratics. SPTA Mathematics Higher Notes

Quadratics. SPTA Mathematics Higher Notes H Quadratics SPTA Mathematics Higher Notes Quadratics are expressions with degree 2 and are of the form ax 2 + bx + c, where a 0. The Graph of a Quadratic is called a Parabola, and there are 2 types as

More information

Rational Functions. Elementary Functions. Algebra with mixed fractions. Algebra with mixed fractions

Rational Functions. Elementary Functions. Algebra with mixed fractions. Algebra with mixed fractions Rational Functions A rational function f (x) is a function which is the ratio of two polynomials, that is, Part 2, Polynomials Lecture 26a, Rational Functions f (x) = where and are polynomials Dr Ken W

More information

Bindel, Fall 2016 Matrix Computations (CS 6210) Notes for

Bindel, Fall 2016 Matrix Computations (CS 6210) Notes for 1 Logistics Notes for 2016-08-29 General announcement: we are switching from weekly to bi-weekly homeworks (mostly because the course is much bigger than planned). If you want to do HW but are not formally

More information

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

Finite Elements. Colin Cotter. January 18, Colin Cotter FEM Finite Elements January 18, 2019 The finite element Given a triangulation T of a domain Ω, finite element spaces are defined according to 1. the form the functions take (usually polynomial) when restricted

More information

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

Exam 2. Average: 85.6 Median: 87.0 Maximum: Minimum: 55.0 Standard Deviation: Numerical Methods Fall 2011 Lecture 20 Exam 2 Average: 85.6 Median: 87.0 Maximum: 100.0 Minimum: 55.0 Standard Deviation: 10.42 Fall 2011 1 Today s class Multiple Variable Linear Regression Polynomial Interpolation Lagrange Interpolation Newton

More information

Lecture 10 Polynomial interpolation

Lecture 10 Polynomial interpolation Lecture 10 Polynomial interpolation Weinan E 1,2 and Tiejun Li 2 1 Department of Mathematics, Princeton University, weinan@princeton.edu 2 School of Mathematical Sciences, Peking University, tieli@pku.edu.cn

More information

Some notes on Chapter 8: Polynomial and Piecewise-polynomial Interpolation

Some notes on Chapter 8: Polynomial and Piecewise-polynomial Interpolation Some notes on Chapter 8: Polynomial and Piecewise-polynomial Interpolation See your notes. 1. Lagrange Interpolation (8.2) 1 2. Newton Interpolation (8.3) different form of the same polynomial as Lagrange

More information

Jim Lambers MAT 419/519 Summer Session Lecture 13 Notes

Jim Lambers MAT 419/519 Summer Session Lecture 13 Notes Jim Lambers MAT 419/519 Summer Session 2011-12 Lecture 13 Notes These notes correspond to Section 4.1 in the text. Least Squares Fit One of the most fundamental problems in science and engineering is data

More information

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

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 . - Piecewise Linear-Quadratic Interpolation Piecewise-polynomial Approximation: Problem: Givenn pairs of data points x i, y i, i,,...,n, find a piecewise-polynomial Sx S x if x x x Sx S x if x x x 2 :

More information

Lectures 9-10: Polynomial and piecewise polynomial interpolation

Lectures 9-10: Polynomial and piecewise polynomial interpolation Lectures 9-1: Polynomial and piecewise polynomial interpolation Let f be a function, which is only known at the nodes x 1, x,, x n, ie, all we know about the function f are its values y j = f(x j ), j

More information

Scientific Computing: An Introductory Survey

Scientific Computing: An Introductory Survey Scientific Computing: An Introductory Survey Chapter 7 Interpolation Prof. Michael T. Heath Department of Computer Science University of Illinois at Urbana-Champaign Copyright c 2002. Reproduction permitted

More information

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

Numerical Methods and Computation Prof. S.R.K. Iyengar Department of Mathematics Indian Institute of Technology Delhi Numerical Methods and Computation Prof. S.R.K. Iyengar Department of Mathematics Indian Institute of Technology Delhi Lecture No - 27 Interpolation and Approximation (Continued.) In our last lecture we

More information

Outline. 1 Interpolation. 2 Polynomial Interpolation. 3 Piecewise Polynomial Interpolation

Outline. 1 Interpolation. 2 Polynomial Interpolation. 3 Piecewise Polynomial Interpolation Outline Interpolation 1 Interpolation 2 3 Michael T. Heath Scientific Computing 2 / 56 Interpolation Motivation Choosing Interpolant Existence and Uniqueness Basic interpolation problem: for given data

More information

Polynomial Review Problems

Polynomial Review Problems Polynomial Review Problems 1. Find polynomial function formulas that could fit each of these graphs. Remember that you will need to determine the value of the leading coefficient. The point (0,-3) is on

More information

Downloaded from

Downloaded from Question 1: Exercise 2.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. (i) (ii) (iii) Page 1 of 24 (iv) (v) (v) Page

More information

A first order divided difference

A first order divided difference A first order divided difference For a given function f (x) and two distinct points x 0 and x 1, define f [x 0, x 1 ] = f (x 1) f (x 0 ) x 1 x 0 This is called the first order divided difference of f (x).

More information

CPSC 536N: Randomized Algorithms Term 2. Lecture 9

CPSC 536N: Randomized Algorithms Term 2. Lecture 9 CPSC 536N: Randomized Algorithms 2011-12 Term 2 Prof. Nick Harvey Lecture 9 University of British Columbia 1 Polynomial Identity Testing In the first lecture we discussed the problem of testing equality

More information

Exam in Numerical Methods (MA2501)

Exam in Numerical Methods (MA2501) Norwegian University of Science and Technology Department of Mathematical Sciences Page 1 of 7 MA251 Numeriske Metoder Olivier Verdier (contact: 48 95 2 66) Exam in Numerical Methods (MA251) 211-5-25,

More information

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

Lecture Note 3: Interpolation and Polynomial Approximation. Xiaoqun Zhang Shanghai Jiao Tong University Lecture Note 3: Interpolation and Polynomial Approximation Xiaoqun Zhang Shanghai Jiao Tong University Last updated: October 10, 2015 2 Contents 1.1 Introduction................................ 3 1.1.1

More information

Permutations and Polynomials Sarah Kitchen February 7, 2006

Permutations and Polynomials Sarah Kitchen February 7, 2006 Permutations and Polynomials Sarah Kitchen February 7, 2006 Suppose you are given the equations x + y + z = a and 1 x + 1 y + 1 z = 1 a, and are asked to prove that one of x,y, and z is equal to a. We

More information

1 Vectors. Notes for Bindel, Spring 2017 Numerical Analysis (CS 4220)

1 Vectors. Notes for Bindel, Spring 2017 Numerical Analysis (CS 4220) Notes for 2017-01-30 Most of mathematics is best learned by doing. Linear algebra is no exception. You have had a previous class in which you learned the basics of linear algebra, and you will have plenty

More information

Chapter 12: Differentiation. SSMth2: Basic Calculus Science and Technology, Engineering and Mathematics (STEM) Strands Mr. Migo M.

Chapter 12: Differentiation. SSMth2: Basic Calculus Science and Technology, Engineering and Mathematics (STEM) Strands Mr. Migo M. Chapter 12: Differentiation SSMth2: Basic Calculus Science and Technology, Engineering and Mathematics (STEM) Strands Mr. Migo M. Mendoza Chapter 12: Differentiation Lecture 12.1: The Derivative Lecture

More information

MTH5112 Linear Algebra I MTH5212 Applied Linear Algebra (2017/2018)

MTH5112 Linear Algebra I MTH5212 Applied Linear Algebra (2017/2018) MTH5112 Linear Algebra I MTH5212 Applied Linear Algebra (2017/2018) COURSEWORK 3 SOLUTIONS Exercise ( ) 1. (a) Write A = (a ij ) n n and B = (b ij ) n n. Since A and B are diagonal, we have a ij = 0 and

More information

INTERPOLATION Background Polynomial Approximation Problem:

INTERPOLATION Background Polynomial Approximation Problem: INTERPOLATION Background Polynomial Approximation Problem: given f(x) C[a, b], find P n (x) = a 0 + a 1 x + a 2 x 2 + + a n x n with P n (x) close to f(x) for x [a, b]. Motivations: f(x) might be difficult

More information

Review 1 Math 321: Linear Algebra Spring 2010

Review 1 Math 321: Linear Algebra Spring 2010 Department of Mathematics and Statistics University of New Mexico Review 1 Math 321: Linear Algebra Spring 2010 This is a review for Midterm 1 that will be on Thursday March 11th, 2010. The main topics

More information

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

Lecture Note 3: Polynomial Interpolation. Xiaoqun Zhang Shanghai Jiao Tong University Lecture Note 3: Polynomial Interpolation Xiaoqun Zhang Shanghai Jiao Tong University Last updated: October 24, 2013 1.1 Introduction We first look at some examples. Lookup table for f(x) = 2 π x 0 e x2

More information

Interpolation. 1. Judd, K. Numerical Methods in Economics, Cambridge: MIT Press. Chapter

Interpolation. 1. Judd, K. Numerical Methods in Economics, Cambridge: MIT Press. Chapter Key References: Interpolation 1. Judd, K. Numerical Methods in Economics, Cambridge: MIT Press. Chapter 6. 2. Press, W. et. al. Numerical Recipes in C, Cambridge: Cambridge University Press. Chapter 3

More information

Interpolation & Polynomial Approximation. Hermite Interpolation I

Interpolation & Polynomial Approximation. Hermite Interpolation I Interpolation & Polynomial Approximation Hermite Interpolation I Numerical Analysis (th Edition) R L Burden & J D Faires Beamer Presentation Slides prepared by John Carroll Dublin City University c 2011

More information

Queens College, CUNY, Department of Computer Science Numerical Methods CSCI 361 / 761 Spring 2018 Instructor: Dr. Sateesh Mane.

Queens College, CUNY, Department of Computer Science Numerical Methods CSCI 361 / 761 Spring 2018 Instructor: Dr. Sateesh Mane. Queens College, CUNY, Department of Computer Science Numerical Methods CSCI 361 / 761 Spring 2018 Instructor: Dr. Sateesh Mane c Sateesh R. Mane 2018 3 Lecture 3 3.1 General remarks March 4, 2018 This

More information

Polynomial Interpolation

Polynomial Interpolation Polynomial Interpolation (Com S 477/577 Notes) Yan-Bin Jia Sep 1, 017 1 Interpolation Problem In practice, often we can measure a physical process or quantity (e.g., temperature) at a number of points

More information

Solutions to Exercises, Section 2.5

Solutions to Exercises, Section 2.5 Instructor s Solutions Manual, Section 2.5 Exercise 1 Solutions to Exercises, Section 2.5 For Exercises 1 4, write the domain of the given function r as a union of intervals. 1. r(x) 5x3 12x 2 + 13 x 2

More information

POLYNOMIAL INTERPOLATION IN NONDIVISION ALGEBRAS

POLYNOMIAL INTERPOLATION IN NONDIVISION ALGEBRAS Electronic Transactions on Numerical Analysis. Volume 44, pp. 660 670, 2015. Copyright c 2015,. ISSN 1068 9613. ETNA POLYNOMIAL INTERPOLATION IN NONDIVISION ALGEBRAS GERHARD OPFER Abstract. Algorithms

More information

Introduction to Cryptography

Introduction to Cryptography B504 / I538: Introduction to Cryptography Spring 2017 Lecture 15 Assignment 3 is due! Assignment 4 is out and is due in three weeks! 1 Recall: One-way functions (OWFs) Intuitively, a one-way function (OWF)

More information

1 Lesson 13: Methods of Integration

1 Lesson 13: Methods of Integration Lesson 3: Methods of Integration Chapter 6 Material: pages 273-294 in the textbook: Lesson 3 reviews integration by parts and presents integration via partial fraction decomposition as the third of the

More information

Warm Up Lesson Presentation Lesson Quiz. Holt McDougal Algebra 2

Warm Up Lesson Presentation Lesson Quiz. Holt McDougal Algebra 2 Warm Up Lesson Presentation Lesson Quiz Algebra 2 Warm Up Factor each expression. 1. 3x 6y 2. a 2 b 2 3(x 2y) (a + b)(a b) Find each product. 3. (x 1)(x + 3) 4. (a + 1)(a 2 + 1) x 2 + 2x 3 a 3 + a 2 +

More information

CS 450 Numerical Analysis. Chapter 5: Nonlinear Equations

CS 450 Numerical Analysis. Chapter 5: Nonlinear Equations Lecture slides based on the textbook Scientific Computing: An Introductory Survey by Michael T. Heath, copyright c 2018 by the Society for Industrial and Applied Mathematics. http://www.siam.org/books/cl80

More information

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

We consider the problem of finding a polynomial that interpolates a given set of values: Chapter 5 Interpolation 5. Polynomial Interpolation We consider the problem of finding a polynomial that interpolates a given set of values: x x 0 x... x n y y 0 y... y n where the x i are all distinct.

More information

Numerical Analysis Spring 2001 Professor Diamond

Numerical Analysis Spring 2001 Professor Diamond Numerical Analysis Spring 2001 Professor Diamond Polynomial interpolation: The Polynomial Interpolation Problem: Find a polynomial pÿx a 0 a 1 x... a n x n which satisfies the n 1 conditions pÿx 0 y 0,

More information

Absolute Value Equations and Inequalities. Use the distance definition of absolute value.

Absolute Value Equations and Inequalities. Use the distance definition of absolute value. Chapter 2 Section 7 2.7 Absolute Value Equations and Inequalities Objectives 1 2 3 4 5 6 Use the distance definition of absolute value. Solve equations of the form ax + b = k, for k > 0. Solve inequalities

More information

Spring Nikos Apostolakis

Spring Nikos Apostolakis Spring 07 Nikos Apostolakis Review of fractions Rational expressions are fractions with numerator and denominator polynomials. We need to remember how we work with fractions (a.k.a. rational numbers) before

More information

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

Math 4310 Solutions to homework 7 Due 10/27/16 Math 4310 Solutions to homework 7 Due 10/27/16 1. Find the gcd of x 3 + x 2 + x + 1 and x 5 + 2x 3 + x 2 + x + 1 in Rx. Use the Euclidean algorithm: x 5 + 2x 3 + x 2 + x + 1 = (x 3 + x 2 + x + 1)(x 2 x

More information

A Primer on Multidimensional Optimization

A Primer on Multidimensional Optimization A Primer on Multidimensional Optimization Prof. Dr. Florian Rupp German University of Technology in Oman (GUtech) Introduction to Numerical Methods for ENG & CS (Mathematics IV) Spring Term 2016 Eercise

More information

2a 2 4ac), provided there is an element r in our

2a 2 4ac), provided there is an element r in our MTH 310002 Test II Review Spring 2012 Absractions versus examples The purpose of abstraction is to reduce ideas to their essentials, uncluttered by the details of a specific situation Our lectures built

More information

MCS 563 Spring 2014 Analytic Symbolic Computation Friday 31 January. Quotient Rings

MCS 563 Spring 2014 Analytic Symbolic Computation Friday 31 January. Quotient Rings Quotient Rings In this note we consider again ideals, but here we do not start from polynomials, but from a finite set of points. The application in statistics and the pseudo code of the Buchberger-Möller

More information

Fitting Linear Statistical Models to Data by Least Squares: Introduction

Fitting Linear Statistical Models to Data by Least Squares: Introduction Fitting Linear Statistical Models to Data by Least Squares: Introduction Radu Balan, Brian R. Hunt and C. David Levermore University of Maryland, College Park University of Maryland, College Park, MD Math

More information

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.

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. NUMERICAL METHODS 1. Rearranging the equation x 3 =.5 gives the iterative formula x n+1 = g(x n ), where g(x) = (2x 2 ) 1. (a) Starting with x = 1, compute the x n up to n = 6, and describe what is happening.

More information

The final is cumulative, but with more emphasis on chapters 3 and 4. There will be two parts.

The final is cumulative, but with more emphasis on chapters 3 and 4. There will be two parts. Math 141 Review for Final The final is cumulative, but with more emphasis on chapters 3 and 4. There will be two parts. Part 1 (no calculator) graphing (polynomial, rational, linear, exponential, and logarithmic

More information

Computational Methods. Solving Equations

Computational Methods. Solving Equations Computational Methods Solving Equations Manfred Huber 2010 1 Solving Equations Solving scalar equations is an elemental task that arises in a wide range of applications Corresponds to finding parameters

More information

L. Vandenberghe EE133A (Spring 2017) 3. Matrices. notation and terminology. matrix operations. linear and affine functions.

L. Vandenberghe EE133A (Spring 2017) 3. Matrices. notation and terminology. matrix operations. linear and affine functions. L Vandenberghe EE133A (Spring 2017) 3 Matrices notation and terminology matrix operations linear and affine functions complexity 3-1 Matrix a rectangular array of numbers, for example A = 0 1 23 01 13

More information

S56 (5.1) Polynomials.notebook August 25, 2016

S56 (5.1) Polynomials.notebook August 25, 2016 Q1. Simplify Daily Practice 28.6.2016 Q2. Evaluate Today we will be learning about Polynomials. Q3. Write in completed square form x 2 + 4x + 7 Q4. State the equation of the line joining (0, 3) and (4,

More information

ERROR IN LINEAR INTERPOLATION

ERROR IN LINEAR INTERPOLATION ERROR IN LINEAR INTERPOLATION Let P 1 (x) be the linear polynomial interpolating f (x) at x 0 and x 1. Assume f (x) is twice continuously differentiable on an interval [a, b] which contains the points

More information

Chapter 4 No. 4.0 Answer True or False to the following. Give reasons for your answers.

Chapter 4 No. 4.0 Answer True or False to the following. Give reasons for your answers. MATH 434/534 Theoretical Assignment 3 Solution Chapter 4 No 40 Answer True or False to the following Give reasons for your answers If a backward stable algorithm is applied to a computational problem,

More information

Pre-Algebra 2. Unit 9. Polynomials Name Period

Pre-Algebra 2. Unit 9. Polynomials Name Period Pre-Algebra Unit 9 Polynomials Name Period 9.1A Add, Subtract, and Multiplying Polynomials (non-complex) Explain Add the following polynomials: 1) ( ) ( ) ) ( ) ( ) Subtract the following polynomials:

More information

Math 115 Spring 11 Written Homework 10 Solutions

Math 115 Spring 11 Written Homework 10 Solutions Math 5 Spring Written Homework 0 Solutions. For following its, state what indeterminate form the its are in and evaluate the its. (a) 3x 4x 4 x x 8 Solution: This is in indeterminate form 0. Algebraically,

More information

The Normal Equations. For A R m n with m > n, A T A is singular if and only if A is rank-deficient. 1 Proof:

The Normal Equations. For A R m n with m > n, A T A is singular if and only if A is rank-deficient. 1 Proof: Applied Math 205 Homework 1 now posted. Due 5 PM on September 26. Last time: piecewise polynomial interpolation, least-squares fitting Today: least-squares, nonlinear least-squares The Normal Equations

More information

Chapter 4: Interpolation and Approximation. October 28, 2005

Chapter 4: Interpolation and Approximation. October 28, 2005 Chapter 4: Interpolation and Approximation October 28, 2005 Outline 1 2.4 Linear Interpolation 2 4.1 Lagrange Interpolation 3 4.2 Newton Interpolation and Divided Differences 4 4.3 Interpolation Error

More information

MEMORIAL UNIVERSITY OF NEWFOUNDLAND

MEMORIAL UNIVERSITY OF NEWFOUNDLAND MEMORIAL UNIVERSITY OF NEWFOUNDLAND DEPARTMENT OF MATHEMATICS AND STATISTICS Section 5. Math 090 Fall 009 SOLUTIONS. a) Using long division of polynomials, we have x + x x x + ) x 4 4x + x + 0x x 4 6x

More information

VOYAGER INSIDE ALGEBRA CORRELATED TO THE NEW JERSEY STUDENT LEARNING OBJECTIVES AND CCSS.

VOYAGER INSIDE ALGEBRA CORRELATED TO THE NEW JERSEY STUDENT LEARNING OBJECTIVES AND CCSS. We NJ Can STUDENT Early Learning LEARNING Curriculum OBJECTIVES PreK Grades 8 12 VOYAGER INSIDE ALGEBRA CORRELATED TO THE NEW JERSEY STUDENT LEARNING OBJECTIVES AND CCSS www.voyagersopris.com/insidealgebra

More information

1 Review of Interpolation using Cubic Splines

1 Review of Interpolation using Cubic Splines cs412: introduction to numerical analysis 10/10/06 Lecture 12: Instructor: Professor Amos Ron Cubic Hermite Spline Interpolation Scribes: Yunpeng Li, Mark Cowlishaw 1 Review of Interpolation using Cubic

More information

Skills Practice Skills Practice for Lesson 10.1

Skills Practice Skills Practice for Lesson 10.1 Skills Practice Skills Practice for Lesson.1 Name Date Higher Order Polynomials and Factoring Roots of Polynomial Equations Problem Set Solve each polynomial equation using factoring. Then check your solution(s).

More information

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Discussion 6B Solution

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Discussion 6B Solution CS 70 Discrete Mathematics and Probability Theory Spring 016 Rao and Walrand Discussion 6B Solution 1. GCD of Polynomials Let A(x) and B(x) be polynomials (with coefficients in R or GF(m)). We say that

More information

Polynomial and Synthetic Division

Polynomial and Synthetic Division Polynomial and Synthetic Division Polynomial Division Polynomial Division is very similar to long division. Example: 3x 3 5x 3x 10x 1 3 Polynomial Division 3x 1 x 3x 3 3 x 5x 3x x 6x 4 10x 10x 7 3 x 1

More information

Interpolation and the Lagrange Polynomial

Interpolation and the Lagrange Polynomial Interpolation and the Lagrange Polynomial MATH 375 J. Robert Buchanan Department of Mathematics Fall 2013 Introduction We often choose polynomials to approximate other classes of functions. Theorem (Weierstrass

More information

CS412: Introduction to Numerical Methods

CS412: Introduction to Numerical Methods CS412: Introduction to Numerical Methods MIDTERM #1 2:30PM - 3:45PM, Tuesday, 03/10/2015 Instructions: This exam is a closed book and closed notes exam, i.e., you are not allowed to consult any textbook,

More information

3.5. Dividing Polynomials. LEARN ABOUT the Math. Selecting a strategy to divide a polynomial by a binomial

3.5. Dividing Polynomials. LEARN ABOUT the Math. Selecting a strategy to divide a polynomial by a binomial 3.5 Dividing Polynomials GOAL Use a variety of strategies to determine the quotient when one polynomial is divided by another polynomial. LEARN ABOU the Math Recall that long division can be used to determine

More information

1. Definition of a Polynomial

1. Definition of a Polynomial 1. Definition of a Polynomial What is a polynomial? A polynomial P(x) is an algebraic expression of the form Degree P(x) = a n x n + a n 1 x n 1 + a n 2 x n 2 + + a 3 x 3 + a 2 x 2 + a 1 x + a 0 Leading

More information

Notes on Paths, Trees and Lagrange Inversion

Notes on Paths, Trees and Lagrange Inversion Notes on Paths, Trees and Lagrange Inversion Today we are going to start with a problem that may seem somewhat unmotivated, and solve it in two ways. From there, we will proceed to discuss applications

More information

Math 110 Midterm 1 Study Guide October 14, 2013

Math 110 Midterm 1 Study Guide October 14, 2013 Name: For more practice exercises, do the study set problems in sections: 3.4 3.7, 4.1, and 4.2. 1. Find the domain of f, and express the solution in interval notation. (a) f(x) = x 6 D = (, ) or D = R

More information

Econ Slides from Lecture 7

Econ Slides from Lecture 7 Econ 205 Sobel Econ 205 - Slides from Lecture 7 Joel Sobel August 31, 2010 Linear Algebra: Main Theory A linear combination of a collection of vectors {x 1,..., x k } is a vector of the form k λ ix i for

More information

Seminar 6: COUPLED HARMONIC OSCILLATORS

Seminar 6: COUPLED HARMONIC OSCILLATORS Seminar 6: COUPLED HARMONIC OSCILLATORS 1. Lagrangian Equations of Motion Let consider a system consisting of two harmonic oscillators that are coupled together. As a model, we will use two particles attached

More information