Functional derivative

From testwiki
Revision as of 19:57, 11 February 2025 by imported>BobH4 (von Weizsäcker kinetic energy functional)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Short description In the calculus of variations, a field of mathematical analysis, the functional derivative (or variational derivative)[1] relates a change in a functional (a functional in this sense is a function that acts on functions) to a change in a function on which the functional depends.

In the calculus of variations, functionals are usually expressed in terms of an integral of functions, their arguments, and their derivatives. In an integrand Template:Math of a functional, if a function Template:Math is varied by adding to it another function Template:Math that is arbitrarily small, and the resulting integrand is expanded in powers of Template:Math, the coefficient of Template:Math in the first order term is called the functional derivative.

For example, consider the functional J[f]=abL(x,f(x),f(x))dx, where Template:Math. If Template:Math is varied by adding to it a function Template:Math, and the resulting integrand Template:Math is expanded in powers of Template:Math, then the change in the value of Template:Math to first order in Template:Math can be expressed as follows:[1][Note 1] δJ=ab(Lfδf(x)+Lfddxδf(x))dx=ab(LfddxLf)δf(x)dx+Lf(b)δf(b)Lf(a)δf(a) where the variation in the derivative, Template:Math was rewritten as the derivative of the variation Template:Math, and integration by parts was used in these derivatives.

Definition

In this section, the functional differential (or variation or first variation)[Note 2] is defined. Then the functional derivative is defined in terms of the functional differential.

Functional differential

Suppose B is a Banach space and F is a functional defined on B. The differential of F at a point ρB is the linear functional δF[ρ,] on B defined[2] by the condition that, for all ϕB, F[ρ+ϕ]F[ρ]=δF[ρ;ϕ]+εϕ where ε is a real number that depends on ϕ in such a way that ε0 as ϕ0. This means that δF[ρ,] is the Fréchet derivative of F at ρ.

However, this notion of functional differential is so strong it may not exist,[3] and in those cases a weaker notion, like the Gateaux derivative is preferred. In many practical cases, the functional differential is defined[4] as the directional derivative δF[ρ,ϕ]=limε0F[ρ+εϕ]F[ρ]ε=[ddεF[ρ+εϕ]]ε=0. Note that this notion of the functional differential can even be defined without a norm.

Functional derivative

In many applications, the domain of the functional F is a space of differentiable functions ρ defined on some space Ω and F is of the form F[ρ]=ΩL(x,ρ(x),Dρ(x))dx for some function L(x,ρ(x),Dρ(x)) that may depend on x, the value ρ(x) and the derivative Dρ(x). If this is the case and, moreover, δF[ρ,ϕ] can be written as the integral of ϕ times another function (denoted Template:Math) δF[ρ,ϕ]=ΩδFδρ(x) ϕ(x) dx then this function Template:Math is called the functional derivative of Template:Math at Template:Math.[5][6] If F is restricted to only certain functions ρ (for example, if there are some boundary conditions imposed) then ϕ is restricted to functions such that ρ+εϕ continues to satisfy these conditions.

Heuristically, ϕ is the change in ρ, so we 'formally' have ϕ=δρ, and then this is similar in form to the total differential of a function F(ρ1,ρ2,,ρn), dF=i=1nFρi dρi, where ρ1,ρ2,,ρn are independent variables. Comparing the last two equations, the functional derivative δF/δρ(x) has a role similar to that of the partial derivative F/ρi, where the variable of integration x is like a continuous version of the summation index i.[7] One thinks of Template:Math as the gradient of Template:Math at the point Template:Math, so the value Template:Math measures how much the functional Template:Math will change if the function Template:Math is changed at the point Template:Math. Hence the formula δFδρ(x)ϕ(x)dx is regarded as the directional derivative at point ρ in the direction of ϕ. This is analogous to vector calculus, where the inner product of a vector v with the gradient gives the directional derivative in the direction of v.

Properties

Like the derivative of a function, the functional derivative satisfies the following properties, where Template:Math and Template:Math are functionals:[Note 3]

  • Linearity:[8] δ(λF+μG)[ρ]δρ(x)=λδF[ρ]δρ(x)+μδG[ρ]δρ(x), where Template:Math are constants.
  • Product rule:[9] δ(FG)[ρ]δρ(x)=δF[ρ]δρ(x)G[ρ]+F[ρ]δG[ρ]δρ(x),
  • Chain rules:
    • If Template:Math is a functional and Template:Math another functional, then[10] δF[G[ρ]]δρ(y)=dxδF[G]δG(x)G=G[ρ]δG[ρ](x)δρ(y) .
    • If Template:Math is an ordinary differentiable function (local functional) Template:Math, then this reduces to[11] δF[g(ρ)]δρ(y)=δF[g(ρ)]δg[ρ(y)] dg(ρ)dρ(y) .

