4.10.12 · D4Advanced Topics (Elite Level)

Exercises — Calculus of variations — functionals, functional derivative

1,893 words9 min readBack to topic

Before we start, one shared picture: a functional takes a whole curve and hands back a single number, and we hunt for the curve that makes that number stationary (usually smallest).

Figure — Calculus of variations — functionals, functional derivative

The red curve is the true minimiser ; the thin black curve is a wiggled competitor . Both share the same endpoints (that is why the black wiggle is pinned to zero at and ). Every solution below is ultimately "wiggle and demand no first-order change."


Level 1 — Recognition

L1.1 · Identify the Lagrangian

For the functional write down , then and .

Recall Solution

WHAT is ? The integrand: . The two partials treat and as independent slots (freeze one while differentiating the other): Note still carries the ; that matters when we later take of it.

L1.2 · Is free of explicit ?

For each Lagrangian, say whether the Beltrami identity applies (i.e. whether ): (i) , (ii) , (iii) , (iv) .

Recall Solution

Beltrami needs no explicit — meaning appears only through and , never bare.

  • (i) : no bare applies.
  • (ii) : bare out front → does not apply.
  • (iii) : no bare applies.
  • (iv) : no bare applies.

Level 2 — Application

L2.1 · Straight-line shortest path with data

Minimise with , . Find and the minimal length.

Recall Solution

WHY E–L here: has no bare , so ; E–L reduces to , i.e. . A constant of forces (the ratio is a monotonic function of the slope, so fixing it fixes the slope). Thus , a straight line — exactly the red line in Figure 2. Fit the endpoints: . . So . Length: slope over a run of gives rise ; length .

Figure — Calculus of variations — functionals, functional derivative

L2.2 · Turn the E–L crank fully

Find the extremal of with .

Recall Solution

. Partials: , . E–L: . Integrate twice: , then . Endpoints: . . .


Level 3 — Analysis

L3.1 · Where the naive endpoint step fails (natural boundary condition)

Minimise with but the right end is free (not prescribed). Find .

Recall Solution

WHAT changes: in the integration-by-parts step the boundary term no longer dies at , because is not forced to (the endpoint is free to move).

  • At : (that end is fixed) → term vanishes there.
  • At : is arbitrary → to kill for all such we need . This is the natural boundary condition. Interior equation (E–L): , so , . E–L: . Integrate: , . Apply conditions: fixed left end . Natural condition . , and indeed : the curve arrives horizontally at the free end.

L3.2 · Why the Beltrami cancellation happens

Show, for with no explicit , that , and explain which two terms cancel and why.

Recall Solution

Total -derivative of (chain rule, no bare ): . Now differentiate the product : . Subtract: The two terms cancel — one from , one from the product rule — leaving By E–L the bracket is , so . The cancellation of the term is exactly why Beltrami never needs the second derivative.


Level 4 — Synthesis

L4.1 · Beltrami on the pendulum-like Lagrangian

Find a first integral of using Beltrami, then confirm it is consistent with the E–L equation .

Recall Solution

No explicit , so Beltrami applies. , . Multiply by : . This is a conserved "energy". Consistency check: differentiate w.r.t. : . For non-constant , , i.e. — exactly the E–L equation. ✓

L4.2 · Constrained extremal (a Lagrange multiplier for functionals)

Among curves on with and fixed , find the curve that minimises . (This is the isoperimetric setup; it connects to Constrained optimization & Lagrange multipliers.)

Recall Solution

WHY a multiplier: we minimise one functional subject to another being constant — the functional analogue of Lagrange multipliers. Form and apply E–L to . , . E–L: . With this is the classic eigenvalue problem: needs , so , . Smallest is the smallest eigenvalue: , giving . Fix from the constraint: . Minimal value: . So .


Level 5 — Mastery

L5.1 · Second-order Lagrangian (Euler–Poisson)

For with and fixed at both ends, derive the stationarity equation. Then apply it to (bending energy of a beam).

Recall Solution

WHY a new equation: now depends on the second derivative, so the variation produces an term needing integration by parts twice. Vary with : IBP once on the term and twice on the term; all boundary terms vanish because and are pinned at both ends. Extracting the common : Beam: , so , , . Equation: . General solution: — a cubic, the shape of an ideal bent elastic beam. ✓

L5.2 · Invariance ⇒ conservation (baby Noether)

Suppose has no explicit (translation symmetry in ). Using Beltrami, name the conserved quantity and verify it for the free particle .

Recall Solution

The theorem in miniature: "-independence of " (a symmetry) forces to be constant along any extremal — this is the conserved Hamiltonian/energy, the Beltrami constant with a sign flip. Beltrami: . Free particle : , so . Constant ⇒ constant ⇒ straight line. Symmetry (no preferred ) has produced a conservation law (constant "speed"), the pattern that in Lagrangian mechanics becomes energy conservation. ✓


Recall Master checklist (cover and recite)

Full E–L uses both AND ::: yes — never just . Beltrami condition ::: no explicit (bare) in . Free endpoint gives ::: natural condition there. Constraint const handled by ::: functional Lagrange multiplier, extremise . depends on ⇒ equation ::: . -independence of ⇒ ::: conserved (Beltrami / baby Noether).

Related deep material: Brachistochrone problem, Geodesics and differential geometry, Ordinary differential equations, Functional analysis.