introduction to numerical analysis i math/cmpsc 455 splines

9
Introduction to Numerical Analysis I MATH/CMPSC 455 Splines

Upload: daniela-rosaline-chapman

Post on 18-Jan-2016

228 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction to Numerical Analysis I MATH/CMPSC 455 Splines

Introduction to Numerical Analysis I

MATH/CMPSC 455

Splines

Page 2: Introduction to Numerical Analysis I MATH/CMPSC 455 Splines

SPLINE

Suppose that n+1 points has been specified and satisfy . A spline of degree k is a function such that:

On each subinterval , is a polynomial of degree

has a continuous (k-1)-th derivate on

Spline is a piecewise polynomial of degree at most k, and has continuous derivatives of all order up to k-1.

Page 3: Introduction to Numerical Analysis I MATH/CMPSC 455 Splines

Example: Spline of degree 0

Example: Spline of degree 1

Page 4: Introduction to Numerical Analysis I MATH/CMPSC 455 Splines

CUBIC SPLINE

A cubic spline is a piecewise cubic polynomial

x …

y …

is cubic polynomial (piecewise polynomial)

(Interpolation)

, (Continuity)

Page 5: Introduction to Numerical Analysis I MATH/CMPSC 455 Splines

Question: Can we uniquely determine the cubic spline?

Unknowns (coefficients):

Conditions:

• Interpolation:• Continuity of 1st order derivative:• Continuity of 2nd order derivative:

Total:

We have two degrees of freedom!

Page 6: Introduction to Numerical Analysis I MATH/CMPSC 455 Splines

DERIVE THE CUBIC SPLINE

Step 1: 2nd order derivative is piecewise linear;

(use the continuity of

2nd order derivative)

Step 2: Take integration twice, get the cubic spline with undetermined coefficient;

Step 3: Determine the coefficient of the low order terms; (use the

interpolation property)

Step 4: Determine the remaining coefficient

by solving a symmetric, tri-diagonal system;(use the continuity of 1st order derivative)

Page 7: Introduction to Numerical Analysis I MATH/CMPSC 455 Splines

Where:

Nature Cubic Spline:

Page 8: Introduction to Numerical Analysis I MATH/CMPSC 455 Splines

Clamped Cubic Spline:

Page 9: Introduction to Numerical Analysis I MATH/CMPSC 455 Splines