Determining functional derivatives

A formula to determine functional derivatives for a common class of functionals can be written as the integral of a function and its derivatives. This is a generalization of the Euler–Lagrange equation: indeed, the functional derivative was introduced in physics within the derivation of the Lagrange equation of the second kind from the principle of least action in Lagrangian mechanics (18th century). The first three examples below are taken from density functional theory (20th century), the fourth from statistical mechanics (19th century).

Formula

Given a functional F[ρ]=f(𝒓,ρ(𝒓),ρ(𝒓))d𝒓, and a function ϕ(𝒓) that vanishes on the boundary of the region of integration, from a previous section Definition, δFδρ(𝒓)ϕ(𝒓)d𝒓=[ddεf(𝒓,ρ+εϕ,ρ+εϕ)d𝒓]ε=0=(fρϕ+fρϕ)d𝒓=[fρϕ+(fρϕ)(fρ)ϕ]d𝒓=[fρϕ(fρ)ϕ]d𝒓=(fρfρ)ϕ(𝒓) d𝒓.

The second line is obtained using the total derivative, where Template:Math is a derivative of a scalar with respect to a vector.[Note 4]

The third line was obtained by use of a product rule for divergence. The fourth line was obtained using the divergence theorem and the condition that ϕ=0 on the boundary of the region of integration. Since ϕ is also an arbitrary function, applying the fundamental lemma of calculus of variations to the last line, the functional derivative is δFδρ(𝒓)=fρfρ

where Template:Math and Template:Math. This formula is for the case of the functional form given by Template:Math at the beginning of this section. For other functional forms, the definition of the functional derivative can be used as the starting point for its determination. (See the example Coulomb potential energy functional.)

The above equation for the functional derivative can be generalized to the case that includes higher dimensions and higher order derivatives. The functional would be, F[ρ(𝒓)]=f(𝒓,ρ(𝒓),ρ(𝒓),(2)ρ(𝒓),,(N)ρ(𝒓))d𝒓,

where the vector Template:Math, and Template:Math is a tensor whose Template:Math components are partial derivative operators of order Template:Math, [(i)]α1α2αi=irα1rα2rαiwhereα1,α2,,αi=1,2,,n .[Note 5]

An analogous application of the definition of the functional derivative yields δF[ρ]δρ=fρf(ρ)+(2)f((2)ρ)++(1)N(N)f((N)ρ)=fρ+i=1N(1)i(i)f((i)ρ) .

In the last two equations, the Template:Math components of the tensor f((i)ρ) are partial derivatives of Template:Math with respect to partial derivatives of ρ, [f((i)ρ)]α1α2αi=fρα1α2αi where ρα1α2αiiρrα1rα2rαi, and the tensor scalar product is, (i)f((i)ρ)=α1,α2,,αi=1n irα1rα2rαi fρα1α2αi . [Note 6]

Examples

Thomas–Fermi kinetic energy functional

The Thomas–Fermi model of 1927 used a kinetic energy functional for a noninteracting uniform electron gas in a first attempt of density-functional theory of electronic structure: TTF[ρ]=CFρ5/3(𝐫)d𝐫. Since the integrand of Template:Math does not involve derivatives of Template:Math, the functional derivative of Template:Math is,[12] δTTFδρ(𝒓)=CFρ5/3(𝐫)ρ(𝐫)=53CFρ2/3(𝐫).

Coulomb potential energy functional

The electron-nucleus potential energy is V[ρ]=ρ(𝒓)|𝒓| d𝒓.

Applying the definition of functional derivative, δVδρ(𝒓) ϕ(𝒓) d𝒓=[ddερ(𝒓)+εϕ(𝒓)|𝒓| d𝒓]ε=0=ϕ(𝒓)|𝒓| d𝒓. So, δVδρ(𝒓)=1|𝒓| .

The functional derivative of the classical part of the electron-electron interaction (often called Hartree energy) is J[ρ]=12ρ(𝐫)ρ(𝐫)|𝐫𝐫|d𝐫d𝐫. From the definition of the functional derivative, δJδρ(𝒓)ϕ(𝒓)d𝒓=[d dεJ[ρ+εϕ]]ε=0=[d dε(12[ρ(𝒓)+εϕ(𝒓)][ρ(𝒓)+εϕ(𝒓)]|𝒓𝒓|d𝒓d𝒓)]ε=0=12ρ(𝒓)ϕ(𝒓)|𝒓𝒓|d𝒓d𝒓+12ρ(𝒓)ϕ(𝒓)|𝒓𝒓|d𝒓d𝒓 The first and second terms on the right hand side of the last equation are equal, since Template:Math and Template:Math in the second term can be interchanged without changing the value of the integral. Therefore, δJδρ(𝒓)ϕ(𝒓)d𝒓=(ρ(𝒓)|𝒓𝒓|d𝒓)ϕ(𝒓)d𝒓 and the functional derivative of the electron-electron Coulomb potential energy functional Template:Math[ρ] is,[13] δJδρ(𝒓)=ρ(𝒓)|𝒓𝒓|d𝒓.

