Euler-Lagrange with several dependent variables

Let $\v y(x) = (y_1(x), y_2(x), \ldots, y_n(x))$ and we want to extremise $$F[\v y] = \int_{\alpha}^{\beta} f(x,y_1,y_2,\ldots,y_n, y_1', y_2',\ldots,y_n')\, dx$$ subject to boundary conditions $\v y(\alpha) = \v y_1$ and $\v y(\beta) = \v y_2$.

The necessary condition for an extremum is $$ \begin{align*} \dd{x}\left(\pdfd{f}{y_i'}\right) - \pdfd{f}{y_i} = 0, \quad \forall i=1,2,\ldots,n. \end{align*} $$

Proof

First integrals of Euler-Lagrange with several dependent variables open_in_new
  1. If $f$ does not depend on $y_j$ for some $j$, then $\pdfd{f}{y_j} = 0$ so $$ \begin{align*} \pdfd{f}{y_j'} = \text{const.} \end{align*} $$

  2. If $f$ does not depend on $x$, then we have $$ \begin{align*} f - \sum_{i=1}^{n} y_i' \pdfd{f}{y_i'} = \text{const.} \end{align*} $$ (Derivation)

Example (geodesics on surfaces)