Euler-Lagrange equation

Theorem (Euler-Lagrange equation) open_in_new

Given some function $f$ and constants $x_1,x_2,y_1,y_2$, Suppose $y(x)$ is an extremum of the functional $$ \begin{align*} F[y] = \int_{x_1}^{x_2} f(x,y(x),y'(x))\, dx \end{align*} $$ subject to $y(x_1) = y_1$ and $y(x_2) = y_2$.

Then $y(x)$ satisfies the Euler-Lagrange equation $$ \begin{align*} \dd{x}\left(\pdfd{f}{y'}\right) - \pdfd{f}{y} = 0. \end{align*} $$

Proof

Other boundary conditions may also work; see the proof.

First integrals of Euler-Lagrange open_in_new

The Euler-Lagrange equation is typically a second-order ODE in $y$.

  1. If $f$ does not depend explicitly on $y$, i.e. $f(x,y')$, then Euler-Lagrange gives $$ \begin{align*} \pdfd{f}{y'} = \text{const}. \end{align*} $$ (Derivation)

  2. If $f$ does not depend explicitly on $x$, i.e. $f(y,y')$, then Euler-Lagrange gives $$ \begin{align*} f - y'\pdfd{f}{y'} = \text{const}. \end{align*} $$ (Derivation)

Examples:

Euler-Lagrange with constraints open_in_new

We want to extremise $F[y] = \int_{\alpha}^{\beta} f(x,y,y')\, dx$ subject to $G[y] = \int_{\alpha}^{\beta} g(x,y,y')\, dx = k$ a constant.

In this case, we use Lagrange multiplier: extremise $\Phi[y;\lambda] = F[y] - \lambda G[y]$ for each $\lambda$, then set $\lambda$ so that the minimiser $y$ satisfies the constraint.

Therefore the Euler-Lagrange equation with Lagrange multiplier is $$ \begin{align*} \dd{x}\left(\pdd{y'}(f-\lambda g)\right) - \pdd{y}(f-\lambda g) = 0. \end{align*} $$

Example (Dido's problem) Example (Sturm-Liouville problem)

Euler-Lagrange with several dependent variables open_in_new

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)

Euler-Lagrange with several independent variables open_in_new

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

Proof

Example (potential energy in R2) Example (minimal surfaces)

Euler-Lagrange with higher derivatives open_in_new

We want to extremise $$ \begin{align*} F[y] = \int_{\alpha}^{\beta} f(x,y,y',y'',\ldots,y^{(n)})\, dx \end{align*} $$ subject to $y,y',\ldots,y^{(n-1)}$ being fixed at $\alpha$ and $\beta$.

The necessary condition for an extremum is $$ \begin{align*} \pdfd{f}{y} - \dd{x}\left(\pdfd{f}{y'}\right) + \dd[2]{x}\left(\pdfd{f}{y''}\right) + \ldots+(-1)^n \dd[n]{x}\left(\pdfd{f}{y^{(n)}}\right) \equiv \sum_{i=0}^{n} (-1)^i\dd[i]{x}\left(\pdfd{f}{y^{(i)}}\right) = 0 \end{align*} $$

Proof

If $f$ does not depend on $y$, we have a first integral $$ \begin{align*} \pdfd{f}{y'} - \dd{x}\left(\pdfd{f}{y''}\right) + \ldots + (-1)^{n-1} \dd[n-1]{x}\left(\pdfd{f}{y^{(n)}}\right) = \text{const.} \end{align*} $$

Example