<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Functional_derivative</id>
	<title>Functional derivative - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Functional_derivative"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Functional_derivative&amp;action=history"/>
	<updated>2026-06-10T01:16:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki143/index.php?title=Functional_derivative&amp;diff=4663984&amp;oldid=prev</id>
		<title>imported&gt;Jajaperson: /* Functional differential */ cf. homotopy</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Functional_derivative&amp;diff=4663984&amp;oldid=prev"/>
		<updated>2025-11-01T03:49:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Functional differential: &lt;/span&gt; cf. homotopy&lt;/p&gt;
&lt;a href=&quot;http://debianws.lexgopc.com/wiki143/index.php?title=Functional_derivative&amp;amp;diff=4663984&amp;amp;oldid=195084&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>imported&gt;Jajaperson</name></author>
	</entry>
	<entry>
		<id>http://debianws.lexgopc.com/wiki143/index.php?title=Functional_derivative&amp;diff=195084&amp;oldid=prev</id>
		<title>imported&gt;BobH4: /* von Weizsäcker kinetic energy functional */</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Functional_derivative&amp;diff=195084&amp;oldid=prev"/>
		<updated>2025-02-11T18:57:14Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;von Weizsäcker kinetic energy functional&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Concept in calculus of variation}}&lt;br /&gt;
