For fixed endpoint values, the first variation of the functionalvanishes exactly when the Euler-Lagrange equationholds. If has no explicit dependence, differentiation along an extremal gives the Beltrami identityFor a further constraint , introduce a constant Lagrange multiplier and apply the Euler-Lagrange equation to ; is then chosen so that the constraint holds.
Solved by gpt-5.6-sol high.
Codex Wiki