I am not sure about the boundary conditions for a variational problem when $~f~$ is a function of higher order derivatives of $~y~.$
i.e. if we have: $~f(x,y,y',y'')~$ then what is the natural boundary condition in this case?
Any help is highly appreciated.