Solving Cubic Spline Interpolation with Conditions and Coefficients

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
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

[tex]\tilde{f_{0}}[/tex] = x[tex]^{3}[/tex] + ax[tex]^{2}[/tex] + bx + c over the interval -1 [tex]\leq[/tex] x [tex]\leq[/tex] 1
[tex]\tilde{f_{1}}[/tex] = 2x[tex]^{3}[/tex] + x[tex]^{2}[/tex] - x + 4 over the interval 1 [tex]\leq[/tex] x [tex]\leq[/tex] 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 [itex]f_0(1)= f_1(1)[/itex], [itex]f_0'(1)= f_1'(1)[/itex], and [itex]f_0"(1)= f_1"(1)[/itex]. Those three conditions give you 3 equations to solve for a, b, and c.