Spline Interpolation

Total Page:16

File Type:pdf, Size:1020Kb

Spline Interpolation Spline Interpolation Given: (n + 1) observations or data pairs [(x0, f0), (x1, f1), (x2, f2) … (xn, fn)] This gives a mesh of nodes ,,,⋯ on the independent variable and the corresponding function values as ,,,⋯ Goal: fit an independent polynomial in each interval (between two points) with certain continuity requirements at the nodes. Linear spline: continuity in function values, C0 continuity Quadratic spline: continuity in function values and 1st derivatives, C1 continuity Cubic spline: continuity in function values, 1st and 2nd derivatives, C2 continuity Denote for node i or at xi: functional value fi, first derivative ui, second derivative vi Spline Interpolation: Cubic xi+2, fi+2 xi, fi qi(x) qi+1(x) qi-1(x) xi+1, fi+1 xi-1, fi-1 A cubic polynomial in each interval: (n+1) points, n cubic polynomials, 4n unknowns Available conditions: (n + 1) function values, (n - 1) function continuity, (n -1) 1st derivative continuity conditions and (n -1) 2nd derivative continuity conditions, total 4n - 2 conditions. 2 free conditions to be chosen by the user! Spline Interpolation: Cubic Cubic Spline in the interval , : is a set of linear splines. Let us denote the 2nd derivative (v) of the function at the ith node as Therefore: and We may write: ℎ ℎ 6ℎ 6ℎ ℎ 6 ℎ 6 Spline Interpolation: Cubic 6ℎ 6ℎ ℎ ℎ ; 6 6 ℎ ℎ ℎ , 6 ℎ ℎ 6 6 ℎ ℎ ℎ ℎ 6 6 ℎ ℎ 6 ℎ 6 ℎ ℎ ℎ We need to estimate (n + 1) unknown vi. We have (n – 1) conditions from the continuity of the first derivative. Spline Interpolation: Cubic ; 1, 2, 3, ⋯ 1 …. 1 ℎ ℎ 6 ℎ 6 ℎ ℎ ℎ 3 3 ℎ ℎ , 6 ℎ 6 ℎ 3 3 ℎ ℎ , 6 ℎ 6 ℎ In eq. 1, ℎ ℎ ℎ ℎ , , 6 3 3 6 ℎ ℎ ℎ ℎ , , 6 3 6 , , , , Spline Interpolation: Cubic , , 1, 2, 3, ⋯ . 1 So, (n – 1) equations, (n + 1) unknowns, two conditions have to be provided by the users. They decide the type of cubic splines Natural Spline: 0 Parabolic Runout: and Not-a-knot: ⟹ ℎ ℎ ⟹ ℎ ℎ Periodic: ; and First one comes from the data (if not satisfied, the periodic spline is not appropriate); the next two give the other two equations. Spline Interpolation: Cubic , , 1, 2, 3, ⋯ . 1 So, (n – 1) equations, (n + 1) unknowns, two conditions have to be provided by the users. They decide the type of cubic splines Clamped Spline: and β 3 3 ℎ ℎ , 6 ℎ 6 ℎ ℎ ℎ , ⟹ , 6 3 3 3 ℎ ℎ , 6 ℎ 6 ℎ ℎ ℎ , β 3 6 ⟹ , Example Problem: Q4 of Tutorial 9 Consider the function exp(x) sampled at points x, 0 0.5, 1.0, 1.5 and 2 Estimate the function value at x = 1.80 by interpolating the function using - (a) natural cubic spline and (b) not-a-knot cubic spline. Calculate the true percentage error for both the splines. Which is the better spline for this problem and why? Solution: Posted online along with Tutorial 9 solutions Example Problem: Heat Transfer in Lake Lakes in temperate zone can become thermally stratified during the summer. As depicted below, warm, buoyant water near the surface overlies colder, denser bottom water. Such stratification effectively divides the lake into two layers: the epilimnion and the hypolimnion separated by a plane called the thermocline. Temperature (oC) z (m) T(oC) 0.0 5.0 10.0 15.0 20.0 25.0 0 022.8 2.3 22.8 5 4.9 22.8 10 9.1 22.6 15 13.7 13.9 20 18.3 11.7 Depth, z(m) 22.9 11.1 25 27.2 11.1 30 Example Problem: Heat Transfer in Lake The location of the thermocline can be defined as the inflection point of the T-z curve; i.e. where = 0. It is also the point at which the absolute value of the first derivative or gradient is maximum. Use cubic splines to determine the thermocline depth of this lake. Also use splines to determine the value of the gradient at the thermocline. Spline Interpolation: Using Local Coordinate ∈ , → ∈ 0, 1 in , → in 0, 1 At each node i, we denote the following: Location: xi Functional value: fi Intervals: ℎ and ℎ nd Derivatives: First derivative ui and the 2 derivative vi Transformations: 1 1 ⟹ ℎ ℎ 1 1 ℎ ℎ Spline Interpolation: Using Local Coordinate C0 – Continuity: 1 0 C1 – Continuity: 1 1 1 0 ℎ ℎ C2 – Continuity: 1 1 1 0 ℎ ℎ Linear and Quadratic Splines: Local Coordinate Linear Spline: C0 – Continuous ⇒ 0 , 1 ⟹ , Quadratic Spline: C1 – Continuous ⇒ 0 , 1 Using the definition of ui: 1 0 ⇒ ℎ , ℎ ℎ ℎ , ℎ Using C1 – Continuity: 1 1 1 0 ⇒ 2, ℎ ℎ Cubic Spline: Using Local Coordinate Cubic Spline: C2 – Continuous Using C0 – Continuity: 0 , 1 Now we have two options: st 2 Option 1: Using the 1 derivative ui as unknown and C – Continuity to estimate them nd 1 Option 2: Using the 2 derivative vi as unknown and C – Continuity to estimate them Cubic Spline: Using Local Coordinates st 2 Option 1: Using the 1 derivative ui as unknown and C – Continuity to estimate them , 1 1 3 2 0 ; 1 ℎ ℎ ℎ ℎ ℎ 2 , ℎ 3 , 2 Using C2 – Continuity: 1 1 6 2 2 1 0⇒ ℎ ℎ ℎ ℎ ℎ 2 ℎ ℎ ℎ 3ℎ , 3ℎ , 1, 2, 3, ⋯ 1 Using the two other conditions, one may obtain similar splines of different types! Cubic Spline: Using Local Coordinates Natural Spline: 0 0 2 0; ℎ 3 , 2 0 ℎ ℎ 1 6 2 0 ℎ ℎ 6ℎ 2 , 2ℎ 3 , 2 0 2 3, 2 3, Clamped Spline: and β Parabolic Runout: and 0 1 2 6 2 ⟹ ⟹ 2, ℎ ℎ ℎ ℎ 0 1 2 6 2 ⟹ ⟹ 2, ℎ ℎ ℎ ℎ Cubic Spline: Using Local Coordinates Not-a-knot: ⟹ ℎ ℎ ⟹ ℎ ℎ Periodic: ; and First one comes from the data (if not satisfied, the periodic spline is not appropriate); the next two give the other two equations. Formulation of these two is left as homework! Cubic Spline: Using Local Coordinates nd 1 Option 2: Using the 2 derivative vi as unknown and C – Continuity to estimate them , 1 2 1 6 2 0 ; 1 ℎ ℎ ℎ ℎ ℎ ℎ ; ℎ , 2 6 6 Using C1 – Continuity: 1 1 3 2 1 0 ⇒ ℎ ℎ ℎ ℎ ℎ 2 ℎ ℎ ℎ 6, 6 , 1, 2, 3, ⋯ 1 This is the same equation that was obtained using Lagrange polynomials! Boundary conditions are also the same! ESO 208A: Computational Methods in Engineering Numerical Differentiation Abhas Singh Department of Civil Engineering IIT Kanpur Acknowledgements: Profs. Saumyen Guha and Shivam Tripathi (CE) Numerical Differentiation Let us compute dy/dx or df/dx at node i Denote the difference operators: ∆ Numerical Differentiation: Finite Difference Approximate the function between , as: ∆ ∆ Forward Difference: ∆ ∆ ∆ Approximate the function between , as: Backward Difference: Numerical Differentiation: Finite Difference Approximate the function between three points: ,, ∆ ∆ ∆ ∆ Now, evaluate df/dx at x = xi: ∆ ∆ ∆ ∆ ∆ ∆ Numerical Differentiation: Finite Difference Central Difference: ∆ ∆ ∆ ∆ ∆ ∆ For regular or uniform grid: Let us assume regular grid with a mesh size of h Numerical Differentiation: Finite Difference Approximate the function between three points: ,, 2ℎ ℎ 2ℎ 2 2 Now, evaluate central difference approximations of df/dx and d f/dx at x = xi: 2ℎ ℎ 2ℎ 2ℎ 2 ℎ Numerical Differentiation: Finite Difference Similarly, one can approximate the function between three points and obtain the forward difference expressions of the first and second derivatives at x = xi as follows: This is left for homework practice! Numerical Differentiation: Finite Difference Similarly, one can approximate the function between three points and obtain the backward difference expressions of the first and second derivatives at x = xi as follows: This is left for homework practice! Numerical Differentiation: Finite Difference Accuracy: How accurate is the numerical differentiation scheme with respect to the TRUE differentiation? Truncation Error analysis Modified Wave Number, Amplitude Error and Phase Error analysis for periodic functions Recall: True Value (a) = Approximate Value + Error (ε) Consistency: A numerical expression for differentiation or a numerical differentiation scheme is consistent if it converges to the TRUE differentiation as h → 0..
Recommended publications
  • Mathematical Construction of Interpolation and Extrapolation Function by Taylor Polynomials Arxiv:2002.11438V1 [Math.NA] 26 Fe
    Mathematical Construction of Interpolation and Extrapolation Function by Taylor Polynomials Nijat Shukurov Department of Engineering Physics, Ankara University, Ankara, Turkey E-mail: [email protected] , [email protected] Abstract: In this present paper, I propose a derivation of unified interpolation and extrapolation function that predicts new values inside and outside the given range by expanding direct Taylor series on the middle point of given data set. Mathemati- cal construction of experimental model derived in general form. Trigonometric and Power functions adopted as test functions in the development of the vital aspects in numerical experiments. Experimental model was interpolated and extrapolated on data set that generated by test functions. The results of the numerical experiments which predicted by derived model compared with analytical values. KEYWORDS: Polynomial Interpolation, Extrapolation, Taylor Series, Expansion arXiv:2002.11438v1 [math.NA] 26 Feb 2020 1 1 Introduction In scientific experiments or engineering applications, collected data are usually discrete in most cases and physical meaning is likely unpredictable. To estimate the outcomes and to understand the phenomena analytically controllable functions are desirable. In the mathematical field of nu- merical analysis those type of functions are called as interpolation and extrapolation functions. Interpolation serves as the prediction tool within range of given discrete set, unlike interpola- tion, extrapolation functions designed to predict values out of the range of given data set. In this scientific paper, direct Taylor expansion is suggested as a instrument which estimates or approximates a new points inside and outside the range by known individual values. Taylor se- ries is one of most beautiful analogies in mathematics, which make it possible to rewrite every smooth function as a infinite series of Taylor polynomials.
    [Show full text]
  • On Multivariate Interpolation
    On Multivariate Interpolation Peter J. Olver† School of Mathematics University of Minnesota Minneapolis, MN 55455 U.S.A. [email protected] http://www.math.umn.edu/∼olver Abstract. A new approach to interpolation theory for functions of several variables is proposed. We develop a multivariate divided difference calculus based on the theory of non-commutative quasi-determinants. In addition, intriguing explicit formulae that connect the classical finite difference interpolation coefficients for univariate curves with multivariate interpolation coefficients for higher dimensional submanifolds are established. † Supported in part by NSF Grant DMS 11–08894. April 6, 2016 1 1. Introduction. Interpolation theory for functions of a single variable has a long and distinguished his- tory, dating back to Newton’s fundamental interpolation formula and the classical calculus of finite differences, [7, 47, 58, 64]. Standard numerical approximations to derivatives and many numerical integration methods for differential equations are based on the finite dif- ference calculus. However, historically, no comparable calculus was developed for functions of more than one variable. If one looks up multivariate interpolation in the classical books, one is essentially restricted to rectangular, or, slightly more generally, separable grids, over which the formulae are a simple adaptation of the univariate divided difference calculus. See [19] for historical details. Starting with G. Birkhoff, [2] (who was, coincidentally, my thesis advisor), recent years have seen a renewed level of interest in multivariate interpolation among both pure and applied researchers; see [18] for a fairly recent survey containing an extensive bibli- ography. De Boor and Ron, [8, 12, 13], and Sauer and Xu, [61, 10, 65], have systemati- cally studied the polynomial case.
    [Show full text]
  • Easy Way to Find Multivariate Interpolation
    IJETST- Vol.||04||Issue||05||Pages 5189-5193||May||ISSN 2348-9480 2017 International Journal of Emerging Trends in Science and Technology IC Value: 76.89 (Index Copernicus) Impact Factor: 4.219 DOI: https://dx.doi.org/10.18535/ijetst/v4i5.11 Easy way to Find Multivariate Interpolation Author Yimesgen Mehari Faculty of Natural and Computational Science, Department of Mathematics Adigrat University, Ethiopia Email: [email protected] Abstract We derive explicit interpolation formula using non-singular vandermonde matrix for constructing multi dimensional function which interpolates at a set of distinct abscissas. We also provide examples to show how the formula is used in practices. Introduction Engineers and scientists commonly assume that past and currently. But there is no theoretical relationships between variables in physical difficulty in setting up a frame work for problem can be approximately reproduced from discussing interpolation of multivariate function f data given by the problem. The ultimate goal whose values are known.[1] might be to determine the values at intermediate Interpolation function of more than one variable points, to approximate the integral or to simply has become increasingly important in the past few give a smooth or continuous representation of the years. These days, application ranges over many variables in the problem different field of pure and applied mathematics. Interpolation is the method of estimating unknown For example interpolation finds applications in the values with the help of given set of observations. numerical integrations of differential equations, According to Theile Interpolation is, “The art of topography, and the computer aided geometric reading between the lines of the table” and design of cars, ships, airplanes.[1] According to W.M.
    [Show full text]
  • Math 541 - Numerical Analysis Interpolation and Polynomial Approximation — Piecewise Polynomial Approximation; Cubic Splines
    Polynomial Interpolation Cubic Splines Cubic Splines... Math 541 - Numerical Analysis Interpolation and Polynomial Approximation — Piecewise Polynomial Approximation; Cubic Splines Joseph M. Mahaffy, [email protected] Department of Mathematics and Statistics Dynamical Systems Group Computational Sciences Research Center San Diego State University San Diego, CA 92182-7720 http://jmahaffy.sdsu.edu Spring 2018 Piecewise Poly. Approx.; Cubic Splines — Joseph M. Mahaffy, [email protected] (1/48) Polynomial Interpolation Cubic Splines Cubic Splines... Outline 1 Polynomial Interpolation Checking the Roadmap Undesirable Side-effects New Ideas... 2 Cubic Splines Introduction Building the Spline Segments Associated Linear Systems 3 Cubic Splines... Error Bound Solving the Linear Systems Piecewise Poly. Approx.; Cubic Splines — Joseph M. Mahaffy, [email protected] (2/48) Polynomial Interpolation Checking the Roadmap Cubic Splines Undesirable Side-effects Cubic Splines... New Ideas... An n-degree polynomial passing through n + 1 points Polynomial Interpolation Construct a polynomial passing through the points (x0,f(x0)), (x1,f(x1)), (x2,f(x2)), ... , (xN ,f(xn)). Define Ln,k(x), the Lagrange coefficients: n x − xi x − x0 x − xk−1 x − xk+1 x − xn Ln,k(x)= = ··· · ··· , Y xk − xi xk − x0 xk − xk−1 xk − xk+1 xk − xn i=0, i=6 k which have the properties Ln,k(xk) = 1; Ln,k(xi)=0, for all i 6= k. Piecewise Poly. Approx.; Cubic Splines — Joseph M. Mahaffy, [email protected] (3/48) Polynomial Interpolation Checking the Roadmap Cubic Splines Undesirable Side-effects Cubic Splines... New Ideas... The nth Lagrange Interpolating Polynomial We use Ln,k(x), k =0,...,n as building blocks for the Lagrange interpolating polynomial: n P (x)= f(x )L (x), X k n,k k=0 which has the property P (xi)= f(xi), for all i =0, .
    [Show full text]
  • CHAPTER 6 Parametric Spline Curves
    CHAPTER 6 Parametric Spline Curves When we introduced splines in Chapter 1 we focused on spline curves, or more precisely, vector valued spline functions. In Chapters 2 and 4 we then established the basic theory of spline functions and B-splines, and in Chapter 5 we studied a number of methods for constructing spline functions that approximate given data. In this chapter we return to spline curves and show how the approximation methods in Chapter 5 can be adapted to this more general situation. We start by giving a formal definition of parametric curves in Section 6.1, and introduce parametric spline curves in Section 6.2.1. In the rest of Section 6.2 we then generalise the approximation methods in Chapter 5 to curves. 6.1 Definition of Parametric Curves In Section 1.2 we gave an intuitive introduction to parametric curves and discussed the significance of different parameterisations. In this section we will give a more formal definition of parametric curves, but the reader is encouraged to first go back and reread Section 1.2 in Chapter 1. 6.1.1 Regular parametric representations A parametric curve will be defined in terms of parametric representations. s Definition 6.1. A vector function or mapping f :[a, b] 7→ R of the interval [a, b] into s m R for s ≥ 2 is called a parametric representation of class C for m ≥ 1 if each of the s components of f has continuous derivatives up to order m. If, in addition, the first derivative of f does not vanish in [a, b], Df(t) = f 0(t) 6= 0, for t ∈ [a, b], then f is called a regular parametric representation of class Cm.
    [Show full text]
  • Spatial Interpolation Methods
    Page | 0 of 0 SPATIAL INTERPOLATION METHODS 2018 Page | 1 of 1 1. Introduction Spatial interpolation is the procedure to predict the value of attributes at unobserved points within a study region using existing observations (Waters, 1989). Lam (1983) definition of spatial interpolation is “given a set of spatial data either in the form of discrete points or for subareas, find the function that will best represent the whole surface and that will predict values at points or for other subareas”. Predicting the values of a variable at points outside the region covered by existing observations is called extrapolation (Burrough and McDonnell, 1998). All spatial interpolation methods can be used to generate an extrapolation (Li and Heap 2008). Spatial Interpolation is the process of using points with known values to estimate values at other points. Through Spatial Interpolation, We can estimate the precipitation value at a location with no recorded data by using known precipitation readings at nearby weather stations. Rationale behind spatial interpolation is the observation that points close together in space are more likely to have similar values than points far apart (Tobler’s Law of Geography). Spatial Interpolation covers a variety of method including trend surface models, thiessen polygons, kernel density estimation, inverse distance weighted, splines, and Kriging. Spatial Interpolation requires two basic inputs: · Sample Points · Spatial Interpolation Method Sample Points Sample Points are points with known values. Sample points provide the data necessary for the development of interpolator for spatial interpolation. The number and distribution of sample points can greatly influence the accuracy of spatial interpolation.
    [Show full text]
  • Comparison of Gap Interpolation Methodologies for Water Level Time Series Using Perl/Pdl
    Revista de Matematica:´ Teor´ıa y Aplicaciones 2005 12(1 & 2) : 157–164 cimpa – ucr – ccss issn: 1409-2433 comparison of gap interpolation methodologies for water level time series using perl/pdl Aimee Mostella∗ Alexey Sadovksi† Scott Duff‡ Patrick Michaud§ Philippe Tissot¶ Carl Steidleyk Received/Recibido: 13 Feb 2004 Abstract Extensive time series of measurements are often essential to evaluate long term changes and averages such as tidal datums and sea level rises. As such, gaps in time series data restrict the type and extent of modeling and research which may be accomplished. The Texas A&M University Corpus Christi Division of Nearshore Research (TAMUCC-DNR) has developed and compared various methods based on forward and backward linear regression to interpolate gaps in time series of water level data. We have developed a software system that retrieves actual and harmonic water level data based upon user provided parameters. The actual water level data is searched for missing data points and the location of these gaps are recorded. Forward and backward linear regression are applied in relation to the location of missing data or gaps in the remaining data. After this process is complete, one of three combinations of the forward and backward regression is used to fit the results. Finally, the harmonic component is added back into the newly supplemented time series and the results are graphed. The software created to implement this process of linear regression is written in Perl along with a Perl module called PDL (Perl Data Language). Generally, this process has demonstrated excellent results in filling gaps in our water level time series.
    [Show full text]
  • Automatic Constraint-Based Synthesis of Non-Uniform Rational B-Spline Surfaces " (1994)
    Iowa State University Capstones, Theses and Retrospective Theses and Dissertations Dissertations 1994 Automatic constraint-based synthesis of non- uniform rational B-spline surfaces Philip Chacko Theruvakattil Iowa State University Follow this and additional works at: https://lib.dr.iastate.edu/rtd Part of the Mechanical Engineering Commons Recommended Citation Theruvakattil, Philip Chacko, "Automatic constraint-based synthesis of non-uniform rational B-spline surfaces " (1994). Retrospective Theses and Dissertations. 10515. https://lib.dr.iastate.edu/rtd/10515 This Dissertation is brought to you for free and open access by the Iowa State University Capstones, Theses and Dissertations at Iowa State University Digital Repository. It has been accepted for inclusion in Retrospective Theses and Dissertations by an authorized administrator of Iowa State University Digital Repository. For more information, please contact [email protected]. INFORMATION TO USERS This manuscript has been reproduced from the microSlm master. UMI films the text directly from the original or copy submitted. Thus, some thesis and dissertation copies are in typewriter face, while others may be from any type of computer printer. The quality of this reproduction is dependent upon the quality of the copy submitted. Broken or indistinct print, colored or poor quality illustrations and photographs, print bleedthrough, substandard margins, and improper alignment can adversely affect reproduction. In the unlikely event that the author did not send UMI a complete manuscript and there are missing pages, these will be noted. Also, if unauthorized copyright material had to be removed, a note will indicate the deletion. Oversize materials (e.g., maps, drawings, charts) are reproduced by sectioning the original, beginning at the upper left-hand comer and continuing from left to right in equal sections with small overlaps.
    [Show full text]
  • Bayesian Interpolation of Unequally Spaced Time Series
    Bayesian interpolation of unequally spaced time series Luis E. Nieto-Barajas and Tapen Sinha Department of Statistics and Department of Actuarial Sciences, ITAM, Mexico [email protected] and [email protected] Abstract A comparative analysis of time series is not feasible if the observation times are different. Not even a simple dispersion diagram is possible. In this article we propose a Gaussian process model to interpolate an unequally spaced time series and produce predictions for equally spaced observation times. The dependence between two obser- vations is assumed a function of the time differences. The novelty of the proposal relies on parametrizing the correlation function in terms of Weibull and Log-logistic survival functions. We further allow the correlation to be positive or negative. Inference on the model is made under a Bayesian approach and interpolation is done via the posterior predictive conditional distributions given the closest m observed times. Performance of the model is illustrated via a simulation study as well as with real data sets of temperature and CO2 observed over 800,000 years before the present. Key words: Bayesian inference, EPICA, Gaussian process, kriging, survival functions. 1 Introduction The majority of the literature on time series analysis assumes that the variable of interest, say Xt, is observed on a regular or equally spaced sequence of times, say t 2 f1; 2;:::g (e.g. Box et al. 2004; Chatfield 1989). Often, time series are observed at uneven times. Unequally spaced (also called unevenly or irregularly spaced) time series data occur naturally in many fields. For instance, natural disasters, such as earthquakes, floods and volcanic eruptions, occur at uneven intervals.
    [Show full text]
  • Interpolation & Polynomial Approximation Cubic Spline
    Interpolation & Polynomial Approximation Cubic Spline Interpolation I Numerical Analysis (9th Edition) R L Burden & J D Faires Beamer Presentation Slides prepared by John Carroll Dublin City University c 2011 Brooks/Cole, Cengage Learning Piecewise-Polynomials Spline Conditions Spline Construction Outline 1 Piecewise-Polynomial Approximation 2 Conditions for a Cubic Spline Interpolant 3 Construction of a Cubic Spline Numerical Analysis (Chapter 3) Cubic Spline Interpolation I R L Burden & J D Faires 2 / 31 Piecewise-Polynomials Spline Conditions Spline Construction Outline 1 Piecewise-Polynomial Approximation 2 Conditions for a Cubic Spline Interpolant 3 Construction of a Cubic Spline Numerical Analysis (Chapter 3) Cubic Spline Interpolation I R L Burden & J D Faires 3 / 31 Piecewise-Polynomials Spline Conditions Spline Construction Piecewise-Polynomial Approximation Piecewise-linear interpolation This is the simplest piecewise-polynomial approximation and which consists of joining a set of data points {(x0, f (x0)), (x1, f (x1)),..., (xn, f (xn))} by a series of straight lines: y y 5 f (x) x0 x1 x2 . .xj xj11 xj12 . xn21 xn x Numerical Analysis (Chapter 3) Cubic Spline Interpolation I R L Burden & J D Faires 4 / 31 Piecewise-Polynomials Spline Conditions Spline Construction Piecewise-Polynomial Approximation Disadvantage of piecewise-linear interpolation There is likely no differentiability at the endpoints of the subintervals, which, in a geometrical context, means that the interpolating function is not “smooth.” Often it is clear from physical conditions that smoothness is required, so the approximating function must be continuously differentiable. We will next consider approximation using piecewise polynomials that require no specific derivative information, except perhaps at the endpoints of the interval on which the function is being approximated.
    [Show full text]
  • Multivariate Lagrange Interpolation 1 Introduction 2 Polynomial
    Alex Lewis Final Project Multivariate Lagrange Interpolation Abstract. Explain how the standard linear Lagrange interpolation can be generalized to construct a formula that interpolates a set of points in . We will also provide examples to show how the formula is used in practice. 1 Introduction Interpolation is a fundamental topic in Numerical Analysis. It is the practice of creating a function that fits a finite sampled data set. These sampled values can be used to construct an interpolant, which must fit the interpolated function at each date point. 2 Polynomial Interpolation “The Problem of determining a polynomial of degree one that passes through the distinct points and is the same as approximating a function for which and by means of a first degree polynomial interpolating, or agreeing with, the values of f at the given points. We define the functions and , And then define We can generalize this concept of linear interpolation and consider a polynomial of degree n that passes through n+1 points. In this case we can construct, for each , a function with the property that when and . To satisfy for each requires that the numerator of contains the term To satisfy , the denominator of must be equal to this term evaluated at . Thus, This is called the Th Lagrange Interpolating Polynomial The polynomial is given once again as, Example 1 If and , then is the polynomial that agrees with at , and ; that is, 3 Multivariate Interpolation First we define a function be an -variable multinomial function of degree . In other words, the , could, in our case be ; in this case it would be a 3 variable function of some degree .
    [Show full text]
  • B-Spline Basics
    B(asic)-Spline Basics Carl de Bo or 1. Intro duction This essay reviews those basic facts ab out (univariate) B-splines which are of interest in CAGD. The intent is to give a self-contained and complete development of the material in as simple and direct a way as p ossible. For this reason, the B-splines are de ned via the recurrence relations, thus avoiding the discussion of divided di erences which the traditional de nition of a B-spline as a divided di erence of a truncated power function requires. This do es not force more elab orate derivations than are available to those who feel at ease with divided di erences. It do es force a change in the order in which facts are derived and brings more prominence to such things as Marsden's Identity or the Dual Functionals than they currently have in CAGD. In addition, it highlights the following point: The consideration of a single B-spline is not very fruitful when proving facts ab out B-splines, even if these facts (such as the smo othness of a B-spline) can be stated in terms of just one B-spline. Rather, simple arguments and real understanding of B-splines are available only if one is willing to consider al l the B-splines of a given order for a given knot sequence. Thus it fo cuses attention on splines, i.e., on the linear combination of B-splines. In this connection, it is worthwhile to stress that this essay (as do es its author) maintains that the term `B-spline' refers to a certain spline of minimal supp ort and, contrary to usage unhappily current in CAGD, do es not refer to a curve which happ ens to b e written in terms of B-splines.
    [Show full text]