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

[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.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
1
Views
2K
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 13 ·
Replies
13
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K