I want to find a smooth function $y : [0,1] \to \mathbb{R}$ that minimizes
$$ S = \int_0^1 (y(x)y'''(x) + 3 y'(x) y''(x))^2 dx $$ subject to the constraints / boundary conditions: (i) $y(0)=1$, (ii) $y(1)=0$, (iii) $y'(0)=0$, (iv) $y'(1)=0$.
What is the right approach for this? If I solve the unconstrained Euler-Poisson equation I get the square root of a fifth order polynomial, but this solution cannot satisfy all four constraints.
I understand how to implement constraints via Lagrange multipliers if the constraints are themselves differential equations, but is there a similar way to implement these boundary conditions?
(This is probably a duplicate of some sort, but I couldn't find the answer, mainly, I assume, because I don't know the right keyword to search for.)
Edit: As mentioned in the comments, I might be happy knowing just the minimal value for $S$, even if I don't find the explicit form of the minimizing $y(x)$.
With a mix of partial integration, Cauchy-Schwarz, and Taylor's theorem, I managed to show that $S \geq 1$ must hold, which is something already.
According to WolframAlpha, the explicit expression of the Euler-Poisson equation associated with $S$ is $$ -20y(y''')^2-30yy''y^{(4)}-12yy'y^{(5)}-2y^2y^{(6)}=0, \tag{1} $$ which can be simplified to $y(y^2)^{(6)}=0$. Therefore, the solutions to $(1)$ are $y(x)=0$ or $y(x)=\pm\sqrt{p(x)}$, where $p(x)=a_0+a_1x+a_2x^2+a_3x^3+a_4x^4+a_5x^5$ is an arbitrary$^{(*)}$ fifth-degree polynomial. The boundary conditions $y(0)=1$ and $y'(0)=0$ further imply that $y(x)=+\sqrt{p(x)}$, with $a_0=1$ and $a_1=0$. In addition, $y(1)=0$ implies $$ 1+a_2+a_3+a_4+a_5=0. \tag{2} $$ To enforce the fourth boundary condition, $y'(1)=0$, is less straightforward: since the denominator of $y'(x)=\frac{p'(x)}{2\sqrt{p(x)}}$ vanishes at $x=1$, we require that not only $p'(1)=0$, i.e. $$ 2a_2+3a_3+4a_4+5a_5=0, \tag{3} $$ but also that $p''(1)=0$: $$ 2a_2+6a_3+12a_4+20a_5=0. \tag{4} $$ In other words, $x=1$ must be a triple root of $p(x)$.
The system of equations $(2)$-$(4)$ is underdetermined; it has the one-parameter family of solutions $$ (a_2,a_3,a_4,a_5)=(-t-6,3t+8,-3t-3,t). \tag{5} $$ To determine $t$, let's plug $$ y_t(x):=\sqrt{1-(t+6)x^2+(3t+8)x^3-(3t+3)x^4+tx^5} \tag{6} $$ into $S[y]$ and minimize the result with respect to $t$. Letting WolframAlpha do the hard work, we obtain the surprisingly simple result $$ S[y_t(x)]=9t^2+48t+144. \tag{7} $$ It's straightforward to show that the minimum of $S[y_t(x)]$ occurs at $t=-\frac{8}{3}$, where it attains the value $S_{\min}=80$. One can also check here that the function that minimizes $S$, $$ y_{-8/3}(x)=\sqrt{1-\frac{10}{3}x^2+5x^4-\frac{8}{3}x^5} =\sqrt{\frac{1}{3}(1-x)^3(8x^2+9x+3)}\,, \tag{8} $$ is real in the interval $[0,1]$ and satisfies all the boundary conditions.
$^{(*)}$ To be precise, not completely arbitrary: $p(x)$ must be nonnegative in the interval $[0,1]$.