Polynomial Interpolation Lagrange Interpolation. Interpolation An Interpolating Function for a set of data: {( x 1, y 1 ),( x 2, y 2 ),( x 3, y 3 )…(

Slides:



Advertisements
Similar presentations
9.7 Taylor Series. Brook Taylor Taylor Series Brook Taylor was an accomplished musician and painter. He did research in a variety of areas,
Advertisements

Quadratic Functions By: Cristina V. & Jasmine V..
Graphing r = θ on the Polar Coordinate Plane
Notes Over 6.9Writing a Cubic Function Write the cubic function whose graph is shown.
Computational Methods in Physics PHYS 3437
Chapter 3, Interpolation and Extrapolation. Interpolation & Extrapolation (x i,y i ) Find an analytic function f(x) that passes through given N points.
MATH 110 Review. Jeopardy The Transform ers Odds & Evens Poly want a cracker Who let the quads out? The O’Poly Factor
ON MULTIVARIATE POLYNOMIAL INTERPOLATION
3.3 Zeros of polynomial functions
Lagrange interpolation Gives the same results as Newton, but different method.
The “zero” of a function is just the value at which a function touches the x-axis.
Section 5.2 – Properties of Rational Functions
Section 7.2.  A rational function, f is a quotient of polynomials. That is, where P(x) and Q(x) are polynomials and Q(x) ≠ 0.
OBJECTIVES: 1. USE THE FUNDAMENTAL THEOREM OF ALGEBRA 2. FIND COMPLEX CONJUGATE ZEROS. 3. FIND THE NUMBER OF ZEROS OF A POLYNOMIAL. 4. GIVE THE COMPLETE.
4.2-2 Constructing Polynomial Functions. Now, we have learned about several properties for polynomial functions – Finding y-intercepts – Finding x-intercepts.
3.7 Graphs of Rational Functions
Fourier Interpolation. The Fourier Method of Interpolation is a way a interpolating data that uses combinations of sin( px ) and cos( px ) where p is.
Chapter 4, Integration of Functions. Open and Closed Formulas x 1 =a x 2 x 3 x 4 x 5 =b Closed formula uses end points, e.g., Open formulas - use interior.
Polynomials and Rational Functions (2.1)
Curve Fitting and Interpolation: Lecture (I)
Dividing Polynomials Intro - Chapter 4.1. Using Long Division Example 1: Dividing Polynomials DIVISOR DIVIDEND REMAINDER QUOTIENT.
6.3 – Evaluating Polynomials. degree (of a monomial) 5x 2 y 3 degree =
MAT 4725 Numerical Analysis Section 3.1 Interpolation and the Lagrange Polynomial
9.3 Rational Functions and Their Graphs Rational Function – A function that is written as, where P(x) and Q(x) are polynomial functions. The domain of.
Copyright © 2011 Pearson Education, Inc. Rational Functions and Inequalities Section 3.6 Polynomial and Rational Functions.
6.9 Rational Zero Theorem Parts of a polynomial function f(x) oFactors of the leading coefficient = q oFactors of the constant = p oPossible rational roots.
Chapter 9 Polynomial Functions
Scientific Computing Interpolation – Divided Differences Efficiency and Error Analysis.
Newton’s Interpolation. Newton Interpolation Newton’s Interpolating polynomial for a set of data {( x 1, y 1 ),( x 2, y 2 ),( x 3, y 3 ),…,( x m,y m )}
Introduction to Numerical Analysis I MATH/CMPSC 455 Interpolation.
Adding & Subtracting Polynomials
Chapter 7 Polynomial and Rational Functions with Applications Section 7.2.
Section 9-1 Graphing Rational Functions. Def: A rational function is of the form Where p(x) and q(x) are rational polynomials and The line that the graph.
Rational Functions A function of the form where p(x) and q(x) are polynomial functions and q(x) ≠ 0. Examples: (MCC9-12.F.IF.7d)
Interpolation produces a function that matches the given data exactly. The function then can be utilized to approximate the data values at intermediate.
1 3.3 Rules for Differentiation Badlands National Park, SD.
1. Solve by factoring: 2x 2 – 13x = Solve by quadratic formula: 8x 2 – 3x = Find the discriminant and fully describe the roots: 5x 2 – 3x.
?v=cqj5Qvxd5MO Linear and Quadratic Functions and Modeling.
3.3 Polynomial and Synthetic Division. Long Division: Let’s Recall.
數值方法 2008 Applied Mathematics, NDHU1  Lagrange polynomial  Polynomial interpolation Lecture 4II.
Graphing Polynomial Functions. Finding the End Behavior of a function Degree Leading Coefficient Graph Comparison End Behavior As x  – , Rise right.
Bellwork Perform the operation and write the result in standard from ( a + bi)
Lines that a function approaches but does NOT actually touch.
Fourier Approximation Related Matters Concerning Fourier Series.
Warm Up  Divide the complex number 3 – 2i 1 + i  Multiply the complex number (3 -2i)(1+i)
Polynomials. Definition of a Polynomial A polynomial is an expression that is constructed from variables and constants, and also includes coefficients.
Coefficient: a number multiplied by a variable.. Degree: the greatest exponent of its variable.
Rational Functions and Asymptotes
QUADRATIC EQUATIONS
FST Chapter 7 Review Questions.
Quadratic Functions Quadratic Functions Polynomials Polynomials
Solve Quadratic Systems
Part (a) Because they ask for two equal steps starting at -1 and ending at 0 we know that x is .5 They tell us to start at x= -1 Now we just plug in.
Finding the Zeros of a Polynomial Function
Find all solutions of the polynomial equation by factoring and using the quadratic formula. x = 0 {image}
Warm-up: Find the equation of a quadratic function in standard form that has a root of 2 + 3i and passes through the point (2, -27). Answer: f(x) = -3x2.
Numerical Analysis Lecture 23.
Section 5.2 – Properties of Rational Functions
Finding the Zeros of a Polynomial Function
Graphing Polynomials Unit 1D Day 19.
Boise State University
Finding the Zeros of a Polynomial Function
Major Key: Finding the factor of the polynomial.
Fundamental Theorem of Algebra
Finding the Zeros of a Polynomial Function
For the function f whose graph is given, state the limit
Curve Fitting Filling in the gaps.
Preview to 6.7: Graphs of Polynomial
Find the zeros of each function.
Point-Slope Form y – y1 = m(x – x1)
Presentation transcript:

Polynomial Interpolation Lagrange Interpolation

Interpolation An Interpolating Function for a set of data: {( x 1, y 1 ),( x 2, y 2 ),( x 3, y 3 )…( x m, y m )} is a function f(x) that satisfies: f(x 1 ) = y 1 f(x 2 ) = y 2 f(x 3 ) = y 3. f(x m ) = y m {(2,-39), (-1,-4), (0,5), (1,6), (2,17), (2.5,31.875)} The graphs to the right show a set of data plotted at the top. The interpolating function along with the data is graphed below to the right.

Interpolating Data with a Function The problem we will be discussing is how if you are given a set of data points {( x 1, y 1 ),( x 2, y 2 ),( x 3, y 3 )…( x m, y m )}, can an interpolating function f(x) be constructed to fit the data. The requirement that f(x) be a function restricts the data that can be interpolated. In the definition of a function we have if x i = x j then f(x i ) = f(x j ), requiring if two pairs of data points ( x i,y i ) and ( x j,y j ) have equal x -coordinates the y -coordinates must also be equal. For implementation of many algorithms for interpolation we require the data set {( x 1, y 1 ),( x 2, y 2 ),( x 3, y 3 )…( x m, y m )} satisfy x i  x j if i  j. Polynomial Interpolation A Polynomial Interpolation for a set of data is an interpolating function f(x) such that f(x) is a polynomial. (i.e. f(x) = a n x n + a n -1 x n -1 + a n -2 x n -2 + … + a 1 x + a 0 ) Degree of Polynomial Interpolation The degree of a polynomial p(x) = a n x n + a n -1 x n -1 + a n -2 x n -2 + … + a 1 x + a 0 is the largest exponent with a non-zero coefficient. For the given p(x) its degree is n. In general, as your data set gets larger the number of terms you need in your polynomial (i.e. its degree) will also need to get larger. We usually insist on the degree of the polynomial being as small as possible for a given data set.

The degree of the polynomial required is less than the number of data points. In general a data set of m points will require a polynomial of degree m -1 or less. Lagrange Interpolating Polynomial The Lagrange Form of an interpolating polynomial makes use of elimination of terms and cancellation to fit the data set. Data SetPolynomial

Example: Let the data set {(-1,-4),(0,-5),(1,-2)} be the data set we want to interpolate. Plugging in the values of x we get: p (-1) = 2(-1) = = -4 p (0) = 2(0) = = -5 p (1) = 2(1) = = -2

Lagrange Interpolating Polynomial Algorithm To implement the Lagrange Polynomial Interpolating Polynomial Algorithm to a set of data it is a matter of following the formula to the right for the set of data: {( x 1, y 1 ),( x 2, y 2 ),( x 3, y 3 )…( x m, y m )} alldiffx ← True For[ i =1, i  m, i ++ For[ j =1, j <i, j ++, alldiffx=alldiffx and ( x i  x j )]] If alldiffx psum=0 For[ i =1, i  m, i ++ pprod= y i For[ j =1, j <i, j ++, If i  j then pprod=pprod*( x –x j )/( x i – x j )] psum=psum+pprod] (* else *) Print[“Data set can not be interpolated by a function”]