Numerical Methods

Cubic Interpolation

or

Substituting the expressions for c and d in (2.55), we obtain the spline in the interval [xi-1` xi] as

.........................1.4

Note that the spline second derivatives Mi-1, Mi are unknowns and are to be determined. Setting i = i 1 in (1.4),

we get the spline valid in the interval [xi, xi 1] as

.........................1.5

where hi 1 = xi 1 – xi. Differentiating (1.4) and (1.5), we get

.........................1.6

valid in the interval [xi-1, xi], and

..................1.7

valid in the interval [xi, xi 1].

Now, we require that the derivative F′(x) be continuous at x = xi. Hence, the left hand and right hand derivatives of F′(x) at x = xi must be equal, that is,

Using (1.6) and (1.7), we obtain