# Green's function

(Redirected from Green's functions)

In mathematics, a Green's function is the impulse response of an inhomogeneous linear differential operator defined on a domain with specified initial conditions or boundary conditions.

If one knows the solution to a differential equation subject to a point source ${\textstyle {\hat {L}}(x)G(x,y)=\delta (x-y)}$ and the differential operator ${\textstyle {\hat {L}}(x)}$ is linear, then one can superpose them to find the solution ${\textstyle u(x)=\int f(y)G(x,y)\,\mathrm {d} y}$ for a general source ${\textstyle {\hat {L}}(x)u(x)=f(x)}$.

This means that if L is the linear differential operator, then

• the Green's function G is the solution of the equation LG = δ, where δ is Dirac's delta function;
• the solution of the initial-value problem Ly = f is the convolution (G * f ), where G is the Green's function.

Through the superposition principle, given a linear ordinary differential equation (ODE), L(solution) = source, one can first solve L(green) = δs, for each s, and realizing that, since the source is a sum of delta functions, the solution is a sum of Green's functions as well, by linearity of L.

Green's functions are named after the British mathematician George Green, who first developed the concept in the 1820s. In the modern study of linear partial differential equations, Green's functions are studied largely from the point of view of fundamental solutions instead.

Under many-body theory, the term is also used in physics, specifically in quantum field theory, aerodynamics, aeroacoustics, electrodynamics, seismology and statistical field theory, to refer to various types of correlation functions, even those that do not fit the mathematical definition. In quantum field theory, Green's functions take the roles of propagators.

## Definition and uses

A Green's function, G(x,s), of a linear differential operator ${\displaystyle \operatorname {L} =\operatorname {L} (x)}$  acting on distributions over a subset of the Euclidean space ${\displaystyle \mathbb {R} ^{n}}$ , at a point s, is any solution of

${\displaystyle \operatorname {L} \,G(x,s)=\delta (s-x)\,,}$

(1)

where δ is the Dirac delta function. This property of a Green's function can be exploited to solve differential equations of the form

${\displaystyle \operatorname {L} \,u(x)=f(x)~.}$

(2)

If the kernel of L is non-trivial, then the Green's function is not unique. However, in practice, some combination of symmetry, boundary conditions and/or other externally imposed criteria will give a unique Green's function. Green's functions may be categorized, by the type of boundary conditions satisfied, by a Green's function number. Also, Green's functions in general are distributions, not necessarily functions of a real variable.

Green's functions are also useful tools in solving wave equations and diffusion equations. In quantum mechanics, the Green's function of the Hamiltonian is a key concept with important links to the concept of density of states.

The Green's function as used in physics is usually defined with the opposite sign, instead. That is,

${\displaystyle \operatorname {L} \,G(x,s)=\delta (x-s)~.}$

This definition does not significantly change any of the properties of the Green's function due to the evenness of the Dirac delta function.

If the operator is translation invariant, that is, when ${\displaystyle \operatorname {L} }$  has constant coefficients with respect to x, then the Green's function can be taken to be a convolution kernel, that is,

${\displaystyle G(x,s)=G(x-s)~.}$

In this case, the Green's function is the same as the impulse response of linear time-invariant system theory.

## Motivation

Loosely speaking, if such a function G can be found for the operator ${\displaystyle \operatorname {L} }$ , then, if we multiply the equation (1) for the Green's function by f(s), and then integrate with respect to s, we obtain,

${\displaystyle \int \operatorname {L} \,G(x,s)\,f(s)\,ds=\int \delta (x-s)\,f(s)\,ds=f(x)~.}$

Because the operator ${\displaystyle \operatorname {L} =\operatorname {L} (x)}$  is linear and acts only on the variable x (and not on the variable of integration s), one may take the operator ${\displaystyle \operatorname {L} }$  outside of the integration, yielding

${\displaystyle \operatorname {L} \,\left(\int G(x,s)\,f(s)\,ds\right)=f(x)~.}$

This means that

${\displaystyle u(x)=\int G(x,s)\,f(s)\,ds}$

(3)

is a solution to the equation ${\displaystyle \operatorname {L} u(x)=f(x)~.}$

Thus, one may 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 relies upon the linearity of the operator ${\displaystyle \operatorname {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). For this reason, the Green's function is also sometimes called the fundamental solution associated to the operator ${\displaystyle \operatorname {L} }$ .

Not every operator ${\displaystyle \operatorname {L} }$  admits a Green's function. A Green's function can also be thought of as a right inverse of ${\displaystyle \operatorname {L} }$ . Aside from the difficulties of finding a Green's function for a particular operator, the integral in equation (3) may be quite difficult to evaluate. However the method gives a theoretically exact result.

This can be thought of as an expansion of f according to a Dirac delta function basis (projecting f over ${\displaystyle \delta (x-s)\,}$ ; and a superposition of the solution on each projection. Such an integral equation is known as a Fredholm integral equation, the study of which constitutes Fredholm theory.

## Green's functions for solving inhomogeneous boundary value problems

The primary use of Green's functions in mathematics is to solve non-homogeneous boundary value problems. In modern theoretical physics, Green's functions are also usually used as propagators in Feynman diagrams; the term Green's function is often further used for any correlation function.

### Framework

Let ${\displaystyle \operatorname {L} }$  be the Sturm–Liouville operator, a linear differential operator of the form

${\displaystyle \operatorname {L} ={\dfrac {d}{dx}}\left[p(x){\dfrac {d}{dx}}\right]+q(x)}$

and let ${\displaystyle {\vec {\operatorname {D} }}}$  be the vector-valued boundary conditions operator

${\displaystyle {\vec {\operatorname {D} }}\,u={\begin{bmatrix}\alpha _{1}u'(0)+\beta _{1}u(0)\\\alpha _{2}u'(\ell )+\beta _{2}u(\ell )\end{bmatrix}}~.}$

Let ${\displaystyle f(x)}$  be a continuous function in ${\displaystyle [0,\ell ]~.}$  Further suppose that the problem

{\displaystyle {\begin{aligned}\operatorname {L} \,u&=f\\{\vec {\operatorname {D} }}\,u&={\vec {0}}\end{aligned}}}

is "regular", i.e., the only solution for ${\displaystyle f(x)=0}$  for all x is ${\displaystyle u(x)=0}$ .[a]

### Theorem

There is one and only one solution ${\displaystyle u(x)}$  that satisfies

{\displaystyle {\begin{aligned}\operatorname {L} \,u&=f\\{\vec {\operatorname {D} }}\,u&={\vec {0}}\end{aligned}}}

and it is given by

${\displaystyle u(x)=\int _{0}^{\ell }f(s)\,G(x,s)\,ds~,}$

where ${\displaystyle G(x,s)}$  is a Green's function satisfying the following conditions:

1. ${\displaystyle G(x,s)}$  is continuous in ${\displaystyle x}$  and ${\displaystyle s}$ .
2. For ${\displaystyle x\neq s~}$ , ${\displaystyle \quad \operatorname {L} \,G(x,s)=0~}$ .
3. For ${\displaystyle s\neq 0~}$ , ${\displaystyle \quad {\vec {\operatorname {D} }}\,G(x,s)={\vec {0}}~}$ .
4. Derivative "jump": ${\displaystyle \quad G'(s_{0+},s)-G'(s_{0-},s)=1/p(s)~}$ .
5. Symmetry: ${\displaystyle \quad G(x,s)=G(s,x)~}$ .

### Advanced and retarded Green's functions

Sometimes the Green's function can be split into a sum of two functions. One with the variable positive (+) and the other with the variable negative (−). These are the advanced and retarded Green's functions, and when the equation under study depends on time, one of the parts is causal and the other anti-causal. In these problems usually the causal part is the important one. These are frequently the solutions to the inhomogeneous electromagnetic wave equation.

## Finding Green's functions

### Units

While it doesn't uniquely fix the form the Green's function will take, performing a dimensional analysis to find the units a Green's function must have is an important sanity check on any Green's function found through other means. A quick examination of the defining equation,

${\displaystyle LG(x,s)=\delta (x-s),}$

shows that the units of ${\displaystyle G}$  depend not only on the units of ${\displaystyle L}$  but also on the number and units of the space of which the position vectors ${\displaystyle x}$  and ${\displaystyle s}$  are elements. This leads to the relationship:

${\displaystyle [[G]]=[[L]]^{-1}[[\mathrm {d} x]]^{-1},}$

where ${\displaystyle [[G]]}$  is defined as, "the physical units of ${\displaystyle G}$ ", and ${\displaystyle \mathrm {d} x}$  is the volume element of the space (or spacetime).

For example, if ${\displaystyle L=\partial _{t}^{2}}$  and time is the only variable then:

${\displaystyle [[L]]=[[\mathrm {time} ]]^{-2},}$
${\displaystyle [[\mathrm {d} x]]=[[\mathrm {time} ]],\ \mathrm {and} }$
${\displaystyle [[G]]=[[\mathrm {time} ]].}$

If ${\displaystyle L=\square ={\frac {1}{c^{2}}}\partial _{t}^{2}-\nabla ^{2}}$ , the d'Alembert operator, and space has 3 dimensions then:

${\displaystyle [[L]]=[[\mathrm {length} ]]^{-2},}$
${\displaystyle [[\mathrm {d} x]]=[[\mathrm {time} ]][[\mathrm {length} ]]^{3},\ \mathrm {and} }$
${\displaystyle [[G]]=[[\mathrm {time} ]]^{-1}[[\mathrm {length} ]]^{-1}.}$

### Eigenvalue expansions

If a differential operator L admits a set of eigenvectors Ψn(x) (i.e., a set of functions Ψn and scalars λn such that LΨn = λn Ψn ) that is complete, then it is possible to construct a Green's function from these eigenvectors and eigenvalues.

"Complete" means that the set of functions n} satisfies the following completeness relation,

${\displaystyle \delta (x-x')=\sum _{n=0}^{\infty }\Psi _{n}^{\dagger }(x)\Psi _{n}(x').}$

Then the following holds,

${\displaystyle G(x,x')=\sum _{n=0}^{\infty }{\dfrac {\Psi _{n}^{\dagger }(x)\Psi _{n}(x')}{\lambda _{n}}},}$

