Example (Euler-Lagrange with higher derivatives)
Extremise $$ \begin{align*} F[y] = \int_{0}^{1} \underbrace{ (y'')^2}_{f(x,y,y',y'')}\, dx \end{align*} $$ subject to $y(0) = y'(0) = y(1) = 0$ and $y'(1)=1$.
We apply Euler-Lagrange: $$ \begin{align*} 0 &= \pdfd{f}{y} - \dd{x}\left(\pdfd{f}{y'}\right) + \dd[2]{x}\left(\pdfd{f}{y''}\right) \\ &= \dd[2]{x}(2y'') \\ 0 &= y^{(4)} \end{align*} $$ so the solution is a general cubic $y(x) = Ax^3 + Bx^2 + Cx + D$.
The boundary conditions determine the constants and we get $$ \begin{align*} y(x) = x^2(x-1). \end{align*} $$
This is in fact a global minimum. Let $y_0 = x^3 - x^2$ and perturb $y = y_0 + \eta$ with $\eta=\eta'=0$ at ends. This time $\eta$ is not necessarily small.
$$ \begin{align*} F[y] &= \int_{0}^{1} ((y_0 + \eta)'')^2 \, dx \\ &= \int_{0}^{1} (y_0'')^2 + 2y_0'' \eta'' + \underbrace{ (\eta'')^2}_{\geq 0} \, dx \\ &\geq F[y_0] + \int_{0}^{1} 2\eta''(6x-2)\, dx \\ &= F[y_0] + [2\eta'(6x-2)]_0^1 - \int_{0}^{1} 12\eta'\, dx \\ &= F[y_0] + 8\eta'(1) + 4\eta'(0) - 12\eta(1) + 12\eta(0) \\ &= F[y_0]. \end{align*} $$ Therefore $y_0(x)$ is an absolute minimiser of $F$.
Further example on sheet 1 Q11.