# Functional derivative

﻿
Functional derivative

In mathematics and theoretical physics, the functional derivative is a generalization of the directional derivative. The difference is that the latter differentiates in the direction of a vector, while the former differentiates in the direction of a function. Both of these can be viewed as extensions of the usual calculus derivative.

Two possible, restricted definitions suitable for certain computations are given here. There are more general definitions of functional derivatives relying on ideas from functional analysis, such as the Gâteaux derivative.

Given a manifold "M" representing (continuous/smooth/with certain boundary conditions/etc.) functions φ and a functional "F" defined as ::$Fcolon M ightarrow mathbb\left\{R\right\} quad mbox\left\{or\right\} quad Fcolon M ightarrow mathbb\left\{C\right\}$,

the functional derivative of "F", denoted $\left\{delta F\right\}/\left\{deltaphi\left(x\right)\right\}$, is a distribution $delta F \left[phi\right]$ such that for all test functions "f",

:$leftlangle delta F \left[phi\right] , f ight angle = left.frac\left\{d\right\}\left\{depsilon\right\}F \left[phi+epsilon f\right] ight|_\left\{epsilon=0\right\}.$

Sometimes physicists write the definition in terms of a limit and the Dirac delta function, δ:

: $frac\left\{delta F \left[phi\left(x\right)\right] \right\}\left\{delta phi\left(y\right)\right\}=lim_\left\{varepsilon o 0\right\}frac\left\{F \left[phi\left(x\right)+varepsilondelta\left(x-y\right)\right] -F \left[phi\left(x\right)\right] \right\}\left\{varepsilon\right\}.$

Formal description

The definition of a functional derivative may be made much more mathematically precise and formal by defining the space of functions more carefully. For example, when the space of functions is a Banach space, the functional derivative becomes known as the Fréchet derivative, while one uses the Gâteaux derivative on more general locally convex spaces. Note that the well-known Hilbert spaces are special cases of Banach spaces. The more formal treatment allows many theorems from ordinary calculus and analysis to be generalized to corresponding theorems in functional analysis, as well as numerous new theorems to be stated.

Relationship between the mathematical and physical definitions

The mathematicians' definition and the physicists' definition of the functional derivative differ only in the physical interpretation. Since the mathematical definition is based on a relationship that holds for all test functions "f", it should also hold when "f" is chosen to be a specific function. The only handwaving difficulty is that specific function was chosen to be a delta function---which is not a valid test function.

In the mathematical definition, the functional derivative describes how the entire functional, $F \left[varphi\left(x\right)\right]$, changes as a result of a small change in the function $varphi\left(x\right)$. Observe that the particular form of the change in $varphi\left(x\right)$ is not specified. The physics definition, by contrast, employs a particular form of the perturbation --- namely, the delta function --- and the 'meaning' is that we are varying $varphi\left(x\right)$ only about some neighborhood of $y$. Outside of this neighborhood, there is no variation in $varphi\left(x\right)$.

Often, a physicist wants to know how one quantity, say the electric potential at position $r_1$, is affected by changing another quantity, say the density of electric charge at position $r_2$. The potential at a given position, is a functional of the density. That is, given a particular density function and a point in space, one can compute a number which represents the potential of that point in space due to the specified density function. Since we are interested in how this number varies across all points in space, we treat the potential as a function of $r$. To wit,

:F \left[ ho\left(r\text{'}\right)\right] := V\left(r\right) = frac\left\{1\right\}\left\{4piepsilon_0\right\} int frac\left\{ ho\left(r\text{'}\right)\right\} mathrm\left\{d\right\}^3r\text{'} \& \left\{\right\} = leftlangle frac\left\{1\right\}\left\{4piepsilon_0\right\} frac\left\{1\right\}, varphi\left(r\text{'}\right) ight angle.end\left\{align\right\}

So,

