- Green's function
In

mathematics ,**Green's function**is a type of function used to solve inhomogeneousdifferential equation s subject to boundary conditions. The term is used inphysics , specifically inquantum field theory andstatistical field theory , to refer to various types of correlation functions, even those that do not fit the mathematical definition; for this sense, seeCorrelation function (quantum field theory) andGreen's function (many-body theory) .Green's function is named after the British

mathematician George Green , who first developed the concept in the 1830s.**Definition and uses**Technically, a Green's function, "G"("x", "s"), of a

linear operator "L" acting on distributions over a subset of**R**^{n}, at a point "s", is any solution of:$L\; G\; (x,s)\; =\; delta(x-s)\; (1)$

where $delta$ is the

Dirac delta function . This technique can be used to solve differential equations of the form;:$L\; u(x)\; =\; f(x)\; (2)$

If the kernel of L is nontrivial, then the Green's function is not unique. However, in practice, some combination of

symmetry ,boundary condition s and/or other externally imposed criteria would give us a unique Green's function. Also, Green's functions in general are distributions, not necessarily proper functions.Green's functions are also a useful tool in condensed matter theory, where they allow the resolution of the

diffusion equation , and inquantum mechanics , where the Green's function of the Hamiltonian is a key concept, with important links to the concept of density of states. The Green's functions used in those two domains are highly similar, due to the analogy in the mathematical structure of thediffusion equation andSchrödinger equation .**Motivation**Loosely speaking, if such a function "G" can be found for the operator "L", then if we multiply the equation (1) for the Green's function by "f(s)", and then perform an integration in the "s" variable, we obtain;

:$int\; L\; G(x,s)\; f(s)\; ds\; =\; int\; delta(x-s)f(s)\; ds\; =\; f(x).$

The right hand side is now given by the equation (2) to be equal to "Lu(x)", thus:

:$Lu(x)\; =\; int\; L\; G(x,s)\; f(s)\; ds.$

Because the operator "L" is linear and acts on the variable "x" alone (not on the variable of integration "s"), we can take the operator L outside of the integration on the right hand side obtaining;

:$Lu(x)\; =\; Lleft(int\; G(x,s)\; f(s)\; ds\; ight).$

And this implies;

:$u(x)\; =\; int\; G(x,s)\; f(s)\; ds\; .\; (3)$

Thus, we can obtain the function "u(x)" through knowledge of the Green's function in equation (1), and the source term on the right hand side in equation (2). This process has resulted from the linearity of the operator "L".

In other words, the solution of equation (2), "u(x)", can be determined by the integration given in equation (3). Although "f(x)" is known, this integration cannot be performed unless "G" is also known. The problem now lies in finding the Green's function "G" that satisfies equation (1).

Not every operator L admits a Green's function. A Green's function can also be thought of as a

right inverse of L. Aside from the difficulties of finding a Green's functions for a particular operator, the integral in equation (3), may be quite difficult to perform. However the method gives a theoretically exact result.Convolving with a Green's function gives solutions to inhomogeneous differential-integral equations, most commonly a Sturm-Liouville problem. If "G" is the Green's function of an operator "L", then the solution for "u" of the equation "Lu" = "f" is given by

:$u(x)\; =\; int\{\; f(s)\; G(x,s)\; ,\; ds\}.$

This can be thought of as an expansion of "f" according to a

Dirac delta function basis (projecting "f" over δ("x" − "s")) and a superposition of the solution on each projection. Such an integral is known as aFredholm integral equation , the study of which constitutesFredholm theory .**Green's function for solving inhomogeneous boundary value problems**The primary use of Green's functions in mathematics is to solve inhomogeneous

boundary value problem s. In moderntheoretical physics , Green's functions are also usually used aspropagator s inFeynman diagram s (and the phrase "Green's function" is often used for any correlation function).**Framework**Let $L$ be the Sturm-Liouville operator, a linear differential operator of the form:$L\; =\; \{d\; over\; dx\}left\; [\; p(x)\; \{d\; over\; dx\}\; ight]\; +\; q(x)$and let "D" be the

