4.10.12 · D1Advanced Topics (Elite Level)

Foundations — Calculus of variations — functionals, functional derivative

2,046 words9 min readBack to topic

This page assumes nothing. If a symbol appears on the parent note and you are not 100% sure what it means, it is defined here, in order, each anchored to a picture.


0. What a function even is (our starting stone)

The one fact we will reuse endlessly: at the lowest point of the curve the tangent line is flat — its slope is zero. That "slope " is the seed of the whole subject.

Figure — Calculus of variations — functionals, functional derivative
  • WHY the topic needs it: the entire calculus of variations is one giant analogy — "flat slope at the bottom," but for curves-of-curves instead of points. If the picture of slope zero at a minimum is solid, everything else is translation.

1. The derivative and the slope

  • Picture: in the figure above, the flat orange line at the valley floor has slope ; a tilted line anywhere else has non-zero slope.
  • WHY the topic needs it: " at a minimum" is the sentence the whole subject upgrades. We will meet the symbols and — both are kinds of derivative, so this is the ancestor of every symbol on the parent page.
Recall Test yourself

At the top of a hill, is the slope positive, negative, or zero? ::: Zero — flat tangent at any peak or valley.


2. Two flavours of derivative: partial vs total

The parent page writes both and . They are different tools. You must not mix them.

Figure — Calculus of variations — functionals, functional derivative
  • WHY the topic needs it: the Euler–Lagrange equation is literally partial minus total: . If you cannot tell the two apart, the equation is gibberish.

3. The integral — adding up a whole curve

  • Picture: the shaded band in the figure below is the running total the integral collects.
  • WHY the topic needs it: a functional adds up a cost along the entire curve — length, time, energy. That "add up along the curve" is exactly an integral. No integral, no functional.
Figure — Calculus of variations — functionals, functional derivative
Recall Test yourself

What does compute geometrically? ::: The signed area under between and .


4. The unknown is now a curve: , , and endpoints

  • WHY the topic needs it: we are choosing among all wires that start and end at the pins. Fixing the ends is what later makes a pesky boundary term vanish (Section 6).

5. The Lagrangian and the functional

  • WHY the topic needs it: this is the object we minimise. Everything else on the parent page exists to answer "which curve makes smallest?"

6. The wiggle: , the test function , and

This is the single genuinely new idea. Master this picture and the parent's derivation is inevitable.

Figure — Calculus of variations — functionals, functional derivative
  • WHY the endpoints matter now: integration by parts (parent, Section 2) spits out a boundary term . Because , this term is and drops out — that is the whole reason we demanded fixed endpoints.
Recall Test yourself

Why must the bump vanish at the endpoints? ::: To keep the pinned endpoints fixed, which kills the boundary term after integration by parts.


7. Two named results the parent leans on

  • WHY the topic needs it: this lemma is what lets the parent go from " for all " to the actual Euler–Lagrange equation "." Without it we would be stuck with an integral, not an equation.

Prerequisite map

Function f of x

Derivative and slope zero at a minimum

Partial derivative del versus total d dx

Definite integral adds a whole curve

Unknown is a curve y of x with slope y prime

Fixed endpoints y at a and y at b

Lagrangian L and functional J of y

Wiggle trick epsilon eta and Phi of epsilon

First variation delta J equals zero

Fundamental Lemma

Euler Lagrange equation

Where these feed onward: the machinery here powers Lagrangian mechanics, Geodesics and differential geometry, the Brachistochrone problem, and connects to Constrained optimization & Lagrange multipliers, Ordinary differential equations (the Euler–Lagrange equation is an ODE), and the broader setting of Functional analysis.


Equipment checklist

Cover the right side; you are ready for the parent note only if each reveal matches your own words.

Slope of a curve at its minimum
Zero — the tangent line is flat.
or means
The steepness (slope of the tangent) of at .
means
Wiggle only the slot, freeze and .
acting on means
Move and everything riding on it (, ) via the chain rule.
means
Sum of thin slices = area under from to .
and are
The unknown curve and its slope at each point.
Fixed endpoints mean
The two ends of the curve are pinned and cannot move.
Lagrangian is
The local cost of a tiny slice of the curve.
Functional is
A rule sending a whole curve to one number, .
Square brackets signal
The input is a function, not a number.
is
The best curve wiggled by a tiny knob times a bump .
Why
To keep endpoints fixed and kill the boundary term.
is
The functional turned into an ordinary function of one number .
says
The true minimiser is flat under any wiggle — ordinary "slope zero."
First variation is
The functional-world replacement for "derivative equals zero."
Fundamental Lemma states
If for all bumps , then .