where ${\displaystyle \dagger }$  represents complex conjugation.

Applying the operator L to each side of this equation results in the completeness relation, which was assumed.

The general study of the Green's function written in the above form, and its relationship to the function spaces formed by the eigenvectors, is known as Fredholm theory.

There are several other methods for finding Green's functions, including the method of images, separation of variables, and Laplace transforms.[1]

### Combining Green's functions

If the differential operator ${\displaystyle L}$  can be factored as ${\displaystyle L=L_{1}L_{2}}$  then the Green's function of ${\displaystyle L}$  can be constructed from the Green's functions for ${\displaystyle L_{1}}$  and ${\displaystyle L_{2}}$ :

${\displaystyle G(x,s)=\int G_{2}(x,s_{1})\,G_{1}(s_{1},s)\,\mathrm {d} s_{1}.}$

The above identity follows immediately from taking ${\displaystyle G(x,s)}$  to be the representation of the right operator inverse of ${\displaystyle L}$ , analogous to how for the invertible linear operator ${\displaystyle C}$ , defined by ${\displaystyle C=(AB)^{-1}=B^{-1}A^{-1}}$ , is represented by its matrix elements ${\displaystyle C_{i,j}}$ .

A further identity follows for differential operators that are scalar polynomials of the derivative, ${\displaystyle L=P_{N}(\partial _{x})}$ . The fundamental theorem of algebra, combined with the fact that ${\displaystyle \partial _{x}}$  commutes with itself, guarantees that the polynomial can be factored, putting ${\displaystyle L}$  in the form:

