I would like to draw a curve between two points that minimizes the square of the second derivative integrated along the curve. 


$J(y) = \int\_{1}^{0} {y}''^2 dx $


The first derivative for the start and end point are known and must be preserved, and all values on the curve between the start and end point must fall within some range l < e < u. 


$y(0) = a, y(1) = b, y'(0) = c, y'(1) = d$


$y(t) = e, \forall t \in [0, 1] \implies l < e < u$


Additionally the curve should be continuous in the interval.


Sincere thanks to Wadim Zudilin for recommending posting an example, I know realize my first post was not even asking the right thing :(



Minimizing functionals constrained in a box
Just to elaborate a bit on what Rahul and I mentioned in the comments. 


Take the action functional to be $\int\_0^1 (y'')^2 dt$, with prescribed boundary conditions $y(0) = a$, $y(1) = b$, $y'(0) = c$, $y'(1) = d$. For finding the free evolution, take the variation of the function relative to $y$ and set it to zero. Immediately this gives
$$\int\_0^1 y'' (\delta y)'' dt = 0 $$
for any perturbation. The boundary conditions prescribed implies that $\delta y(0) = \delta y(1) = \delta y'(0) = \delta y'(1) = 0$. So we are allowed to integrate by parts twice (assuming the solution is $C^4$) and obtain $y'''' = 0$, which implies that $y(t)$ is a cubic polynomial in time and thus has 4 free parameters, which we can fix by the boundary values. 


The intuition for the bounded case is that, until the evolution hits the wall, locally the equation of motion should be identical to the free evolution. So the solution should be composed piecewise of cubic polynomials. Every time it hits the wall it should receive a hard impact, which suggests that $y''''(\tau\_i) = c\delta\_{\tau\_i}$, the Dirac delta. (The same way that for a hard billiard which away from the walls travel via $x'' = 0$ receive a delta function impact in the second derivative when it hits a wall.) This suggests that $y'''$ is a step function of $t$, and $y''$ is continuous. 


For an example, let $l = -1, u = 1$, let the initial time be $t = 0$, and final time be $t = 2$. Let $a = b = 0$, and $c = d = 6$. 


First solve the free problem: we want 
$$ k\_3 t^3 + k\_2 t^2 + k\_1 t + k\_0 = y(t) $$
Plugging in the values for the four points we find by solving the linear system that the equation should be
$$ y(t) = 3t^3 - 9 t^2 + 6t $$
which achieves its local max and min in $[0,2]$ at $1\pm \sqrt{1/3}$, at which points $|y| = |\pm \sqrt{4/3}| > 1$. So the free evolution is no go. 


There should be two break points, but for illustration we try first with one break point. Assume the break point is at $\tau$ where $y(\tau) = 1$. So we have a system of equations using the data at the points $2,0,\tau$ and the cubic ansatz
$$ y |\_{[0,\tau]} = \sum \alpha\_kt^k,\qquad y|\_{[\tau,2]} = \sum \beta\_k t^k$$ 
which leads to 
$$\alpha\_0 = 0, \alpha\_1 = 6, \alpha\_3 \tau^3 + \alpha\_2\tau^2 + 6 \tau = 1, 3\alpha\_3\tau^2 + 2\alpha\_2\tau + 6 = 0$$
and
$$8\beta\_3 + 4\beta\_2 + 2\beta\_1 + \beta\_0 = 0, 12\beta\_3 + 4\beta\_2 + \beta\_1 = 6, \beta\_3\tau^3 + \beta\_2\tau^2 + \beta\_1\tau + \beta\_0 = 1, 3\beta\_3\tau^2 + 2\beta\_2\tau + \beta\_1 = 0$$
which gives
$$\alpha\_0 = 0, \alpha\_1 = 6, \alpha\_2 = -12 / \tau, \alpha\_3 = 6 / \tau^2$$
$$\beta\_3 = (6\tau - 2)/(\tau - 2)^3, \beta\_2 = -3(5\tau^2 - 3\tau + 6) / 2(\tau - 2)^3 $$
Continuity of $y''$ then implies 
$$ 6\tau \alpha\_3 + 2\alpha\_2 = 6 \tau\beta\_3 + 2\beta\_2 $$
or
$$ 3\tau^2 + 23 \tau^2 - 42 \tau - 32 = 0$$
which has two negative roots and one positive one at $\tau = 2$ which we can throw out. And thus 1 break point it not enough. 


A direct computation (if I did it right, which is not guaranteed) with 2 break points $\sigma\in [1,2]$ and $\tau \in[0,1]$ yields that $\tau = 1/2$ and $\sigma = 3/2$ an admissible pair. It is just linear algebra in the end. 


