I think I am doing something wrong when combining Lagrange multiplier and Euler-Lagrange equation.
I need to maximize a functional of the form: $$ \int\!dx~{L(x, G, \dot{G})}~~~~~\text{where } L(a, b, c) = bc - ac, $$ provided that: $$ C = \int\!dx~{K(x, G, \dot{G})}~~~~~\text{where } K(a, b, c) = v(a) \times c, $$ where $v$ itself is a fixed function. Boundary conditions $G(-b)=0$ and $G(b)=1$ are assumed. Applying the Lagrange multiplier method reduces the problem to maximizing $\int\!dx~({L - \lambda K})$, where $\lambda$ is constant.
Euler-Lagrange equation states that the functional's maximizer must satisfies: $$ \frac{\partial}{\partial b}(L-\lambda K) = \frac{d}{dx}[\frac{\partial}{\partial c}(L-\lambda K)]. $$ This gives: $$ \dot{G} = \frac{d}{dx}[G - x - \lambda v(x)] = \dot{G}-1-\lambda \dot{v}\\ \Longrightarrow \lambda = -\frac{1}{\dot{v}} $$ Which suffers from two problems:
- All the information about $G$ is lost! I can deduce literally nothing about it.
- The final result contradicts the assumption of constant $\lambda$.
What am I doing wrong? Thanks for your help!