Skip to content

Functional Derivatives

A functional derivative measures how a functional changes when its input function is varied at each point. If F[f]F[f] is a functional and η(x)\eta(x) is a test variation, the derivative is defined by writing the first variation as

δF[f;η]=ddϵF[f+ϵη]∣ϵ=0=∫δFδf(x)η(x) dx.\delta F[f;\eta] = \left. \frac{d}{d\epsilon} F[f+\epsilon\eta] \right\rvert_{\epsilon=0} = \int \frac{\delta F}{\delta f(x)} \eta(x)\,dx.

The object δF/δf(x)\delta F/\delta f(x) is the gradient of FF with respect to the function ff, with the integration measure and allowed variations understood.

Functional derivatives are the local language behind several familiar calculations:

  • deriving Euler–Lagrange equations from an action;
  • extremizing energy functionals over wavefunctions;
  • varying trial-state actions in time-dependent variational principles;
  • generating insertions from source terms in path integrals;
  • writing field equations compactly as δS/δϕ(x)=0\delta S/\delta\phi(x)=0.

The Calculus of Variations page explains stationary functionals and Euler–Lagrange equations. This page isolates the derivative notation and the delta-function identities that make functional calculations work.

You should be comfortable with:

Let F[f]F[f] be a functional defined on a suitable space of functions over a region Ω\Omega. The first variation in the direction η\eta is

δF[f;η]=ddϵF[f+ϵη]∣ϵ=0.\delta F[f;\eta] = \left. \frac{d}{d\epsilon} F[f+\epsilon\eta] \right\rvert_{\epsilon=0}.

If this first variation can be represented as

δF[f;η]=∫Ωg(x)η(x) dμ(x)\delta F[f;\eta] = \int_\Omega g(x)\eta(x)\,d\mu(x)

for all allowed variations η\eta, then

δFδf(x)=g(x),\frac{\delta F}{\delta f(x)} = g(x),

relative to the measure dμ(x)d\mu(x).

This “relative to the measure” clause is not cosmetic. If the inner product is

⟨u,v⟩=∫Ωu∗(x)v(x) w(x) dx,\langle u,v\rangle = \int_\Omega u^*(x)v(x)\,w(x)\,dx,

then the gradient represented by a functional derivative depends on whether the variation is paired with dxdx or with w(x) dxw(x)\,dx.

The basic identity is

δf(y)δf(x)=δ(y−x).\frac{\delta f(y)}{\delta f(x)} = \delta(y-x).

It is defined by its action under integration:

δf(y)=∫δf(y)δf(x)δf(x) dx=∫δ(y−x)δf(x) dx.\delta f(y) = \int \frac{\delta f(y)}{\delta f(x)} \delta f(x)\,dx = \int \delta(y-x)\delta f(x)\,dx.

For a source term

F[J]=∫J(y)ϕ(y) dy,F[J] = \int J(y)\phi(y)\,dy,

one has

δFδJ(x)=ϕ(x),\frac{\delta F}{\delta J(x)} = \phi(x),

because

δF=∫δJ(y)ϕ(y) dy.\delta F = \int \delta J(y)\phi(y)\,dy.

This is the finite-dimensional rule ∂(Jiϕi)/∂Jj=ϕj\partial(J_i\phi_i)/\partial J_j=\phi_j with sums replaced by integrals and Kronecker deltas replaced by Dirac deltas.

For a local functional

F[f]=∫ΩV(f(x)) dx,F[f] = \int_\Omega V(f(x))\,dx,

the variation is

δF=∫ΩV′(f(x))η(x) dx.\delta F = \int_\Omega V'(f(x))\eta(x)\,dx.

Therefore

δFδf(x)=V′(f(x)).\frac{\delta F}{\delta f(x)} = V'(f(x)).

For example,

F[f]=∫Ωλ4f(x)4 dxF[f] = \int_\Omega \frac{\lambda}{4}f(x)^4\,dx

gives

δFδf(x)=λf(x)3.\frac{\delta F}{\delta f(x)} = \lambda f(x)^3.

This is the easiest case because no derivatives of ff appear.

Consider

F[f]=∫ab12(dfdx)2dx.F[f] = \int_a^b \frac12 \left( \frac{df}{dx} \right)^2 dx.

Under f↦f+ϵηf\mapsto f+\epsilon\eta,

