Jump to first page Chapter 3 Splines Definition (3.1) : Given a function f defined on [a, b] and a set of numbers, a = x 0 < x 1 < x 2 < ……. < x n = b,

Slides:



Advertisements
Similar presentations
5.4 Basis And Dimension.
Advertisements

Ch 7.7: Fundamental Matrices
Lecture 10 Curves and Surfaces I
SOLUTION OF STATE EQUATION
1 Example 1: quantum particle in an infinitely narrow/deep well The 1D non-dimensional Schrödinger equation is where ψ is the “wave function” (such that.
Multi-degree of Freedom Systems Motivation: Many systems are too complex to be represented by a single degree of freedom model. Objective of this chapter:
Numerical Methods.  Polynomial interpolation involves finding a polynomial of order n that passes through the n+1 points.  Several methods to obtain.
Interpolation A method of constructing a function that crosses through a discrete set of known data points. .
Autar Kaw Humberto Isaza
CE33500 – Computational Methods in Civil Engineering Differentiation Provided by : Shahab Afshari
CS 445/645 Fall 2001 Hermite and Bézier Splines. Specifying Curves Control Points –A set of points that influence the curve’s shape Knots –Control points.
Selected from presentations by Jim Ramsay, McGill University, Hongliang Fei, and Brian Quanz Basis Basics.
Chapter 18 Interpolation The Islamic University of Gaza
1 Chapter 4 Interpolation and Approximation Lagrange Interpolation The basic interpolation problem can be posed in one of two ways: The basic interpolation.
1 Curve-Fitting Spline Interpolation. 2 Curve Fitting Regression Linear Regression Polynomial Regression Multiple Linear Regression Non-linear Regression.
Computational Methods in Physics PHYS 3437
Experimental Modeling
A second order ordinary differential equation has the general form
Ch 7.8: Repeated Eigenvalues
Ch 7.5: Homogeneous Linear Systems with Constant Coefficients
Chapter 6 Numerical Interpolation
Boyce/DiPrima 9 th ed, Ch 3.1: 2 nd Order Linear Homogeneous Equations-Constant Coefficients Elementary Differential Equations and Boundary Value Problems,
Lecture 35 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
GENERALIZATION OF THE METHOD OF FINITE DIFFERENCES GENERALIZATION OF THE METHOD OF FINITE DIFFERENCES ARYASSOV, Gennady BARASKOVA, Tatjana GORNOSTAJEV,
Simpson Rule For Integration.
Extrapolation Models for Convergence Acceleration and Function ’ s Extension David Levin Tel-Aviv University MAIA Erice 2013.
Review of Interpolation. A method of constructing a function that crosses through a discrete set of known data points.
Numerical Methods Part: Simpson Rule For Integration.
1 Interpolation. 2 What is Interpolation ? Given (x 0,y 0 ), (x 1,y 1 ), …… (x n,y n ), find the value of ‘y’ at a.
Today’s class Spline Interpolation Quadratic Spline Cubic Spline Fourier Approximation Numerical Methods Lecture 21 Prof. Jinbo Bi CSE, UConn 1.
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 3 Polynomial and Rational Functions Copyright © 2013, 2009, 2005 Pearson Education, Inc.
Interpolation produces a function that matches the given data exactly. The function then can be utilized to approximate the data values at intermediate.
CHAPTER 3 NUMERICAL METHODS
1 Example 1 Evaluate Solution Since the degree 2 of the numerator equals the degree of the denominator, we must begin with a long division: Thus Observe.
Lecture 22 Numerical Analysis. Chapter 5 Interpolation.
Introduction to Numerical Analysis I MATH/CMPSC 455 Splines.
Integration Copyright © Cengage Learning. All rights reserved.
7.4 Solving Polynomial Equations
Ch 9.2: Autonomous Systems and Stability In this section we draw together and expand on geometrical ideas introduced in Section 2.5 for certain first order.
Trajectory Generation
Cubic Spline Interpolation. Cubic Splines attempt to solve the problem of the smoothness of a graph as well as reduce error. Polynomial interpolation.
Designing Parametric Cubic Curves 1. 2 Objectives Introduce types of curves ­Interpolating ­Hermite ­Bezier ­B-spline Analyze their performance.
 3.3 Hermite Interpolation Chapter 3 Interpolation and Polynomial Approximation -- Hermite Interpolation Find the osculating polynomial P(x) such that.
Determining 3D Structure and Motion of Man-made Objects from Corners.
OR  Now, we look for other basic feasible solutions which gives better objective values than the current solution. Such solutions can be examined.
1 Chapter 4 Interpolation and Approximation Lagrange Interpolation The basic interpolation problem can be posed in one of two ways: The basic interpolation.
One problem arises when a function is given explicitly, but we wish to find a “ simpler ” type of function, such as a polynomial, that can be used to.
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 3 Polynomial and Rational Functions Copyright © 2013, 2009, 2005 Pearson Education, Inc.
Copyright © Cengage Learning. All rights reserved.
The Derivative and the Tangent Line Problem
Interpolation.
Numerical Analysis Lecture12.
PROGRAMME F6 POLYNOMIAL EQUATIONS.
We will be looking for a solution to the system of linear differential equations with constant coefficients.
A second order ordinary differential equation has the general form
Computer Graphics Lecture 37
5.6 Find The Rational Zeros
Chapter 15 Curve Fitting : Splines
Chapter 6 Direct Methods for Solving Linear Systems
Spline Interpolation Class XVII.
Numerical Analysis Lecture 23.
Numerical Analysis Lecture10.
5.3 Higher-Order Taylor Methods
SKTN 2393 Numerical Methods for Nuclear Engineers
Systems of Equations Solve by Graphing.
Antiderivatives and Indefinite Integration
Numerical Analysis Lecture11.
Chapter 2 A Survey of Simple Methods and Tools
Numerical Analysis Lecture 24.
Presentation transcript:

Jump to first page Chapter 3 Splines Definition (3.1) : Given a function f defined on [a, b] and a set of numbers, a = x 0 < x 1 < x 2 < ……. < x n = b, called nodes, a cubic spline interpolant S, for f is a function that satisfies the following condition:

Jump to first page (3.1). S is a cubic polynomial, denoted S j, on the subinterval [ x j, x j + 1 ] for each j = 0, 1,..., n-1. (3.2). S(x j ) = f(x j ) for each j = 0, 1, …, n. (The spline passes through each data point.)

Jump to first page (3.3). S j + 1 (x j + 1 ) = S j (x j + 1 ) for each j = 0, 1, …, n-2. ( The spline forms a continuous function.) (3.4). S j + 1 (x j + 1 ) = S j (x j + 1 ) for each j = 0, 1, …, n-2. ( The spline forms a smooth function.) (3.5). S  j + 1 (x j + 1 ) = S  j (x j + 1 ) for each j = 0, 1, …, n-2. ( The second derivative is continuous.)

Jump to first page (3.6). One of the following set of boundary conditions is satisfied: (4.6.1) S  (x 0 ) = S  x n ) = 0 ( free or natural boundary) (4.6.2) S(x 0 ) = f  (x 0 ) and S(x n ) = f  (x n ) ( Clamped boundary) Although cubic splines are defined with other boundary conditions, the conditions given above are sufficient for our purposes. When the free boundary conditions occur, the spline is called a natural cubic spline.

