Example (potential energy in R2)
Extremise, for some $\mathcal{D}\in \R^2$, $$ \begin{align*} F[\phi] = \iint_D \underbrace{ \frac{1}{2}\phi_x^2 + \frac{1}{2}\phi_y^2}_{f(x,y,\phi,\phi_x,\phi_y)} \,dx\,dy. \end{align*} $$
Euler-Lagrange gives $$ \begin{align*} 0 &= \pdd{x}\left(\pdfd{f}{\phi_x}\right) + \pdd{y}\left(\pdfd{f}{\phi_y}\right) - \pdfd{f}{\phi} \\ &= \pdfd{\phi_x}{x} + \pdfd{\phi_y}{y} - 0 \\ &= \phi_{xx} + \phi_{yy} \\ &= \nabla^2 \phi \end{align*} $$ which is the Laplace equation.