Interpolate a cubic spline between the three points $(0, 1), (2, 2) \text{ and } (4, 0).$
I'm trying to understand how to interpolate a given set of points using cubic splines with the help of this solved example. I don't quite get how they arrived at the matrix shown in [s11]. I'm aware of the conditions that have to be imposed so that we don't get an underdetermined linear equation system, but I'm not sure how these equations look like (why are there $8$ unknowns in each equation?) Can someone explain in detail how to get these equations?