Concept in calculus of variation
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 L of a functional, if a function f is varied by adding to it another function δf that is arbitrarily small, and the resulting integrand is expanded in powers of δf, the coefficient of δf in the first order term is called the functional derivative.
For example, consider the functional
![{\displaystyle J[f]=\int _{a}^{b}L(\,x,f(x),f\,'(x)\,)\,dx\ ,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/68be973ffd7b1b84391c61f2dcacd0ecf74ca766)
where f ′(x) ≡ df/dx. If f is varied by adding to it a function δf, and the resulting integrand L(x, f +δf, f '+δf ′) is expanded in powers of δf, then the change in the value of J to first order in δf can be expressed as follows:[1][Note 1]
![{\displaystyle \delta J=\int _{a}^{b}\left({\frac {\partial L}{\partial f))\delta f(x)+{\frac {\partial L}{\partial f')){\frac {d}{dx))\delta f(x)\right)\,dx\,=\int _{a}^{b}\left({\frac {\partial L}{\partial f))-{\frac {d}{dx)){\frac {\partial L}{\partial f'))\right)\delta f(x)\,dx\,+\,{\frac {\partial L}{\partial f'))(b)\delta f(b)\,-\,{\frac {\partial L}{\partial f'))(a)\delta f(a)\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/0a158226d573ac9354c92c290fb21e7c6830e566)
where the variation in the derivative, δf ′ was rewritten as the derivative of the variation (δf) ′, 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
is a Banach space and
is a functional defined on
.
The differential of
at a point
is the linear functional
on
defined[2] by the condition that, for all
,
![{\displaystyle F[\rho +\phi ]-F[\rho ]=\delta F[\rho ;\phi ]+\epsilon \cdot \|\phi \|}](https://wikimedia.org/api/rest_v1/media/math/render/svg/b638e764a1754987ad6170eae5ff841ffd62fecd)
where
is a real number that depends on
in such a way that
as
. This means that
is the Fréchet derivative of
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
![{\displaystyle {\begin{aligned}\delta F[\rho ,\phi ]&=\lim _{\varepsilon \to 0}{\frac {F[\rho +\varepsilon \phi ]-F[\rho ]}{\varepsilon ))\\&=\left[{\frac {d}{d\varepsilon ))F[\rho +\varepsilon \phi ]\right]_{\varepsilon =0}.\end{aligned))}](https://wikimedia.org/api/rest_v1/media/math/render/svg/c8d3971cb3b1f3bb6ec934b9f87f5a5da35b96a0)
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
is a space of differentiable functions
defined on some space
and
is of the form
![{\displaystyle F[\rho ]=\int _{\Omega }L(x,\rho (x),D\rho (x))\,dx}](https://wikimedia.org/api/rest_v1/media/math/render/svg/93d79643a98f004cefcc92b69321853aea13e53f)
for some function
that may depend on
, the value
and the derivative
.
If this is the case and, moreover,
can be written as the integral of
times another function (denoted δF/δρ)
![{\displaystyle \delta F[\rho ,\phi ]=\int _{\Omega }{\frac {\delta F}{\delta \rho ))(x)\ \phi (x)\ dx}](https://wikimedia.org/api/rest_v1/media/math/render/svg/199a3465c4243e4b47dab9328fa87629d722c780)
then this function δF/δρ is called the functional derivative of F at ρ.[5][6] If
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
,
![{\displaystyle dF=\sum _{i=1}^{n}{\frac {\partial F}{\partial \rho _{i))}\ d\rho _{i},}](https://wikimedia.org/api/rest_v1/media/math/render/svg/187f405b807612ff3b517c6e6b5e5dccf0ae5658)
where
are independent variables.
Comparing the last two equations, the functional derivative
has a role similar to that of the partial derivative
, where the variable of integration
is like a continuous version of the summation index
.[7] One thinks of δF/δρ as the gradient of F at the point ρ, so the value δF/δρ(x) measures how much the functional F will change if the function ρ is changed at the point x. Hence the formula
![{\displaystyle \int {\frac {\delta F}{\delta \rho ))(x)\phi (x)\;dx}](https://wikimedia.org/api/rest_v1/media/math/render/svg/50360a6873c3b76ccb1bf161fedf5ec9728e205f)
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
with the gradient gives the directional derivative in the direction of
.
Properties
Like the derivative of a function, the functional derivative satisfies the following properties, where F[ρ] and G[ρ] are functionals:[Note 3]
- Linearity:[8]
![{\displaystyle {\frac {\delta (\lambda F+\mu G)[\rho ]}{\delta \rho (x)))=\lambda {\frac {\delta F[\rho ]}{\delta \rho (x)))+\mu {\frac {\delta G[\rho ]}{\delta \rho (x))),}](https://wikimedia.org/api/rest_v1/media/math/render/svg/a3855d2be1b75c59c9da233cf9c8c71eeed66eaf)
where λ, μ are constants.
- Product rule:[9]
![{\displaystyle {\frac {\delta (FG)[\rho ]}{\delta \rho (x)))={\frac {\delta F[\rho ]}{\delta \rho (x)))G[\rho ]+F[\rho ]{\frac {\delta G[\rho ]}{\delta \rho (x)))\,,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/ee0421ecdfb105f4b62dcbd729c20e8ca587bda2)
- Chain rules:
- If F is a functional and G another functional, then[10]
![{\displaystyle {\frac {\delta F[G[\rho ]]}{\delta \rho (y)))=\int dx{\frac {\delta F[G]}{\delta G(x)))_{G=G[\rho ]}\cdot {\frac {\delta G[\rho ](x)}{\delta \rho (y)))\ .}](https://wikimedia.org/api/rest_v1/media/math/render/svg/f89c5a56528b98b95ed70e2011242b78e9cadf91)
- If G is an ordinary differentiable function (local functional) g, then this reduces to[11]
![{\displaystyle {\frac {\delta F[g(\rho )]}{\delta \rho (y)))={\frac {\delta F[g(\rho )]}{\delta g[\rho (y)]))\ {\frac {dg(\rho )}{d\rho (y)))\ .}](https://wikimedia.org/api/rest_v1/media/math/render/svg/68fbcc664f79881c08549ade9a45a74d13db3dce)
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
![{\displaystyle F[\rho ]=\int f({\boldsymbol {r)),\rho ({\boldsymbol {r))),\nabla \rho ({\boldsymbol {r))))\,d{\boldsymbol {r)),}](https://wikimedia.org/api/rest_v1/media/math/render/svg/984500e18fa20fadb9f03147b92b046a166aafc7)
and a function
that vanishes on the boundary of the region of integration, from a previous section Definition,
![{\displaystyle {\begin{aligned}\int {\frac {\delta F}{\delta \rho ({\boldsymbol {r)))))\,\phi ({\boldsymbol {r)))\,d{\boldsymbol {r))&=\left[{\frac {d}{d\varepsilon ))\int f({\boldsymbol {r)),\rho +\varepsilon \phi ,\nabla \rho +\varepsilon \nabla \phi )\,d{\boldsymbol {r))\right]_{\varepsilon =0}\\&=\int \left({\frac {\partial f}{\partial \rho ))\,\phi +{\frac {\partial f}{\partial \nabla \rho ))\cdot \nabla \phi \right)d{\boldsymbol {r))\\&=\int \left[{\frac {\partial f}{\partial \rho ))\,\phi +\nabla \cdot \left({\frac {\partial f}{\partial \nabla \rho ))\,\phi \right)-\left(\nabla \cdot {\frac {\partial f}{\partial \nabla \rho ))\right)\phi \right]d{\boldsymbol {r))\\&=\int \left[{\frac {\partial f}{\partial \rho ))\,\phi -\left(\nabla \cdot {\frac {\partial f}{\partial \nabla \rho ))\right)\phi \right]d{\boldsymbol {r))\\&=\int \left({\frac {\partial f}{\partial \rho ))-\nabla \cdot {\frac {\partial f}{\partial \nabla \rho ))\right)\phi ({\boldsymbol {r)))\ d{\boldsymbol {r))\,.\end{aligned))}](https://wikimedia.org/api/rest_v1/media/math/render/svg/364480cb1cb7bbad967750d4f4c2b2baa061f134)
The second line is obtained using the total derivative, where ∂f /∂∇'ρ 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
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
![{\displaystyle {\frac {\delta F}{\delta \rho ({\boldsymbol {r)))))={\frac {\partial f}{\partial \rho ))-\nabla \cdot {\frac {\partial f}{\partial \nabla \rho ))}](https://wikimedia.org/api/rest_v1/media/math/render/svg/22ee5ae13b023dfb79c4ce74ae1c462d0df9b8c0)
where ρ = ρ(r) and f = f (r, ρ, ∇ρ). This formula is for the case of the functional form given by F[ρ] 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,
![{\displaystyle F[\rho ({\boldsymbol {r)))]=\int f({\boldsymbol {r)),\rho ({\boldsymbol {r))),\nabla \rho ({\boldsymbol {r))),\nabla ^{(2)}\rho ({\boldsymbol {r))),\dots ,\nabla ^{(N)}\rho ({\boldsymbol {r))))\,d{\boldsymbol {r)),}](https://wikimedia.org/api/rest_v1/media/math/render/svg/e8d2a74e6ffc8d130e6540ae052afa4431152535)
where the vector r ∈ Rn, and ∇(i) is a tensor whose ni components are partial derivative operators of order i,
![{\displaystyle \left[\nabla ^{(i)}\right]_{\alpha _{1}\alpha _{2}\cdots \alpha _{i))={\frac {\partial ^{\,i)){\partial r_{\alpha _{1))\partial r_{\alpha _{2))\cdots \partial r_{\alpha _{i))))\qquad \qquad {\text{where))\quad \alpha _{1},\alpha _{2},\cdots ,\alpha _{i}=1,2,\cdots ,n\ .}](https://wikimedia.org/api/rest_v1/media/math/render/svg/56d037aa2a7b100d82e701c7c784e8fc1c4db99f)
[Note 5]
An analogous application of the definition of the functional derivative yields
![{\displaystyle {\begin{aligned}{\frac {\delta F[\rho ]}{\delta \rho ))&{}={\frac {\partial f}{\partial \rho ))-\nabla \cdot {\frac {\partial f}{\partial (\nabla \rho )))+\nabla ^{(2)}\cdot {\frac {\partial f}{\partial \left(\nabla ^{(2)}\rho \right)))+\dots +(-1)^{N}\nabla ^{(N)}\cdot {\frac {\partial f}{\partial \left(\nabla ^{(N)}\rho \right)))\\&{}={\frac {\partial f}{\partial \rho ))+\sum _{i=1}^{N}(-1)^{i}\nabla ^{(i)}\cdot {\frac {\partial f}{\partial \left(\nabla ^{(i)}\rho \right)))\ .\end{aligned))}](https://wikimedia.org/api/rest_v1/media/math/render/svg/5e309ee6857a3699070ebbbb3e9380ededa6572d)
In the last two equations, the ni components of the tensor
are partial derivatives of f with respect to partial derivatives of ρ,
![{\displaystyle \left[{\frac {\partial f}{\partial \left(\nabla ^{(i)}\rho \right)))\right]_{\alpha _{1}\alpha _{2}\cdots \alpha _{i))={\frac {\partial f}{\partial \rho _{\alpha _{1}\alpha _{2}\cdots \alpha _{i))))\qquad \qquad {\text{where))\quad \rho _{\alpha _{1}\alpha _{2}\cdots \alpha _{i))\equiv {\frac {\partial ^{\,i}\rho }{\partial r_{\alpha _{1))\,\partial r_{\alpha _{2))\cdots \partial r_{\alpha _{i))))\ ,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/75a055a108cb726caf3543357d6e379254a09dbf)
and the tensor scalar product is,
![{\displaystyle \nabla ^{(i)}\cdot {\frac {\partial f}{\partial \left(\nabla ^{(i)}\rho \right)))=\sum _{\alpha _{1},\alpha _{2},\cdots ,\alpha _{i}=1}^{n}\ {\frac {\partial ^{\,i)){\partial r_{\alpha _{1))\,\partial r_{\alpha _{2))\cdots \partial r_{\alpha _{i))))\ {\frac {\partial f}{\partial \rho _{\alpha _{1}\alpha _{2}\cdots \alpha _{i))))\ .}](https://wikimedia.org/api/rest_v1/media/math/render/svg/dd5095d63edbd303f91b2a2a25dc1feddaefba0f)
[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:
![{\displaystyle T_{\mathrm {TF} }[\rho ]=C_{\mathrm {F} }\int \rho ^{5/3}(\mathbf {r} )\,d\mathbf {r} \,.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/805e085a9d15321704c17fcea9c5c2f3a1f8924b)
Since the integrand of TTF[ρ] does not involve derivatives of ρ(r), the functional derivative of TTF[ρ] is,[12]
![{\displaystyle {\begin{aligned}{\frac {\delta T_{\mathrm {TF} )){\delta \rho ({\boldsymbol {r)))))&=C_{\mathrm {F} }{\frac {\partial \rho ^{5/3}(\mathbf {r} )}{\partial \rho (\mathbf {r} )))\\&={\frac {5}{3))C_{\mathrm {F} }\rho ^{2/3}(\mathbf {r} )\,.\end{aligned))}](https://wikimedia.org/api/rest_v1/media/math/render/svg/4752d7fd2521305935cf0d80fb730accdbbcb30f)
Coulomb potential energy functional
For the electron-nucleus potential, Thomas and Fermi employed the Coulomb potential energy functional
![{\displaystyle V[\rho ]=\int {\frac {\rho ({\boldsymbol {r)))}{|{\boldsymbol {r))|))\ d{\boldsymbol {r)).}](https://wikimedia.org/api/rest_v1/media/math/render/svg/2c1593ae52b426aa72244fda7d98ac6aab5a6fd4)
Applying the definition of functional derivative,
![{\displaystyle {\begin{aligned}\int {\frac {\delta V}{\delta \rho ({\boldsymbol {r)))))\ \phi ({\boldsymbol {r)))\ d{\boldsymbol {r))&{}=\left[{\frac {d}{d\varepsilon ))\int {\frac {\rho ({\boldsymbol {r)))+\varepsilon \phi ({\boldsymbol {r)))}{|{\boldsymbol {r))|))\ d{\boldsymbol {r))\right]_{\varepsilon =0}\\&{}=\int {\frac {1}{|{\boldsymbol {r))|))\,\phi ({\boldsymbol {r)))\ d{\boldsymbol {r))\,.\end{aligned))}](https://wikimedia.org/api/rest_v1/media/math/render/svg/c5feda7981e551ab3ef736601c97d676b5c93eeb)
So,
![{\displaystyle {\frac {\delta V}{\delta \rho ({\boldsymbol {r)))))={\frac {1}{|{\boldsymbol {r))|))\ .}](https://wikimedia.org/api/rest_v1/media/math/render/svg/1c1cee60ee7e8ff1b8ce269836ddb38a45629fd6)
For the classical part of the electron-electron interaction, Thomas and Fermi employed the Coulomb potential energy functional
![{\displaystyle J[\rho ]={\frac {1}{2))\iint {\frac {\rho (\mathbf {r} )\rho (\mathbf {r} ')}{|\mathbf {r} -\mathbf {r} '|))\,d\mathbf {r} d\mathbf {r} '\,.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/30ff0a58eecdab9b69e1da85dc506f029c9b65b3)
From the definition of the functional derivative,
![{\displaystyle {\begin{aligned}\int {\frac {\delta J}{\delta \rho ({\boldsymbol {r)))))\phi ({\boldsymbol {r)))d{\boldsymbol {r))&{}=\left[{\frac {d\ }{d\epsilon ))\,J[\rho +\epsilon \phi ]\right]_{\epsilon =0}\\&{}=\left[{\frac {d\ }{d\epsilon ))\,\left({\frac {1}{2))\iint {\frac {[\rho ({\boldsymbol {r)))+\epsilon \phi ({\boldsymbol {r)))]\,[\rho ({\boldsymbol {r))')+\epsilon \phi ({\boldsymbol {r))')]}{|{\boldsymbol {r))-{\boldsymbol {r))'|))\,d{\boldsymbol {r))d{\boldsymbol {r))'\right)\right]_{\epsilon =0}\\&{}={\frac {1}{2))\iint {\frac {\rho ({\boldsymbol {r))')\phi ({\boldsymbol {r)))}{|{\boldsymbol {r))-{\boldsymbol {r))'|))\,d{\boldsymbol {r))d{\boldsymbol {r))'+{\frac {1}{2))\iint {\frac {\rho ({\boldsymbol {r)))\phi ({\boldsymbol {r))')}{|{\boldsymbol {r))-{\boldsymbol {r))'|))\,d{\boldsymbol {r))d{\boldsymbol {r))'\\\end{aligned))}](https://wikimedia.org/api/rest_v1/media/math/render/svg/e5ea4497d6c3471c141f5882e3e91e4c80e36c5f)
The first and second terms on the right hand side of the last equation are equal, since r and r′ in the second term can be interchanged without changing the value of the integral. Therefore,
![{\displaystyle \int {\frac {\delta J}{\delta \rho ({\boldsymbol {r)))))\phi ({\boldsymbol {r)))d{\boldsymbol {r))=\int \left(\int {\frac {\rho ({\boldsymbol {r))')}{|{\boldsymbol {r))-{\boldsymbol {r))'|))d{\boldsymbol {r))'\right)\phi ({\boldsymbol {r)))d{\boldsymbol {r))}](https://wikimedia.org/api/rest_v1/media/math/render/svg/8f3afa8296cde6eb00da5d316e564c16818d9d3d)
and the functional derivative of the electron-electron Coulomb potential energy functional J[ρ] is,[13]
![{\displaystyle {\frac {\delta J}{\delta \rho ({\boldsymbol {r)))))=\int {\frac {\rho ({\boldsymbol {r))')}{|{\boldsymbol {r))-{\boldsymbol {r))'|))d{\boldsymbol {r))'\,.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/321fa0ffc5e1a85fd8c878c6550f1ee360df7bf4)
The second functional derivative is
![{\displaystyle {\frac {\delta ^{2}J[\rho ]}{\delta \rho (\mathbf {r} ')\delta \rho (\mathbf {r} )))={\frac {\partial }{\partial \rho (\mathbf {r} ')))\left({\frac {\rho (\mathbf {r} ')}{|\mathbf {r} -\mathbf {r} '|))\right)={\frac {1}{|\mathbf {r} -\mathbf {r} '|)).}](https://wikimedia.org/api/rest_v1/media/math/render/svg/b6863a6705ea4606b99eda69a687aacb21964bc2)
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:
![{\displaystyle T_{\mathrm {W} }[\rho ]={\frac {1}{8))\int {\frac {\nabla \rho (\mathbf {r} )\cdot \nabla \rho (\mathbf {r} )}{\rho (\mathbf {r} )))d\mathbf {r} =\int t_{\mathrm {W} }\ d\mathbf {r} \,,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/0eafe31ae78208f4c75df2c3147f18c61ed02e29)
where
![{\displaystyle t_{\mathrm {W} }\equiv {\frac {1}{8)){\frac {\nabla \rho \cdot \nabla \rho }{\rho ))\qquad {\text{and))\ \ \rho =\rho ({\boldsymbol {r)))\ .}](https://wikimedia.org/api/rest_v1/media/math/render/svg/6ba8b6c7fe84535137fe832d2b552d3ee4d237f0)
Using a previously derived formula for the functional derivative,
![{\displaystyle {\begin{aligned}{\frac {\delta T_{\mathrm {W} )){\delta \rho ({\boldsymbol {r)))))&={\frac {\partial t_{\mathrm {W} )){\partial \rho ))-\nabla \cdot {\frac {\partial t_{\mathrm {W} )){\partial \nabla \rho ))\\&=-{\frac {1}{8)){\frac {\nabla \rho \cdot \nabla \rho }{\rho ^{2))}-\left({\frac {1}{4)){\frac {\nabla ^{2}\rho }{\rho ))-{\frac {1}{4)){\frac {\nabla \rho \cdot \nabla \rho }{\rho ^{2))}\right)\qquad {\text{where))\ \ \nabla ^{2}=\nabla \cdot \nabla \ ,\end{aligned))}](https://wikimedia.org/api/rest_v1/media/math/render/svg/7606a5a837e42b5c6fef0dc4f579708e225a4fce)
and the result is,[14]
![{\displaystyle {\frac {\delta T_{\mathrm {W} )){\delta \rho ({\boldsymbol {r)))))=\ \ \,{\frac {1}{8)){\frac {\nabla \rho \cdot \nabla \rho }{\rho ^{2))}-{\frac {1}{4)){\frac {\nabla ^{2}\rho }{\rho ))\ .}](https://wikimedia.org/api/rest_v1/media/math/render/svg/baa84f1f6ef2c83d9e6f447b2c48ccdd01430759)
Entropy
The entropy of a discrete random variable is a functional of the probability mass function.
![{\displaystyle H[p(x)]=-\sum _{x}p(x)\log p(x)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/5badc001355f04544f4992a05020910fadf0d19d)
Thus,
![{\displaystyle {\begin{aligned}\sum _{x}{\frac {\delta H}{\delta p(x)))\,\phi (x)&{}=\left[{\frac {d}{d\epsilon ))H[p(x)+\epsilon \phi (x)]\right]_{\epsilon =0}\\&{}=\left[-\,{\frac {d}{d\varepsilon ))\sum _{x}\,[p(x)+\varepsilon \phi (x)]\ \log[p(x)+\varepsilon \phi (x)]\right]_{\varepsilon =0}\\&{}=-\sum _{x}\,[1+\log p(x)]\ \phi (x)\,.\end{aligned))}](https://wikimedia.org/api/rest_v1/media/math/render/svg/3a3d7804d80847c74e11341f823e94d5f1176333)
Thus,
![{\displaystyle {\frac {\delta H}{\delta p(x)))=-1-\log p(x).}](https://wikimedia.org/api/rest_v1/media/math/render/svg/2c2dfd3f28b5e7eee63464be7360ff93f9461764)
Exponential
Let
![{\displaystyle F[\varphi (x)]=e^{\int \varphi (x)g(x)dx}.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/8cf62da868a4878d3d5c56043e0e7947d1a3789f)
Using the delta function as a test function,
![{\displaystyle {\begin{aligned}{\frac {\delta F[\varphi (x)]}{\delta \varphi (y)))&{}=\lim _{\varepsilon \to 0}{\frac {F[\varphi (x)+\varepsilon \delta (x-y)]-F[\varphi (x)]}{\varepsilon ))\\&{}=\lim _{\varepsilon \to 0}{\frac {e^{\int (\varphi (x)+\varepsilon \delta (x-y))g(x)dx}-e^{\int \varphi (x)g(x)dx)){\varepsilon ))\\&{}=e^{\int \varphi (x)g(x)dx}\lim _{\varepsilon \to 0}{\frac {e^{\varepsilon \int \delta (x-y)g(x)dx}-1}{\varepsilon ))\\&{}=e^{\int \varphi (x)g(x)dx}\lim _{\varepsilon \to 0}{\frac {e^{\varepsilon g(y)}-1}{\varepsilon ))\\&{}=e^{\int \varphi (x)g(x)dx}g(y).\end{aligned))}](https://wikimedia.org/api/rest_v1/media/math/render/svg/ec4bb807430d52bf84582815526969c5182132bb)
Thus,
![{\displaystyle {\frac {\delta F[\varphi (x)]}{\delta \varphi (y)))=g(y)F[\varphi (x)].}](https://wikimedia.org/api/rest_v1/media/math/render/svg/e78f30af55466f2e117b3dc25af74e86a2db308c)
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,
![{\displaystyle \rho ({\boldsymbol {r)))=F[\rho ]=\int \rho ({\boldsymbol {r))')\delta ({\boldsymbol {r))-{\boldsymbol {r))')\,d{\boldsymbol {r))'.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/d4a462a8d7648c751791e624f6bb5abdfa985733)
Since the integrand does not depend on derivatives of ρ, the functional derivative of ρ(r) is,
![{\displaystyle {\begin{aligned}{\frac {\delta \rho ({\boldsymbol {r)))}{\delta \rho ({\boldsymbol {r))')))\equiv {\frac {\delta F}{\delta \rho ({\boldsymbol {r))')))&={\frac {\partial \ \ }{\partial \rho ({\boldsymbol {r))')))\,[\rho ({\boldsymbol {r))')\delta ({\boldsymbol {r))-{\boldsymbol {r))')]\\&=\delta ({\boldsymbol {r))-{\boldsymbol {r))').\end{aligned))}](https://wikimedia.org/api/rest_v1/media/math/render/svg/1583fde0b7d6e164506aced9aa3781e502395d53)
Functional derivative of iterated function
The functional derivative of the iterated function
is given by:
![{\displaystyle {\frac {\delta f(f(x))}{\delta f(y)))=f'(f(x))\delta (x-y)+\delta (f(x)-y)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/08cee11f422cb7194e8da8f41adc48919e5a1ced)
and
![{\displaystyle {\frac {\delta f(f(f(x)))}{\delta f(y)))=f'(f(f(x))(f'(f(x))\delta (x-y)+\delta (f(x)-y))+\delta (f(f(x))-y)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/54c2245f3b3a5ccb7f3f581cbbca60731f909460)
In general:
![{\displaystyle {\frac {\delta f^{N}(x)}{\delta f(y)))=f'(f^{N-1}(x)){\frac {\delta f^{N-1}(x)}{\delta f(y)))+\delta (f^{N-1}(x)-y)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/8b2c2f80661a94f479f5a9eff3640049d01ea097)
Putting in N = 0 gives:
![{\displaystyle {\frac {\delta f^{-1}(x)}{\delta f(y)))=-{\frac {\delta (f^{-1}(x)-y)}{f'(f^{-1}(x))))}](https://wikimedia.org/api/rest_v1/media/math/render/svg/c59e61027e20323d8cd7cbf298f472f6c0af14d7)