boundary condition s operator:$Du\; =\; left\{egin\{matrix\}\; alpha\; \_1\; u\text{'}(0)\; +\; eta\; \_1\; u(0)\; \backslash \; alpha\; \_2\; u\text{'}(l)\; +\; eta\; \_2\; u(l).\; end\{matrix\}\; ight.$Let $f(x)$ be a

continuous function in $[0,l]$. We shall also suppose that the problem:$egin\{matrix\}Lu\; =\; f\; \backslash \; Du\; =\; 0\; end\{matrix\}$ is regular, i.e. only the trivial solution exists for the homogeneous problem.**Theorem**There is one and only one solution "u(x)" which satisfies

:$egin\{matrix\}Lu\; =\; f\; \backslash \; Du\; =\; 0\; end\{matrix\}$

and it is given by

:$u(x)\; =\; int\_0^ell\; f(s)\; G(x,s)\; ,\; ds$

where "G(x,s)" is

**Green's function**and satisfies the following conditions:

# "G(x,s)" is continuous in "x" and "s".

# For $x\; e\; s$, $L\; G(\; x,\; s\; )\; =\; 0\; ,$.

# For $s\; e\; 0,\; l$, $D\; G(\; x,\; s\; )\; =\; 0\; ,$.

#Derivative "jump": $G\text{'}(s\_\{\; +\; 0\},\; s\; )\; -\; G\text{'}(s\_\{\; -\; 0\},\; s\; )\; =\; 1\; /\; p(s).\; ,$

# Symmetry: "G"("x", "s") = "G"("s", "x").**Finding Green's functions****Eigenvalue expansions**If a

differential operator "L" admits a set ofeigenvectors $Psi\_n(x)$ (i.e. a set of functions $Psi\_n(x)$ and scalars $lambda\_n$ such that $L\; Psi\_n\; =\; lambda\_n\; Psi\_n)$) that are complete, then we can construct a Green's function from these eigenvectors andeigenvalues .By complete, we mean that the set of functions :$Psi\_n(x)$ satisfies the following

completeness relation ::$delta(x\; -\; x\text{'})\; =\; sum\_\{n=0\}^infty\; Psi\_n(x)\; Psi\_n(x\text{'}).$

We can prove the following:

:$G(x,\; x\text{'})\; =\; sum\_\{n=0\}^infty\; frac\{Psi\_n(x)\; Psi\_n(x\text{'})\}\{lambda\_n\}.$

Now consider applying the operator "L" to each side of this equation. We end up with the completeness relation, which was assumed true.

The general study of the Green's function written in the above form, and its relationship to the

function space s formed by the eigenvectors, is known asFredholm theory .**Green's function for the Laplacian**Green's functions for linear differential operators involving the