${\displaystyle L=\prod _{i=1}^{N}(\partial _{x}-z_{i}),}$

where ${\displaystyle z_{i}}$  are the zeros of ${\displaystyle P_{N}(z)}$ . Taking the Fourier transform of ${\displaystyle LG(x,s)=\delta (x-s)}$  with respect to both ${\displaystyle x}$  and ${\displaystyle s}$  gives:

${\displaystyle {\widehat {G}}(k_{x},k_{s})={\frac {\delta (k_{x}-k_{s})}{\prod _{i=1}^{N}(ik_{x}-z_{i})}}.}$

The fraction can then be split into a sum using a partial fraction decomposition before Fourier transforming back to ${\displaystyle x}$  and ${\displaystyle s}$  space. This process yields identities that relate integrals of Green's functions and sums of the same. For example, if ${\displaystyle L=(\partial _{x}+\gamma )(\partial _{x}+\alpha )^{2}}$  then one form for its Green's function is:

{\displaystyle {\begin{aligned}G(x,s)&={\frac {1}{(\alpha -\gamma )^{2}}}\Theta (x-s)e^{-\gamma (x-s)}-{\frac {1}{(\alpha -\gamma )^{2}}}\Theta (x-s)e^{-\alpha (x-s)}+{\frac {1}{\gamma -\alpha }}\Theta (x-s)\,(x-s)e^{-\alpha (x-s)}\\[5pt]&=\int \Theta (x-s_{1})(x-s_{1})e^{-\alpha (x-s_{1})}\Theta (s_{1}-s)e^{-\gamma (s_{1}-s)}\,\mathrm {d} s_{1}.\end{aligned}}}

