Definition Suppose that knots are ξj,j=1,…,K. Then, the basis functions for natural cubic Spline are defined as: N1(X)=1,N2(X)=X,Nk+2(X)=dk(X)−dK−1(X) where dk(X)=ξK−ξk(X−ξk)+3−(X−ξK)+3