Write down the system of equations defining the natural cubic spline that goes through the points
A natural cubic spline
In order to interpolate between these 3 points, we will need to solve for two natural cubic functions, f_1(x)=a_1(x)^3+b_1(x)^2+c_1(x)+d_1 and f_1(x)=a_2(x)^3+b_2(x)^2+c_2(x)+d_2. This gives us a total of 8 parameters to solve for, and thus we need 8 equations.
From the values of the functions at the three points, we have the first 4 equations:
To ensure smoothness, we require that both the first and second derivatives of the two functions agree at their point of intersection, giving us two more equations:
Finally, since we wish to have interpolate using natural cubic splines, we will enforce the second derivatives of each function to be zero at the endpoints of the interval we are interpolating, so we have
Since we now have 8 equations to solve for the 8 unknown parameters, this system is fully defined.