While the example presented is tractable analytically, it illustrates a process that works when the integral is not trivial (for example, when ${\displaystyle \nabla ^{2}}$  is the operator in the polynomial).

### Table of Green's functions

The following table gives an overview of Green's functions of frequently appearing differential operators, where ${\textstyle r={\sqrt {x^{2}+y^{2}+z^{2}}}}$ , ${\textstyle \rho ={\sqrt {x^{2}+y^{2}}}}$ , ${\textstyle \Theta (t)}$  is the Heaviside step function, ${\textstyle J_{\nu }(z)}$  is a Bessel function, ${\textstyle I_{\nu }(z)}$  is a modified Bessel function of the first kind, and ${\textstyle K_{\nu }(z)}$  is a modified Bessel function of the second kind.[2] Where time (t) appears in the first column, the advanced (causal) Green's function is listed.

Differential operator L Green's function G Example of application
${\displaystyle \partial _{t}^{n+1}}$  ${\displaystyle {\frac {t^{n}}{n!}}\Theta (t)}$
${\displaystyle \partial _{t}+\gamma }$  ${\displaystyle \Theta (t)\mathrm {e} ^{-\gamma t}}$
${\displaystyle \left(\partial _{t}+\gamma \right)^{2}}$  ${\displaystyle \Theta (t)t\mathrm {e} ^{-\gamma t}}$
${\displaystyle \partial _{t}^{2}+2\gamma \partial _{t}+\omega _{0}^{2}}$  where ${\displaystyle \gamma <\omega _{0}}$  ${\displaystyle \Theta (t)\mathrm {e} ^{-\gamma t}~{\frac {\sin(\omega t)}{\omega }}}$    with   ${\displaystyle \omega ={\sqrt {\omega _{0}^{2}-\gamma ^{2}}}}$  1D underdamped harmonic oscillator
${\displaystyle \partial _{t}^{2}+2\gamma \partial _{t}+\omega _{0}^{2}}$  where ${\displaystyle \gamma >\omega _{0}}$  ${\displaystyle \Theta (t)\mathrm {e} ^{-\gamma t}~{\frac {\sinh(\omega t)}{\omega }}}$    with   ${\displaystyle \omega ={\sqrt {\gamma ^{2}-\omega _{0}^{2}}}}$  1D overdamped harmonic oscillator
${\displaystyle \partial _{t}^{2}+2\gamma \partial _{t}+\omega _{0}^{2}}$  where ${\displaystyle \gamma =\omega _{0}}$  ${\displaystyle \Theta (t)\mathrm {e} ^{-\gamma t}t}$  1D critically damped harmonic oscillator
2D Laplace operator ${\displaystyle \nabla _{\text{2D}}^{2}=\partial _{x}^{2}+\partial _{y}^{2}}$  ${\displaystyle {\frac {1}{2\pi }}\ln \rho }$    with   ${\displaystyle \rho ={\sqrt {x^{2}+y^{2}}}}$  2D Poisson equation
3D Laplace operator ${\displaystyle \nabla _{\text{3D}}^{2}=\partial _{x}^{2}+\partial _{y}^{2}+\partial _{z}^{2}}$  ${\displaystyle {\frac {-1}{4\pi r}}}$    with   ${\displaystyle r={\sqrt {x^{2}+y^{2}+z^{2}}}}$  Poisson equation
Helmholtz operator ${\displaystyle \nabla _{\text{3D}}^{2}+k^{2}}$  ${\displaystyle {\frac {-\mathrm {e} ^{-ikr}}{4\pi r}}=i{\sqrt {\frac {k}{32\pi r}}}}$ ${\displaystyle H_{1/2}^{(2)}(kr)}$ ${\displaystyle =i{\frac {k}{4\pi }}\,}$ ${\displaystyle h_{0}^{(2)}(kr)}$  stationary 3D Schrödinger equation for free particle
${\displaystyle \nabla ^{2}-k^{2}}$  in ${\displaystyle n}$  dimensions ${\displaystyle -(2\pi )^{-n/2}\left({\frac {k}{r}}\right)^{n/2-1}K_{n/2-1}(kr)}$  Yukawa potential, Feynman propagator
${\displaystyle \partial _{t}^{2}-c^{2}\partial _{x}^{2}}$  ${\displaystyle {\frac {1}{2c}}\Theta (t-|x/c|)}$  1D wave equation
${\displaystyle \partial _{t}^{2}-c^{2}\,\nabla _{\text{2D}}^{2}}$  ${\displaystyle {\frac {1}{2\pi c{\sqrt {c^{2}t^{2}-\rho ^{2}}}}}\Theta (t-\rho /c)}$  2D wave equation
D'Alembert operator ${\displaystyle \square ={\frac {1}{c^{2}}}\partial _{t}^{2}-\nabla _{\text{3D}}^{2}}$  ${\displaystyle {\frac {\delta (t-{\frac {r}{c}})}{4\pi r}}}$  3D wave equation
${\displaystyle \partial _{t}-k\partial _{x}^{2}}$  ${\displaystyle \Theta (t)\left({\frac {1}{4\pi kt}}\right)^{1/2}\mathrm {e} ^{-x^{2}/4kt}}$  1D diffusion
${\displaystyle \partial _{t}-k\,\nabla _{\text{2D}}^{2}}$  ${\displaystyle \Theta (t)\left({\frac {1}{4\pi kt}}\right)\mathrm {e} ^{-\rho ^{2}/4kt}}$  2D diffusion
${\displaystyle \partial _{t}-k\,\nabla _{\text{3D}}^{2}}$  ${\displaystyle \Theta (t)\left({\frac {1}{4\pi kt}}\right)^{3/2}\mathrm {e} ^{-r^{2}/4kt}}$  3D diffusion
${\displaystyle {\frac {1}{c^{2}}}\partial _{t}^{2}-\partial _{x}^{2}+\mu ^{2}}$  ${\displaystyle {\frac {1}{2}}\left[\left(1-\sin {\mu ct}\right)(\delta (ct-x)+\delta (ct+x))+\mu \Theta (ct-|x|)J_{0}(\mu u)\right]}$    with   ${\displaystyle u={\sqrt {c^{2}t^{2}-x^{2}}}}$  1D Klein–Gordon equation
${\displaystyle {\frac {1}{c^{2}}}\partial _{t}^{2}-\nabla _{\text{2D}}^{2}+\mu ^{2}}$  ${\displaystyle {\frac {1}{4\pi }}\left[(1+\cos(\mu ct)){\frac {\delta (ct-\rho )}{\rho }}+\mu ^{2}\Theta (ct-\rho )\operatorname {sinc} (\mu u)\right]}$    with   ${\displaystyle u={\sqrt {c^{2}t^{2}-\rho ^{2}}}}$  2D Klein–Gordon equation
${\displaystyle \square +\mu ^{2}}$  ${\displaystyle {\frac {1}{4\pi }}\left[{\frac {\delta \left(t-{\frac {r}{c}}\right)}{r}}+\mu c\Theta (ct-r){\frac {J_{1}\left(\mu u\right)}{u}}\right]}$    with   ${\displaystyle u={\sqrt {c^{2}t^{2}-r^{2}}}}$  3D Klein–Gordon equation
${\displaystyle \partial _{t}^{2}+2\gamma \partial _{t}-c^{2}\partial _{x}^{2}}$  ${\displaystyle {\frac {1}{2}}e^{-\gamma t}\left[\delta (ct-x)+\delta (ct+x)+\Theta (ct-|x|)\left({\frac {\gamma }{c}}I_{0}\left({\frac {\gamma u}{c}}\right)+{\frac {\gamma t}{u}}I_{1}\left({\frac {\gamma u}{c}}\right)\right)\right]}$    with   ${\displaystyle u={\sqrt {c^{2}t^{2}-x^{2}}}}$  telegrapher's equation
${\displaystyle \partial _{t}^{2}+2\gamma \partial _{t}-c^{2}\,\nabla _{\text{2D}}^{2}}$  ${\displaystyle {\frac {e^{-\gamma t}}{4\pi }}\left[(1+e^{-\gamma t}+3\gamma t){\frac {\delta (ct-\rho )}{\rho }}+\Theta (ct-\rho )\left({\frac {\gamma \sinh \left({\frac {\gamma u}{c}}\right)}{cu}}+{\frac {3\gamma t\cosh \left({\frac {\gamma u}{c}}\right)}{u^{2}}}-{\frac {3ct\sinh \left({\frac {\gamma u}{c}}\right)}{u^{3}}}\right)\right]}$    with   ${\displaystyle u={\sqrt {c^{2}t^{2}-\rho ^{2}}}}$  2D relativistic heat conduction
${\displaystyle \partial _{t}^{2}+2\gamma \partial _{t}-c^{2}\,\nabla _{\text{3D}}^{2}}$  ${\displaystyle {\frac {e^{-\gamma t}}{20\pi }}\left[\left(8-3e^{-\gamma t}+2\gamma t+4\gamma ^{2}t^{2}\right){\frac {\delta (ct-r)}{r^{2}}}+{\frac {\gamma ^{2}}{c}}\Theta (ct-r)\left({\frac {1}{cu}}I_{1}\left({\frac {\gamma u}{c}}\right)+{\frac {4t}{u^{2}}}I_{2}\left({\frac {\gamma u}{c}}\right)\right)\right]}$    with   ${\displaystyle u={\sqrt {c^{2}t^{2}-r^{2}}}}$  3D relativistic heat conduction

