Solving Cubic Spline Interpolation with Conditions and Coefficients

Orphen89
Messages
26
Reaction score
0

Homework Statement


Consider the use of cubic splines to interpolate a set of data. Suppose at some stage in the calculation we arrive at the following spline functions for two consecutive intervals

\tilde{f_{0}} = x^{3} + ax^{2} + bx + c over the interval -1 \leq x \leq 1
\tilde{f_{1}} = 2x^{3} + x^{2} - x + 4 over the interval 1 \leq x \leq 2


a) State the conditions that should be imposed on the two functions
b) Hence, compute a, b and c

I'm having a bit of difficulty getting started with this question. I've managed to do Lagrangian and Newton interpolation okay, but the lecture notes covering cubic splines do not go into much detail, so I honestly have no idea what to do. If anyone can provide a bit of help then I'd appreciate it.

Thanks in advance.
 
Physics news on Phys.org
To be a spline the to pieces must meet smoothly. That is, you must have f_0(1)= f_1(1), f_0'(1)= f_1'(1), and f_0"(1)= f_1"(1). Those three conditions give you 3 equations to solve for a, b, and c.
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top