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*} $$