## Green's functions for the Laplacian

Green's functions for linear differential operators involving the Laplacian may be readily put to use using the second of Green's identities.

To derive Green's theorem, begin with the divergence theorem (otherwise known as Gauss's theorem),

${\displaystyle \int _{V}\nabla \cdot {\vec {A}}\ dV=\int _{S}{\vec {A}}\cdot d{\widehat {\sigma }}~.}$

Let ${\displaystyle {\vec {A}}=\varphi \,\nabla \psi -\psi \,\nabla \varphi }$  and substitute into Gauss' law.

Compute ${\displaystyle \nabla \cdot {\vec {A}}}$  and apply the product rule for the ∇ operator,

{\displaystyle {\begin{aligned}\nabla \cdot {\vec {A}}&=\nabla \cdot (\varphi \,\nabla \psi \;-\;\psi \,\nabla \varphi )\\&=(\nabla \varphi )\cdot (\nabla \psi )\;+\;\varphi \,\nabla ^{2}\psi \;-\;(\nabla \varphi )\cdot (\nabla \psi )\;-\;\psi \nabla ^{2}\varphi \\&=\varphi \,\nabla ^{2}\psi \;-\;\psi \,\nabla ^{2}\varphi .\end{aligned}}}

Plugging this into the divergence theorem produces Green's theorem,