Laplacian may be readily put to use using the second ofGreen's identities .To derive Green's theorem, begin with the divergence theorem (otherwise known as

Gauss's law )::$int\_V\; abla\; cdot\; hat\; A\; dV\; =\; int\_S\; hat\; A\; cdot\; dhatsigma.$

Let $A\; =\; phi\; ablapsi\; -\; psi\; ablaphi$ and substitute into Gauss' law. Compute $ablacdothat\; A$ and apply the chain rule for the $abla$ operator:

:$ablacdothat\; A\; =\; ablacdot(phi\; ablapsi\; -\; psi\; ablaphi)\; =\; (\; ablaphi)cdot(\; ablapsi)\; +\; phi\; abla^2psi\; -\; (\; ablaphi)cdot(\; ablapsi)\; -\; psi\; abla^2phi\; =\; phi\; abla^2psi\; -\; psi\; abla^2phi.$

Plugging this into the divergence theorem, we arrive at

Green's theorem ::$int\_V\; (phi\; abla^2psi\; -\; psi\; abla^2phi)\; dV\; =\; int\_S\; (phi\; ablapsi\; -\; psi\; ablaphi)cdot\; dhatsigma.$

Suppose that our linear differential operator "L" is the

Laplacian , $abla^2$, and that we have a Green's function "G" for the Laplacian. The defining property of the Green's function still holds::$L\; G(x,x\text{'})\; =\; abla^2\; G(x,x\text{'})\; =\; delta(x-x\text{'}).$

Let $psi\; =\; G$ in

Green's theorem . We get::$int\_V\; phi(x\text{'})\; delta(x\; -\; x\text{'})\; -\; G(x,x\text{'})\; abla^2phi(x\text{'})\; d^3x\text{'}\; =\; int\_S\; left\; [phi(x\text{'})\; abla\text{'}\; G(x,x\text{'})\; -\; G(x,x\text{'})\; abla\text{'}phi(x\text{'})\; ight]\; cdot\; dhatsigma\text{'}$

Using this expression, we can solve

Laplace's equation $abla^2phi(x)=0$ orPoisson's equation $abla^2phi(x)=-\; ho(x)$, subject to either Neumann or Dirichlet boundary conditions. In other words, we can solve for $phi(x)$ everywhere inside a volume where either (1) the value of $phi(x)$ is specified on the bounding surface of the volume (Dirichlet boundary conditions), or (2) the normal derivative of $phi(x)$ is specified on the bounding surface (Neumann boundary conditions).Suppose we're interested in solving for $phi(x)$ inside the region. Then the integral :$intlimits\_V\; \{phi(x\text{'})delta(x-x\text{'})\; d^3x\text{'}\}$reduces to simply $phi(x)$ due to the defining property of the

Dirac delta function and we have::$phi(x)\; =\; int\_V\; G(x,x\text{'})\; ho(x\text{'})\; d^3x\text{'}\; +\; int\_S\; left\; [phi(x\text{'})\; abla\text{'}\; G(x,x\text{'})\; -\; G(x,x\text{'})\; abla\text{'}phi(x\text{'})\; ight]\; cdot\; dhatsigma\text{'}.$

This form expresses the well-known property of

harmonic function s that if the value or normal derivative is known on a bounding surface, then the value of the function inside the volume is known everywhere.In

electrostatics , we interpret $phi(x)$ as theelectric potential , $ho(x)$ aselectric charge density , and the normal derivative $ablaphi(x\text{'})cdot\; dhatsigma\text{'}$ as the normal component of the electric field.If we're interested in solving a Dirichlet boundary value problem, we choose our Green's function such that $G(x,x\text{'})$ vanishes when either x or x' is on the bounding surface; conversely, if we're interested in solving a Neumann boundary value problem, we choose our Green's function such that its normal derivative vanishes on the bounding surface. Thus we are left with only one of the two terms in the surface integral.

With no boundary conditions, the Green's function for the Laplacian (

Green's function for the three-variable Laplace equation ) is::$G(hat\; x,\; hat\; x\text{'})\; =\; frac\{1\}.$

Supposing that our bounding surface goes out to infinity, and plugging in this expression for the Green's function, we arrive at the familiar expression for electric potential in terms of electric charge density (in the

CGS unit system) as:$phi(hat\; x)\; =\; int\_V\; frac\{\; ho(x\text{'})\}\; d^3x\text{'}.$

**Example**Given the problem

:$egin\{matrix\}Luend\{matrix\}\; =\; u\; \text{'}\; \text{'}\; +\; u\; =\; f(\; x\; )$:$u(0)\; =\; 0,\; quad\; quad\; uleft(frac\{pi\}\{2\}\; ight)\; =\; 0$

Find Green's function.

**First step:**From demand-2 we see that:$g(x,s)\; =\; c\_1\; (s)\; cdot\; cos\; x\; +\; c\_2\; (s)\; cdot\; sin\; x.,$

For "x < s" and demand-3 we see that

:$g(0,s)\; =\; c\_1\; (s)\; cdot\; 1\; +\; c\_2\; (s)\; cdot\; 0\; =\; 0,\; quad\; c\_1\; (s)\; =\; 0.$

The equation of $g(frac\{pi\}\{2\},s)\; =\; 0$ is skipped because $x\; e\; frac\{pi\}\{2\}$ if $quad\; x\; <\; s$ and $s\; e\; frac\{pi\}\{2\}.$

For "x > s" and demand-3 we see that

:$gleft(frac\{pi\}\{2\},s\; ight)\; =\; c\_1\; (s)\; cdot\; 0\; +\; c\_2\; (s)\; cdot\; 1\; =\; 0,\; quad\; c\_2\; (s)\; =\; 0.$

The equation of $quad\; g(0,s)\; =\; 0$ is skipped for similar reasons.

Summarize the results:

:$g(x,s)=left\{egin\{matrix\}\; a(s)\; sin\; x,\; ;;\; x\; s\; \backslash b(s)\; cos\; x,\; ;;\; s\; x\; end\{matrix\}\; ight.$

**second step:**Now we shall determine "a"("s") and "b"("s").Using demand-1 we get

:$a(s)\; sin\; s\; =\; b(s)\; cos\; s.,$

Using demand-4 we get

:$b(s)\; cdot\; [\; -\; sin\; s\; ]\; -\; a(s)\; cdot\; cos\; s\; =\; frac\{1\}\{1\}\; =\; 1,\; .$

Using

Cramer's rule or by intelligent guess solve for "a"("s") and "b"("s") and obtain that: $a(s)\; =\; -\; cos\; s\; quad\; ;\; quad\; b(s)\; =\; -\; sin\; s.$

Check that this automatically satisfies demand-5.

So our Green's function for this problem is:

:$g(x,s)=left\{egin\{matrix\}-1\; cdot\; cos\; s\; cdot\; sin\; x,\; ;;\; x\; s,\; \backslash -1\; cdot\; sin\; s\; cdot\; cos\; x,\; ;;\; s\; x.end\{matrix\}\; ight.$

**Further examples*** Let let "n"=1 be the the subest to be all of

**R**. Let L be "d"/"dx". Then, theHeaviside step function "H"("x" − "x"_{0}) is a Green's function of L at "x"_{0}.

* Let "n"=2 and let the subset be the quarter-plane { ("x", "y") : "x", "y" ≥ 0 } and L be theLaplacian . Also, assume aDirichlet boundary condition is imposed at "x" = 0 and aNeumann boundary condition is imposed at "y" = 0. Then the Green's function is:$G(x,\; y,\; x\_0,\; y\_0)=frac\{1\}\{2pi\}left\; [lnsqrt\{(x-x\_0)^2+(y-y\_0)^2\}-lnsqrt\{(x+x\_0)^2+(y-y\_0)^2\}\; ight]$::$+frac\{1\}\{2pi\}left\; [lnsqrt\{(x-x\_0)^2+(y+y\_0)^2\}-lnsqrt\{(x+x\_0)^2+(y+y\_0)^2\}\; ight]\; .$

**ee also*** Discrete Green's functions can be defined on graphs and grids.

*Impulse response

*Green's identities **References*** Eyges, Leonard, "The Classical Electromagnetic Field", Dover Publications, New York, 1972. ISBN 0-486-63947-9. (Chapter 5 contains a very readable account of using Green's functions to solve boundary value problems in electrostatics.)

* A. D. Polyanin and V. F. Zaitsev, "Handbook of Exact Solutions for Ordinary Differential Equations (2nd edition)", Chapman & Hall/CRC Press, Boca Raton, 2003. ISBN 1-58488-297-2

* A. D. Polyanin, "Handbook of Linear Partial Differential Equations for Engineers and Scientists", Chapman & Hall/CRC Press, Boca Raton, 2002. ISBN 1-58488-299-9**External links***

*

*

*

* [*http://www.boulder.nist.gov/div853/greenfn/tutorial.html Tutorial on Green's function*]

* [*http://www.ntu.edu.sg/home/mwtang/bemsite.htm Boundary Element Method (for some idea on how Green's function may be used with the boundary element method for solving potential problems numerically)*]

*Wikimedia Foundation.
2010.*