In the [[calculus of variations]], a field of [[mathematical analysis]], the &amp;#039;&amp;#039;&amp;#039;functional derivative&amp;#039;&amp;#039;&amp;#039; (or &amp;#039;&amp;#039;&amp;#039;variational derivative&amp;#039;&amp;#039;&amp;#039;)&amp;lt;ref name=&amp;quot;GiaquintaHildebrandtP18&amp;quot;&amp;gt;{{harvp|Giaquinta|Hildebrandt|1996|p=18}}&amp;lt;/ref&amp;gt; relates a change in a [[Functional (mathematics)|functional]] (a functional in this sense is a function that acts on functions) to a change in a [[Function (mathematics)|function]] on which the functional depends.&lt;br /&gt;
&lt;br /&gt;
In the calculus of variations, functionals are usually expressed in terms of an [[integral]] of functions, their [[Argument of a function|arguments]], and their [[derivative]]s. In an integrand {{math|&amp;#039;&amp;#039;L&amp;#039;&amp;#039;}} of a functional, if a function {{math|&amp;#039;&amp;#039;f&amp;#039;&amp;#039;}} is varied by adding to it another function {{math|&amp;#039;&amp;#039;δf&amp;#039;&amp;#039;}} that is arbitrarily small, and the resulting integrand is expanded in powers of {{math|&amp;#039;&amp;#039;δf&amp;#039;&amp;#039;}}, the coefficient of {{math|&amp;#039;&amp;#039;δf&amp;#039;&amp;#039;}} in the first order term is called the functional derivative.&lt;br /&gt;
&lt;br /&gt;
For example, consider the functional&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt; J[f] = \int_a^b L( \, x, f(x), f&amp;#039;{(x)} \, ) \, dx \, , &amp;lt;/math&amp;gt;&lt;br /&gt;
where {{math|&amp;#039;&amp;#039;f&amp;#039;&amp;#039; &amp;amp;prime;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) &amp;amp;equiv; &amp;#039;&amp;#039;df&amp;#039;&amp;#039;/&amp;#039;&amp;#039;dx&amp;#039;&amp;#039;}}. If {{math|&amp;#039;&amp;#039;f&amp;#039;&amp;#039;}} is varied by adding to it a function {{math|&amp;#039;&amp;#039;δf&amp;#039;&amp;#039;}}, and the resulting integrand {{math|&amp;#039;&amp;#039;L&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;f&amp;#039;&amp;#039; +&amp;#039;&amp;#039;δf&amp;#039;&amp;#039;, &amp;#039;&amp;#039;f&amp;#039;&amp;#039; &amp;amp;prime;+&amp;#039;&amp;#039;δf&amp;#039;&amp;#039; &amp;amp;prime;)}} is expanded in powers of {{math|&amp;#039;&amp;#039;δf&amp;#039;&amp;#039;}}, then the change in the value of {{math|&amp;#039;&amp;#039;J&amp;#039;&amp;#039;}} to first order in {{math|&amp;#039;&amp;#039;δf&amp;#039;&amp;#039;}} can be expressed as follows:&amp;lt;ref name=&amp;quot;GiaquintaHildebrandtP18&amp;quot; /&amp;gt;&amp;lt;ref Group = &amp;#039;Note&amp;#039;&amp;gt;According to {{Harvp|Giaquinta|Hildebrandt|1996|p=18}}, this notation is customary in [[Physics|physical]] literature.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{align}&lt;br /&gt;
\delta J &amp;amp;= \int_a^b \left( \frac{\partial L}{\partial f} \delta f(x) + \frac{\partial L}{\partial f&amp;#039;} \frac{d}{dx} \delta f(x) \right) \, dx \, \\[1ex]&lt;br /&gt;
&amp;amp;= \int_a^b \left( \frac{\partial L}{\partial f} - \frac{d}{dx} \frac{\partial L}{\partial f&amp;#039;} \right) \delta f(x) \, dx \, + \, \frac{\partial L}{\partial f&amp;#039;} (b) \delta f(b) \, - \, \frac{\partial L}{\partial f&amp;#039;} (a) \delta f(a)&lt;br /&gt;
\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
where the variation in the derivative, {{math|&amp;#039;&amp;#039;δf&amp;#039;&amp;#039; &amp;amp;prime;}} was rewritten as the derivative of the variation {{math|(&amp;#039;&amp;#039;δf&amp;#039;&amp;#039;) &amp;amp;prime;}}, and [[integration by parts]] was used in these derivatives.&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
&lt;br /&gt;
In this section, the functional differential (or variation or first variation)&amp;lt;Ref Group = &amp;#039;Note&amp;#039;&amp;gt; Called &amp;#039;&amp;#039;first variation&amp;#039;&amp;#039; in {{harv|Giaquinta|Hildebrandt|1996|p=3}}, &amp;#039;&amp;#039;variation&amp;#039;&amp;#039; or &amp;#039;&amp;#039;first variation&amp;#039;&amp;#039; in {{harv|Courant|Hilbert|1953|p=186}}, &amp;#039;&amp;#039;variation&amp;#039;&amp;#039; or &amp;#039;&amp;#039;differential&amp;#039;&amp;#039; in {{harv|Gelfand|Fomin|2000|loc= p. 11, § 3.2}} and &amp;#039;&amp;#039;differential&amp;#039;&amp;#039; in {{harv|Parr|Yang|1989|p=246}}.&amp;lt;/ref&amp;gt; is defined. Then the functional derivative is defined in terms of the functional differential.&lt;br /&gt;
&lt;br /&gt;
===Functional differential===&lt;br /&gt;
&lt;br /&gt;
Suppose &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is a [[Banach space]] and &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is a [[Functional (mathematics)|functional]] defined on &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;.&lt;br /&gt;
The differential of &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; at a point &amp;lt;math&amp;gt;\rho\in B&amp;lt;/math&amp;gt; is the [[linear functional]] &amp;lt;math&amp;gt;\delta F[\rho,\cdot]&amp;lt;/math&amp;gt; on &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; defined&amp;lt;ref name=&amp;quot;GelfandFominp11&amp;quot;&amp;gt;{{harvp|Gelfand|Fomin|2000|p=11}}.&amp;lt;/ref&amp;gt; by the condition that, for all &amp;lt;math&amp;gt;\phi\in B&amp;lt;/math&amp;gt;,&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;&lt;br /&gt;
F[\rho+\phi] - F[\rho]&lt;br /&gt;
=&lt;br /&gt;
\delta F [\rho; \phi] + \varepsilon \left\|\phi\right\|&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\varepsilon&amp;lt;/math&amp;gt; is a real number that depends on &amp;lt;math&amp;gt;\|\phi\|&amp;lt;/math&amp;gt; in such a way that &amp;lt;math&amp;gt;\varepsilon\to 0&amp;lt;/math&amp;gt; as &amp;lt;math&amp;gt;\|\phi\|\to 0&amp;lt;/math&amp;gt;. This means that &amp;lt;math&amp;gt;\delta F[\rho,\cdot]&amp;lt;/math&amp;gt; is the [[Fréchet derivative]] of &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; at &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
However, this notion of functional differential is so strong it may not exist,&amp;lt;ref name=&amp;quot;GiaquintaHildebrandtP180&amp;quot;&amp;gt;{{harvp|Giaquinta|Hildebrandt|1996|p=10}}.&amp;lt;/ref&amp;gt; and in those cases a weaker notion, like the [[Gateaux derivative]] is preferred. In many practical cases, the functional differential is defined&amp;lt;ref name=&amp;quot;GiaquintaHildebrandtP3&amp;quot;&amp;gt;{{harvp|Giaquinta|Hildebrandt|1996|p=10}}.&amp;lt;/ref&amp;gt; as the directional derivative&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\delta F[\rho,\phi]&lt;br /&gt;
&amp;amp;= \lim_{\varepsilon\to 0}\frac{F[\rho+\varepsilon \phi]-F[\rho]}{\varepsilon} \\[1ex]&lt;br /&gt;
&amp;amp;= \left [ \frac{d}{d\varepsilon}F[\rho+\varepsilon \phi]\right ]_{\varepsilon=0}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Note that this notion of the functional differential can even be defined without a norm.&lt;br /&gt;
&lt;br /&gt;
===Functional derivative===&lt;br /&gt;
&lt;br /&gt;
In many applications, the domain of the functional &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is a space of differentiable functions &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; defined on some space &amp;lt;math&amp;gt;\Omega&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is of the form&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;&lt;br /&gt;
F[\rho]&lt;br /&gt;
=&lt;br /&gt;
\int_\Omega L(x,\rho(x),D\rho(x))\,dx&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
for some function &amp;lt;math&amp;gt;L(x,\rho(x),D\rho(x))&amp;lt;/math&amp;gt; that may depend on &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;, the value &amp;lt;math&amp;gt;\rho(x)&amp;lt;/math&amp;gt; and the derivative &amp;lt;math&amp;gt;D\rho(x)&amp;lt;/math&amp;gt;.&lt;br /&gt;
If this is the case and, moreover, &amp;lt;math&amp;gt;\delta F[\rho,\phi]&amp;lt;/math&amp;gt; can be written as the integral of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; times another function (denoted {{math|&amp;#039;&amp;#039;δF&amp;#039;&amp;#039;/&amp;#039;&amp;#039;δρ&amp;#039;&amp;#039;}})&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\delta F [\rho, \phi] = \int_\Omega \frac {\delta F} {\delta \rho}(x) \ \phi(x) \ dx&amp;lt;/math&amp;gt;&lt;br /&gt;
then this function {{math|&amp;#039;&amp;#039;δF&amp;#039;&amp;#039;/&amp;#039;&amp;#039;δρ&amp;#039;&amp;#039;}} is called the &amp;#039;&amp;#039;&amp;#039;functional derivative&amp;#039;&amp;#039;&amp;#039; of {{math|&amp;#039;&amp;#039;F&amp;#039;&amp;#039;}} at {{math|&amp;#039;&amp;#039;ρ&amp;#039;&amp;#039;}}.&amp;lt;ref name=ParrYangP246A.2&amp;gt;{{harvp|Parr|Yang|1989|loc= p. 246, Eq. A.2}}.&amp;lt;/ref&amp;gt;&amp;lt;ref name=GreinerReinhardtP36.2&amp;gt;{{harvp|Greiner|Reinhardt|1996|p=36,37}}.&amp;lt;/ref&amp;gt; If &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is restricted to only certain functions &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; (for example, if there are some boundary conditions imposed) then &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; is restricted to  functions such that &amp;lt;math&amp;gt;\rho+\varepsilon\phi&amp;lt;/math&amp;gt; continues to satisfy these conditions.&lt;br /&gt;
&lt;br /&gt;
Heuristically, &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; is the change in &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt;, so we &amp;#039;formally&amp;#039; have &amp;lt;math&amp;gt;\phi = \delta\rho&amp;lt;/math&amp;gt;, and then this is similar in form to the [[total differential]] of a function &amp;lt;math&amp;gt;F(\rho_1,\rho_2,\dots,\rho_n)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt; dF = \sum_{i=1} ^n \frac {\partial F} {\partial \rho_i} \ d\rho_i ,&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\rho_1,\rho_2,\dots,\rho_n&amp;lt;/math&amp;gt; are independent variables.&lt;br /&gt;
Comparing the last two equations, the functional derivative &amp;lt;math&amp;gt;\delta F/\delta\rho(x)&amp;lt;/math&amp;gt; has a role similar to that of the partial derivative &amp;lt;math&amp;gt;\partial F/\partial\rho_i&amp;lt;/math&amp;gt;, where the variable of integration &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is like a continuous version of the summation index &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt;.&amp;lt;ref name=ParrYangP246&amp;gt;{{harvp|Parr|Yang|1989|p=246}}.&amp;lt;/ref&amp;gt; One thinks of {{math|&amp;#039;&amp;#039;δF&amp;#039;&amp;#039;/&amp;#039;&amp;#039;δρ&amp;#039;&amp;#039;}} as the gradient of {{math|&amp;#039;&amp;#039;F&amp;#039;&amp;#039;}} at the point {{math|&amp;#039;&amp;#039;ρ&amp;#039;&amp;#039;}}, so the value {{math|&amp;#039;&amp;#039;δF&amp;#039;&amp;#039;/&amp;#039;&amp;#039;δρ(x)&amp;#039;&amp;#039;}} measures how much the functional {{math|&amp;#039;&amp;#039;F&amp;#039;&amp;#039;}} will change if the function {{math|&amp;#039;&amp;#039;ρ&amp;#039;&amp;#039;}} is changed at the point {{math|&amp;#039;&amp;#039;x&amp;#039;&amp;#039;}}. Hence the formula&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\int \frac{\delta F}{\delta\rho}(x) \phi(x) \; dx&amp;lt;/math&amp;gt;&lt;br /&gt;
is regarded as the directional derivative at point &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; in the direction of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt;. This is analogous to vector calculus, where the inner product of a vector &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt; with the gradient gives the directional derivative in the direction of &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
Like the derivative of a function, the functional derivative satisfies the following properties, where {{math|&amp;#039;&amp;#039;F&amp;#039;&amp;#039;[&amp;#039;&amp;#039;ρ&amp;#039;&amp;#039;]}} and {{math|&amp;#039;&amp;#039;G&amp;#039;&amp;#039;[&amp;#039;&amp;#039;ρ&amp;#039;&amp;#039;]}} are functionals:&amp;lt;ref group=&amp;quot;Note&amp;quot;&amp;gt;&lt;br /&gt;
Here the notation&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\frac{\delta{F}}{\delta\rho}(x) \equiv \frac{\delta{F}}{\delta\rho(x)}&amp;lt;/math&amp;gt;&lt;br /&gt;
is introduced.&lt;br /&gt;
&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Linearity:&amp;lt;ref name=ParrYangP247A.3&amp;gt;{{harvp|Parr|Yang|1989|loc= p. 247, Eq. A.3}}.&amp;lt;/ref&amp;gt; &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\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)},&amp;lt;/math&amp;gt; where {{math|&amp;#039;&amp;#039;λ&amp;#039;&amp;#039;, &amp;#039;&amp;#039;μ&amp;#039;&amp;#039;}} are constants.&lt;br /&gt;
* Product rule:&amp;lt;ref name=ParrYangP247A.4&amp;gt;{{harvp|Parr|Yang|1989|loc= p. 247, Eq. A.4}}.&amp;lt;/ref&amp;gt; &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\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)} \, , &amp;lt;/math&amp;gt;&lt;br /&gt;
* Chain rules:&lt;br /&gt;
**If {{math|&amp;#039;&amp;#039;F&amp;#039;&amp;#039;}} is a functional and {{math|&amp;#039;&amp;#039;G&amp;#039;&amp;#039;}} another functional, then&amp;lt;ref&amp;gt;{{harvp|Greiner|Reinhardt|1996|loc=p. 38, Eq. 6}}.&amp;lt;/ref&amp;gt; &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\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)} \ . &amp;lt;/math&amp;gt;&lt;br /&gt;
**If {{math|&amp;#039;&amp;#039;G&amp;#039;&amp;#039;}} is an ordinary differentiable function (local functional) {{math|&amp;#039;&amp;#039;g&amp;#039;&amp;#039;}}, then this reduces to&amp;lt;ref&amp;gt;{{harvp|Greiner|Reinhardt|1996|loc=p. 38, Eq. 7}}.&amp;lt;/ref&amp;gt; &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\frac{\delta F[g(\rho)] }{\delta\rho(y)} = \frac{\delta F[g(\rho)]}{\delta g[\rho(y) ]} \ \frac {dg(\rho)} {d\rho(y)} \ . &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Determining functional derivatives==&lt;br /&gt;
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 [[Joseph-Louis Lagrange|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).&lt;br /&gt;
&lt;br /&gt;
===Formula===&lt;br /&gt;
Given a functional&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;F[\rho] = \int f( \boldsymbol{r}, \rho(\boldsymbol{r}), \nabla\rho(\boldsymbol{r}) )\, d\boldsymbol{r},&amp;lt;/math&amp;gt;&lt;br /&gt;
and a function &amp;lt;math&amp;gt;\phi(\boldsymbol{r})&amp;lt;/math&amp;gt; that vanishes on the boundary of the region of integration, from a previous section [[#Definition|Definition]],&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{align}&lt;br /&gt;
\int \frac{\delta F}{\delta\rho(\boldsymbol{r})} \, \phi(\boldsymbol{r}) \, d\boldsymbol{r}&lt;br /&gt;
&amp;amp; = \left [ \frac{d}{d\varepsilon} \int f( \boldsymbol{r}, \rho + \varepsilon \phi, \nabla\rho+\varepsilon\nabla\phi )\, d\boldsymbol{r} \right ]_{\varepsilon=0} \\&lt;br /&gt;
&amp;amp; = \int \left( \frac{\partial f}{\partial\rho} \, \phi + \frac{\partial f}{\partial\nabla\rho} \cdot \nabla\phi \right) d\boldsymbol{r} \\&lt;br /&gt;
&amp;amp; = \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} \\&lt;br /&gt;
&amp;amp; = \int \left[ \frac{\partial f}{\partial\rho} \, \phi - \left( \nabla \cdot \frac{\partial f}{\partial\nabla\rho} \right) \phi \right] d\boldsymbol{r} \\&lt;br /&gt;
&amp;amp; = \int \left( \frac{\partial f}{\partial\rho} - \nabla \cdot \frac{\partial f}{\partial\nabla\rho} \right) \phi(\boldsymbol{r}) \ d\boldsymbol{r} \, .&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second line is obtained using the [[total derivative]], where {{math|&amp;#039;&amp;#039;∂f&amp;#039;&amp;#039; /&amp;#039;&amp;#039;∂∇ρ&amp;#039;&amp;#039;}} is a [[Matrix calculus#Scalar-by-vector|derivative of a scalar with respect to a vector]].&amp;lt;ref group=&amp;quot;Note&amp;quot;&amp;gt;For a three-dimensional Cartesian coordinate system,&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\frac{\partial f}{\partial\nabla\rho} = \frac{\partial f}{\partial\rho_x} \mathbf{\hat{i}} + \frac{\partial f}{\partial\rho_y} \mathbf{\hat{j}} + \frac{\partial f}{\partial\rho_z} \mathbf{\hat{k}}\, ,&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\rho_x = \frac{\partial \rho}{\partial x}\, , \ \rho_y = \frac{\partial \rho}{\partial y}\, , \ \rho_z = \frac{\partial \rho}{\partial z}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathbf{\hat{i}}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\mathbf{\hat{j}}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\mathbf{\hat{k}}&amp;lt;/math&amp;gt; are unit vectors along the x, y, z axes.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The third line was obtained by use of a [[Divergence#Properties|product rule for divergence]]. The fourth line was obtained using the [[divergence theorem]] and the condition that &amp;lt;math&amp;gt;\phi=0&amp;lt;/math&amp;gt; on the boundary of the region of integration. Since &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; is also an arbitrary function, applying the [[fundamental lemma of calculus of variations]] to the last line, the functional derivative is&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\frac{\delta F}{\delta\rho(\boldsymbol{r})} = \frac{\partial f}{\partial\rho} - \nabla \cdot \frac{\partial f}{\partial\nabla\rho} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where {{math|1=&amp;#039;&amp;#039;ρ&amp;#039;&amp;#039; = &amp;#039;&amp;#039;ρ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;r&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;)}} and {{math|1=&amp;#039;&amp;#039;f&amp;#039;&amp;#039; = &amp;#039;&amp;#039;f&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;r&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;ρ&amp;#039;&amp;#039;, &amp;amp;nabla;&amp;#039;&amp;#039;ρ&amp;#039;&amp;#039;)}}. This formula is for the case of the functional form given by {{math|&amp;#039;&amp;#039;F&amp;#039;&amp;#039;[&amp;#039;&amp;#039;ρ&amp;#039;&amp;#039;]}} 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|Coulomb potential energy functional]].)&lt;br /&gt;
&lt;br /&gt;
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,&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;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},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the vector {{math|&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;r&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; &amp;amp;isin; &amp;#039;&amp;#039;&amp;#039;R&amp;#039;&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}}, and {{math|&amp;amp;nabla;&amp;lt;sup&amp;gt;(&amp;#039;&amp;#039;i&amp;#039;&amp;#039;)&amp;lt;/sup&amp;gt;}} is a tensor whose {{math|&amp;#039;&amp;#039;n&amp;lt;sup&amp;gt;i&amp;lt;/sup&amp;gt;&amp;#039;&amp;#039;}} components are partial derivative operators of order {{math|&amp;#039;&amp;#039;i&amp;#039;&amp;#039;}},&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt; \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, \dots, \alpha_i = 1, 2, \dots , n \ . &amp;lt;/math&amp;gt;&amp;lt;ref group=&amp;quot;Note&amp;quot;&amp;gt;For example, for the case of three dimensions ({{math|1=&amp;#039;&amp;#039;n&amp;#039;&amp;#039; = 3}}) and second order derivatives ({{math|1=&amp;#039;&amp;#039;i&amp;#039;&amp;#039; = 2}}), the tensor {{math|&amp;amp;nabla;&amp;lt;sup&amp;gt;(2)&amp;lt;/sup&amp;gt;}} has components,&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt; \left [ \nabla^{(2)} \right ]_{\alpha \beta} = \frac {\partial^{\,2}} {\partial r_{\alpha} \, \partial r_{\beta}} &amp;lt;/math&amp;gt;where &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\beta&amp;lt;/math&amp;gt; can be &amp;lt;math&amp;gt;1,2,3&amp;lt;/math&amp;gt;.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An analogous application of the definition of the functional derivative yields&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{align}&lt;br /&gt;
\frac{\delta F[\rho]}{\delta \rho} &amp;amp;{} = \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)} \\&lt;br /&gt;
&amp;amp;{} = \frac{\partial f}{\partial\rho} + \sum_{i=1}^N (-1)^{i}\nabla^{(i)} \cdot \frac{\partial f}{\partial\left(\nabla^{(i)}\rho\right)} \ .&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the last two equations, the {{math|&amp;#039;&amp;#039;n&amp;lt;sup&amp;gt;i&amp;lt;/sup&amp;gt;&amp;#039;&amp;#039;}} components of the tensor &amp;lt;math&amp;gt; \frac{\partial f}{\partial\left(\nabla^{(i)}\rho\right)} &amp;lt;/math&amp;gt; are partial derivatives of {{math|&amp;#039;&amp;#039;f&amp;#039;&amp;#039;}} with respect to partial derivatives of &amp;#039;&amp;#039;ρ&amp;#039;&amp;#039;,&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt; \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} }  &amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;  \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} } &amp;lt;/math&amp;gt;, and the tensor scalar product is,&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt; \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} } \ . &amp;lt;/math&amp;gt; &amp;lt;ref group=&amp;quot;Note&amp;quot;&amp;gt;For example, for the case {{math|1=&amp;#039;&amp;#039;n&amp;#039;&amp;#039; = 3}} and {{math|1=&amp;#039;&amp;#039;i&amp;#039;&amp;#039; = 2}}, the tensor scalar product is,&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt; \nabla^{(2)} \cdot \frac{\partial f}{\partial\left(\nabla^{(2)}\rho\right)} = \sum_{\alpha, \beta = 1}^3 \ \frac {\partial^{\, 2} } {\partial r_{\alpha} \, \partial r_{\beta} } \, \frac {\partial f} {\partial \rho_{\alpha \beta} } , &amp;lt;/math&amp;gt;where &amp;lt;math&amp;gt;\rho_{\alpha \beta} \equiv \frac {\partial^{\, 2}\rho} {\partial r_{\alpha} \, \partial r_{\beta} }&amp;lt;/math&amp;gt;.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
&lt;br /&gt;
====Thomas–Fermi kinetic energy functional====&lt;br /&gt;
The [[Thomas–Fermi model]] of 1927 used a kinetic energy functional for a noninteracting uniform [[free electron model|electron gas]] in a first attempt of [[density-functional theory]] of electronic structure:&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;T_\mathrm{TF}[\rho] = C_\mathrm{F} \int \rho^{5/3}(\mathbf{r}) \, d\mathbf{r} \, .&amp;lt;/math&amp;gt;&lt;br /&gt;
Since the integrand of {{math|&amp;#039;&amp;#039;T&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;TF&amp;lt;/sub&amp;gt;[&amp;#039;&amp;#039;ρ&amp;#039;&amp;#039;]}} does not involve derivatives of {{math|&amp;#039;&amp;#039;ρ&amp;#039;&amp;#039;(&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;r&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;)}}, the functional derivative of {{math|&amp;#039;&amp;#039;T&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;TF&amp;lt;/sub&amp;gt;[&amp;#039;&amp;#039;ρ&amp;#039;&amp;#039;]}} is,&amp;lt;ref name=ParrYangP247A.6&amp;gt;{{harvp|Parr|Yang|1989|loc=p. 247, Eq. A.6}}.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\frac{\delta T_{\mathrm{TF}}}{\delta \rho (\boldsymbol{r}) }&lt;br /&gt;
= C_\mathrm{F} \frac{\partial \rho^{5/3}(\mathbf{r})}{\partial \rho(\mathbf{r})}&lt;br /&gt;
= \frac{5}{3} C_\mathrm{F} \rho^{2/3}(\mathbf{r}) \, .&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Coulomb potential energy functional====&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;electron-nucleus&amp;#039;&amp;#039;&amp;#039; potential energy is&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;V[\rho] = \int \frac{\rho(\boldsymbol{r})}{|\boldsymbol{r}|} \ d\boldsymbol{r}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Applying the definition of functional derivative,&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{align}&lt;br /&gt;
\int \frac{\delta V}{\delta \rho(\boldsymbol{r})} \ \phi(\boldsymbol{r}) \ d\boldsymbol{r}&lt;br /&gt;
&amp;amp; {} = \left [ \frac{d}{d\varepsilon} \int \frac{\rho(\boldsymbol{r}) + \varepsilon \phi(\boldsymbol{r})}{|\boldsymbol{r}|} \ d\boldsymbol{r} \right ]_{\varepsilon=0} \\[1ex]&lt;br /&gt;
&amp;amp; {} = \int \frac {\phi(\boldsymbol{r})} {|\boldsymbol{r}|} \ d\boldsymbol{r} \, .&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
So,&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt; \frac{\delta V}{\delta \rho(\boldsymbol{r})} = \frac{1}{|\boldsymbol{r}|} \ . &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The functional derivative of the classical part of the &amp;#039;&amp;#039;&amp;#039;electron-electron interaction&amp;#039;&amp;#039;&amp;#039; (often called Hartree energy) is &lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;J[\rho] = \frac{1}{2}\iint \frac{\rho(\mathbf{r}) \rho(\mathbf{r}&amp;#039;)}{| \mathbf{r}-\mathbf{r}&amp;#039; |}\, d\mathbf{r} d\mathbf{r}&amp;#039; \, .&amp;lt;/math&amp;gt;&lt;br /&gt;
From the [[#Functional derivative|definition of the functional derivative]],&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{align}&lt;br /&gt;
\int \frac{\delta J}{\delta\rho(\boldsymbol{r})} \phi(\boldsymbol{r})d\boldsymbol{r}&lt;br /&gt;
&amp;amp; {} = \left [ \frac {d \ }{d\varepsilon} \, J[\rho + \varepsilon\phi] \right ]_{\varepsilon = 0} \\&lt;br /&gt;
&amp;amp; {} = \left [ \frac {d \ }{d\varepsilon} \, \left ( \frac{1}{2}\iint \frac {[\rho(\boldsymbol{r}) + \varepsilon \phi(\boldsymbol{r})] \, [\rho(\boldsymbol{r}&amp;#039;) + \varepsilon \phi(\boldsymbol{r}&amp;#039;)] }{| \boldsymbol{r}-\boldsymbol{r}&amp;#039; |}\, d\boldsymbol{r} d\boldsymbol{r}&amp;#039; \right ) \right ]_{\varepsilon = 0} \\&lt;br /&gt;
&amp;amp; {} = \frac{1}{2}\iint \frac {\rho(\boldsymbol{r}&amp;#039;) \phi(\boldsymbol{r}) }{| \boldsymbol{r}-\boldsymbol{r}&amp;#039; |}\, d\boldsymbol{r} d\boldsymbol{r}&amp;#039; + \frac{1}{2}\iint \frac {\rho(\boldsymbol{r}) \phi(\boldsymbol{r}&amp;#039;) }{| \boldsymbol{r}-\boldsymbol{r}&amp;#039; |}\, d\boldsymbol{r} d\boldsymbol{r}&amp;#039; \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
The first and second terms on the right hand side of the last equation are equal, since {{math|&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;r&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;}} and {{math|&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;r&amp;amp;prime;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;}} in the second term can be interchanged without changing the value of the integral. Therefore,&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt; \int \frac{\delta J}{\delta\rho(\boldsymbol{r})} \phi(\boldsymbol{r})d\boldsymbol{r} = \int \left ( \int \frac {\rho(\boldsymbol{r}&amp;#039;) }{| \boldsymbol{r}-\boldsymbol{r}&amp;#039; |} d\boldsymbol{r}&amp;#039; \right ) \phi(\boldsymbol{r}) d\boldsymbol{r} &amp;lt;/math&amp;gt;&lt;br /&gt;
and the functional derivative of the electron-electron Coulomb potential energy functional {{math|&amp;#039;&amp;#039;J&amp;#039;&amp;#039;}}[&amp;#039;&amp;#039;ρ&amp;#039;&amp;#039;] is,&amp;lt;ref name=ParrYangP248A.11&amp;gt;{{harvp|Parr|Yang|1989|loc=p. 248, Eq. A.11}}.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt; \frac{\delta J}{\delta\rho(\boldsymbol{r})} = \int \frac {\rho(\boldsymbol{r}&amp;#039;) }{| \boldsymbol{r}-\boldsymbol{r}&amp;#039; |} d\boldsymbol{r}&amp;#039; \, . &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second functional derivative is&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\frac{\delta^2 J[\rho]}{\delta \rho(\mathbf{r}&amp;#039;)\delta\rho(\mathbf{r})} = \frac{\partial}{\partial \rho(\mathbf{r}&amp;#039;)} \left ( \frac{\rho(\mathbf{r}&amp;#039;)}{| \mathbf{r}-\mathbf{r}&amp;#039; |} \right ) = \frac{1}{| \mathbf{r}-\mathbf{r}&amp;#039; |}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====von Weizsäcker kinetic energy functional====&lt;br /&gt;
In 1935 [[Carl Friedrich von Weizsacker|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:&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;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}(\mathbf{r}) \ d\mathbf{r} \, ,&amp;lt;/math&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt; t_\mathrm{W} \equiv \frac{1}{8} \frac{\nabla\rho \cdot \nabla\rho}{ \rho } \qquad \text{and} \ \ \rho = \rho(\boldsymbol{r}) \ . &amp;lt;/math&amp;gt;&lt;br /&gt;
Using a previously derived [[#Formula|formula]] for the functional derivative,&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{align}&lt;br /&gt;
\frac{\delta T_\mathrm{W}}{\delta \rho}&lt;br /&gt;
&amp;amp; = \frac{\partial t_\mathrm{W}}{\partial \rho} - \nabla\cdot\frac{\partial t_\mathrm{W}}{\partial \nabla \rho} \\&lt;br /&gt;
&amp;amp; = -\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 \ ,&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
and the result is,&amp;lt;ref name=ParrYangP247A.9&amp;gt;{{harvp|Parr|Yang|1989|loc= p. 247, Eq. A.9}}.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt; \frac{\delta T_\mathrm{W}}{\delta \rho} = \ \ \, \frac{1}{8}\frac{\nabla\rho \cdot \nabla\rho}{\rho^2} - \frac{1}{4}\frac{\nabla^2\rho}{\rho} \ . &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Entropy====&lt;br /&gt;
The [[information entropy|entropy]] of a discrete [[random variable]] is a functional of the [[probability mass function]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;H[p(x)] = -\sum_x p(x) \log p(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus,&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{align}&lt;br /&gt;
\sum_x \frac{\delta H}{\delta p(x)} \, \phi(x)&lt;br /&gt;
&amp;amp; {} = \left[ \frac{d}{d\varepsilon} H[p(x) + \varepsilon\phi(x)] \right]_{\varepsilon=0}\\&lt;br /&gt;
&amp;amp; {} = \left [- \, \frac{d}{d\varepsilon} \sum_x \, [p(x) + \varepsilon\phi(x)] \ \log [p(x) + \varepsilon\phi(x)] \right]_{\varepsilon=0} \\&lt;br /&gt;
&amp;amp; {} = -\sum_x \, [1+\log p(x)] \ \phi(x) \, .&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus,&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\frac{\delta H}{\delta p(x)} = -1-\log p(x).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exponential ====&lt;br /&gt;
&lt;br /&gt;
Let&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt; F[\varphi(x)]= e^{\int \varphi(x) g(x)dx}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the delta function as a test function,&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{align}&lt;br /&gt;
\frac{\delta F[\varphi(x)]}{\delta \varphi(y)}&lt;br /&gt;
&amp;amp; {} = \lim_{\varepsilon\to 0}\frac{F[\varphi(x)+\varepsilon\delta(x-y)]-F[\varphi(x)]}{\varepsilon}\\&lt;br /&gt;
&amp;amp; {} = \lim_{\varepsilon\to 0}\frac{e^{\int (\varphi(x)+\varepsilon\delta(x-y)) g(x)dx}-e^{\int \varphi(x) g(x)dx}}{\varepsilon}\\&lt;br /&gt;
&amp;amp; {} = e^{\int \varphi(x) g(x)dx}\lim_{\varepsilon\to 0}\frac{e^{\varepsilon \int \delta(x-y) g(x)dx}-1}{\varepsilon}\\&lt;br /&gt;
&amp;amp; {} = e^{\int \varphi(x) g(x)dx}\lim_{\varepsilon\to 0}\frac{e^{\varepsilon g(y)}-1}{\varepsilon}\\&lt;br /&gt;
&amp;amp; {} = e^{\int \varphi(x) g(x)dx}g(y).&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus,&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt; \frac{\delta F[\varphi(x)]}{\delta \varphi(y)} = g(y) F[\varphi(x)]. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is particularly useful in calculating the [[Correlation function (quantum field theory)|correlation functions]] from the [[Partition function (quantum field theory)|partition function]] in [[quantum field theory]].&lt;br /&gt;
&lt;br /&gt;
====Functional derivative of a function====&lt;br /&gt;
A function can be written in the form of an integral like a functional. For example,&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\rho(\boldsymbol{r}) = F[\rho] = \int \rho(\boldsymbol{r}&amp;#039;) \delta(\boldsymbol{r}-\boldsymbol{r}&amp;#039;)\, d\boldsymbol{r}&amp;#039;.&amp;lt;/math&amp;gt;&lt;br /&gt;
Since the integrand does not depend on derivatives of &amp;#039;&amp;#039;ρ&amp;#039;&amp;#039;, the functional derivative of &amp;#039;&amp;#039;ρ&amp;#039;&amp;#039;{{math|(&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;r&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;)}} is,&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\frac {\delta \rho(\boldsymbol{r})} {\delta\rho(\boldsymbol{r}&amp;#039;)} \equiv \frac {\delta F} {\delta\rho(\boldsymbol{r}&amp;#039;)}&lt;br /&gt;
= \frac{\partial \ \ }{\partial \rho(\boldsymbol{r}&amp;#039;)} \, [\rho(\boldsymbol{r}&amp;#039;) \delta(\boldsymbol{r}-\boldsymbol{r}&amp;#039;)]&lt;br /&gt;
= \delta(\boldsymbol{r}-\boldsymbol{r}&amp;#039;).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Functional derivative of iterated function====&lt;br /&gt;
The functional derivative of the iterated function &amp;lt;math&amp;gt;f(f(x))&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\frac{\delta f(f(x))}{\delta f(y) } = f&amp;#039;(f(x))\delta(x-y) + \delta(f(x)-y)&amp;lt;/math&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\frac{\delta f(f(f(x)))}{\delta f(y) } = f&amp;#039;(f(f(x))(f&amp;#039;(f(x))\delta(x-y) + \delta(f(x)-y)) + \delta(f(f(x))-y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In general:&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\frac{\delta f^N(x)}{\delta f(y)} = f&amp;#039;( f^{N-1}(x) ) \frac{ \delta f^{N-1}(x)}{\delta f(y)} + \delta( f^{N-1}(x) - y ) &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Putting in {{math|1=&amp;#039;&amp;#039;N&amp;#039;&amp;#039; = 0}} gives:&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt; \frac{\delta f^{-1}(x)}{\delta f(y) } = - \frac{ \delta(f^{-1}(x)-y ) }{ f&amp;#039;(f^{-1}(x)) }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using the delta function as a test function==&lt;br /&gt;
In physics, it is common to use the [[Dirac delta function]] &amp;lt;math&amp;gt;\delta(x-y)&amp;lt;/math&amp;gt; in place of a generic test function &amp;lt;math&amp;gt;\phi(x)&amp;lt;/math&amp;gt;, for yielding the functional derivative at the point &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; (this is a point of the whole functional derivative as a [[partial derivative]] is a component of the gradient):&amp;lt;ref&amp;gt;{{harvp|Greiner|Reinhardt|1996|p=37}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\frac{\delta F[\rho(x)]}{\delta \rho(y)}=\lim_{\varepsilon\to 0}\frac{F[\rho(x)+\varepsilon\delta(x-y)]-F[\rho(x)]}{\varepsilon}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This works in cases when &amp;lt;math&amp;gt;F[\rho(x)+\varepsilon f(x)]&amp;lt;/math&amp;gt; formally can be expanded as a series (or at least up to first order) in &amp;lt;math&amp;gt;\varepsilon&amp;lt;/math&amp;gt;. The formula is however not mathematically rigorous, since &amp;lt;math&amp;gt;F[\rho(x)+\varepsilon\delta(x-y)]&amp;lt;/math&amp;gt; is usually not even defined.&lt;br /&gt;
&lt;br /&gt;
The definition given in a previous section is based on a relationship that holds for all test functions &amp;lt;math&amp;gt;\phi(x)&amp;lt;/math&amp;gt;, so one might think that it should hold also when &amp;lt;math&amp;gt;\phi(x)&amp;lt;/math&amp;gt; is chosen to be a specific function such as the [[Dirac delta function|delta function]]. However, the latter is not a valid test function (it is not even a proper function).&lt;br /&gt;
&lt;br /&gt;
In the definition, the functional derivative describes how the functional &amp;lt;math&amp;gt;F[\rho(x)]&amp;lt;/math&amp;gt; changes as a result of a small change in the entire function &amp;lt;math&amp;gt;\rho(x)&amp;lt;/math&amp;gt;. The particular form of the change in &amp;lt;math&amp;gt;\rho(x)&amp;lt;/math&amp;gt; is not specified, but it should stretch over the whole interval on which &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is defined. Employing the particular form of the perturbation given by the delta function has the meaning that &amp;lt;math&amp;gt;\rho(x)&amp;lt;/math&amp;gt; is varied only in the point &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;. Except for this point, there is no variation in &amp;lt;math&amp;gt;\rho(x)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
{{Reflist|group=Note}}&lt;br /&gt;
&lt;br /&gt;
==Footnotes==&lt;br /&gt;
{{reflist|29em}}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
*{{cite book | last1=Courant | first1=Richard | author-link1=Richard Courant | last2=Hilbert | first2=David | author-link2=David Hilbert | title = Methods of Mathematical Physics | volume = I | edition = First English | publisher = [[Interscience Publishers]], Inc | year = 1953 | location = New York, New York | chapter = Chapter IV. The Calculus of Variations | pages = 164–274 | isbn = 978-0471504474| mr = 0065391 | zbl = 0001.00501}}.&lt;br /&gt;
*{{Citation&lt;br /&gt;
 | last1 = Frigyik&lt;br /&gt;
 | first1 = Béla A.&lt;br /&gt;
 | last2 = Srivastava&lt;br /&gt;
 | first2 = Santosh&lt;br /&gt;
 | last3 = Gupta&lt;br /&gt;
 | first3 = Maya R.&lt;br /&gt;
 | title = Introduction to Functional Derivatives&lt;br /&gt;
 | place = Seattle, WA&lt;br /&gt;
 | publisher = Department of Electrical Engineering at the University of Washington&lt;br /&gt;
 | series = UWEE Tech Report&lt;br /&gt;
 | volume = UWEETR-2008-0001&lt;br /&gt;
 | date = January 2008&lt;br /&gt;
 | pages = 7&lt;br /&gt;
 | url = https://www.ee.washington.edu/techsite/papers/documents/UWEETR-2008-0001.pdf&lt;br /&gt;
 | access-date = 2013-10-23&lt;br /&gt;
 | archive-url = https://web.archive.org/web/20170217025324/https://www2.ee.washington.edu/techsite/papers/documents/UWEETR-2008-0001.pdf&lt;br /&gt;
 | archive-date = 2017-02-17&lt;br /&gt;
 | url-status = dead&lt;br /&gt;
 }}.&lt;br /&gt;
*{{Citation&lt;br /&gt;
 | last1 = Gelfand&lt;br /&gt;
 | first1 = I. M.&lt;br /&gt;
 | author-link = Israel Gelfand&lt;br /&gt;
 | last2 = Fomin&lt;br /&gt;
 | first2 = S. V.&lt;br /&gt;
 | author2-link = Sergei Fomin&lt;br /&gt;
 | title = Calculus of variations&lt;br /&gt;
 | place = Mineola, N.Y.&lt;br /&gt;
 | publisher = [[Dover Publications]]&lt;br /&gt;
 | series = translated and edited by Richard A. Silverman&lt;br /&gt;
 | orig-year = 1963&lt;br /&gt;
 | year = 2000&lt;br /&gt;
 | edition = Revised English&lt;br /&gt;
 | url = http://store.doverpublications.com/0486414485.html&lt;br /&gt;
 | isbn = 978-0486414485&lt;br /&gt;
 | mr = 0160139&lt;br /&gt;
 | zbl = 0127.05402&lt;br /&gt;
}}.&lt;br /&gt;
*{{Citation&lt;br /&gt;
 | last1 = Giaquinta&lt;br /&gt;
 | first1 = Mariano&lt;br /&gt;
 | author-link = Mariano Giaquinta&lt;br /&gt;
 | last2 = Hildebrandt&lt;br /&gt;
 | first2 = Stefan&lt;br /&gt;
 | title = Calculus of Variations 1. The Lagrangian Formalism&lt;br /&gt;
 | place = Berlin&lt;br /&gt;
 | publisher = [[Springer-Verlag]]&lt;br /&gt;
 | series = Grundlehren der Mathematischen Wissenschaften&lt;br /&gt;
 | volume = 310&lt;br /&gt;
 | year = 1996&lt;br /&gt;
 | edition = 1st&lt;br /&gt;
 | isbn = 3-540-50625-X&lt;br /&gt;
 | mr = 1368401&lt;br /&gt;
 | zbl = 0853.49001&lt;br /&gt;
}}.&lt;br /&gt;
*{{Citation&lt;br /&gt;
 | last1 = Greiner&lt;br /&gt;
 | first1 = Walter&lt;br /&gt;
 | author-link1 = Walter Greiner&lt;br /&gt;
 | last2 = Reinhardt&lt;br /&gt;
 | first2 = Joachim&lt;br /&gt;
 | title = Field quantization&lt;br /&gt;
 | place = Berlin–Heidelberg–New York&lt;br /&gt;
 | publisher = Springer-Verlag&lt;br /&gt;
 | series = With a foreword by D. A. Bromley&lt;br /&gt;
 | year = 1996&lt;br /&gt;
 | chapter = Section 2.3 – Functional derivatives&lt;br /&gt;
 | pages = [https://archive.org/details/fieldquantizatio0000grei/page/36 36–38]&lt;br /&gt;
 | chapter-url = https://archive.org/details/fieldquantizatio0000grei/page/36&lt;br /&gt;
 | isbn = 3-540-59179-6&lt;br /&gt;
 | mr = 1383589&lt;br /&gt;
 | zbl = 0844.00006&lt;br /&gt;
 }}.&lt;br /&gt;
*{{cite book |first1=R. G.|last1=Parr|first2=W.|last2=Yang| title = Density-Functional Theory of Atoms and Molecules | chapter = Appendix A, Functionals | pages = 246–254 | publisher = Oxford University Press | year = 1989 |location=New York| url = https://books.google.com/books?id=mGOpScSIwU4C&amp;amp;q=Density-Functional+Theory+of+Atoms+and+Molecules | isbn = 978-0195042795}}&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* {{springer|title=Functional derivative|id=p/f042040}}&lt;br /&gt;
&lt;br /&gt;
{{Functional analysis}}&lt;br /&gt;
{{Analysis in topological vector spaces}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Calculus of variations]]&lt;br /&gt;
[[Category:Differential calculus]]&lt;br /&gt;
[[Category:Differential operators]]&lt;br /&gt;
[[Category:Topological vector spaces]]&lt;br /&gt;
[[Category:Variational analysis]]&lt;/div&gt;</summary>
		<author><name>imported&gt;BobH4</name></author>
	</entry>
</feed>