Hi Community,
I was wondering if anyone knows how to symbolically solve a system of equations to solve for the coefficients of cubic splines?
Cubic splines are 3rd degree polynomials that are equal to the values of the endpoints of the intervals and also are equal to the values of their first derivatives at the end points of the interval they are solved for.
f1(t)=c11+c12t+c13t^2+c14t^3
f2(t)=c21+c22t+c23t^2+c24t^3
f1(t0)=0
f1(t1)=k1
f2(t1)=k1
f1'(t1)=f2'(t1)
Heres my attempt at matlab code. I’d like to do this at each node to reduce the number of parameters in the total of the cubic spline fits for my ordered pair of points.
DSolve[{F1[t] == k1 + k2*t + k3*t^2 + k4*t^4, F2[t] == k5 + k6*t + k7*t^2 + k8*t^4, F1[0] == Fi1, F1[1] == Fi2, F2[1] == Fi2, F1'[1] = F2'[1] }, F1[t], t]
Does anyone have some code maybe with dsolve that could help me?