Green's function

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

This means that if $$L$$ is a linear differential operator, then


 * the Green's function $$G$$ is the solution of the equation $L G = \delta$, where $$\delta$$ is Dirac's delta function;
 * the solution of the initial-value problem $$L y = f$$ is the convolution ($G \ast f$).

Through the superposition principle, given a linear ordinary differential equation (ODE), $L y = f$, one can first solve $L G = \delta_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 $L = L(x)$ acting on distributions over a subset of the Euclidean space $\R^n$, at a point $s$, is any solution of

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

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, 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, $$L G(x,s) = \delta(x-s)\,.$$ This definition does not significantly change any of the properties of Green's function due to the evenness of the Dirac delta function.

If the operator is translation invariant, that is, when $$L$$ has constant coefficients with respect to $δ$, then the Green's function can be taken to be a convolution kernel, that is, $$G(x,s) = G(x-s)\,.$$ In this case, Green's function is the same as the impulse response of linear time-invariant system theory.

Motivation
Loosely speaking, if such a function $$ can be found for the operator $L$, then, if we multiply the $x$ for the Green's function by $f(s)$, and then integrate with respect to $G$, we obtain, $$\int LG(x,s)\,f(s) \, ds = \int \delta(x-s) \, f(s) \, ds = f(x)\,.$$ Because the operator $$L = L(x)$$ is linear and acts only on the variable $$ (and not on the variable of integration $s$), one may take the operator $$L$$ outside of the integration, yielding $$L\left(\int G(x,s)\,f(s) \,ds \right) = f(x)\,.$$ This means that

is a solution to the equation $$L u(x) = f(x)\,.$$

Thus, one may obtain the function $u(x)$ through knowledge of the Green's function in $x$ and the source term on the right-hand side in $s$. This process relies upon the linearity of the operator $L$.

In other words, the solution of $$, $u(x)$, can be determined by the integration given in $$. Although $f(x)$ is known, this integration cannot be performed unless $$ is also known. The problem now lies in finding the Green's function $$ that satisfies $$. For this reason, the Green's function is also sometimes called the fundamental solution associated to the operator $L$.

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 function for a particular operator, the integral in $G$ may be quite difficult to evaluate. However the method gives a theoretically exact result.

This can be thought of as an expansion of $G$ according to a Dirac delta function basis (projecting $$ over $\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 $$L$$ be the Sturm–Liouville operator, a linear differential operator of the form $$L = \dfrac{d}{dx} \left[p(x) \dfrac{d}{dx}\right] + q(x)$$ and let $$\mathbf{D}$$ be the vector-valued boundary conditions operator $$\mathbf{D} u = \begin{bmatrix} \alpha_1 u'(0)   + \beta_1 u(0) \\ \alpha_2 u'(\ell) + \beta_2 u(\ell) \end{bmatrix} \,.$$

Let $$f(x)$$ be a continuous function in $[0,\ell]\,$. Further suppose that the problem $$\begin{align} Lu &= f \\ \mathbf{D}u &= \mathbf{0} \end{align}$$ is "regular", i.e., the only solution for $$f(x) = 0$$ for all $$ is$u(x) = 0$.

Theorem
There is one and only one solution $$u(x)$$ that satisfies $$ \begin{align} Lu & = f \\ \mathbf{D}u & = \mathbf{0} \end{align}$$ and it is given by $$u(x) = \int_0^\ell f(s) \, G(x,s) \, ds\,,$$ where $$G(x,s)$$ is a Green's function satisfying the following conditions:
 * 1) $$G(x,s)$$ is continuous in $$x$$ and $$s$$.
 * 2) For $x \ne s\,$,  $ L G(x,s) = 0$.
 * 3) For $s \ne 0\,$,  $ \mathbf{D}G(x,s) = \mathbf{0}$.
 * 4) Derivative "jump":  $ G'(s_{0+},s) - G'(s_{0-},s) = 1 / p(s) \, $.
 * 5) Symmetry:  $ G(x,s) = G(s,x) \,$.

