Download presentation

Presentation is loading. Please wait.

Published byKylie Watkins Modified over 2 years ago

1
M. Dumbser 1 / 9 Analisi Numerica Università degli Studi di Trento Dipartimento dIngegneria Civile ed Ambientale Dr.-Ing. Michael Dumbser Lecture on Numerical Analysis Dr.-Ing. Michael Dumbser 15 / 09 / 2008

2
M. Dumbser 2 / 9 Analisi Numerica Università degli Studi di Trento Dipartimento dIngegneria Civile ed Ambientale Dr.-Ing. Michael Dumbser Interpolation x0x0 x1x1 x2x2 x3x3 f0f0 f1f1 f2f2 f3f3 x f x Set of given function values at given points. These may come e.g. from measurements made in the real world (temperature, snow thickness, rainfall) or may come from laboratory experiments. Interpolating function p n (x) (usually a polynomial) Interpolated function value p n (x)

3
M. Dumbser 3 / 9 Analisi Numerica Università degli Studi di Trento Dipartimento dIngegneria Civile ed Ambientale Dr.-Ing. Michael Dumbser Polynomial Interpolation The interpolation polynomial p n (x) must satisfy the following properties: (1) p n (x) is from the space P n of polynomials with maximal degree n (2) p n (x i )=f i. 1.Direct approach: p n (x) = a 0 + a 1 x + a 2 x 2 + a 3 x 3 + … + a n x n = a j x j. This satisfies (1). Using (2) leads to a linear equation system to be solved for the a i 2.Lagrange interpolation: p n (x) = f j L j (x) with the special Lagrangian interpolation polynomials No linear equation system must be solved (formally, the matrix of the corresponding linear system is the identity matrix, so one obtains directly a i =f i ). 3.Newton interpolation: 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 ) The system matrix is a lower triangular matrix, which means the linear system for the a j can be solved very efficiently.

4
M. Dumbser 4 / 9 Analisi Numerica Università degli Studi di Trento Dipartimento dIngegneria Civile ed Ambientale Dr.-Ing. Michael Dumbser Joseph-Louis Lagrange Joseph-Louis Lagrange o Giuseppe Ludovico Lagrangia (* 25. January 1736 in Torino; 10. April 1813 in Paris) Father (with French origin) wanted him to study law Lagrange learnt on his own in only one year all the knowledge about mathematics available at that time. With 19 professor at the Royal School of Artillery in Torino 1766 director of the Prussian Academy of Sciences Successor of Leonhard Euler in Berlin 1788 publication of the famous Mécanique analytique From 1797 professor at the Ecole Polytechnique in Paris Buried in the pantheon in Paris

5
M. Dumbser 5 / 9 Analisi Numerica Università degli Studi di Trento Dipartimento dIngegneria Civile ed Ambientale Dr.-Ing. Michael Dumbser Approximation Error of Polynomial Interpolation Suppose there exists a so-called generating function f(x) which is (n+1)-times differentiable for which the function values f i to be interpolated by the interpolation polynomial p n (x) satisfy (1) f(x i )=f i. Then the approximation error f(x) - p n (x) made by the interpolation polynomial p n (x) is given by: Where is a value from the smallest interval I=[x 0,x 1,…,x n,x] containing all x i and x. Remarks: The value for depends on the position x. For values of x that are not contained in the interval [x 0,x 1,…x n ], i.e. for extrapolation problems, the error grows very quickly. This can be verified quickly looking at (x). The interpolation error is connected to the (n+1)-th derivative of the generating function f(x)

6
M. Dumbser 6 / 9 Analisi Numerica Università degli Studi di Trento Dipartimento dIngegneria Civile ed Ambientale Dr.-Ing. Michael Dumbser Problems with Polynomial Interpolation For general functions f(x) the accuracy of polynomial interpolation does not increase when increasing the degree of the interpolation polynomial. It may even happen that the error increases considerably when increasing the polynomial degree. Example of Carl Runge: Polynomial interpolation of polynomial degree n = 4 polynomial degree n = 8 polynomial degree n = 12 Observation: increaslingly severe oscillations of the interpolation polynomial at the boundaries of the interpolation interval.

7
M. Dumbser 7 / 9 Analisi Numerica Università degli Studi di Trento Dipartimento dIngegneria Civile ed Ambientale Dr.-Ing. Michael Dumbser Spline Interpolation Motivated by the problems arising with very high order polynomial interpolation, engineers and mathematicians developed the concept of spline interpolation. The key idea hereby is, to use piecewise polynomials defined on sub-intervals. The piecewise polynomials are connected to each other in such a manner that the function value and the first two derivatives are continuous. Typically, cubic splines are used, consisting of piecewise polynomials of degree three. Definition of a cubic spline interpolant on the interval I=[a,b]: Usually, the following boundary conditions are enforced:

8
M. Dumbser 8 / 9 Analisi Numerica Università degli Studi di Trento Dipartimento dIngegneria Civile ed Ambientale Dr.-Ing. Michael Dumbser Spline Interpolation x0x0 x2x2 x n-1 xnxn x f x1x1 x i-1 xixi i S i (x) S i+1 (x) S i-1 (x) Historically, numerical spline interpolation was first developed by engineers. It was inspired by a tool commonly used in naval engineering. The tool consists in a bar that was fixed on the given points by nails and which then bends (deforms) according to these boundary conditions. In fact, this property of the bar is mathematically mimicked by the spline interpolation functions via the so-called minimum norm property.

9
M. Dumbser 9 / 9 Analisi Numerica Università degli Studi di Trento Dipartimento dIngegneria Civile ed Ambientale Dr.-Ing. Michael Dumbser Spline Interpolation Theorem 1: We define a measure for the total bending (curvature) of a two-times differentiable function f(x) as follows: Theorem 2: Using the natural boundary conditions and the other properties of the spline function, we immediately obtain the minimum norm property: The proofs for both theorems are shown on the blackboard and are recommended as an exercise at home.

10
M. Dumbser 10 / 9 Analisi Numerica Università degli Studi di Trento Dipartimento dIngegneria Civile ed Ambientale Dr.-Ing. Michael Dumbser Spline Interpolation Theorem 1: We define a measure for the total bending (curvature) of a two-times differentiable function f(x): Theorem 2: Using the natural boundary conditions and the other properties of the spline function, we immediately obtain the minimum norm property: The proofs are shown on the blackboard and are recommended as an exercise at home.

11
M. Dumbser 11 / 9 Analisi Numerica Università degli Studi di Trento Dipartimento dIngegneria Civile ed Ambientale Dr.-Ing. Michael Dumbser Spline Interpolation Finally, with the method of moments, we obtain the following expression for the natural cubic spline: with Recall that the boundary conditions for the natural cubic spline are:

12
M. Dumbser 12 / 9 Analisi Numerica Università degli Studi di Trento Dipartimento dIngegneria Civile ed Ambientale Dr.-Ing. Michael Dumbser Polynomial Interpolation Exercise 1.Write a Maple worksheet that interpolates a set of n+1 points (x i,f i ) using the polynomial interpolation of Lagrange. 2.Apply the method to the function 3.Apply the method to the function 4.Discuss the results

Similar presentations

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google