Natural boundary conditions for a free endpoint (source code)

= Natural boundary conditions for a free endpoint

When the values of $y$ are free at both fixed endpoint locations, integration by parts leaves the boundary term $[F_{y'}\eta]_a^b$. Since the endpoint variations are arbitrary, stationarity requires
$$
F_{y'}(a)=F_{y'}(b)=0.
$$