:$frac\left\{delta V\left(r\right)\right\}\left\{delta ho\left(r\text{'}\right)\right\} = frac\left\{1\right\}\left\{4piepsilon_0\right\}frac\left\{1\right\}.$

Now, we can evaluate the functional derivative at $r=r_1$ and $r\text{'}=r_2$ to see how the potential at $r_1$ is changed due to a small variation in the density at $r_2$. In practice, the unevaluated form is probably more useful.

Examples

We give a formula to derive a common class of functionals that can be written as the integral of a function and its derivatives (a generalization of the Euler–Lagrange equation), and apply this formula to three examples taken from physics. Another example in physics is the derivation of the Lagrange equation of the second kind from the principle of least action in Lagrangian mechanics.

Formula for the integral of a function and its derivatives

Given a functional of the form:$F \left[ ho\left(mathbf\left\{r\right\}\right)\right] = int f\left( mathbf\left\{r\right\}, ho\left(mathbf\left\{r\right\}\right), abla ho\left(mathbf\left\{r\right\}\right) \right), d^3r,$with $ho$ vanishing at the boundaries of $mathbf\left\{r\right\}$, the functional derivative can be written

:

where, in the third line, $phi=0$ is assumed at the integration boundaries. Thus,

:$delta F \left[ ho\right] = frac\left\{partial f\right\}\left\{partial ho\right\} - abla cdot frac\left\{partial f\right\}\left\{partial abla ho\right\}$

or, writing the expression more explicitly,

:$frac\left\{delta F \left[ ho\left(mathbf\left\{r\right\}\right)\right] \right\}\left\{delta ho\left(mathbf\left\{r\right\}\right)\right\} = frac\left\{partial\right\}\left\{partial ho\left(mathbf\left\{r\right\}\right)\right\}f\left(mathbf\left\{r\right\}, ho\left(mathbf\left\{r\right\}\right), abla ho\left(mathbf\left\{r\right\}\right)\right) - abla cdot frac\left\{partial\right\}\left\{partial abla ho\left(mathbf\left\{r\right\}\right)\right\}f\left(mathbf\left\{r\right\}, ho\left(mathbf\left\{r\right\}\right), abla ho\left(mathbf\left\{r\right\}\right)\right)$

The above example is specific to the particular case that the functional depends on the function $ho\left(mathbf\left\{r\right\}\right)$ and its gradient $abla ho\left(mathbf\left\{r\right\}\right)$ only. In the more general case that the functional depends on higher order derivatives, i.e.

:$F \left[ ho\left(mathbf\left\{r\right\}\right)\right] = int f\left( mathbf\left\{r\right\}, ho\left(mathbf\left\{r\right\}\right), abla ho\left(mathbf\left\{r\right\}\right), abla^2 ho\left(mathbf\left\{r\right\}\right), dots, abla^N ho\left(mathbf\left\{r\right\}\right)\right), d^3r,$

where $abla^i$ is a tensor whose $n^i$ components $\left(mathbf\left\{r\right\} in mathbb\left\{R\right\}^n\right)$ are all partial derivative operators of order $i$, i.e. $partial^i/\left(partial r^\left\{i_1\right\}_1, partial r^\left\{i_2\right\}_2 cdots partial r^\left\{i_n\right\}_n\right)$ with $i_1+i_2+cdots+i_n = i$, an analogous application of the definition yields

:

Thomas-Fermi kinetic energy functional

In 1927 Thomas and Fermi used a kinetic energy functional for a noninteracting uniform electron gas in a first attempt of density-functional theory of electronic structure::$T_mathrm\left\{TF\right\} \left[ ho\right] = C_mathrm\left\{F\right\} int ho^\left\{5/3\right\}\left(mathbf\left\{r\right\}\right) , d^3r.$$T_mathrm\left\{TF\right\} \left[varrho\right]$ depends "only" on the charge density $ho\left(mathbf\left\{r\right\}\right)$ and does not depend on its gradient, Laplacian, or other higher-order derivatives. Therefore,:$frac\left\{delta T_mathrm\left\{TF\right\} \left[ ho\right] \right\}\left\{delta ho\right\} = C_mathrm\left\{F\right\} frac\left\{partial ho^\left\{5/3\right\}\left(mathbf\left\{r\right\}\right)\right\}\left\{partial ho\right\} = frac\left\{5\right\}\left\{3\right\} C_mathrm\left\{F\right\} ho^\left\{2/3\right\}\left(mathbf\left\{r\right\}\right).$

Coulomb potential energy functional

For the classical part of the potential, Thomas and Fermi employed the Coulomb potential energy functional:$J \left[ ho\right] = frac\left\{1\right\}\left\{2\right\}intint frac\left\{ ho\left(mathbf\left\{r\right\}\right) ho\left(mathbf\left\{r\right\}\text{'}\right)\right\}\left\{vert mathbf\left\{r\right\}-mathbf\left\{r\right\}\text{'} vert\right\}, d^3r d^3r\text{'} = int left\left(frac\left\{1\right\}\left\{2\right\}int frac\left\{ ho\left(mathbf\left\{r\right\}\right) ho\left(mathbf\left\{r\right\}\text{'}\right)\right\}\left\{vert mathbf\left\{r\right\}-mathbf\left\{r\right\}\text{'} vert\right\} d^3r\text{'} ight\right) d^3r = int j \left[mathbf\left\{r\right\}, ho\left(mathbf\left\{r\right\}\right)\right] , d^3r.$Again, $J \left[ ho\right]$ depends "only" on the charge density $ho$ and does not depend on its gradient, Laplacian, or other higher-order derivatives. Therefore, :$frac\left\{delta J \left[ ho\right] \right\}\left\{delta ho\right\} = frac\left\{partial j\right\}\left\{partial ho\right\} = frac\left\{1\right\}\left\{2\right\}int frac\left\{partial\right\}\left\{partial ho\right\}frac\left\{ ho\left(mathbf\left\{r\right\}\right) ho\left(mathbf\left\{r\right\}\text{'}\right)\right\}\left\{vert mathbf\left\{r\right\}-mathbf\left\{r\right\}\text{'} vert\right\}, d^3r\text{'} = int frac\left\{ ho\left(mathbf\left\{r\right\}\text{'}\right)\right\}\left\{vert mathbf\left\{r\right\}-mathbf\left\{r\right\}\text{'} vert\right\}, d^3r\text{'}$

The second functional derivative of the Coulomb potential energy functional is:$frac\left\{delta^2 J \left[ ho\right] \right\}\left\{delta ho^2\right\} = frac\left\{delta\right\}\left\{delta ho\right\}int frac\left\{ ho\left(mathbf\left\{r\right\}\text{'}\right)\right\}\left\{vert mathbf\left\{r\right\}-mathbf\left\{r\right\}\text{'} vert\right\}, d^3r\text{'} = frac\left\{partial\right\}\left\{partial ho\right\} frac\left\{ ho\left(mathbf\left\{r\right\}\text{'}\right)\right\}\left\{vert mathbf\left\{r\right\}-mathbf\left\{r\right\}\text{'} vert\right\} = frac\left\{1\right\}\left\{vert mathbf\left\{r\right\}-mathbf\left\{r\right\}\text{'} vert\right\}$

Weizsäcker kinetic energy functional

In 1935 Weizsäcker proposed a gradient correction to the Thomas-Fermi kinetic energy functional to make it suit better a molecular electron cloud::$T_mathrm\left\{W\right\} \left[ ho\right] = frac\left\{1\right\}\left\{8\right\} int frac\left\{ abla ho\left(mathbf\left\{r\right\}\right) cdot abla ho\left(mathbf\left\{r\right\}\right)\right\}\left\{ ho\left(mathbf\left\{r\right\}\right) \right\}, d^3r = frac\left\{1\right\}\left\{8\right\} int frac\left\{\left( abla ho\left(mathbf\left\{r\right\}\right)\right)^2\right\}\left\{ ho\left(mathbf\left\{r\right\}\right)\right\}, d^3r = int t \left[ ho\left(mathbf\left\{r\right\}\right), abla ho\left(mathbf\left\{r\right\}\right)\right] , d^3r.$Now $T_mathrm\left\{W\right\} \left[ ho\right]$ depends on the charge density $ho$ "and" its gradient, therefore,:$frac\left\{delta T \left[ ho\right] \right\}\left\{delta ho\right\} = frac\left\{partial t\right\}\left\{partial ho\right\} - ablacdotfrac\left\{partial t\right\}\left\{partial \left( abla ho\right)\right\} = -frac\left\{1\right\}\left\{8\right\} frac\left\{\left( abla ho\left(mathbf\left\{r\right\}\right)\right)^2\right\}\left\{ ho\left(mathbf\left\{r\right\}\right)^2\right\} - ablacdotleft\left(frac\left\{1\right\}\left\{4\right\} frac\left\{ abla ho\left(mathbf\left\{r\right\}\right)\right\}\left\{ ho\left(mathbf\left\{r\right\}\right)\right\} ight\right) = frac\left\{1\right\}\left\{8\right\} frac\left\{\left( abla ho\left(mathbf\left\{r\right\}\right)\right)^2\right\}\left\{ ho^2\left(mathbf\left\{r\right\}\right)\right\} - frac\left\{1\right\}\left\{4\right\} frac\left\{ abla^2 ho\left(mathbf\left\{r\right\}\right)\right\}\left\{ ho\left(mathbf\left\{r\right\}\right)\right\}.$

Writing a function as a functional

Finally, note that any function can be written in terms of a functional. For example,:$ho\left(mathbf\left\{r\right\}\right) = int ho\left(mathbf\left\{r\right\}\text{'}\right) delta\left(mathbf\left\{r\right\}-mathbf\left\{r\right\}\text{'}\right), d^3r\text{'}.$This functional is a function of $ho$ only, and thus, is in the same form as the above examples. Therefore,:$frac\left\{delta ho\left(mathbf\left\{r\right\}\right)\right\}\left\{delta ho\left(mathbf\left\{r\right\}\text{'}\right)\right\}=frac\left\{delta int ho\left(mathbf\left\{r\right\}\text{'}\right) delta\left(mathbf\left\{r\right\}-mathbf\left\{r\right\}\text{'}\right), d^3r\text{'}\right\}\left\{delta ho\left(mathbf\left\{r\right\}\text{'}\right)\right\} = frac\left\{partial left\left( ho\left(mathbf\left\{r\right\}\text{'}\right) delta\left(mathbf\left\{r\right\}-mathbf\left\{r\right\}\text{'}\right) ight\right)\right\}\left\{partial ho\right\} = delta\left(mathbf\left\{r\right\}-mathbf\left\{r\right\}\text{'}\right).$

Entropy

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

:$H \left[p\left(x\right)\right] = -sum_x p\left(x\right) log_2 p\left(x\right)$Thus,

:

Thus,

:$frac\left\{delta H\right\}\left\{delta p\right\} = - \left[1+log_2 p\left(x\right)\right] .$

References

* R. G. Parr, W. Yang, “Density-Functional Theory of Atoms and Molecules”, Oxford university Press, Oxford 1989.
* B. A. Frigyik, S. Srivastava and M. R. Gupta, "Introduction to Functional Derivatives", UWEE Tech Report 2008-0001. http://www.ee.washington.edu/research/guptalab/publications/functionalDerivativesIntroduction.pdf

Wikimedia Foundation. 2010.

### Look at other dictionaries:

• Derivative (generalizations) — Derivative is a fundamental construction of differential calculus and admits many possible generalizations within the fields of mathematical analysis, combinatorics, algebra, and geometry. Derivatives in analysis In real, complex, and functional… …   Wikipedia

• Functional (mathematics) — In mathematics, a functional is traditionally a map from a vector space to the field underlying the vector space, which is usually the real numbers. In other words, it is a function that takes a vector as its argument or input and returns a… …   Wikipedia

• Functional group — For other uses, see Functional group (disambiguation) and Moiety (disambiguation). Benzyl acetate has an ester functional group (in red), an acetyl moiety (circled with green) and a benzyloxy moiety (circled with orange). Other divisions can be… …   Wikipedia

• Derivative — This article is an overview of the term as used in calculus. For a less technical overview of the subject, see Differential calculus. For other uses, see Derivative (disambiguation) …   Wikipedia

• Functional analysis — For functional analysis as used in psychology, see the functional analysis (psychology) article. Functional analysis is the branch of mathematics, and specifically of analysis, concerned with the study of vector spaces and operators acting upon… …   Wikipedia

• Derivative work — L.H.O.O.Q. (1919). Derivative work by Marcel Duchamp based on the Mona Lisa (La Gioconda) by Leonardo da Vinci. Also known as The Mona Lisa With a Moustache. Often used by law professors to illustrate legal concept of derivative work. In United… …   Wikipedia

• Functional programming — In computer science, functional programming is a programming paradigm that treats computation as the evaluation of mathematical functions and avoids state and mutable data. It emphasizes the application of functions, in contrast with the… …   Wikipedia

• Functional integration — You may also be looking for functional integration (neurobiology) or functional integration (sociology). Functional integration is a collection of results in mathematics and physics where the domain of an integral is no longer a region of space,… …   Wikipedia

• functional analysis — the branch of mathematics that deals with the theory of vector spaces and linear functionals. [1945 50] * * * Branch of mathematical analysis dealing with functionals, or functions of functions. It emerged as a distinct field in the 20th century …   Universalium

• Generalizations of the derivative — The derivative is a fundamental construction of differential calculus and admits many possible generalizations within the fields of mathematical analysis, combinatorics, algebra, and geometry. Contents 1 Derivatives in analysis 1.1 Multivariable… …   Wikipedia