${\displaystyle \int _{V}(\varphi \,\nabla ^{2}\psi -\psi \,\nabla ^{2}\varphi )\,dV=\int _{S}(\varphi \,\nabla \psi -\psi \nabla \,\varphi )\cdot d{\widehat {\sigma }}.}$

Suppose that the linear differential operator L is the Laplacian, ∇², and that there is a Green's function G for the Laplacian. The defining property of the Green's function still holds,

${\displaystyle LG(x,x')=\nabla ^{2}G(x,x')=\delta (x-x').}$

Let ${\displaystyle \psi =G}$  in Green's second identity, see Green's identities. Then,

${\displaystyle \int _{V}\left[\varphi (x')\delta (x-x')-G(x,x')\,{\nabla '}^{2}\,\varphi (x')\right]\ d^{3}x'=\int _{S}\left[\varphi (x')\,{\nabla '}G(x,x')-G(x,x')\,{\nabla '}\varphi (x')\right]\cdot d{\widehat {\sigma }}'.}$

Using this expression, it is possible to solve Laplace's equation2φ(x) = 0 or Poisson's equation2φ(x) = −ρ(x), subject to either Neumann or Dirichlet boundary conditions. In other words, we can solve for φ(x) everywhere inside a volume where either (1) the value of φ(x) is specified on the bounding surface of the volume (Dirichlet boundary conditions), or (2) the normal derivative of φ(x) is specified on the bounding surface (Neumann boundary conditions).

Suppose the problem is to solve for φ(x) inside the region. Then the integral

${\displaystyle \int _{V}\varphi (x')\delta (x-x')\,d^{3}x'}$

reduces to simply φ(x) due to the defining property of the Dirac delta function and we have

${\displaystyle \varphi (x)=-\int _{V}G(x,x')\rho (x')\ d^{3}x'+\int _{S}\left[\varphi (x')\,\nabla 'G(x,x')-G(x,x')\,\nabla '\varphi (x')\right]\cdot d{\widehat {\sigma }}'.}$

This form expresses the well-known property of harmonic functions, 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, φ(x) is interpreted as the electric potential, ρ(x) as electric charge density, and the normal derivative ${\displaystyle \nabla \varphi (x')\cdot d{\widehat {\sigma }}'}$  as the normal component of the electric field.

If the problem is to solve a Dirichlet boundary value problem, the Green's function should be chosen such that G(x,x′) vanishes when either x or x′ is on the bounding surface. Thus only one of the two terms in the surface integral remains. If the problem is to solve a Neumann boundary value problem, the Green's function is chosen such that its normal derivative vanishes on the bounding surface, as it would seem to be the most logical choice. (See Jackson J.D. classical electrodynamics, page 39). However, application of Gauss's theorem to the differential equation defining the Green's function yields

${\displaystyle \int _{S}\nabla 'G(x,x')\cdot d{\widehat {\sigma }}'=\int _{V}\nabla '^{2}G(x,x')d^{3}x'=\int _{V}\delta (x-x')d^{3}x'=1~,}$

meaning the normal derivative of G(x,x′) cannot vanish on the surface, because it must integrate to 1 on the surface. (Again, see Jackson J.D. classical electrodynamics, page 39 for this and the following argument).

The simplest form the normal derivative can take is that of a constant, namely 1/S, where S is the surface area of the surface. The surface term in the solution becomes

${\displaystyle \int _{S}\varphi (x')\,\nabla 'G(x,x')\cdot d{\widehat {\sigma }}'=\langle \varphi \rangle _{S}}$

where ${\displaystyle \langle \varphi \rangle _{S}}$  is the average value of the potential on the surface. This number is not known in general, but is often unimportant, as the goal is often to obtain the electric field given by the gradient of the potential, rather than the potential itself.

With no boundary conditions, the Green's function for the Laplacian (Green's function for the three-variable Laplace equation) is

${\displaystyle G(x,x')=-{\dfrac {1}{4\pi |x-x'|}}.}$

Supposing that the bounding surface goes out to infinity and plugging in this expression for the Green's function finally yields the standard expression for electric potential in terms of electric charge density as

${\displaystyle \varphi (x)=\int _{V}{\dfrac {\rho (x')}{4\pi \varepsilon |x-x'|}}\,d^{3}x'~.}$

## Example

Find the Green function for the following problem, whose Green's function number is X11:

{\displaystyle {\begin{aligned}Lu&=u''+k^{2}u=f(x)\\u(0)&=0,\quad u\left({\tfrac {\pi }{2k}}\right)=0.\end{aligned}}}

First step: The Green's function for the linear operator at hand is defined as the solution to

${\displaystyle G''(x,s)+k^{2}G(x,s)=\delta (x-s).}$

(Eq. *)

If ${\displaystyle x\neq s}$ , then the delta function gives zero, and the general solution is

${\displaystyle G(x,s)=c_{1}\cos kx+c_{2}\sin kx.}$

For ${\displaystyle x , the boundary condition at ${\displaystyle x=0}$  implies

${\displaystyle G(0,s)=c_{1}\cdot 1+c_{2}\cdot 0=0,\quad c_{1}=0}$

if ${\displaystyle x  and ${\displaystyle s\neq {\tfrac {\pi }{2k}}}$ .

For ${\displaystyle x>s}$ , the boundary condition at ${\displaystyle x={\tfrac {\pi }{2k}}}$  implies

${\displaystyle G\left({\tfrac {\pi }{2k}},s\right)=c_{3}\cdot 0+c_{4}\cdot 1=0,\quad c_{4}=0}$

The equation of ${\displaystyle G(0,s)=0}$  is skipped for similar reasons.

To summarize the results thus far:

${\displaystyle G(x,s)={\begin{cases}c_{2}\sin kx,&{\text{for }}x

Second step: The next task is to determine ${\displaystyle c_{2}}$  and ${\displaystyle c_{3}}$ .

Ensuring continuity in the Green's function at ${\displaystyle x=s}$  implies

${\displaystyle c_{2}\sin ks=c_{3}\cos ks}$

One can ensure proper discontinuity in the first derivative by integrating the defining differential equation (i.e., Eq. *) from ${\displaystyle x=s-\varepsilon }$  to ${\displaystyle x=s+\varepsilon }$  and taking the limit as ${\displaystyle \varepsilon }$  goes to zero. Note that we only integrate the second derivative as the remaining term will be continuous by construction.

${\displaystyle c_{3}\cdot (-k\sin ks)-c_{2}\cdot (k\cos ks)=1}$

The two (dis)continuity equations can be solved for ${\displaystyle c_{2}}$  and ${\displaystyle c_{3}}$  to obtain

${\displaystyle c_{2}=-{\frac {\cos ks}{k}}\quad ;\quad c_{3}=-{\frac {\sin ks}{k}}}$

So the Green's function for this problem is:

${\displaystyle G(x,s)={\begin{cases}-{\frac {\cos ks}{k}}\sin kx,&x

## Further examples

• Let n = 1 and let the subset be all of R. Let L be ${\displaystyle \mathrm {d} /\mathrm {d} x}$ . Then, the Heaviside step function H(xx0) is a Green's function of L at x0.
• Let n = 2 and let the subset be the quarter-plane {(x, y) : x, y ≥ 0} and L be the Laplacian. Also, assume a Dirichlet boundary condition is imposed at x = 0 and a Neumann boundary condition is imposed at y = 0. Then the X10Y20 Green's function is
{\displaystyle {\begin{aligned}G(x,y,x_{0},y_{0})={\dfrac {1}{2\pi }}&\left[\ln {\sqrt {(x-x_{0})^{2}+(y-y_{0})^{2}}}-\ln {\sqrt {(x+x_{0})^{2}+(y-y_{0})^{2}}}\right.\\[5pt]&\left.{}+\ln {\sqrt {(x-x_{0})^{2}+(y+y_{0})^{2}}}-\ln {\sqrt {(x+x_{0})^{2}+(y+y_{0})^{2}}}\,\right].\end{aligned}}}
• Let ${\displaystyle a , and all three are elements of the real numbers. Then, for any function from reals to reals, ${\displaystyle f(x)}$ , with an ${\displaystyle n}$ -th derivative that is integrable over the interval ${\displaystyle [a,b]}$ :
{\displaystyle {\begin{aligned}f(x)&=\sum _{m=0}^{n-1}{\frac {(x-a)^{m}}{m!}}\left[{\frac {\mathrm {d} ^{m}f}{\mathrm {d} x^{m}}}\right]_{x=a}+\int _{a}^{b}\left[{\frac {(x-s)^{n-1}}{(n-1)!}}\Theta (x-s)\right]\left[{\frac {\mathrm {d} ^{n}f}{\mathrm {d} x^{n}}}\right]_{x=s}\mathrm {d} s\end{aligned}}~.}

The Green's function in the above equation, ${\displaystyle G(x,s)={\frac {(x-s)^{n-1}}{(n-1)!}}\Theta (x-s)}$ , is not unique. How is the equation modified if ${\displaystyle g(x-s)}$  is added to ${\displaystyle G(x,s)}$ , where ${\displaystyle g(x)}$  satisfies ${\textstyle {\frac {\mathrm {d} ^{n}g}{\mathrm {d} x^{n}}}=0}$  for all ${\displaystyle x\in [a,b]}$  (for example, ${\displaystyle g(x)=-x/2}$  with ${\displaystyle n=2}$ )? Also, compare the above equation to the form of a Taylor series centered at ${\displaystyle x=a}$ .

## Footnotes

1. ^ In technical jargon “regular” means that only the trivial solution (${\displaystyle u(x)=0}$ ) exists for the homogeneous problem (${\displaystyle f(x)=0}$ ).

## References

1. ^ (Cole 2011)
2. ^ some examples taken from Schulz, Hermann: Physik mit Bleistift. Frankfurt am Main: Deutsch, 2001. ISBN 3-8171-1661-6 (German)
• Bayin, S.S. (2006). Mathematical Methods in Science and Engineering. Wiley. Chapters 18 and 19.
• Eyges, Leonard (1972). The Classical Electromagnetic Field. New York, NY: Dover Publications. ISBN 0-486-63947-9.
Chapter 5 contains a very readable account of using Green's functions to solve boundary value problems in electrostatics.
• Polyanin, A.D.; Zaitsev, V.F. (2003). Handbook of Exact Solutions for Ordinary Differential Equations (2nd ed.). Boca Raton, FL: Chapman & Hall/CRC Press. ISBN 1-58488-297-2.
• Polyanin, A.D. (2002). Handbook of Linear Partial Differential Equations for Engineers and Scientists. Boca Raton, FL: Chapman & Hall/CRC Press. ISBN 1-58488-299-9.
• Mathews, Jon; Walker, Robert L. (1970). Mathematical methods of physics (2nd ed.). New York: W. A. Benjamin. ISBN 0-8053-7002-1.
• Folland, G.B. Fourier Analysis and its Applications. Mathematics Series. Wadsworth and Brooks/Cole.
• Cole, K.D.; Beck, J.V.; Haji-Sheikh, A.; Litkouhi, B. (2011). "Methods for obtaining Green's functions". Heat Conduction Using Green's Functions. Taylor and Francis. pp. 101–148. ISBN 978-1-4398-1354-6.
• Green, G (1828). An Essay on the Application of Mathematical Analysis to the Theories of Electricity and Magnetism. Nottingham, England: T. Wheelhouse. pages 10-12.
• Faryad and, M.; Lakhtakia, A. (2018). Infinite-Space Dyadic Green Functions in Electromagnetism. London, UK / San Rafael, CA: IoP Science (UK) / Morgan and Claypool (US). Bibcode:2018idgf.book.....F.