Energy minimization
1-D example:
approximating splines
d
x,y
z
x,y