So I've been studying Euler-Lagrange equations, and on an assignment I have the problem to find them for
$J(y)=\int_a^bF(x,y,y')dx-By(b)+Ay(a)$
Where $y(a)$ and $y(b)$ are free, $A$ and $B$ are constant.
Without those terms outside the integral, this would be fairly straightforward. My first instinct was to fall back to the Gateaux derivative, but that went nowhere. My second thought was to recognize that
$\int_a^bF-y'dx = \int_a^bFdx-y(b)+y(a)$
and thought that if I could move everything back into the integral, it would be again straightforward, but I cannot think of a way to incorporate the two constants int that without piece-wise functions.
We've not studied anything of this sort, and the professor is tight-lipped about help on it.