Euler-Lagrange with several independent variables
Let $\v x = (x_1, x_2,\ldots, x_n)$ and we want to find $\phi(x_1, x_2, \ldots, x_n)$ to extremise $$ \begin{align*} F[\phi] = \iiint_D f(x_1, x_2, \ldots, x_n, \phi, \phi_{x_1}, \phi_{x_2}, \ldots, \phi_{x_n})\, dV \end{align*} $$ (where $\phi_{x_j} \equiv \pdfd{\phi}{x_j}$) subject to $\phi(\v x) = g(\v x)$ on the boundary $\partial D$.
The necessary condition for an extremum is $$ \begin{align*} \left(\sum_{i=1}^n \pdd{x_i}\left(\pdfd{f}{\phi_{x_i}}\right)\right) - \pdfd{f}{\phi} = 0 \end{align*} $$ where $\partial/\partial x_i$ fixes $x_1,\ldots,x_n$ except $x_i$ but not $\phi, \phi_{x_1}, \ldots, \phi_{x_n}$, and $\partial/\partial \phi_{x_i}$ fixes $x_1, \ldots, x_n, \phi$ and $\phi_{x_1}, \ldots, \phi_{x_n}$ except $\phi_{x_1}$