1 Separation of Variables in Spherical Coordinates
1 Separation of Variables in Spherical Coordinates
We will make important use of the separation of variables in spherical coordinates, because the separation
ends up giving us a series in terms of powers of r. For an isolated system, this means the expansion gives a
way to approximate the field far from the source.
∂2V
1 ∂ 2 ∂V 1 ∂ ∂V 1
r + sin θ + =0
r2 ∂r ∂r r2 sin θ ∂θ ∂θ r2 sin2 θ ∂ϕ2
We apply the same steps as we did for Cartesian coordinates, but the difference in the form of the Laplace
equation raises some new issues.
1 d2 Φ
1 d 2 dR 1 1 d dΘ 1
r + 2 sin θ + 2 =0
r2 R dr dr r sin θ Θ dθ dθ r2 sin θ Φ dϕ2
r2 sin2 θ d 1 d2 Φ
2 dR sin θ d dΘ
2
r + sin θ + =0
r R dr dr Θ dθ dθ Φ dϕ2
and even now only the Φ term has completely separated.
Take the partial derivative with respect to ϕ. Since the first two terms depend only on r and θ, this
shows that
1 d2 Φ
∂
= 0
∂ϕ Φ dϕ2
and therefore
1 d2 Φ
= −m2
Φ dϕ2
1
Here we usually choose the constant to be negative because solutions involving the full range of ϕ from 0 to
2π must be periodic. Lesser ranges may have either sign. The Φ equation is therefore
d2 Φ
+ m2 Φ = 0
dϕ2
The remainder of the Laplace equation is now
sin2 θ d
2 dR sin θ d dΘ
r + sin θ − m2 = 0
R dr dr Θ dθ dθ
m2
1 d 2 dR 1 1 d dΘ
r + sin θ − =0
R dr dr Θ sin θ dθ dθ sin2 θ
Differentiating with respect to r and θ respectively show that
1 d 2 dR
r = a
R dr dr
m2
1 1 d dΘ
sin θ − = −a
Θ sin θ dθ dθ sin2 θ
where the two constants must add to zero.
Φ = C sin mϕ + D cos mϕ
or more commonly
Φ (ϕ) = Am eimϕ
for positive and negative m.
Rewriting the R equation as
d dR
r2 − aR = 0
dr dr
Notice that rescaling r leaves this equation unchanged. This is a clue that powers of r may work. Substituting
a power-law solution, R (r) = rl ,
l
!
d 2d r
r − arl = 0
dr dr
d l+1
l r − arl = 0
dr
(l (l + 1) − a) rl = 0
and with a = l (l + 1) we have a solution for every number l. Notice that there are two values of l that give
the same value for asince the quadratic equation,
l2 + l − a = 0
2
has two solutions. Let l have some value k, so that a = k (k + 1). Then the value l = − (k + 1) gives the
same value, a = (− (k + 1)) (− (k + 1) + 1) = k (k + 1).
Setting a = l (l + 1), we have only the θ equation remaining,
m2
1 d dΘ
sin θ + l (l + 1) − Θ = 0 (1)
sin θ dθ dθ sin2 θ
The solutions to the θ equation with m = 0 are called the Legendre polynomials. Solutions with general m
may be found by differentiating the Legendre polynomials, giving the associated Legendre polynomials. We
consider only the m = 0 case. To start, we define a new variable,
x = cos θ
Then
d dx d
=
dθ dθ dx
d
= − sin θ
dx
and therefore
d 1 d
= −
dx sin θ dθ
d
sin2 θ dΘ
Thus, with m = 0, and replacing the derivatives, eq.(1) becomes dx dx + l (l + 1) Θ = 0. Replacing
sin2 θ = 1 − cos2 θ = 1 − x2 , we have the Legendre equation,
d dΘ
1 − x2 + l (l + 1) Θ = 0 (2)
dx dx
The solutions are polynomials, Pl (x) = Pl (cos θ).
For example, suppose Θ takes the form
P2 (x) = a0 + a1 x
Then substituting,
d 2 dP2 (x)
0 = 1−x + l (l + 1) P2 (x)
dx dx
d 2 d (a0 + a1 x)
= 1−x + l (l + 1) (a0 + a1 x)
dx dx
d
a1 1 − x2 + l (l + 1) (a0 + a1 x)
=
dx
= −2a1 x + l (l + 1) a0 + l (l + 1) a1 x
= l (l + 1) a0 + (l (l + 1) a1 − 2a1 ) x
l (l + 1) a0 = 0
l (l + 1) a1 − 2a1 = 0
3
or
P1 = a1 x, l = −2 or 1
The remaining constants are chosen so that Pl (1) = 1. The presence of two solutions for l for the same
Legendre polynomial means that for each Pl there will be two powers of r. The solutions will be of the form
1 1
V (r, θ) = r0 + P0 (cos θ) + r + 2 P1 (cos θ) + · · ·
r r
where
P0 (cos θ) = 1
P1 (cos θ) = cos θ
Like the harmonic functions, there are many relationships among the Legendre polynomials. The most
important for us now is the orthogonality relationship,
π
ˆ2
2
Pl (cos θ) Pl0 (cos θ) sin θdθ = δll0
2l + 1
0
2
Notice that the right side may be written as either 2l+1 δll0 or as 2l02+1 δll0 since it is only nonzero when l = l0 .
We may also write this in terms of x = cos θ. With dx = − sin θdθ, we have
ˆ1
2
Pl (x) Pl0 (x) dx = δll0
2l + 1
−1
When m is nonzero the solutions are called associated Legendre polynomials, Plm (x). The range of m is
from −l to +l.
We will only consider m = 0 cases, which apply to problems with azimuthal symmetry. Setting Al0 = Al
and Blm = Bl ,
∞
X Bl
V (r, θ) = Al rl + l+1 Pl (cos θ) (3)
r
l=0
The constants Alm and Blm are uniquely determined by the boundary conditions.
4
We require the potential to be nonsingular everywhere within the sphere.
To find the potential, we may immediately write
∞
X
l Bl
V (r, θ) = Al r + l+1 Pl (cos θ)
r
l=0
and impose the boundary conditions. First, notice that finiteness everywhere means that we cannot have
the rB
l+1 terms because they diverge at r = 0. Therefore, we set Bl = 0 for all l. The remaining condition at
l
r = 0 is
π ∞
π X
V0 Θ −θ −Θ θ− = Al Rl Pl (cos θ)
2 2
l=0
We multiply this by Pk (cos θ) and integrate from 0 to π,
ˆπ π ∞ ˆπ
π X
l
V0 Θ −θ −Θ θ− Pk (cos θ) sin θdθ = Al R Pl (cos θ) Pk (cos θ) sin θdθ
2 2
0 l=0 0
π
ˆ2 ˆπ ∞
X 2Al Rl
V0 Pk (cos θ) sin θdθ − V0 Pk (cos θ) sin θdθ = δkl
2l + 1
0 π l=0
2
ˆ1 ˆ0
2Ak Rk
V0 Pk (x) dx − V0 Pk (x) dx =
2k + 1
0 −1
We know that the odd Legendre polynomials are polynomials in odd powers of x, and the even are even.
Therefore,
Pk (−x) = Pk (x) k even
Pk (−x) = −Pk (x) k odd
and the difference we need vanishes for all even polynomials. For the odd cases, the left side becomes
ˆ1 ˆ1
V0 (Pk (x) dx − Pk (−x)) dx = 2V0 Pk (x) dxdx
0 0
5
so the integral we need becomes
ˆ1 1
Pk+1 (x) − Pk−1 (x)
2V0 Pk (x) dx = 2V0
2k + 1
0
0
2V0
= [(Pk+1 (1) − Pk−1 (1)) − (Pk+1 (0) − Pk−1 (0))]
2k + 1
2V0
= − (Pk+1 (0) − Pk−1 (0))
2k + 1
since Pk (1) = 1 for all k. This still requires some work to determine the value of Legendre polynomials at
x = 0. For now we just leave the answer in terms of these values, so for all odd k,
2V0 2Ak Rk
− (Pk+1 (0) − Pk−1 (0)) =
2k + 1 2k + 1
V0
Ak = (Pk−1 (0) − Pk+1 (0))
Rk
The potential at all points inside the sphere is therefore,
∞
X rl
V (r, θ) = V0 (Pl−1 (0) − Pl+1 (0)) Pl (cos θ)
Rl
l=0
V (r = R, θ, ϕ) = V0 cos2 θ
Because the left hand side is a simple, low order polynomial, it is easiest to write the left side in Legendre
polynomials. We only need polynomials up to order x2 and only even ones. The two relevant Legendre
polynomials are therefore
P0 (x) = 1
1
3x2 − 1
P2 (x) =
2
6
Solving for x2 ,
2 1
x2 = P2 (x) +
3 3
2 1
= P2 (x) + P0 (x)
3 3
The boundary condition therefore requires
∞
2V0 V0 X
P2 (x) + P0 (x) = Al Rl Pl (x)
3 3
l=0
so that
B0 V0
=
R 3
B2 2V0
=
R3 3
and the potential becomes
∞
X Bl
V (r, θ) = Pl (x)
rl+1
l=0
B0 B2
= P0 (x) + 3 P2 (x)
r r
R2
V0 R
1 + 2 3 cos2 θ − 1
=
3r r
Notice that the interior and exterior solutions agree at r = R.
7
Inside:
Since we have spherical boundary conditions, it is easiest to use the spherical separation, and since the
problem has azimuthal symmetry, we may use the solution to the Laplace equation in the form
∞
X
l Bl
V (r, θ) = Al r + l+1 Pl (cos θ)
r
l=0
V (0) = f inite
V (R, θ, ϕ) = V0 sin4 θ
The first of these conditions shows that Bl = 0 for all l. The outer boundary condition becomes
∞
X
V0 sin4 θ = Al Rl Pl (x)
l=0
we should be able to write the potential on the sphere in terms of Legendre polynomials of even order less
than or equal to x4 . Using higher order polynomials would introduce undesired higher powers of x. The
three relevant polynomials are:
P0 (x) = 1
1
3x2 − 1
P2 (x) =
2
1
35x4 − 30x2 + 3
P4 (x) =
8
Rearranging and combining to produce x4 − 2x2 + 1, we start with
1
x4 8P4 (x) + 30x2 − 3
=
35
1
x2 = (2P2 (x) + 1)
3
1
x4 − 2x2 + 1 8P4 (x) + 30x2 − 3 − 2x2 + 1
=
35
8 30 3
= P4 (x) + − 2 x2 + 1 −
35 35 35
8 6 14 32
= P4 (x) + − x2 +
35 7 7 35
8 8 1 32
= P4 (x) − (2P2 (x) + 1) +
35 7 3 35
8 16 8 32
= P4 (x) − P2 (x) − +
35 21 21 35
8
8 16 8 4 1
= P4 (x) − P2 (x) + −
35 21 7 5 3
8 16 8 7
= P4 (x) − P2 (x) +
35 21 7 15
8 16 8
= P4 (x) − P2 (x) + P0 (x)
35 21 15
Therefore, we must solve
X∞
8 16 8
V0 P4 (x) − P2 (x) + P0 (x) = Al Rl Pl (x)
35 21 15
l=0
9
Aside: Verify Theorem 3.1.4 If we integrate the potential over the surface of the sphere (using Wolfram
integrator),
ˆπ ˆ2π ˆπ
4
sin θdθ dϕV0 sin θ = 2πV0 sin5 θdθ
0 0 0
π
5 5 1
cos3 θ −
= 2πV0− cos θ + cos 5θ
8 48 80 0
5 5 1 5 5 1
= 2πV0 − + − − + −
8 48 80 8 48 80
5 5 1 5 5 1
= 2πV0 − + + − +
8 48 80 8 48 80
5 5 1
= 2πV0 − +
4 24 40
150 25 3
= 2πV0 − +
120 120 120
128
= 2πV0
120
32π
= V0
15
so that the potential at the center of the sphere is
ˆπ ˆ2π
8 1
Vcenter = V0 = V (R, θ, ϕ) R2 sin θdθdϕ
15 4πR2
0 0
Outside:
The exterior solution is similar, but this time the boundary conditions are
V (∞) = 0
V (R, θ, ϕ) = V0 sin4 θ
which means that we must have Al = 0 for all l. The second condition now reads
X ∞
8 16 8 Bl
V0 P4 (x) − P2 (x) + P0 (x) = Pl (x)
35 21 15 Rl+1
l=0
Bl
so we need only replace Al Rl of the interior solution by Rl+1
. This gives
2R3 R5
R
V (r, θ) = 8V0 − 3
P2 (cos θ) + P4 (cos θ)
15r 21r 35r5
10
and construct the potential everywhere. We have found previously that the potential on the z-axis above a
circular disk of radius R lying in the xy-plane is
σ p 2
V (z) = z + R2 − z
20
Since we have axial symmetry, the full solution
∞
X
l Bl
V (r, θ) = Al r + l+1 Pl (cos θ)
r
l=0
11
R2
Setting x = r2 ,the right side of our equality therefore becomes
∞ ∞
! !
k
1 R2 X (−1) (2k − 3)! R2k
σ X
l Bl
r 1+ − −r = Al r + l+1
20 2 r2 22k−1 (k − 1)! r2k r
k=2 l=0
∞ ∞
!
k
σ R2 X (−1) (2k − 3)! R2k
X Bl
− = Al rl + l+1
0 4r 22k (k − 1)! r2k−1 r
k=2 l=0
This means that Al = 0 for all l, and for the Bl we match term by term to find:
σR2
B0 =
40
∞ k ∞
σ X (−1) (2k − 3)! R2k X Bl
− =
0 22k (k − 1)! r2k−1 rl+1
k=2 l=1
Note that we have only odd powers of r on the left, so only even l will occur on the right. Let l = 2k − 2 on
the right. Then for all k > 1
∞ k ∞
σ X (−1) (2k − 3)! R2k X B2k−2
− =
0 22k (k − 1)! r2k−1 r2k−1
k=2 k=2
k
σ (−1) (2k − 3)! 2k
− R = B2k−2
0 22k (k − 1)!
All odd Bl vanish. The potential everywhere for r > R (including off axis!) is therefore
∞ k 2k−1
σR2
σR X (−1) (2k − 3)! R
V (r, θ) = − P2k (cos θ)
40 r 0 22k (k − 1)! r
k=2
The solution for r < R may be found in a similar way, although it requires two subcases.
3 Exercises
3.1 Separation of variables
Separate the Laplace equation in cylindrical coordinates to find the differential equations for three functions.
Solve the equations for the ϕ and z directions. The radial equation gives Bessel functions.
Find the potential everywhere, both inside and outside the sphere.
12