Example (Dido's problem)
An example of isoperimetric problems.
See also example sheet 1 Q9 and Q12.
What curve of fixed length in $\R^2$ maximises the enclosed area?
We will exclude self-intersecting curves and not convex curves.
The area is $$ \begin{align*} A[y] = \int_{x_1}^{x_2} (y_2(x) - y_1(x)) \,dx \equiv \oint_C y(x)\,dx. \end{align*} $$ The length is $$ \begin{align*} L[y] = \oint_C \sqrt{1+(y')^2}\,dx. \end{align*} $$
We will use Euler-Lagrange with $f(x,y,y') = y - \lambda\sqrt{1+(y')^2}$.
Since $f$ does not depend on $x$, we will use the first integral $$ \begin{align*} k &= f - y' \pdfd{f}{y'} \\ &= y - \lambda \sqrt{1+(y')^2} + \lambda y' \frac{y'}{\sqrt{1+(y')^2}} \\ y-k &= \lambda\left(\frac{1}{\sqrt{1+(y')^2}}\right) \\ 1 + (y')^2 &= \frac{\lambda^2}{(y-k)^2} \\ y' &= \pm \frac{\sqrt{\lambda^2 - (y-k)^2}}{y-k} \\ x &= \pm\int \frac{y-k}{\sqrt{\lambda^2 - (y-k)^2}} dy \\ &= \mp \sqrt{\lambda^2 - (y-k)^2} + h \\ (x-h)^2 + (y-k)^2 &= \lambda^2 \end{align*} $$ so the solutions are circles with radius $\lambda$.
Finally choose $\lambda$ to satisfy constraint: $\lambda = L/2\pi$.