In order to assure C2 continuity our functions must be of at least degree 3 Here's what a parametric cubic spline function looks like: Alternatively, it can be written in matrix form: