Functional Derivatives and Field Variations
Every calculation in the last two articles secretly used a calculus that was never formally introduced. "Vary the action, integrate by parts, read off the coefficient of " — that three-step incantation is really the computation of a derivative: the derivative of a number-valued map (the action) with respect to a function-valued argument (the field), evaluated axis by axis in the infinite-dimensional configuration space of the discrete-to-fields article. This article introduces that calculus properly. It is called the functional derivative, written , and it is the exact continuum limit of the partial derivative — with the bead index replaced, as always in this chapter, by the spatial label . The payoff for formalizing what was already being done is threefold. Compactness: the entire content of the field equations becomes one line, — "the gradient of the action vanishes" — with every integration-by-parts subtlety absorbed into systematic rules (a product rule, a chain rule, and one fundamental identity, , which is nothing but the continuum Kronecker delta). Reach: the calculus applies to any functional, not just actions — energies, charges, entropies, constraints — and differentiating them is how one asks any "how does this quantity respond if the field changes here?" question. Depth: the second functional derivative opens the door the first one cannot: it is the stability operator of a solution, its eigenvalues are the squared frequencies of normal modes, and its inverse is the Green function — the response of the field to a poke, and the classical object that quantum field theory will rename the propagator. The Hamiltonian formulation next door is written entirely in this language — Hamilton's field equations are functional gradients, Poisson brackets are built from and — so this article is the last piece of pure infrastructure before the chapter's machinery is complete.
- A functional maps a whole function to a number; its functional derivative is defined by the first-order response — the continuum gradient, one component per point.
- It is the honest limit of partial derivatives on the bead lattice: — the measure weight is what distinguishes it from a plain partial.
- Fundamental identity: — the Kronecker delta gone continuous; product and chain rules follow the familiar patterns with integrals over shared arguments.
- For a local action, : the Euler-Lagrange equations are exactly — stationarity as a vanishing gradient.
- Klein-Gordon showcase: — the field equation read as the action's gradient.
- The second functional derivative is the stability/fluctuation operator: eigenvalues = normal-mode frequencies squared; its inverse is the Green function, the field's response to a localized source.
- The canonical momentum is a functional derivative too: — the definition the Hamiltonian article runs on.
- Key idea: the functional derivative is the partial derivative of mechanics carried to infinitely many coordinates — one per point of space — turning field equations into vanishing gradients, stability into second derivatives, and response into inverse operators.
The functional derivative — defined by and anchored by — is the gradient of a functional in the field's infinite-dimensional configuration space; field equations are its zeros and Green functions the inverse of its second derivative.
Where this lives today
Functional derivatives are the working syntax of more fields than any other single piece of this chapter. Quantum field theory is written in them: the generating functional yields every correlation function by repeated , the effective action's second functional derivative is the full propagator's inverse, and the Schwinger–Dyson equations are just "" promoted to operator statements — the classical calculus of this article with turned on. Density functional theory, quantum chemistry's workhorse (and the most-cited framework in physical science), is named for exactly this operation: the ground-state energy is a functional of the electron density, and the Kohn–Sham equations are — a stationarity condition solved millions of times daily in materials and drug design. Machine learning's continuous limits speak it too: training a neural network by gradient descent on a loss functional of the network function is in disguise, and the "neural tangent kernel" describing wide networks is a second functional derivative — a Green function of training dynamics. Optimal control and variational data assimilation (the algorithms steering rockets and weather forecasts) compute by adjoint methods — the integration-by-parts of Derivation A, industrialized. Wherever a number depends on a function and someone wants the best function, Volterra's derivative is the tool doing the wanting. Within the chapter: the calculus is complete, and the Hamiltonian article now uses it verbatim — , , brackets from paired functional gradients — to give the field its canonical mechanics and open the door the capstone walks through.
The physical picture
Return to the landscape image from the covariant-equations article, and now put coordinates on it. For beads, a functional of the configuration — say the total potential energy — is an ordinary function of variables, and its gradient has components : "how much does respond if I nudge bead alone?" As the beads densify, the questions densify with them: "how does respond if I nudge the field here?" — one question per point of space. The functional derivative is the organized answer sheet: a function of , each value one component of an infinite-dimensional gradient. When that gradient vanishes identically, the configuration is a stationary point of the landscape — which is precisely what a solution of the field equations is.
One subtlety separates the continuum gradient from a naive limit of partials, and it is the same subtlety that separated the Lagrangian density from the Lagrangian. Nudging a single bead changes by an amount proportional to the bead's share of the system — proportional to the lattice cell — so the bare partial dies as the lattice refines: individual points carry no weight in a continuum. The functional derivative divides that vanishing response by the vanishing cell volume, producing a finite density of response — response per unit volume of nudge. This is why the definition pairs with an integral: only integrated against a finite-volume variation does it yield a finite change. The operational picture to keep: press a small bump of unit area into the field at and read how much moves — that reading is , and the computed figure below performs exactly this experiment. The second derivative has an equally concrete reading. Sit at a stationary configuration (gradient zero) and ask about the landscape's curvature: nudge at , and watch how the gradient at responds. That matrix-with-continuous-indices, , curves upward in stable directions and downward in unstable ones; its eigenvectors are the normal modes of oscillation about the solution, its eigenvalues their squared frequencies — the bead-chain diagonalization of the oscillations chapter, reborn in function space. And because responding to a poke is solving a linear system, the inverse of this curvature operator is the response function: poke the field with a source at and the displacement at is the inverse's entry — the Green function, the single most reused object in field theory's later life.
The calculus, built from the lattice
The definition packages the response-density idea; everything else follows from it mechanically. For a functional — any rule turning field configurations into numbers — the first-order change under an arbitrary small variation defines the derivative as the integral kernel of the response:
where: — an arbitrary small variation (smooth, vanishing wherever boundary bookkeeping requires); — the functional derivative, a function of determined uniquely by demanding (1) hold for every (the fundamental lemma of the calculus of variations, imported wholesale from the Lagrangian chapter). Dimensional note, often the fastest error-catch: the derivative carries the dimensions of per (field × volume) — the "per volume" is the density-of-response fingerprint.
We build as the honest continuum limit of on the bead lattice, deriving the measure weight, the definition (1), and the fundamental identity in one pass. The construction settles once and for all what kind of object the functional derivative is — a density dual to variations, not a plain rate — and why the continuum Kronecker delta is a Dirac delta. Everything in this chapter's variational practice descends from this five-step limit.
Step 1. Discretize: field values on a lattice of cell volume , . A functional becomes a function of many variables, , and its total differential is elementary calculus:
Step 2. Force the sum into the chapter's canonical form — a Riemann sum with the cell volume made explicit:
Comparing with (1) identifies the bracket:
Why the weight is unavoidable: nudging one bead moves by that bead's share of the whole; the bare partial vanishes in the limit, and only response-per-cell-volume survives finite. This is the same bookkeeping that made (a density) fundamental rather than .
Step 3. Fundamental identity. Take , the evaluation functional. On the lattice , so by (2):
where: the Kronecker-over-volume limit is exactly the defining sequence of the Dirac delta: zero for , total weight . The continuum's "independent coordinates" are independent in the delta-function sense — the identity used silently every time a variation was "read off."
Step 4. Rules by inheritance. Because (2) is a limit of partials, the algebra of partials survives verbatim: linearity; the product rule ; and the chain rule through an intermediate function picks up an integral over the shared continuous index — — sums over repeated indices becoming integrals, as always.
Step 5. First harvest: for a local action , applying the rules (differentiate under the integral with (3); the gradient term's chain rule produces , which integrates by parts onto the coefficient) delivers
— the Euler-Lagrange expression, now recognized as the gradient component at , with the field equations the statement : stationary points of the landscape, exactly as pictured. Verified: construction per Goldstein ch. 13-context and Gelfand–Fomin; the delta-sequence in Step 3 is the standard box-function limit; (4) reproduces the covariant-equations article's crank, as it must.
The showcase computation of the calculus — worth doing once in full, since every field theory text does it in shorthand forever after:
Go deeper · Derivation B · 1 minThe Klein-Gordon action's gradient
We compute for the free scalar action directly from the definition, without invoking the Euler-Lagrange formula — the point being to watch the calculus operate: expand, integrate by parts, strip the arbitrary variation. The result, , identifies the field equation as the literal gradient of the action, and its linearity in sets up the second-derivative story that follows.
Step 1. Expand the action at and keep first order:
(The kinetic term's two factors each donate one variation; symmetry gives the factor 2 cancelling the .)
Step 2. Integrate the kinetic piece by parts, discarding the boundary term (variations vanish there — or fields die at infinity):
Step 3. Collect into the defining form (1):
where: the operator — the Klein-Gordon operator with a sign — acts on the configuration to give the gradient. Setting it to zero recovers the field equation; more interestingly, not setting it to zero is meaningful too: for the source-coupled action , the gradient is , and stationarity gives the sourced equation — the Yukawa problem of the covariant-equations article, now read as "gradient = 0 shifted by a tilt of the landscape." Verified: matches (4) applied to the KG density, and the sourced form reproduces the worked Yukawa example of the covariant-equations article.
Linearity of the gradient (5) in means the landscape is exactly quadratic — a paraboloid in function space — and its curvature is configuration-independent. That curvature is the calculus's second story:
Go deeper · Derivation C · 2 minThe second derivative — stability operator, normal modes, Green function
We differentiate the gradient once more to obtain the second functional derivative, interpret it as the curvature of the action landscape, and extract its two working identities: eigenvalues = squared mode frequencies (stability), and inverse = Green function (response). This is where the functional calculus stops re-deriving known equations and starts producing the objects the rest of physics is built from; the free scalar makes everything explicit.
Step 1. Differentiate (5) with respect to , using the fundamental identity (3):
where: the object is a "matrix" with two continuous indices, diagonal (delta-supported) because the action is local — curvature couples each point only to its infinitesimal neighbours through . For a general action the same computation gives : curvature now depends on the configuration — the landscape is no longer a paraboloid, and stability becomes solution-by-solution business.
Step 2. Stability reading. Expand the action about a stationary point : the increment is — a quadratic form in the fluctuation . Diagonalize: eigenfunctions of (in the static problem: of ) are the normal modes about ; eigenvalues are of small oscillations. All positive: is a stable minimum. A negative eigenvalue: an unstable direction — the field rolls away along that mode. For in the free theory, the modes are plane waves and the eigenvalues : the vacuum is stable, and the mode frequencies are exactly the dispersion of the density article — same physics, third derivation route. Why this is the bead-chain story verbatim: for beads, stability of an equilibrium is the positivity of the Hessian , and normal modes diagonalize it. The second functional derivative IS that Hessian with — the chapter's dictionary applied to second derivatives.
Step 3. Response reading. Tilt the landscape with a source and re-solve: . Linearity means solve-once-superpose-forever: define the Green function as the inverse of the curvature kernel,
where: — the field at produced by a unit point-poke at : the landscape's compliance matrix. For the static problem in three dimensions is the Yukawa profile already met; in one dimension, (checked in the worked example). Everything about the free field's interaction with the world — how sources dress themselves, how influences propagate, what "force between two sources" means — is stored in ; and when the quantum capstone arrives, this same inverse-curvature object, with the right boundary conditions in time, is the propagator. Verified: second derivative by direct differentiation with (3); stability criterion per Gelfand–Fomin's second-variation theory; 1D Green function checked by substitution in the worked example below.
One more functional derivative deserves its formal introduction here, because the next article is built on it. Freeze time and regard the Lagrangian as a functional of the instantaneous field and its velocity; the canonical momentum density is its gradient with respect to the velocity:
where: the middle expression is the definition (spatial functional derivative at fixed time — the version of the calculus); the right equality holds for local densities and is the working formula. For the Klein-Gordon field, — each point-oscillator's momentum, exactly as the bead picture demands. The Hamiltonian article takes this object and completes classical mechanics' program for fields: Legendre transform, Hamilton's equations as paired functional gradients, Poisson brackets from and .
Limiting cases
| Case | Result | Meaning |
|---|---|---|
| local, no derivatives: | differentiation under the integral — the easy case | |
| with gradients | extra | integration by parts, mechanized |
| evaluation functional | the continuum Kronecker delta | |
| beads, finite | the lattice weight; numerics uses exactly this | |
| quadratic action | curvature independent of ; exact Green-function solution | free fields are paraboloids in function space |
| somewhere | negative curvature directions | instability; a saddle of the landscape |
| higher-derivative | gains terms, signs | Ostrogradsky pattern — see covariant-equations article's caution |
Worked examples
1 · The bump test — a functional derivative measured (confidence builder)
Let and . (i) Compute and the functional derivative. (ii) Predict the change in when a narrow bump of area is added at , and compare with a direct evaluation.
Step 1. . The derivative, by the local rule: — a function, one gradient component per point.
Step 2. Prediction. At : . For a bump concentrated near with , the definition (1) gives .
Step 3. Direct check. Take = a rectangle of width and height (area ) centred at : . First piece: ✓. Second piece: — evaluate: — the error, 35% here because the bump is tall, shrinking linearly as the bump flattens at fixed area. The experiment displays both the derivative and the meaning of "first order."
2 · Response from the inverse curvature — a 1D Green function with numbers (exam level)
For the static 1D energy functional with : (i) find the stationarity condition and the Green function; (ii) compute the field at distance from a point source of strength ; (iii) verify the stability of the solution.
Step 1. Gradient: . Stationarity: — the static sourced equation. Curvature kernel: ; its inverse solves , giving — check: away from , ✓; the kink at has jump ✓ (slope on each side, difference at coincidence).
Step 2. Response: . Compare the massless limit: makes diverge — in 1D a massless field cannot forget a source at any distance; the mass term's well is what localizes the response within .
Step 3. Stability: the curvature operator has spectrum — every fluctuation direction curves upward, the solution is a true minimum, and the lowest normal mode about it oscillates at : the mass gap, appearing for the third time in three articles, now as the floor of a Hessian spectrum.
Origins · 1 minVito Volterra and how this was discovered
Volterra invented the derivative this article teaches. In 1887, at twenty-seven, he began publishing on "functions that depend on other functions" — his funzioni di linee, functions of lines — defining their variation exactly as equation (1) does and developing the product and chain rules, decades before "functional analysis" had a name (the very word "functional" was coined, by Hadamard, for Volterra's objects). His motivations were physical from the start: elasticity with memory (materials whose stress depends on the whole history of strain — hereditary mechanics, today's viscoelasticity) and the integro-differential equations that bear his name. The Lotka–Volterra predator-prey equations, produced when his zoologist son-in-law brought him Adriatic fishery data, made him a founder of mathematical biology almost as a side effect. Volterra was also, institutionally, Italian science: senator, founder of the national research council — until 1931, when he became one of only twelve Italian professors (of some 1,250) who refused Mussolini's loyalty oath. Stripped of his chair and academies, he spent his last decade working abroad and in internal exile. The calculus he built for stretched membranes and remembering materials became, in other hands, the language of quantum field theory — every in a physics paper is Volterra's line-function derivative at work.
Going further
References. Gelfand & Fomin, Calculus of Variations (the standard text for first and second variations) · Goldstein, Poole & Safko, Classical Mechanics, 3rd ed., ch. 13 · Landau & Lifshitz, Mechanics §§1–2 and The Classical Theory of Fields §32 (variational practice) · Volterra, Theory of Functionals and of Integral and Integro-Differential Equations (1930)
Provenance. Equations are standard variational results verifiable in Goldstein Ch. 13, Landau–Lifshitz Vol. 1 §§1–2 and Vol. 2 §32, and Gelfand–Fomin. A verifier should: (1) reproduce the bulk+surface split via integration by parts and the 4D divergence theorem; (2) confirm the Klein–Gordon kernel ; (3) check the Ostrogradsky sign pattern ; (4) verify from the delta sifting property. No empirical constants are used; all relations are mathematical identities. Additionally for this upgrade: the lattice construction per Gelfand–Fomin's finite-difference motivation; the second-variation/normal-mode correspondence per Gelfand–Fomin ch. 5; the 1D Green function checked by jump condition; worked-example numbers recomputed directly (, kernel value , predicted with residue ; response ).
Builds on: From Discrete Systems to Continuous Fields · The Lagrangian Density and Field Action · Calculus of Variations Leads to: Covariant Euler-Lagrange Equations for Fields · Hamiltonian Formulation for Fields · Poisson Brackets for Fields · Noether's Theorem for Continuous Symmetries
Is δF/δφ(x) a genuine derivative or just notation for "whatever multiplies δφ after integration by parts"?
Both, and the equivalence is the point. Rigorously, it is the density of the Fréchet (or Gâteaux) derivative: is differentiable at if a linear map exists with , and when that linear map is representable as an integral against a function, that function is . The practical recipe — expand to first order, integrate by parts until stands bare, read the coefficient — is precisely the computation of this representing function, so the folklore procedure and the rigorous object coincide whenever the procedure terminates. The caveats live where representation fails: functionals like (evaluation of a derivative at a point) have derivatives that are distributions () rather than functions — still usable, integrated against smooth variations; and genuinely non-smooth functionals (suprema, obstacle problems) need one-sided or sub-differential notions. For the polynomial-in-field-and-derivatives functionals this chapter uses, none of these pathologies arise, and the working rule is safe: the functional derivative is the ordinary derivative of along the direction of a delta-bump, normalized per unit bump area — exactly what the computed bump test measures.
Why do physicists happily differentiate WITH RESPECT TO a function evaluated at a point, when a point-supported variation isn't even a nice function?
Because the point-indexed derivative is dual bookkeeping, not a claim that point-bumps are admissible variations. The honest statements always involve smearing: what is defined is the response to smooth variations, , and "" extracts the kernel of that pairing — a function (or distribution) of whose values are only probed through integrals. The situation is identical to the Dirac delta itself: is meaningless pointwise yet indispensable as a kernel, and every formula of this article ( above all) is an identity between kernels, verified by smearing both sides against test variations. This duality view also explains the calculus's robustness in the presence of the singular results the pitfall box mentioned: second derivatives proportional to , currents with delta-supported responses, and the like are all legitimate kernels awaiting their smearing. When the formal manipulations do outrun safety — products of distributions at coincident points, the classic quantum-field-theory divergences — the breakdown is genuinely informative: it is the ultraviolet mode-counting of the discrete-to-fields article resurfacing, and the cure (regularize: put the lattice back, smear the points) is the same dictionary run in reverse.
How do functional derivatives actually get computed in numerics — the delta functions can't go on a computer?
By running Derivation A's limit backwards: discretize, take honest partial derivatives, remember the measure. On a grid with cell volume , the working replacement is — and forgetting the is the single most common bug in home-rolled field optimizers (symptom: results that change systematically under grid refinement). Three industrial-strength refinements. (1) Adjoint methods: when is defined through the solution of a PDE (cost of a flow, misfit of a forecast), differentiating through the solver naively costs one solve per grid point; the adjoint trick — integration by parts at the level of the discrete equations — delivers the entire gradient for the cost of ONE extra (adjoint) solve, which is why weather-model data assimilation and airplane-shape optimization are feasible at all. (2) Automatic differentiation: modern frameworks differentiate the discretized functional exactly (to machine precision) by chain-ruling the code itself; the functional-calculus structure survives as the continuum limit the results must converge to. (3) Mode-space evaluation: for quadratic functionals, differentiate in the eigenbasis of the curvature operator (FFT for translation-invariant kernels) — the Green-function solve of the worked example becomes a division per mode. In all three, the continuum calculus is the specification and the sanity check: discrete gradients must converge, under refinement, to the smooth kernel this article computes analytically.
What exactly does the second functional derivative's POSITIVITY buy — is "stability" here the same word as in the fixed-point chapters?
Same concept, upgraded arena, with one physically crucial refinement. In the fixed-point chapters, stability of an equilibrium was decided by the Hessian of the potential (or the Jacobian's spectrum); here the equilibrium is a field configuration and the Hessian is — an operator whose spectrum plays the eigenvalue role. Positivity of the full spectrum ⟹ every small disturbance oscillates rather than grows ⟹ the configuration is dynamically stable, with the eigenfunctions as its normal modes: the bead-chain story with matrices promoted to operators. The refinements: (i) continuous spectrum — an infinite system's Hessian has bands, not just discrete levels, and "positivity" must hold down to the band edge (the free vacuum's edge is — the gap); (ii) zero modes — symmetries produce exact zero eigenvalues that threaten nothing (translating a soliton costs no energy: the kink's zero mode is its own gradient), and stability analysis must quotient them out before judging; (iii) negative modes as physics — a single negative eigenvalue does not always mean "wrong answer": for tunneling and nucleation problems the relevant saddle configuration (the "bounce") is required to have exactly one negative mode, and counting them is part of the calculation. So: same word, same quadratic-form test, but spectra replace eigenvalue lists, and the exceptional eigenvalues carry named physics.
The chain rule sprouted an integral — can I see a concrete case where that integral does real work?
The cleanest physical case: differentiating through a solved equation — "how does an observable depend on a parameter function?" Suppose the field solves with a position-dependent mass (an inhomogeneous medium), and you want the sensitivity of a measurement to the medium profile — the setup of every imaging and inverse problem. The chain rule reads , and the inner factor comes from differentiating the equation itself: perturbing by a bump at perturbs the solution by (the Green function propagating the local disturbance to the observation point — differentiate the equation, solve for with the same operator). The chain-rule integral then assembles the sensitivity map — incident field times back-propagated detector sensitivity, evaluated at each candidate scatterer location . This single formula, in its various dresses, is: the Born approximation of scattering theory, the sensitivity kernel of seismic tomography ("banana-doughnut" kernels mapping which Earth regions a travel time feels), and the backpropagation step of adjoint optimization. The integral over the shared argument is doing exactly what the discrete chain rule's sum over intermediate indices always did — routing influence through every path from perturbation to observable.
What changes in this calculus when I move to the Hamiltonian picture next door?
Mechanically, only the arena: instead of one field history over spacetime, the state is a pair of fields on a time slice, and the calculus runs with three-dimensional deltas at fixed time — , with and mutually independent slots (). Functionals of interest become phase-space functionals — the Hamiltonian, momenta, charges — each with two gradients. The payoff structures are then direct transcriptions of finite mechanics: Hamilton's equations pair the gradients (, ), and the Poisson bracket is the antisymmetric pairing — sums over become integrals over , as the dictionary demands. One genuinely new subtlety appears for gauge fields: constraints among the mean not all functional gradients are independent, and the bracket must be upgraded (Dirac brackets) — the field-theory version of the constrained-variation caveat this article has already flagged twice. That, plus the mode decomposition turning each into one bead-like oscillator, is the entire content of the next article's formalism.