The second functional derivative is δ2J[ρ]δρ(𝐫)δρ(𝐫)=ρ(𝐫)(ρ(𝐫)|𝐫𝐫|)=1|𝐫𝐫|.

von Weizsäcker kinetic energy functional

In 1935 von Weizsäcker proposed to add a gradient correction to the Thomas-Fermi kinetic energy functional to make it better suit a molecular electron cloud: TW[ρ]=18ρ(𝐫)ρ(𝐫)ρ(𝐫)d𝐫=tW(𝐫) d𝐫, where tW18ρρρand  ρ=ρ(𝒓) . Using a previously derived formula for the functional derivative, δTWδρ=tWρtWρ=18ρρρ2(142ρρ14ρρρ2)where  2= , and the result is,[14] δTWδρ=  18ρρρ2142ρρ .

Entropy

The entropy of a discrete random variable is a functional of the probability mass function.

H[p(x)]=xp(x)logp(x) Thus, xδHδp(x)ϕ(x)=[ddεH[p(x)+εϕ(x)]]ε=0=[ddεx[p(x)+εϕ(x)] log[p(x)+εϕ(x)]]ε=0=x[1+logp(x)] ϕ(x). Thus, δHδp(x)=1logp(x).

Exponential

Let F[φ(x)]=eφ(x)g(x)dx.

Using the delta function as a test function, δF[φ(x)]δφ(y)=limε0F[φ(x)+εδ(xy)]F[φ(x)]ε=limε0e(φ(x)+εδ(xy))g(x)dxeφ(x)g(x)dxε=eφ(x)g(x)dxlimε0eεδ(xy)g(x)dx1ε=eφ(x)g(x)dxlimε0eεg(y)1ε=eφ(x)g(x)dxg(y).

Thus, δF[φ(x)]δφ(y)=g(y)F[φ(x)].

This is particularly useful in calculating the correlation functions from the partition function in quantum field theory.

Functional derivative of a function

A function can be written in the form of an integral like a functional. For example, ρ(𝒓)=F[ρ]=ρ(𝒓)δ(𝒓𝒓)d𝒓. Since the integrand does not depend on derivatives of ρ, the functional derivative of ρTemplate:Math is, δρ(𝒓)δρ(𝒓)δFδρ(𝒓)=  ρ(𝒓)[ρ(𝒓)δ(𝒓𝒓)]=δ(𝒓𝒓).

Functional derivative of iterated function

The functional derivative of the iterated function f(f(x)) is given by: δf(f(x))δf(y)=f(f(x))δ(xy)+δ(f(x)y) and δf(f(f(x)))δf(y)=f(f(f(x))(f(f(x))δ(xy)+δ(f(x)y))+δ(f(f(x))y)

In general: δfN(x)δf(y)=f(fN1(x))δfN1(x)δf(y)+δ(fN1(x)y)

Putting in Template:Math gives: δf1(x)δf(y)=δ(f1(x)y)f(f1(x))

Using the delta function as a test function

In physics, it is common to use the Dirac delta function δ(xy) in place of a generic test function ϕ(x), for yielding the functional derivative at the point y (this is a point of the whole functional derivative as a partial derivative is a component of the gradient):[15] δF[ρ(x)]δρ(y)=limε0F[ρ(x)+εδ(xy)]F[ρ(x)]ε.

This works in cases when F[ρ(x)+εf(x)] formally can be expanded as a series (or at least up to first order) in ε. The formula is however not mathematically rigorous, since F[ρ(x)+εδ(xy)] is usually not even defined.

The definition given in a previous section is based on a relationship that holds for all test functions ϕ(x), so one might think that it should hold also when ϕ(x) is chosen to be a specific function such as the delta function. However, the latter is not a valid test function (it is not even a proper function).

In the definition, the functional derivative describes how the functional F[ρ(x)] changes as a result of a small change in the entire function ρ(x). The particular form of the change in ρ(x) is not specified, but it should stretch over the whole interval on which x is defined. Employing the particular form of the perturbation given by the delta function has the meaning that ρ(x) is varied only in the point y. Except for this point, there is no variation in ρ(x).

Notes

Template:Reflist

Footnotes

Template:Reflist

References

Template:Functional analysis Template:Analysis in topological vector spaces


Cite error: <ref> tags exist for a group named "Note", but no corresponding <references group="Note"/> tag was found