Example (Sturm-Liouville problem)

Let $$ \begin{align*} F[y] &= \int_{\alpha}^{\beta} p(x)\, (y')^2 + q(x)\, y^2\, dx, \\ G[y] &= \int_{\alpha}^{\beta} w(x) y^2\, dx \end{align*} $$ where $p,q,w$ are all functions of $x$ such that $p(x),w(x)>0$ for $x\in[\alpha,\beta]$.

We want to minimise $F[y]$ subject to $G[y] = 1$, and $y$ fixed at $\alpha,\beta$.

We use Euler-Lagrange on the Lagrangian $f = p(y')^2 +(q-\lambda w)y^2$: $$ \begin{align*} 0 = \dd{x}\left(\pdfd{f}{y'}\right) - \pdfd{f}{y} = \dd{x}(2py') - 2(q-\lambda w)y \end{align*} $$ usually written as $$ \begin{align*} \mathcal{L} y \equiv -\dd{x}(py') + qy = \lambda w y. \tag{*} \end{align*} $$ This is a Sturm-Liouville problem. (*) is of the form $\mathcal{L} y =\lambda w(x) y$, so it is an eigenvalue problem with $\lambda$ the eigenvalue and $w(x)$ the weight.

If we fixed $y(α) = 0 = y(β)$, Consider $(*)\times y$ and integrate: $$ \begin{align*} \lambda\int_{a}^{b} wy^2\, dx &= \int_{a}^{b} -y \dd{x}(py') + qy^2\, dx \\ &=\left[-pyy'\right]_{\alpha}^{\beta} + \int_{\alpha}^{\beta} py'^2+qy^2\, dx &&\text{by parts} \\ &= \int_{α}^{β} py'^2 + qy^2 \d x. \end{align*} $$ so minimum $F[y]$ corresponds to minimum eigenvalue $λ$.