Jump to first page and its graph approximates the shape, which a long flexible rod would assume if forced to go through each of the data points {( x 0, f(x 0 )), ( x 1, f(x 1 )), …, ( x n, f(x n ))}. Similarly, when the clamped boundary conditions occur, the spline is called a clamped cubic spline. In general, clamped boundary conditions lead to more accurate approximations since they include more information about the function.

Jump to first page However, for this type of boundary conditions to hold, it is necessary to have either the value of the derivative at the endpoints or acceptable approximations to those values. Hence we concentrate here only on natural cubic interpolants. To construct the cubic spline interpolant for a given function f, the conditions in the definition (3.1) are applied to the cubic polynomials.

Jump to first page S j (x) = a j + b j (x – x j ) + c j (x – x j ) 2 + d j (x – x j ) 3 ; for each j = 0, 1, …, n-1. Clearly, S j (x j ) = a j = f(x j ), and if conditions (3.3) are applied, a j + 1 = S j + 1 (x j + 1 ) = S j (x j + 1 ) = a j + b j (x j +1 – x j ) + c j (x j + 1 – x j ) 2 + d j (x j + 1 – x j ) 3 for each j = 0, 1, …, n-2.

Jump to first page Since the term (x j+1 – x j ) will be used repeatedly in this development, it is convenient to introduce the notation h j = x j+1 – x j ; for each j = 0, 1, …, n-1. If we also define a n = f(x n ), then the equation a j + 1 = a j + b j h j + c j h j 2 + d j h j 3 ; holds for each j = 0, 1, …, n-1. (3.9) In a similar manner, define b n = S(x n ) and observe that S j (x) = b j + 2c j ( x – x j ) + 3d j (x- x j ) 2 Implies S j (x j ) = b j for each j = 0, 1, …, n-1.

