Professional Documents
Culture Documents
Green Functions: Formal Developments
Green Functions: Formal Developments
Green Functions: Formal Developments
1 Green’s Theorem
To develop a general method for solving the Poisson equation, we need a purely mathematical result: Green’s
theorem.
First, we establish a simple vector calculus identity,
∇ · (f ∇g) = ∇f · ∇g + f ∇2 g
This relation is not hard to prove. We can just expand the del operator in Cartesian coordinates,
∂ ∂ ∂
∇ = î + ĵ + k̂
∂x ∂y ∂z
Substituting in the left hand side,
∂ ∂ ∂ ∂g ∂g ∂g
∇ · (f ∇g) = î + ĵ + k̂ · f î + ĵ + k̂
∂x ∂y ∂z ∂x ∂y ∂z
∂ ∂g ∂g ∂g ∂ ∂g ∂g ∂g
= î · f î + ĵ + k̂ + ĵ · f î + ĵ + k̂
∂x ∂x ∂y ∂z ∂y ∂x ∂y ∂z
∂ ∂g ∂g ∂g
+k̂ · f î + ĵ + k̂
∂z ∂x ∂y ∂z
It is easiest to take the dot products first. Since î, ĵ, k̂ are independent of position (unlike, say, r̂,θ̂, φ̂), we
can bring them inside the derivative. Then we have
∂ ∂g ∂g ∂g ∂ ∂g ∂g ∂g
∇ · (f ∇g) = î · f î + ĵ + k̂ + ĵ · f î + ĵ + k̂
∂x ∂x ∂y ∂z ∂y ∂x ∂y ∂z
∂ ∂g ∂g ∂g
+k̂ · f î + ĵ + k̂
∂z ∂x ∂y ∂z
∂ ∂g ∂ ∂g ∂ ∂g
= f + f + f
∂x ∂x ∂y ∂y ∂z ∂z
∂2g ∂2g ∂2g
∂f ∂g ∂f ∂g ∂f ∂g
= +f 2 + +f 2 + +f 2
∂x ∂x ∂x ∂y ∂y ∂y ∂z ∂z ∂z
2
∂2g ∂2g
∂f ∂g ∂f ∂g ∂f ∂g ∂ g
= + + +f + 2+ 2
∂x ∂x ∂y ∂y ∂z ∂z ∂x2 ∂y ∂z
2 2
∂2g
∂f ∂g ∂f ∂g ∂f ∂g ∂ g ∂ g
= + + +f + +
∂x ∂x ∂y ∂y ∂z ∂z ∂x2 ∂y 2 ∂z 2
= ∇f · ∇g + f ∇2 g
1
Since the dot product, gradient and Laplacian are vector operators which are independent of coordinate
system,
∇ · (f ∇g) = ∇f · ∇g + f ∇2 g
must now hold in any coordinates, not just Cartesian.
This calculation is shorter once you get used to index notation. If we set
êi ≡ î, ĵ, k̂
with i = 1, 2, 3 telling us which basis vector we mean, not the components. Thus, for any orthonormal basis,
we may write êi · êj = δ ij . With this, we may write the gradient operator as a sum,
3
X ∂
∇= êi
i=1
∂xi
This is even shorter with the Einstein summation convention: whenever we see a pair of indices, we assume
there is a sum. Then we have, simply
∂
∇ = êi i
∂x
We just have to be sure to use a different letter for a different sum. Finally, let the partial derivative be
∂ i
abbreviated to ∂i ≡ ∂x i , making the gradient just ∇ = ê ∂i .
= êi · êk ∂i (f ∂k g)
= δ ik (∂i f ∂k g + f ∂i ∂k g)
= δ ik ∂i f ∂k g + f δ ik ∂i ∂k g
= ∇f · ∇g + f ∇2 g
Compare these five lines to the first version. This is why you should learn index notation.
Now, to prove Green’s first identity, we begin with the divergence theorem:
ˆ ˛
∇ · A d3 x = A·n d2 x
V S
This holds for any vector field A. Let the vector field A have the particular form
A = f ∇g
∇ · (f ∇g) d3 x = (f ∇g) ·n d2 x
ˆ V
˛ S
2
3
∇f · ∇g + f ∇ g d x = (f ∇g) ·n d2 x
V S
where we used the relation derived above. This is Green’s first identity.
Suppose we pick some f and g. Then we know that
ˆ ˛
∇f · ∇g + f ∇2 g d3 x = (f ∇g) ·n d2 x
V S
2
However, since f and g are arbitrary, we may also write
ˆ ˛
2
3
∇g · ∇f + g∇ f d x = (g∇f ) ·n d2 x
V S
for the same f and g. Taking the difference of these two expressions (and using the symmetry of the dot
product ∇g · ∇f = ∇f · ∇g), we have
ˆ ˛
f ∇2 g − g∇2 f d3 x = (f ∇g − g∇f ) ·n d2 x
V S
Since n is the outward unit normal to the surface S bounding the volume V
∂g
n·∇g =
∂n
is just the derivative of g normal to S. We can therefore simplify the notation a little,
ˆ ˛
∂g ∂f
f ∇2 g − g∇2 f d3 x = d2 x
f −g
V S ∂n ∂n
in charge-free space, where the integral is over any sphere centered on the point P.
Start wtih Green’s theorem
ˆ ˛
∂g ∂f
f ∇2 g − g∇2 f d3 x = d2 x
f −g
V S ∂n ∂n
∇2 Φ = 0
3
Finally, the last term may be evaluated using Gauss’s law:
˛ ˛
1 ∂Φ 2 1
d x = − E · r̂d2 x
r ∂n r
S S
˛
1
= − E · r̂d2 x
R S
Qtot
= −
0 R
= 0
Putting this all together, and carrying out the integral over the delta function,
ˆ ˛
∂ 1 1 ∂Φ
−4π δ 3 (r) Φd3 x = Φ − d2 x
V S ∂n r r ∂n
˛
1
−4πΦ (0) = − 2 Φd2 x
r
S
˛
1
Φ (0) = Φd2 x
4πr2 S
The right hand side is the average of the potential over the sphere, and the left side is the potential at the
center.
Since P is arbitrary, Φ (x) = 0. The unique solution to the Laplace equation over all space, with Φ vanishing
at infinity, is zero.
4
1.4 Uniqueness of solutions to the Laplace equation with given boundary con-
ditions
Now suppose we have the Laplace equation for a region V with specified boundary conditions Φ (S) on the
boundary surface S of V , possibly with multiple pieces. We prove uniqueness of the solution by finding a
contradiction. Assume that f and g both satisfy the Laplace equation,
∇2 f = 0
∇2 g = 0
and satisfying the given boundary conditions, where the Laplacian is with respect to the unprimed coordi-
nates. The Green function, G (x, x0 ), is the solution of the Poisson equation for a unit point charge q0 = 1
at x0 . It is continuous in both x and x0 , and symmetric, G (x, x0 ) = G (x0 , x).
The simplest example of a Green function is for an isolated point charge, with the potential vanishing at
infinity. We have already shown that
1
∇2 = −4πδ 3 (x − x0 )
|x − x0 |
we immediately have
1
G (x, x0 ) = + F (x)
|x − x0 |
where F satisfies the Laplace equation, ∇2 F = 0. By uniqueness, the function F must be determined by the
boundary conditions. In the present case, we ask for G (x, x0 ) to vanish at x → ∞. Since the first term in
G (x, x0 ) already satisfies this, we require the same condition for F :
∇2 F = 0
F (∞) = 0
The arguments of the preceeding section show that F (x) = 0 is the unique solution to this, so the Green
function for an isolated point charge is G (x, x0 ) = |x−x
1
0| .
As described in a preceding Note, If we have a localized distribution of charge, ρ (x0 ), in empty space,
the potential vanishes at infinity and we can use this Green function to find the potential everywhere by
superposition. Each infinitesimal charge
1 1
dq = ρ (x0 ) d3 x0
0 0
5
1 1 0 3 0
gives a contribution to the potential of dΦ (x) = 4π0 |x−x0 | ρ (x ) d x , so integrating,
ˆ
1 ρ (x0 ) 3 0
Φ (x) = d x
0 |x − x0 |
The procedure is idential for more general Green functions. Given G (x, x0 ) satisfying eq.(1) and the
given boundary conditions, a full solution is found by taking a superposition. Thus, setting
ˆ
1
Φ (x) = G (x, x0 ) ρ (x0 ) d3 x0
4πε0
we see that
ˆ
1
2
∇ Φ (x) = ∇ 2
G (x, x0 ) ρ (x0 ) d3 x0
4π0
ˆ
1
∇2 G (x, x0 ) ρ (x0 ) d3 x0
=
4π0
ˆ
1
= − δ 3 (x − x0 ) ρ (x0 ) d3 x0
0
1
= − ρ (x)
0
and we have a solution.
f = Φ (x0 )
g = G (x, x0 )
where
ρ (x)
∇2 Φ (x) = −
0
2
∇0 G (x, x0 ) = −4πδ 3 (x − x0 )
we find
ˆ ˛
∂G (x, x0 ) ∂Φ (x0 )
Φ (x0 ) ∇2 G (x, x0 ) − G (x, x0 ) ∇2 Φ (x0 ) d3 x Φ (x0 ) − G (x, x0 ) d2 x
=
V S ∂n ∂n
ˆ ˛
ρ (x0 ) ∂G (x, x0 ) 0
0 ∂Φ (x )
−4πΦ (x0 ) δ 3 (x − x0 ) + G (x, x0 ) d3 x0 = Φ (x0 ) 0
− G (x, x ) 0
d2 x0
V 0 S ∂n ∂n
ˆ ˛
∂G (x, x0 ) 0
1 0 ∂Φ (x )
−4πΦ (x) + G (x, x0 ) ρ (x0 ) d3 x0 = Φ (x0 ) 0
− G (x, x ) 0
d2 x0
0 V S ∂n ∂n
6
Solving for the potential we have
ˆ ˛ 0 0
1 0 0 3 0 0 ∂G (x, x ) 0 ∂Φ (x )
Φ (x) = G (x, x ) ρ (x ) d x − Φ (x ) − G (x, x ) d2 x0
4π0 V S ∂n0 ∂n0
∂G(x,x0 )
As we show below, we cannot specify both G (x, x0 ) and its normal derivative ∂n0 on the boundary.
One or the other of these is sufficient to uniquely determine G (x, x0 ). Therefore, we get two extreme cases,
called Dirichlet and Neuman boundary conditions. Combinations are also possible.
G (x, x0 )|x0 ∈S = 0
Now, since G (x, x0 ) is constant on S, ∇G (x, x0 ) is in the normal direction so the first integral is
ˆ ˆ 2
∂ G
∇ · ∇G (x, x0 ) dn0 = (x, x0 ) dn0
∂n02
∂G
= (x, x0 )
∂n0
and we have
∂G
(x, x0 ) = −4πδ 2 (x − x0 )
∂n0
Substituting into our expression for the potential,
∂G (x, x0 ) 2 0
˛
1
Φ (x)|x∈S = − Φ (x0 ) d x
4π S ∂n0 x∈S
˛
0 2 0 2 0
= Φ (x ) δ (x − x ) d x
S x∈S
= Φ (x)|x∈S
7
2.1.2 Neumann boundary conditions
For Neumann boundary conditions, we require a condition on the derivative, ∂G
∂n0 (x, x0 ). If we integrate
eq.(1) over our volume and use the divergence theorem,
ˆ ˆ
∇ G (x, x ) d x = −4π δ 3 (x − x0 ) d3 x0
2 0 3 0
ˆ
∇ · ∇G (x, x0 ) d3 x0 = −4π
ˆ
n̂ · ∇G (x, x0 ) d3 x0 = −4π
so that the integral of the derivative over the boundary cannot vanish,
˛
∂G (x, x0 ) 2 0
d x = −4π
S ∂n0
∂G
Therefore, instead of choosing ∂n0 to vanish on the boundary, we choose it constant
∂G 0
4π
0
(x, x ) =−
∂n
x∈S S
where S is the area of the boundary. This is sufficient to uniquely determine G.
With the derivative fixed as the boundary condition, the potential is given by
ˆ ˛ ˛
1 ∂Φ (x0 ) 2 0 4π
Φ (x) = G (x, x0 ) ρ (x0 ) d3 x0 + G (x, x0 ) 0
d x + Φ (x0 ) d2 x0 (3)
4π0 V S ∂n S S
where the additional term is just the average of the potential over the boundary. All terms on the right are
now specified and we have found a solution for the potential.
U = Φ2 − Φ1
must satisfy the Laplace equation since
∇2 U = ∇2 (Φ2 − Φ1 )
= ∇2 Φ2 − ∇2 Φ1
1 1
= ρ− ρ
0 0
= 0
8
and similarly, will have vanishing boundary values, i.e., either
U (x)|x∈S = 0
or
∂U (x)
=0
∂n x∈S
Now use Green’s first identity with f = g = U :
ˆ ˛
∂g 2
∇f · ∇g + f ∇2 g d3 x =
f nd x
S ∂n
ˆ V
˛
∂U 2
∇U · ∇U + U ∇2 U d3 x =
U d x
V S ∂n
The boundary condition for U makes the right side vanish, which together with ∇2 U = 0 reduces the identity
to
ˆ ˆ
2
(∇U · ∇U ) d3 x = |∇U | d3 x = 0
V V
This implies ∇U = 0, so that U = c. Only the value of this constant remains unspecified, and the field,
E = −∇Φ is unique.
Since the theorem applies to U itself, U is uniquely determined by either U = 0 (Dirichlet boundary
conditions) or ∂U
∂n = 0 (Neumann boundary conditions) on the boundary. It would overspecify the solution
to try to impose conditions on both U and its derivative. It is possible, however, to specify U = 0 on one
part of S, and ∂U
∂n = 0 on the remaining part, as long as the right side vanishes. The same applies to the
Green function.
We conclude that specifying the Poisson equation for the potential together with Dirichlet or Neumann
boundary conditions, determines the electic field uniquely.
This satisfies
1 3
∇2 Φ (x) = − qδ (x − x0 )
0
so that rescaling,
0
1 a/r
∇2 − = −4πδ 3 (x − x0 )
|x − x0 | x − a0 2 x0
r
9
and we have the Green function.
Now, to express this in spherical coordinates,
x = (r, θ, ϕ)
0
x = (r0 , θ0 , ϕ0 )
a2 0
For the image charge we have r 02 r < r, so
2 l
∞ X
l a
0
a/r a X 4π r0
= Y ∗ (θ0 , ϕ0 ) Ylm (θ, ϕ)
2l + 1 rl+1 lm
a 2
r 0
x − x0
r0 l=0 m=−l
∞ X
l
X 4π a2l+1
= Y ∗ (θ0 , ϕ0 ) Ylm (θ, ϕ)
2l + 1 rl+1 r0l+1 lm
l=0 m=−l
Substituting, we have the Green function for boundary conditions on a sphere and at infinity:
∞ X
l l
a2l+1
X 4π r<
G (x, x0 ) = l+1
− l+1 0l+1 ∗
Ylm (θ0 , ϕ0 ) Ylm (θ, ϕ)
2l + 1 r> r r
l=0 m=−l
Now, so solve
1
∇2 Φ (x) = −ρ (x)
0
ΦS (x) = f (θ, ϕ)
ˆ ˆπ ˆ2π
∂G (r, θ, ϕ; a, θ0 , ϕ0 )
1 0 01 3 0 0 0
Φ (x) = G (x, x ) ρ (x ) d x − f (θ , ϕ ) − a2 sin θ0 dθ0 dϕ0
4π0 V 4π ∂r0
0 0
The minus sign in the derivative of the Green fucntion is because we need the outward normal from the
(exterior) region of interest. Because on the boundary sphere, r0 = a < r, this derivative has the form
∞
" l
#
∂G (r, θ, ϕ; a, θ0 , ϕ0 )
l
a2l+1
∂ X X 4π r< ∗ 0 0
= − l+1 0l+1 Ylm (θ , ϕ ) Ylm (θ, ϕ)
∂r0 ∂r0 2l + 1 r> l+1 r r
l=0 m=−l r 0 =a
"∞ l #
r0l a2l+1
X X 4π ∂
∗
= 0 l+1
− l+1 0l+1 Ylm (θ0 , ϕ0 ) Ylm (θ, ϕ)
2l + 1 ∂r r r r
l=0 m=−l r 0 =a
∞ l
lal−1 (l + 1) a2l+1
X X 4π ∗
= + Ylm (θ0 , ϕ0 ) Ylm (θ, ϕ)
2l + 1 rl+1 rl+1 al+2
l=0 m=−l
∞ X
l
X al−1 ∗ 0 0
= 4π Y (θ , ϕ ) Ylm (θ, ϕ)
rl+1 lm
l=0 m=−l
10
4.1 Example
Let the charge density vanish and the potential at r = a be given by
ΦS (x) = A cos θ
ˆπ ˆ2π " ∞ X
l
#
A 0
X al−1 ∗ 0 0
Φ (x) = − cos θ −4π Y (θ , ϕ ) Ylm (θ, ϕ) a2 sin θ0 dθ0 dϕ0
4π rl+1 lm
0 0 l=0 m=−l
∞ X
l ˆπ ˆ2π
X al−1 ∗
= A Ylm (θ, ϕ) Ylm (θ0 , ϕ0 ) cos θ0 a2 sin θ0 dθ0 dϕ0
rl+1
l=0 m=−l 0 0
11