So I know $f^{'}_1(x)=6x+3ax^2$ and $f'_2$(x)=6x+3bx^2$
and $f^{"}_1(x)=6+6ax$ and $f^{"}_2(x)=6+6bx$
Now, $f_1(0)=0$ and $f_2(0)=c$, therefore $c=0$
And $f^{"}_1(0)=0$ and $f^{"}_2(0)=0$
But they don't seem to help me solve for a and b.
So I know $f^{'}_1(x)=6x+3ax^2$ and $f'_2$(x)=6x+3bx^2$
and $f^{"}_1(x)=6+6ax$ and $f^{"}_2(x)=6+6bx$
Now, $f_1(0)=0$ and $f_2(0)=c$, therefore $c=0$
And $f^{"}_1(0)=0$ and $f^{"}_2(0)=0$
But they don't seem to help me solve for a and b.
First of all, $f''(0) \neq 0$.
You need the following conditions instead, for it to be a cubic spline: $$ f'_1(0)=f'_2(0)$$ $$ f''_1(0)=f''_2(0)$$ And since it must be natural: $$ f''_1(-1)=0=f''_2(1) $$
These will let you find $a, b$ and $c$.