Jump to first page Appling condition (3.4), we get b j + 1 = b j + 2c j h j + 3d j h j 2 ; for each j = 0, 1, …, n-1. (3.10) Another relationship between the coefficients of S j is obtained by defining c n = S  x n ) /2 and applying condition (3.5)  In this case, c j + 1 = c j + 3d j h j ; for each j = 0, 1, …, n-1. (3.11) Solving for d j in Eq. (3.11) and substituting this value into Eqs. (3.9) and (3.10) gives the new equations

Jump to first page a j + 1 = a j + b j h j + (h j 2 / 3) (2c j + c j + 1 ) ; for each j = 0, 1, …, n-1. (3.12) and b j + 1 = b j + h j (c j + c j + 1 ) ; for each j = 0, 1, …, n-1. (3.13) The final relationship involving the coefficients is obtained by solving the appropriate equation in the form of equation (3.12), first for b j, b j = (1/h j ) (a j +1 – a j ) – (h j / 3) (2c j + c j +1 ) (3.14) and then, with a reduction of the index, for b j – 1, b j –1 = (1 / h j – 1 ) (a j – a j –1 ) – (h j –1 / 3)(2c j –1 + c j ).

Jump to first page Substituting these values into the equation derived from Eq. (3.13), when the index is reduced by 1, gives the linear system of equations h j –1 c j – 1 + 2(h j – 1 + h j )c j +h j c j +1 = (3/h j )(a j +1 – a j ) – (3/ h j – 1 )(a j – a j –1 ); for each j = 0, 1, …, n-1. (3.15) This system involves, only c j s as unknowns, since the value of h j s and a j s are given by the spacing of the nodes x j s and the value of f at the nodes.

Jump to first page Note that once the value of c j s are known, it is a simpler matter to find the remainder of the constants b j s from Eq. (3.14) and d j s from Eq. (3.11) and to construct the cubic polynomials S j s. The natural boundary conditions in this case imply that c n = S  (x n ) / 2 = 0 that 0 =S  (x 0 ) = 2c 0 +6d 0 (x 0 – x 0 ) So, c 0 = 0.

Jump to first page The two equations c 0 = 0 and c n = 0 together with the equations in (3.15) produce a linear system described by the vector equation Ax = b, where A is ( n+1 )*( n +1) matrix given below. A =

Jump to first page With x = and b =

Jump to first page Note : Solution of this system is usually obtained using Crouts Algorithm. End of Chapter 3 Go to Chapter 4