Background: Given an increasing set of points $(x_i)_{i=0}^n \subset \mathbb [a,b]$, a cubic spline $S(x)\in C^2([a,b])$ is a piecewise cubic polynomial on each subinterval $(x_i, x_{i+1})$.
Given a set of real number $y_0, \ldots, y_n$, then if $S(x)$ is the natural cubic spline interpolant, it is also the minimizer of $\int\limits_a^b (u''(x))^2 \, dx$ over all $C^2$ functions with $u(x_i)=y_i$ for all $i$.
Question: I'm looking for a variational Euler-Lagrange kind of proof for theorems of this kind, i.e., how to build a $C^m$ interpolant that minimizes $\|Ku\|_2$ for some linear operator $K$.