I am following a video lecture on spline regression where this formula is presented to design a cubic spline regression.
The teacher continues to explain that one would usually prefer the usage of "natural cubic splines" which add constraints that the polynomials are linear in the boundary regions.
My question: How would this formula need to change if I wanted to add these constraints?
