Calulus of variations with differential coefficient on end point

47 Views Asked by At

$J = \int_{x_1}^{x_2} f(y,y',x)dx$

I want to find the function $y(x)$ that satisfies $y'(x_2)=a$ and makes $J$ extrema

It can't be solved using Euler-Lagrange Equation because of the first condition.

Is there any methods for solving that problem?