Advanced and retarded Green's functions
Green's function is not necessarily unique since the addition of any solution of the homogeneous equation to one Green's function results in another Green's function. Therefore if the homogeneous equation has nontrivial solutions, multiple Green's functions exist. In some cases, it is possible to find one Green's function that is nonvanishing only for $$s \leq x$$, which is called a retarded Green's function, and another Green's function that is nonvanishing only for $$s \geq x $$, which is called an advanced Green's function. In such cases, any linear combination of the two Green's functions is also a valid Green's function. The terminology advanced and retarded is especially useful when the variable x corresponds to time. In such cases, the solution provided by the use of the retarded Green's function depends only on the past sources and is causal whereas the solution provided by the use of the advanced Green's function depends only on the future sources and is acausal. In these problems, it is often the case that the causal solution is the physically important one. The use of advanced and retarded Green's function is especially common for the analysis of solutions of the inhomogeneous electromagnetic wave equation.

Units
While it does not 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, $$ L G(x, s) = \delta(x - s), $$ shows that the units of $$G$$ depend not only on the units of $$L$$ but also on the number and units of the space of which the position vectors $$x$$ and $$s$$ are elements. This leads to the relationship: $$ G = L^{-1} d x^{-1}, $$ where $$G$$ is defined as, "the physical units of $G$", and $$dx$$ is the volume element of the space (or spacetime).

For example, if $$L = \partial_t^2$$ and time is the only variable then: $$\begin{align}[] L &= \text{time}^{-2}, \\[1ex] dx &= \text{time},\ \text{and} \\[1ex] G &= \text{time}. \end{align}$$ If $L = \square = \tfrac{1}{c^2}\partial_t^2 - \nabla^2$, the d'Alembert operator, and space has 3 dimensions then: $$\begin{align}[] L &= \text{length}^{-2}, \\[1ex] dx &= \text{time} \text{length}^3,\ \text{and} \\[1ex] G &= \text{time}^{-1} \text{length}^{-1}. \end{align}$$

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}$&thinsp;) 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, $$\delta(x-x') = \sum_{n=0}^\infty \Psi_n^\dagger(x) \Psi_n(x').$$

Then the following holds,

where $$\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 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.

Combining Green's functions
If the differential operator $$L$$ can be factored as $$L = L_1 L_2$$ then the Green's function of $$L$$ can be constructed from the Green's functions for $$L_1$$ and $L_2$: $$ G(x, s) = \int G_2(x, s_1) \, G_1(s_1, s) \, ds_1. $$ The above identity follows immediately from taking $$G(x, s)$$ to be the representation of the right operator inverse of $L$, analogous to how for the invertible linear operator $C$, defined by $C = (AB)^{-1} = B^{-1} A^{-1}$, is represented by its matrix elements $C_{i,j}$.

A further identity follows for differential operators that are scalar polynomials of the derivative, $L = P_N(\partial_x)$. The fundamental theorem of algebra, combined with the fact that $$\partial_x$$ commutes with itself, guarantees that the polynomial can be factored, putting $$L$$ in the form: $$ L = \prod_{i=1}^N \left(\partial_x - z_i\right),$$ where $$z_i$$ are the zeros of $P_N(z)$. Taking the Fourier transform of $$L G(x, s) = \delta(x - s)$$ with respect to both $$x$$ and $$s$$ gives: $$ \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 $$x$$ and $$s$$ space. This process yields identities that relate integrals of Green's functions and sums of the same. For example, if $$L = \left(\partial_x + \gamma\right) \left(\partial_x + \alpha\right)^2$$ then one form for its Green's function is: $$ \begin{align} G(x, s) & = \frac{1}{\left(\gamma - \alpha\right)^2}\Theta(x-s) e^{-\gamma(x-s)} - \frac{1}{\left(\gamma - \alpha\right)^2}\Theta(x-s) e^{-\alpha(x-s)} + \frac{1}{\gamma-\alpha} \Theta(x - s) \left(x - s\right) e^{-\alpha(x-s)} \\[1ex] & = \int \Theta(x - s_1) \left(x - s_1\right) e^{-\alpha(x-s_1)} \Theta(s_1 - s) e^{-\gamma (s_1 - s)} \, ds_1. \end{align} $$ While the example presented is tractable analytically, it illustrates a process that works when the integral is not trivial (for example, when $$\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 $ r = \sqrt{x^2 + y^2 + z^2}$, $ \rho = \sqrt{x^2 + y^2}$ , $ \Theta(t)$ is the Heaviside step function, $ J_\nu(z)$  is a Bessel function, $ I_\nu(z)$  is a modified Bessel function of the first kind, and $ K_\nu(z)$  is a modified Bessel function of the second kind. Where time ($f$) appears in the first column, the retarded (causal) Green's function is listed.

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), $$\int_V \nabla \cdot \mathbf A\, dV = \int_S \mathbf A \cdot d\hat\boldsymbol\sigma \,.$$

