What are the natural boundary conditions for the following calculus of variations problem: Minimize: $$J[y] = \int_0^b (1+(y_1')^2 + (y_2')^2)) \,dx$$ subject to the boundary conditions $$y_1(0) = 0 = y_2(0)$$ and $$b + y_1(b) − y_2(b) = 1.$$
So I used Euler-Lagrange Equations to get a system of two equations. I get $y_1'' = 0$ and $y_2'' = 0$ so $y_1 = Ax + B$ and $y_2 = Cx + D$ Using first two boundary conditions I get $y_1 = Ax$ and $y_2 = Cx$ using the third condition I get $b + Ab - Cb = 1$ and I do not know where to go from here.
The boundary conditions allow more room than usual, since there are only three of them instead of four that one would normally have (a system of 2 ODE of 2nd order). So, the space of solutions of the ODE system is 1-dimensional: $$y_1=Ax, \quad y_2=Cx,\quad 1+A-C=0$$ We can still minimize within this 1-dimensional space: $$J[y]= b(1+A^2+C^2)$$ Since $C=A+1$, the minimum is at $A=-1/2$, $C=1/2$.