Functionals and Function Spaces
A function maps numbers to numbers; a functional maps whole functions to numbers. The arc length of a curve, the descent time of a bead, the action of a mechanical trajectory, and the bending energy of an elastic beam are each a single real number fixed by an entire profile — not by any one of its values. Writing such a quantity as , with square brackets by long convention, signals that its argument is a function drawn from some admissible class , and that lives one storey above ordinary calculus. The calculus of variations is the systematic study of how responds when the whole curve is deformed, and of which curves make stationary — the first variation, the Euler–Lagrange equation, and Hamilton's principle are all this one idea, differentiated. To do calculus on a functional we must first say two things the notation hides: which functions are allowed in, and how we measure when two of them are close. That is the job of the function space — a vector space of functions carrying a norm. The admissible class is almost always an affine slice of such a space: functions of a prescribed smoothness that also satisfy fixed endpoint data , . A deformation is then , and the test function must vanish wherever the data are pinned, so that stays admissible for every small . Two choices in that setup do real physical work. The norm — weak (, heights only) versus strong (, heights and slopes) — decides which curves count as near and therefore which minima exist at all. And the split of boundary data into essential (built into ) and natural (falling out of stationarity) is entirely a statement about how the space was defined. The function space is not decoration; it is part of the problem.
- A functional is a map that eats an entire function and returns one real number — arc length, action, energy — with square brackets marking the functional dependence.
- Its domain is a function space: a vector space of functions of fixed smoothness and boundary data, carrying a norm so that "nearby function" has a precise meaning.
- Most physical functionals are integrals ; this local integral structure is exactly what makes differentiable — you differentiate under the integral sign.
- The functional derivative is a gradient in infinitely many directions: , the Euler–Lagrange operator, and setting it to zero is .
- The norm chooses the minima: the sequence is -small () yet -large (slope ), which is why weak and strong extrema differ.
- Boundary data split into essential (imposed on ) and natural (emerging from ) — a distinction that lives entirely in how the space is built.
- Key idea: a functional is a real-valued function whose domain is a space of functions; the calculus of variations is ordinary calculus done on that infinite-dimensional domain, with the norm deciding what "small change" and "minimum" even mean.
A functional is a real-valued function whose domain is a space of functions; the calculus of variations is just ordinary calculus performed on that infinite-dimensional domain, with the choice of norm deciding what "small change" and "minimum" mean.
Where this lives today
The idea that a physical quantity is a functional, minimised over a function space, is load-bearing across modern computation and theory. The finite element method — the engine behind structural, aerodynamic, and electromagnetic simulation — is Volterra's discretisation heuristic made industrial: an energy functional is minimised over a finite-dimensional subspace of piecewise-polynomial shape functions, turning a PDE into a sparse linear system, with the choice of Sobolev space (, ) fixing which elements are admissible. In quantum chemistry, density functional theory rests on the Hohenberg–Kohn theorem that the ground-state energy is a functional of the electron density alone; minimising it is how essentially every molecule and material is now computed (the 1998 Nobel Prize in Chemistry). In quantum field theory the action is a functional over a space of field configurations, and Feynman's path integral sums across it; the same template drives optimal control, general relativity's Einstein–Hilbert action, and optimal transport. In every case the two questions this article insists on — which functions are admissible, and in what norm — separate a well-posed computation from a divergent one.
The physical picture
Think of an ordinary function as a machine: drop in a number, read off a number. A functional is a machine one storey higher: drop in a whole curve and read off a number. The arc-length machine swallows the entire shape of a path and returns its total length; the action machine swallows a trajectory and returns a number whose stationarity is Newton's law. The right mental image is a landscape over the space of admissible curves — each curve is a single point, its -value is the height above it, and a physical solution sits at the bottom of a valley. The first figure makes that concrete: several competing curves through the same two endpoints, each mapped by the arc-length functional to one number on a line, with the straight segment sitting lowest.
The second thing the picture must show is why the ruler matters. On a function space you can measure how far apart two curves are by their heights alone (the weak, norm) or by their heights and their slopes together (the strong, norm). These disagree violently: a curve can hug another in height while its slope thrashes wildly, so a functional that "sees" slope registers a large change where a height-only ruler sees almost none. The canonical witness is — vanishingly small in height, enormous in slope. Whether your functional feels that wiggle is exactly what separates a weak extremum from a strong one, as the second figure shows.
Admissibility encodes the physics in the same breath. Fixing and pins the endpoints of every allowed curve; demanding a continuous slope forbids kinks. Those constraints carve the admissible class out of a larger space of functions, and any deformation must respect them — which is precisely why the test functions that build a variation vanish wherever the data are held fixed.
The core equations
A functional is defined by its type: it is a rule that assigns one real number to each function in an admissible class. The square brackets are not decoration — they warn the reader that the slot expects an entire function, not a point value.
where: — the functional, a real-valued map; — the admissible class, a subset of a function space; — an admissible function, the argument of ; — the single real number assigned to . Reading: is to functions what an ordinary function is to numbers, one level up. Nearly every functional in physics is local and integral: its value accumulates a density along the curve. The integrand depends on only three slots — the point, the height, and the slope — and this locality is exactly what makes the theory tractable.
where: — the integrand or Lagrangian density, an ordinary function of three arguments; — the independent variable, ; — the height at ; — the slope . Reading: to differentiate you differentiate under the integral sign — the infinite-dimensional problem collapses to ordinary partial derivatives of . The domain is not "all functions" but an affine slice: functions smooth enough for to make sense, obeying the prescribed endpoint data. Those pinned values are the essential boundary conditions.
where: — functions with a continuous first derivative on ; — prescribed endpoint values (essential boundary conditions). Reading: is not a vector space (it does not contain unless ) but an affine translate of the space of variations that vanish at the ends. To measure proximity we need a norm, and the choice is physical, not cosmetic. The weak norm controls only heights; the strong norm controls heights and slopes together, a strictly finer topology.
where: — the uniform (sup) norm, sensitive to height only; — the strong norm, sensitive to height and slope. Reading: -close implies -close but never the reverse, which is the whole content of weak-versus-strong extrema. The derivative of a functional along a direction is the first variation, or Gateaux derivative — the infinite-dimensional analogue of a directional derivative. It is an ordinary -derivative of the number-valued function .
where: — the first variation of at in the direction ; — an admissible variation (test function) with at fixed ends. Reading: stationarity means for every admissible , the infinite-dimensional statement "all directional derivatives vanish". Carrying (5) through the integral (2) and integrating by parts factors the variation into a single density times . Because is arbitrary, that density must vanish pointwise — the functional gradient.
where: , — partial derivatives of the density; — the functional (variational) derivative. Reading: is the gradient of over function space, and setting it to zero is the Euler–Lagrange equation — the subject of the very next article.
The physics of it — three derivations
The goal is to turn the abstract map into something we can differentiate, and to show that its gradient is a single density — the Euler–Lagrange operator — sitting under the integral. We embed the curve in a one-parameter family, reduce to an ordinary function of the parameter , differentiate under the integral sign, integrate by parts to peel every derivative off the arbitrary variation , and invoke the fundamental lemma of the calculus of variations to turn "the integral vanishes for all " into "the density vanishes pointwise". The payoff: stationarity of an infinite-dimensional object becomes a single differential equation.
Step 1. Embed in the family , where is a fixed test function with so that for every . Why: a single real dial now sweeps out a curve of admissible functions, so the functional becomes an ordinary function of that we already know how to differentiate.
Step 2. Define . Because is fixed and is smooth, we may differentiate under the integral sign. Why: the endpoints do not move with , so passes inside the integral and only acts on the integrand.
Step 3. Apply the chain rule to in its height and slope slots, then set :
Why: only the height slot () and the slope slot () carry , contributing and respectively — this is the raw first variation.
Step 4. Integrate the second term by parts to move the derivative off :
The boundary term vanishes because . Why: with the variation off and onto , both surviving terms multiply the same undifferentiated , and we can factor it out.
Step 5. Collect terms into . If this vanishes for every admissible , the fundamental lemma forces the bracket to vanish identically, giving . Why: a continuous function whose weighted integral against all smooth test weights is zero must itself be zero — this is what promotes an integral identity to a pointwise differential equation. *Verified: , the Euler–Lagrange operator; consistent with Stone & Goldbart §1.2 and Gelfand & Fomin §3.*
Go deeper · Derivation B · 1 minFrom sampled function to functional — the discretisation heuristic
The aim is to demystify the functional derivative by exhibiting a functional as the continuum limit of an ordinary function of many variables, so that is literally an infinite-dimensional gradient. We sample the curve on a grid of points, replace the integral by a Riemann sum and slopes by finite differences, so becomes an ordinary function of the interior samples. Differentiating with respect to one sample — which sits in one height slot and two neighbouring slope differences — and letting the grid spacing vanish, the bracketed difference becomes a derivative and the Euler–Lagrange operator emerges as the gradient component, the same object derived analytically above, now seen as .
Step 1. Discretise the interval: with and , approximating slopes by forward differences . Why: replacing the curve by finitely many numbers turns the functional into a genuine multivariable function whose calculus is elementary.
Step 2. Approximate the integral by a Riemann sum,
so is now an ordinary function of the free interior values (the endpoints are fixed data). Why: with endpoints pinned, only the interior samples are free — these are the coordinates of our finite-dimensional stand-in for function space.
Step 3. Differentiate with respect to one interior value. The sample appears in the height slot at and inside the slope differences at and , giving
Why: this is just the multivariable chain rule bookkeeping — the two bracketed terms are the fingerprints of the two neighbouring finite-difference slopes that contain .
Step 4. Divide by and let . The bracket is minus a forward difference of , so , leaving
Why: the continuum limit converts a difference quotient of into its derivative, reproducing exactly the operator of the previous derivation and confirming that is the gradient of . *Verified: reduces to the Euler–Lagrange operator; the scaling makes the discrete gradient whose limit is ; consistent with Stone & Goldbart §1.2.*
Go deeper · Derivation C · 1 minFirst variation of the arc-length functional
The purpose is to run the general machinery on the oldest functional in geometry — the length of a curve — and watch it deliver the straight line as the unique stationary path, the geodesic of the plane. We take the arc-length density , note that it depends on slope alone, compute its single nonzero partial derivative, assemble the first variation, and integrate by parts. The vanishing boundary term (fixed endpoints) leaves a stationarity condition that forces the slope to be constant — and a curve of constant slope through two given points is the straight segment, closing the loop from abstract functional to concrete, checkable answer.
Step 1. Write the density . It has no explicit or dependence, so . Why: length accumulates , which depends only on how steep the curve is, never on where it is — hence the height slot drops out.
Step 2. Differentiate in the slope slot: . Why: this is the only surviving derivative, and it is exactly where is the tangent angle — a quantity the straight line will make constant.
Step 3. Assemble the first variation using the raw form from Derivation 1:
Why: with only the slope term remains, so length responds solely to how the variation changes the slope.
Step 4. Integrate by parts and impose fixed endpoints :
Stationarity for all then forces , so is constant, hence is constant — a straight line. Why: constant through two fixed points is a single segment, recovering the elementary fact that the shortest plane path is straight, now as a stationarity condition. *Verified: minimiser is the straight segment, the planar geodesic; const is the geometric reading; cf. Riley–Hobson–Bence §22.2.*
Limiting cases
Specialising the general integral functional (2) recovers the household functionals of physics and pins down what each demands of its function space.
| Case | Result | Meaning |
|---|---|---|
| Arc length | depends on slope only; minimisers are straight lines. Needs . | |
| Action of a particle | is the Lagrangian ; stationarity is Newton's law via Hamilton's principle. Needs . | |
| Dirichlet energy | Quadratic functional; Euler–Lagrange equation . Natural home is the Sobolev space . | |
| Beam bending energy | Second derivative enters; needs and the higher-derivative Euler–Lagrange operator. | |
| Pointwise (degenerate) | A valid linear functional that is not an integral — functionals need not be integrals. | |
| Linear / Riesz form | Linear in ; the exception, since arc length and action are nonlinear in . | |
| Several fields | One Euler–Lagrange equation per component — as for coordinates . |
Worked examples
1 · Arc length picks the straight line (fully numerical)
Between the points and , evaluate the arc-length functional on the straight line and on the parabola (both admissible — both hit the endpoints), and confirm the straight line is shorter, as Derivation 3 predicts.
Step 1. Straight line , so and the integrand is the constant . Hence , the ordinary Euclidean distance between the endpoints.
Step 2. Parabola , so and . The antiderivative is ; evaluating at gives .
Step 3. Compare: the parabola is longer by , about . This matches Derivation 3 — the straight line, the unique curve with const through these endpoints, is the minimising path, and every admissible competitor is strictly longer. The straight line wins: J = √2 ≈ 1.41421 versus 1.47894 for the parabola.
2 · Stationarity of the Dirichlet energy (first variation with numbers)
Take the Dirichlet energy on . Show that is stationary by computing the first variation in the direction , and confirm it is a minimum from the second-order term.
Step 1. The base value: with , , so . The variation is admissible because , so stays in .
Step 2. First variation from equation (5): . The directional derivative vanishes, so is stationary in this direction — and since , the Euler–Lagrange equation confirms is stationary in every direction.
Step 3. Second-order term: expand fully, . The coefficient is positive, so curves upward in this direction — a genuine local minimum, not a saddle. δJ = 0 (stationary) and the second variation ½∫η′² = π²/4 · 2 > 0 confirms J[x] = 0.5 is a minimum.
Physics of the portrait
Behind the word functional stands the man who first made "a number that depends on an entire function" a legitimate mathematical object, and in doing so opened the door to function spaces and functional analysis.
Origins · 1 minVito Volterra and how this was discovered
Vito Volterra, born in Ancona in 1860 into a poor Jewish family and a mathematical prodigy by his teens, gave the calculus of variations the object it had been using without naming. In a series of papers from 1887 he introduced what he called funzioni che dipendono da altre funzioni — functions of lines — quantities assigning a number to an entire curve or field. This was the birth of the functional as an object of study in its own right, not merely the integrand of a variational problem; Jacques Hadamard later coined the French term fonctionnelle for exactly Volterra's construction. Volterra pushed the analogy relentlessly: if a functional is a function of infinitely many variables (the values at every point), then it should have derivatives, differentials, and a Taylor expansion — and he built precisely that calculus, the direct ancestor of the functional derivative . His ideas fed the twentieth-century abstraction of function spaces — Fréchet's metric spaces, Riesz's and Banach's normed spaces, and ultimately the Hilbert and Sobolev spaces that host modern variational analysis. A committed anti-fascist, Volterra refused Mussolini's loyalty oath in 1931 and was stripped of his chair; he died in Rome in 1940, but the object he named is now everywhere, from Lagrangian mechanics to quantum field theory.
Going further
Texts. Stone & Goldbart, Mathematics for Physics, Ch. 1 (Calculus of Variations) · Arfken, Weber & Harris, Mathematical Methods for Physicists, 7th ed., Ch. 22 · Hassani, Mathematical Physics, Ch. 33 (Calculus of Variations) · Riley, Hobson & Bence, Mathematical Methods for Physics and Engineering, 3rd ed., Ch. 22 · Gelfand & Fomin, Calculus of Variations, Ch. 1 · Courant & Hilbert, Methods of Mathematical Physics, Vol. 1, Ch. IV.
Provenance. The definition and integral form follow Stone & Goldbart Ch. 1, Arfken–Weber–Harris Ch. 22, and Hassani Ch. 33; the weak/strong topology discussion follows Gelfand & Fomin Ch. 1. A verifier should recompute: (1) the first variation and the fundamental-lemma step; (2) the discretisation limit reproducing the Euler–Lagrange operator; (3) the arc-length variation giving const; (4) the numbers and (≈4.6% longer); (5) the Dirichlet stationarity with second-order coefficient ; (6) the witness with sup and slope sup . All results are standard textbook identities; no empirical constants are quoted.
Prerequisites. Multivariable calculus and partial derivatives · Riemann integration · Vector spaces and norms. Leads to. First Variation and Stationarity · The Euler–Lagrange Equation · Natural and Essential Boundary Conditions · Hamilton's Principle of Stationary Action.
Ask the tutor: ask me to vary any functional you like — arc length, the brachistochrone descent time, or a beam's bending energy — and I will walk you from to its Euler–Lagrange equation step by step.
What is the difference between a function and a functional?
A function takes a number and returns a number: feed the input and it hands back . A functional takes an entire function and returns a number: feed the arc-length functional the whole curve and it hands back one length. The square brackets in are the flag — they announce that the slot expects a function, not a point. The distinction matters because the domain of a functional is an infinite-dimensional space of functions, so its calculus — the calculus of variations — is genuinely richer than ordinary calculus, even though it is built from the same chain rule.
Why do we bother with the function space and its norm — isn't the integrand enough?
No, and this is the deepest point of the subject. The same integrand can have a minimiser, a maximiser, a saddle, or nothing at all, depending on which functions you allow and how you measure closeness. Change the smoothness (does exist?), the boundary data (which endpoints are pinned?), or the norm ( versus ), and the answer changes — a curve minimising length in the weak sense can fail to in the strong sense, because the strong topology admits nearby wild-slope competitors. So the function space is not scaffolding around the problem — it is half the problem.
What exactly is the first variation, and how is it like a derivative?
The first variation is the directional derivative of at the "point" in the "direction" : you form the ordinary function and take . It answers "how fast does the number change as I nudge the whole curve along the shape ?" Stationarity means every such directional derivative vanishes — for all admissible — which is the infinite-dimensional analogue of setting all partial derivatives of an ordinary function to zero. Integrating by parts collapses that infinite family of conditions into a single equation, the Euler–Lagrange equation.
What do "essential" and "natural" boundary conditions mean?
Essential boundary conditions are the ones you build into the admissible class by hand — for example — and every admissible curve, and every variation, must respect them (which is why vanishes there). Natural boundary conditions are the ones you do not impose; instead they fall out of the stationarity calculation as the price of leaving an endpoint free. When you integrate by parts, the boundary term survives at a free end, and forcing it to vanish for arbitrary gives a condition like there. Which conditions are essential and which are natural is decided entirely by how you defined the function space.
Is every functional an integral?
No — that is a useful misconception to shed early. Point evaluation assigns a real number to each function and is perfectly linear, yet it is not an integral of a smooth density; it is a distribution (a delta functional). Integral functionals dominate physics because most physical quantities accumulate a local density along the curve, and that local structure is exactly what makes the first variation computable by differentiating under the integral sign. But the definition of a functional asks only for a rule mapping functions to numbers, and non-integral functionals — point evaluations, suprema, boundary values — are genuine and occasionally important.
How does minimising over a function space connect to real computation?
Directly, through discretisation. The heuristic in Derivation 2 — sample the curve, turn the functional into an ordinary function of the samples, and minimise — is precisely the finite element method, the workhorse of engineering simulation. In practice you minimise the energy functional over a finite-dimensional subspace of simple shape functions (piecewise polynomials), converting a variational problem into an algebraic system a computer can solve; density functional theory does the same with the electron-density functional . Convergence as the grid refines is guaranteed by working in a complete function space (a Sobolev space), which is why completeness, not just the integrand, is part of the modern theory.