Let $$\mathbf A = \varphi\,\nabla\psi - \psi\,\nabla\varphi$$ and substitute into Gauss' law.

Compute $$\nabla\cdot\mathbf A$$ and apply the product rule for the ∇ operator, $$\begin{align} \nabla\cdot\mathbf A &= \nabla\cdot \left(\varphi\,\nabla\psi \;-\; \psi\,\nabla\varphi\right)\\ &= (\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{align}$$

Plugging this into the divergence theorem produces Green's theorem, $$\int_V \left(\varphi\,\nabla^2\psi-\psi\,\nabla^2\varphi\right) dV = \int_S \left(\varphi\,\nabla\psi-\psi\nabla\,\varphi\right) \cdot d\hat\boldsymbol\sigma.$$

Suppose that the linear differential operator $f$ is the Laplacian, ∇2, and that there is a Green's function $x$ for the Laplacian. The defining property of the Green's function still holds, $$L G(\mathbf{x},\mathbf{x}') = \nabla^2 G(\mathbf{x},\mathbf{x}') = \delta(\mathbf{x}-\mathbf{x}').$$

Let $$\psi=G$$ in Green's second identity, see Green's identities. Then, $$\int_V \left[ \varphi(\mathbf{x}') \delta(\mathbf{x}-\mathbf{x}') - G(\mathbf{x},\mathbf{x}') \, {\nabla'}^2\,\varphi(\mathbf{x}')\right] d^3\mathbf{x}' = \int_S \left[\varphi(\mathbf{x}')\,{\nabla'} G(\mathbf{x},\mathbf{x}') - G(\mathbf{x},\mathbf{x}') \, {\nabla'}\varphi(\mathbf{x}')\right] \cdot d\hat\boldsymbol\sigma'.$$

Using this expression, it is possible to solve Laplace's equation $L$ or Poisson's equation $∇^{2}φ(x) = 0$, subject to either Neumann or Dirichlet boundary conditions. In other words, we can solve for $∇^{2}φ(x) = −ρ(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 $$\int_V \varphi(\mathbf{x}') \, \delta(\mathbf{x}-\mathbf{x}') \, d^3\mathbf{x}'$$ reduces to simply $φ(x)$ due to the defining property of the Dirac delta function and we have $$\varphi(\mathbf{x}) = -\int_V G(\mathbf{x},\mathbf{x}') \, \rho(\mathbf{x}')\, d^3\mathbf{x}' + \int_S \left[\varphi(\mathbf{x}') \, \nabla' G(\mathbf{x},\mathbf{x}') - G(\mathbf{x},\mathbf{x}') \, \nabla'\varphi(\mathbf{x}')\right] \cdot d\hat\boldsymbol\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 $$\nabla\varphi(\mathbf{x}')\cdot d\hat\boldsymbol\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 $ρ(x)$ vanishes when either $t$ or $G$ 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, it might seem logical to choose Green's function so that its normal derivative vanishes on the bounding surface. However, application of Gauss's theorem to the differential equation defining the Green's function yields $$\int_S \nabla' G(\mathbf{x},\mathbf{x}') \cdot d\hat\boldsymbol\sigma' = \int_V \nabla'^2 G(\mathbf{x},\mathbf{x}') \, d^3\mathbf{x}' = \int_V \delta (\mathbf{x}-\mathbf{x}')\, d^3\mathbf{x}' = 1 \,,$$ meaning the normal derivative of G(x,x&prime;) cannot vanish on the surface, because it must integrate to 1 on the surface.

The simplest form the normal derivative can take is that of a constant, namely $G(x,x&prime;)$, where $1/S$ is the surface area of the surface. The surface term in the solution becomes $$\int_S \varphi(\mathbf{x}') \, \nabla' G(\mathbf{x},\mathbf{x}') \cdot d\hat\boldsymbol\sigma' = \langle\varphi\rangle_S $$ where $$\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 $$G(\mathbf{x},\mathbf{x}') = -\frac{1}{4 \pi \left|\mathbf{x}-\mathbf{x}'\right|}.$$

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

Example
Find the Green function for the following problem, whose Green's function number is X11: $$\begin{align} Lu & = u'' + k^2 u = f(x) \\ u(0)& = 0, \quad u\left(\tfrac{\pi}{2k}\right) = 0. \end{align}$$

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

If $$x\ne s$$, then the delta function gives zero, and the general solution is $$G(x,s)=c_1 \cos kx+c_2 \sin kx.$$

For $$x < s$$, the boundary condition at $$x=0$$ implies $$G(0,s)=c_1 \cdot 1+c_2 \cdot 0=0, \quad c_1 = 0$$ if $$x < s$$ and $$s \ne \tfrac{\pi}{2k}$$.

For $$x>s$$, the boundary condition at $$x = \tfrac{\pi}{2k}$$ implies $$G\left(\tfrac{\pi}{2k},s\right) = c_3 \cdot 0+c_4 \cdot 1=0, \quad c_4 = 0 $$

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

To summarize the results thus far: $$G(x,s) = \begin{cases} c_2 \sin kx, & \text{for } x < s, \\[0.4ex] c_3 \cos kx, & \text{for } s < x. \end{cases}$$

Second step: The next task is to determine $$c_2$$ and $c_3$.

Ensuring continuity in the Green's function at $$x = s$$ implies $$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., $L$) from $$x=s-\varepsilon$$ to $$x=s+\varepsilon$$ and taking the limit as $$\varepsilon$$ goes to zero. Note that we only integrate the second derivative as the remaining term will be continuous by construction. $$c_3 \cdot (-k \sin ks)-c_2 \cdot (k \cos ks)=1$$

The two (dis)continuity equations can be solved for $$c_2$$ and $$c_3$$ to obtain $$c_2 = -\frac{\cos ks}{k} \quad;\quad c_3 = -\frac{\sin ks}{k}$$

So Green's function for this problem is: $$G(x,s) = \begin{cases} -\frac{\cos ks}{k} \sin kx, & x<s, \\ -\frac{\sin ks}{k} \cos kx, & s<x. \end{cases}$$

Further examples
G(x, y, x_0, y_0) = \dfrac{1}{2\pi} &\left[\ln\sqrt{\left(x-x_0\right)^2+\left(y-y_0\right)^2} - \ln\sqrt{\left(x+x_0\right)^2 + \left(y-y_0\right)^2} \right. \\[5pt] &\left. {} + \ln\sqrt{\left(x-x_0\right)^2 + \left(y+y_0\right)^2}- \ln\sqrt{\left(x+x_0\right)^2 + \left(y+y_0\right)^2} \, \right]. \end{align}$$ f(x) = \sum_{m=0}^{n-1} \frac{(x - a)^m}{m!} \left[ \frac{d^m f}{d x^m} \right]_{x=a} + \int_a^b \left[\frac{(x - s)^{n-1}}{(n-1)!} \Theta(x - s)\right] \left[ \frac{d^n f}{dx^n} \right]_{x=s} ds \,.$$ The Green's function in the above equation, $$G(x,s) = \frac{(x - s)^{n-1}}{(n-1)!} \Theta(x - s)$$, is not unique. How is the equation modified if $$g(x-s)$$ is added to $$G(x,s)$$, where $$g(x)$$ satisfies $\frac{d^n g}{d x^n} = 0$ for all $$x \in [a, b]$$ (for example, $$g(x) = -x/2$$ with $n=2$)? Also, compare the above equation to the form of a Taylor series centered at $$x = a$$.
 * Let $S$ and let the subset be all of $n = 1$. Let $G$ be $\frac{d}{dx}$ . Then, the Heaviside step function $R$ is a Green's function of $Θ(x − x_{0})$ at $L$.
 * Let $x_{0}$ and let the subset be the quarter-plane $n = 2$ and $x$ be the Laplacian. Also, assume a Dirichlet boundary condition is imposed at ${(x, y) : x, y ≥ 0}$ and a Neumann boundary condition is imposed at $x = 0$. Then the X10Y20 Green's function is $$ \begin{align}
 * Let $$ a < x < b $$, and all three are elements of the real numbers. Then, for any function $$f:\mathbb{R}\to\mathbb{R}$$ with an $$n$$-th derivative that is integrable over the interval $$[a, b]$$: $$