δF=∫abf′(x)η′(x) dx.\delta F = \int_a^b f'(x)\eta'(x)\,dx.

Integration by parts gives

δF=[f′(x)η(x)]ab−∫abf′′(x)η(x) dx.\delta F = \left[f'(x)\eta(x)\right]_a^b - \int_a^b f''(x)\eta(x)\,dx.

For fixed-endpoint variations, η(a)=η(b)=0\eta(a)=\eta(b)=0, so

δFδf(x)=−f′′(x).\frac{\delta F}{\delta f(x)} = -f''(x).

The minus sign is important. It comes from moving the derivative off the variation. If the endpoints are not fixed, the boundary term is part of the variational problem and can impose natural boundary conditions.

For

S[ϕ]=∫ddx L(ϕ,∂μϕ,x),S[\phi] = \int d^dx\, \mathcal L \left( \phi,\partial_\mu\phi,x \right),

the functional derivative is

δSδϕ(x)=∂L∂ϕ−∂μ(∂L∂(∂μϕ)),\frac{\delta S}{\delta\phi(x)} = \frac{\partial\mathcal L}{\partial\phi} - \partial_\mu \left( \frac{\partial\mathcal L} {\partial(\partial_\mu\phi)} \right),

up to boundary terms determined by the allowed variations. The stationary-action equation is

δSδϕ(x)=0.\frac{\delta S}{\delta\phi(x)}=0.

For a single particle path q(t)q(t), the same statement reads

δSδq(t)=∂L∂q−ddt(∂L∂q˙).\frac{\delta S}{\delta q(t)} = \frac{\partial L}{\partial q} - \frac{d}{dt} \left( \frac{\partial L}{\partial\dot q} \right).

Thus the Euler–Lagrange equation is a functional-derivative equation.

Quantum variational calculations usually involve complex functions. A common practical convention is to treat ψ\psi and ψ∗\psi^* as independent variables during the variation, then impose complex conjugacy on the physical solution.

For a normalized energy functional, write schematically

F[ψ,ψ∗]=∫dx ψ∗(x)(Hψ)(x)−E(∫dx ψ∗(x)ψ(x)−1).\mathcal F[\psi,\psi^*] = \int dx\,\psi^*(x)(H\psi)(x) - E \left( \int dx\,\psi^*(x)\psi(x)-1 \right).

Varying with respect to ψ∗(x)\psi^*(x) gives

δFδψ∗(x)=(Hψ)(x)−Eψ(x).\frac{\delta\mathcal F}{\delta\psi^*(x)} = (H\psi)(x)-E\psi(x).

Stationarity therefore gives

Hψ=Eψ.H\psi=E\psi.

This is the wavefunction version of the constrained variational argument for the eigenvalue equation. In an actual Hamiltonian problem, the domain of HH and the boundary terms still have to be checked.

Source Derivatives and Correlation Functions

Section titled “Source Derivatives and Correlation Functions”

Functional derivatives become especially useful when a source is coupled to a coordinate, operator, or field. In a schematic field-integral notation,

Z[J]=∫Dϕ exp⁡[iℏ(S[ϕ]+∫J(x)ϕ(x) dx)].Z[J] = \int\mathcal D\phi\, \exp \left[ \frac{i}{\hbar} \left( S[\phi]+\int J(x)\phi(x)\,dx \right) \right].

Differentiating with respect to the source brings down a field insertion:

δZ[J]δJ(x)=iℏ∫Dϕ ϕ(x)exp⁡[iℏ(S[ϕ]+∫J(y)ϕ(y) dy)].\frac{\delta Z[J]}{\delta J(x)} = \frac{i}{\hbar} \int\mathcal D\phi\, \phi(x) \exp \left[ \frac{i}{\hbar} \left( S[\phi]+\int J(y)\phi(y)\,dy \right) \right].

Higher source derivatives generate higher products of fields, with ordering and normalization depending on the precise real-time, Euclidean, operator, or time-ordered convention. This is one reason ordinary quantum-mechanical path integrals prepare readers for the field-theory language without replacing a QFT course.

Worked Example: Driven Quadratic Functional

Section titled “Worked Example: Driven Quadratic Functional”

Let

F[f]=∫ab[12(f′)2+12ω2f2−Jf]dx,F[f] = \int_a^b \left[ \frac12(f')^2 + \frac12\omega^2f^2 - Jf \right]dx,

with fixed-endpoint variations. The variation is

δF=∫ab[f′η′+ω2fη−Jη]dx.\delta F = \int_a^b \left[ f'\eta' + \omega^2f\eta - J\eta \right]dx.

Integrating the derivative term by parts gives

δF=∫ab[−f′′+ω2f−J]η dx.\delta F = \int_a^b \left[ -f'' + \omega^2f - J \right]\eta\,dx.

Therefore

δFδf(x)=−f′′(x)+ω2f(x)−J(x).\frac{\delta F}{\delta f(x)} = -f''(x)+\omega^2f(x)-J(x).

The stationary equation is

(−d2dx2+ω2)f(x)=J(x).\left( -\frac{d^2}{dx^2}+\omega^2 \right)f(x) = J(x).

This displays the bridge to Green Functions: the stationary function is the response of a linear operator to a source.

  • Treating δ/δf(x)\delta/\delta f(x) as an ordinary partial derivative without specifying the pairing integral.
  • Dropping boundary terms before checking the allowed variations.
  • Missing the minus sign produced by integration by parts.
  • Forgetting that the functional derivative depends on the measure or inner product used to identify gradients.
  • Varying ψ\psi but not ψ∗\psi^* in complex wavefunction problems, or varying them inconsistently.
  • Confusing a derivative with respect to a variational parameter with a functional derivative with respect to a whole function.
  • Assuming functional derivatives exist for nonsmooth, constrained, or distribution-valued functionals without checking the function space.
  • Using source-derivative formulas in path integrals without stating the ordering and normalization convention.
  • I. M. Gelfand and S. V. Fomin, Calculus of Variations, Dover, 2000.
  • G. B. Arfken, H. J. Weber, and F. E. Harris, Mathematical Methods for Physicists, 7th ed., Academic Press, 2013.
  • J. Zinn-Justin, Path Integrals in Quantum Mechanics, Oxford University Press, 2005.
  • L. S. Schulman, Techniques and Applications of Path Integration, Wiley, 1981.
  • M. E. Peskin and D. V. Schroeder, An Introduction to Quantum Field Theory, Addison-Wesley, 1995.
  1. Compute the functional derivative of
F[f]=∫abf(x)3 dx.F[f]=\int_a^b f(x)^3\,dx.
Solution

Vary f↦f+ϵηf\mapsto f+\epsilon\eta. Then

δF=∫ab3f(x)2η(x) dx.\delta F = \int_a^b 3f(x)^2\eta(x)\,dx.

Therefore

δFδf(x)=3f(x)2.\frac{\delta F}{\delta f(x)} = 3f(x)^2.
  1. With fixed-endpoint variations, find the functional derivative of
F[f]=∫ab[12(f′)2+U(f)]dx.F[f] = \int_a^b \left[ \frac12(f')^2+U(f) \right]dx.
Solution

The variation is

δF=∫ab[f′η′+U′(f)η]dx.\delta F = \int_a^b \left[ f'\eta'+U'(f)\eta \right]dx.

After integration by parts and using η(a)=η(b)=0\eta(a)=\eta(b)=0,

δF=∫ab[−f′′+U′(f)]η dx.\delta F = \int_a^b \left[ -f''+U'(f) \right]\eta\,dx.

Hence

δFδf(x)=−f′′(x)+U′(f(x)).\frac{\delta F}{\delta f(x)} = -f''(x)+U'(f(x)).
  1. Show that
δδJ(x)∫J(y)ϕ(y) dy=ϕ(x).\frac{\delta}{\delta J(x)} \int J(y)\phi(y)\,dy = \phi(x).
Solution

Vary JJ by δJ\delta J. Then

δF=∫δJ(y)ϕ(y) dy.\delta F = \int \delta J(y)\phi(y)\,dy.

Comparing with

δF=∫δFδJ(x)δJ(x) dx\delta F = \int \frac{\delta F}{\delta J(x)} \delta J(x)\,dx

gives

δFδJ(x)=ϕ(x).\frac{\delta F}{\delta J(x)} = \phi(x).
  1. Why does the answer to a functional-derivative calculation change when the boundary variations change?
Solution

Derivative terms require integration by parts to express the variation as an integral against η(x)\eta(x). That integration produces boundary terms. If the allowed variations make those terms vanish, the bulk functional derivative is enough. If not, stationarity also imposes boundary conditions or requires endpoint terms. Changing the allowed variations therefore changes the variational problem.