I have
$f(x)=\begin{cases} a(x-2)^2 + b(x-1)^3 & x \in (-\infty,1] \\ c(x-2)^2 & x\in[1, 3] \\ d(x-2)^2 + e(x-3)^2 & x\in[3,\infty) \end{cases}$
and wish to find the parameters $a,b,c,d,e$ for which $f(x)$ is a cubic spline. After examining the $S_0,S_1,S_2$ conditions, I've found that $a = c$ and $c = d$, but no information on $e,b$.
I need to determine the values of $a,b,c,d,e$ so that the function interpolates $(0,26),(1,7),(4,25)$. However, won't I have to change the knots of $f(x)$? That is, change the bounds to $[0,1],[1,4],[4,\infty)$. If so, that would change the conditions on $a,b,c,d,e$ I found earlier...
How do I proceed?