Chapter 6
3D Linear Second-Order Equations
In this chapter, we delve into the study of linear problems, encompassing Poisson, heat,
and wave equations on Cartesian, cylindrical, and spherical domains. The cylindrical and
spherical domains are obtained through linear transformations from a cube in R
3
, enabling
us to employ the separation of variables technique for their solutions.
6.1 Cartesian coordinate
In this section, we initiate our exploration by solving Laplace's equations defined on cubes
(x
0
; x
1
) ×(y
0
; y
1
) ×(z
0
; z
1
) in R
3
. This foundational step will en a ble us to tackle linear heat,
wave, and Poisson equations with nonhomogeneous boundary conditions.
6.1.1 Laplace equatio n
Ler be the cube (x
0
; x
1
) × (y
0
; y
1
) × (z
0
; z
1
). We consider the Laplace equation u=0
subject to the boundary condition:
αu + β
@u
@n
= f ;
on the boundary bnd(Ω). For this problem, we assume that the boundary condition is
homogeneous on the sides x and y. By applying the separation o f variables method, we
assume u(x; y; z) can be represented as φ(x; y)Z(z), which transforms the Laplace equation
into:
(x;y)
φ
φ
= ¡
¡Z
Z
:
To satisfy this equality, we introduce a constant, denoted as ¡λ, which leads to the following
eigenvalue problem:
(
φ = ¡λφ on
αφ + β
@φ
@n
= 0 on bnd(Ω)
:
The differential equation for Z(z) becomes:
Z
00
¡λZ = 0:
1
Example 6.1. Let's solve the following problem on a unit cube (0; 1) ×(0; 1) ×(0; 1)
8
>
>
>
>
>
>
<
>
>
>
>
>
>
:
u = 0
u(x; y; 1) = xy
u(1; y; z) = sin( πz)
u = 0 other sides
:
According to the boundary condition, we split the problem as
u = 0
uj
1
=0
+
u = 0
uj
3
=0
:
The first problem has the solution of the form
u =
X
n;m=1
1
B
nm
sinh ( λ
nm
p
z)φ
nm
(x; y);
where λ
nm
= (n
2
+ m
2
)π
2
, and
B
nm
=
4
sinh( λ
nm
p
)
Z
0
1
Z
0
1
xy sin(x) sin(mπy) dydx =
4 cos( ) cos()
nmπ
2
sinh( λ
nm
p
)
:
For the s econd problem, we can write the solution as (why?)
u =
X
n=1
1
B
n
sinh
¡
n
2
+ 1
p
πx
sin(nπy) sin(πz);
where
B
n
=
2
sinh
¡
n
2
+ 1
p
π
Z
0
1
sin(y) dy =
2(1 ¡cos())
sinh
¡
n
2
+ 1
p
π
n π
;
and finally
u(x; y; z) =
X
n;m=1
1
4 cos() cos()
nmπ
2
sinh
¡
n
2
+ m
2
p
π
sinh
¡
n
2
+ m
2
p
πz
sin(nπx) sin(mπy) +
+
X
n=1
1
2(1 ¡cos())
nπ sinh
¡
n
2
+ 1
p
π
sinh
¡
n
2
+ 1
p
πx
sin(nπy) sin(πz):
Problem 6.1. Solve the following Laplace equation on := (0; π) ×(0; π) (0; π)
8
<
:
u = 0
u(x; π; z) = sin(x) sin(z)
u = 0 other sides
:
Problem 6.2. Solve the following problem on := (0; π) ×(0; π) (0; π)
8
<
:
u + 2@
x
u ¡u = 0
u(π; y; z) = sin(y) sin(z)
u = 0 other sides
2 3D Linear Second-Order Equations
6.1.2 Eigenfu nction of Laplacian i n Cartesian co ordinate
We solve the following problem on
(
φ = ¡λφ
φj
bnd(Ω)
=0
:
It is simply seen that λ > 0. In fact, we have
ZZZ
φφ = ¡λ
ZZZ
jφj
2;
and by the integration by parts formula,
ZZZ
φφ =
ZZ
bnd(Ω)
φ@
n
φ ¡
ZZZ
jrφj
2
;
that gives λ > 0. Now, By the separation φ = X(x) Y (y) Z(z), we reach the following
eigenvalue problems
X
00
= ¡µX
X(0) = X(a) = 0
;
Y
00
= ¡ηY
Y (0) = Y (b) = 0
;
Z
00
= ¡νZ
Z(0) = Z(c) = 0
;
and finally
φ
nmp
(x; y; z) = s in
a
x
sin
b
y
sin
pπ
c
z
;
with associated eigenvalues
λ
nmp
=
a
2
+
b
2
+
c
2
:
Example 6.2. Let us solve th e following Poisson equation on := (0; 1) ×(0; 1) ×(0; 1)
8
>
>
>
>
>
>
<
>
>
>
>
>
>
:
u = sin(πy) sin(2πz)
u(x; y; 1) = xy
u(1; y; z) = sin( πz)
u = 0 other sides
:
The soluti o n can be written as u = v + w, where v solves the Laplace equation with given
boundary conditions that we solved in the previous example. The equation for w reads
(
w =
1;2
(y; z)
wj
bnd(Ω)
=0
;
for
1;2
= sin(πy) sin(2πz). The solution can be written a s follows (why?)
w(x; y; z) =
"
X
n=1
1
A
n
sin(nπx)
#
1;2
(y; z)
By substituting the series into the equation, we o btain
X
n=1
1
¡(n
2
+ 5)π
2
A
n
sin(nπx)
1;2
(y; z) =
1;2
(y; z);
6.1 Cartesian coordinate 3
and thus
X
n=1
1
¡(n
2
+ 5)π
2
A
n
sin(nπx) = 1;
that results
A
n
=
¡2(1 ¡cos())
(n
2
+ 5)nπ
3
;
and finally,
w(x; y; z) =
"
X
n=1
1
¡2(1 ¡cos())
(n
2
+ 5)nπ
3
sin(nπx)
#
1;2
(y; z):
Remark 6.1. We could also assume the form of w as w(x; y; z) = W (x)
1;2
(y; z) for an
unknown function W . By this metho d, we obtain the following equation for W (x)
(
W
00
¡5π
2
W = 1
W (0) = W (1) = 0
;
that is solved for
W (x) =
1 ¡cosh( 5
p
π )
5π
2
sinh( 5
p
π )
sinh( 5
p
πx) +
cosh( 5
p
πx) ¡1
5π
2
;
and thus
w(x; y; z) =
1 ¡cosh( 5
p
π)
5π
2
sinh( 5
p
π )
sinh( 5
p
πx) +
1
5π
2
(cosh( 5
p
πx) ¡1)
1;2
(y; z):
This is the closed fo rm solution of the equation for w. It turns out tha t the closed form
solution is equivalent to the series solution obtained above.
Problem 6.3. Solve the following wave equation on := (0; π) ×(0; π) ×(0; π)
8
>
>
>
>
>
>
<
>
>
>
>
>
>
:
@
tt
u = u
uj
=0
u(0; x; y; z) = sin(x) sin(z)
@
t
u(0; x; y; z) = 0
Problem 6.4. Solve the following heat equation with Neumann boundary conditions on := (0;
π) ×(0; π) ×(0; π)
8
<
:
@
t
u = u
@
n
uj
=0
u(0; x; y; z) = cos(y) cos(2z)
6.2 Problems in cylindrica l domains
6.2.1 Cylindrical coordinate
A point p in spherical coordinate is represented by the triple (r; θ; z), where r 0 is the
distance of the projection of p in the (x; y)-plane to the origin, θ 2 [¡π; π] is the angle of
the projected point on the (x; y)-plane with respect to x-axis, and z is the height of point p.
4 3D Linear Second-Order Equations
y
x
z
p
z
θ
r
Let denote the fo llowing c yl inder
= f(r; θ; z); 0 r < a; ¡ π θ π; 0 < z < H g; (6.1)
with boundary bnd(Ω) = f(r; θ; 0)g[f(r; θ; H)g[f(a; θ; z)g. The Laplacian operator in the
cylindrical coordinate is
u =
(r;θ)
u + u
zz
= @
rr
u +
1
r
@
r
u +
1
r
2
@
θθ
u + @
zz
u: (6.2)
Note that the cube [0; a) ×[¡π; π] ×(0; H) is transformed to by the following tr ansforma-
tion
8
<
:
x = r cosθ
y = r sinθ
z = z
;
that allows us to use the separation of variables technique for solving lin ear equations on a
cylinder.
Problem 6.5. The unit vectors r^; θ
^
; z^ in the spherical coordinate are respectively
r^ =
dx
dr
;
dy
dr
;
dz
dr
= (cosθ; sinθ; 0)
θ
^
=
1
r
dx
dθ
;
dy
dθ
;
dz
dθ
= (¡sinθ; cosθ; 0)
z^=
dx
dz
;
dy
dz
;
dz
dz
= (0; 0; 1)
a) Show that the nabla operator r in the coordinate is
r= r^@
r
+
1
r
θ
^
@
θ
+ z^@
z
:
b) Find the form of through the relation = r·r.
6.2.2 Laplace equatio n : Type I
Consider the following problem
8
<
:
u = 0
u(a; θ; z) = 0
u(r; θ; 0) = f(r; θ); u(r; θ; H) = g(r; θ)
: (6.3)
6.2 Problems in cylindrical domains 5
Note that u is homogeneous on the side surface of and is equal to f unctions f ; g on the
bottom and upper caps respective ly . We relax this condition later and study the case u = h
on the side surface. By the separation of variable u(r; θ; z) = Φ(r; θ) Z(z), we reach the
following equation
(r)
φ
φ
+
Z
00
Z
= 0; (6.4)
where
(r)
stands for the Laplacian on the disk. The associate eige nvalue of Eq.6.4 is
(
(r)
φ = ¡λφ
φ(a; θ) = 0
:
As we saw in the last chapter, the set o f eigenpairs is as follows
Φ = fJ
0p
(r); J
np
(r)cos(); J
np
(r) sin()g
n;p=1
1
; λ
np
=
z
np
2
a
2
(6.5)
The equation for Z becomes accordingly
Z
00
¡λ
np
Z = 0;
and therefore
Z =
cosh
¡
λ
np
p
z
; sinh
¡
λ
np
p
z

:
Finally, the series solution u is
u(r; θ; z) =
X
n=0
1
X
p=1
1
cosh
¡
λ
np
p
z
J
np
(r)fA
np
cos() + B
np
sin()g+
+
X
n=0
1
X
p=1
1
sinh
¡
λ
np
p
z
J
np
(r)fC
np
cos() + D
np
sin()g:
The boundary conditions at z = 0 and z = H determine con stants A; B; C ; D.
Example 6.3. Let a = 1 and H = 1. Consider the problem
8
>
>
>
>
>
>
<
>
>
>
>
>
>
:
u = 0;
u(1; θ; z) = 0
u(r; θ; 0) = 0
u(r; θ; 1) = (1 ¡r)cosθ
:
According to the boundary condition, it makes sense to w rite the solution as
u(r; θ; z) =
X
p=1
1
fA
p
cosh(z
1p
z) + B
p
sinh(z
1p
z)gJ
1p
(r) cos(θ)
The condition at z = 0 determines A
p
= 0 for all p. Therefore we write
u(r; θ; z) =
"
X
p=1
1
B
p
sinh(z
1p
z) J
1p
(r)
#
cos(θ):
6 3D Linear Second-Order Equations
Substituting the condition at z = 1 determines B
p
as
B
p
=
1
kJ
1p
k
2
sinh(z
1p
)
Z
0
1
J
1p
(r) (1 ¡r) rdr;
where
kJ
1p
k
2
=
Z
0
1
jJ
1
(z
1p
r)j
2
rdr:
6.2.3 Laplace equation: Type II
Now, we solve the Laplac e equation when u(a; θ; z) = f(θ; z) but u(r; θ; 0) = u(r; θ; H) = 0.
According to Eq.6.4, we solve first the following boundary value problem for Z
Z
00
= ¡λZ
Z(0) = Z(H) = 0
:
The solution is
Z
p
(z) = sin
H
z
; λ
p
=
p
2
π
2
H
2
:
Therefore the equation for φ becomes
(r;θ)
φ ¡
p
2
π
2
H
2
φ = 0:
Using the separation of variables φ(r; θ) = R(r) Θ(θ), we reach the following equation
r
2
R
00
+ rR
0
R
+
Θ
00
Θ
=
p
2
π
2
H
2
r
2
; (6.6)
and thus
Θ
n
(θ) = fcos(); sin()g:
Substituting Θ
n
into (6.6) yields
r
2
R
00
+ rR
0
+
¡
p
2
π
2
H
2
r
2
¡n
2
R = 0: (6.7)
Note that t he equation is similar to the Bessel equation except the negative sign of r
2
. If
we take x = ¡
p
2
π
2
H
2
q
r = i
H
r, then the equation reduces to the standard Bessel equation
x
2
R
00
(x) + xR
0
(x) + (x
2
¡n
2
)R(x) = 0:
Therefore, the solution of Eq.(6.7) is
R
np
(r) = J
n
iπp
H
r
:
6.2 Problems in cylindrical domains 7
What is the series of J
n
(ix)? From the series of J
n
(x), we have
J
n
(ix) =
X
k=0
1
(¡1)
k
k!(k + n)!
ix
2
2k+n
= (i)
n
X
k=0
1
1
k!(k + n)!
x
2
2k+n
:
The series
I
n
(x) =
X
k=0
1
1
k!(k + n)!
x
2
2k+n
;
is called the modified Bessel functions of the first kind. For simplicity, we de note I
n
¡
πp
H
r
by I
np
(r) and write
φ
np
(r; θ) = fI
np
(r) cos(); I
np
(r) sin()g:
Using the superposition principle, u(r; θ; z) can be represented as follows
u(r; θ; z) =
X
n=0
1
X
p=1
1
sin
πp
H
z
I
np
(r)(A
np
cos() + B
np
sin()): (6.8)
The coefficients A
np
; B
np
are determined by the aid of the boundary data.
Example 6.4. Let denote a solid cylinder with the radius a = 1 and height H = 1. Let
us solve the following equation defined on
¯
8
<
:
u = 0
u(1; θ; z) = z cos(θ)
u(r; θ; 0) = u(r; θ; 1) = 0
:
Based on the boundary condition, u has the series representation
u(r; θ; z) =
"
X
p=1
1
U
p
I
1p
(r) sin(πpz)
#
cos(θ):
For r = 1, we have
z =
X
p=1
1
U
p
sin(πpz) I
1p
(1);
and thus
U
p
=
2 (¡1)
p
pπI
1p
(1)
:
The solution u is as follows
u(r; θ; z) =
"
X
p=1
1
2 (¡1)
p
I
1p
(r)
pπI
1p
(1)
sin(πpz)
#
cos(θ):
6.2.4 Eigenfu nctions of the Laplacian
Consider the following eigenvalue problem
(
φ = ¡λφ
φj
bnd(Ω)
=0
; (6.9)
8 3D Linear Second-Order Equations
where denotes a solid cylinder with radius a and height H. Since φ =
(r)
φ + φ
zz
, we
use the separation of variables φ(r; θ; z) = (r; θ) Z(z), and write
(r;θ)
+
Z
00
Z
= ¡λ: (6.10)
The ordinary differential equation for Z is solved f o r sine functions
Z
m
(z) = sin
H
z
:
Substituting Z
m
into (6.10) results to
(r;θ)
= ¡
λ ¡
m
2
π
2
H
2
: (6.11)
Take µ as µ = λ ¡
m
2
π
2
H
2
, and write the problem as foll ows
(
(r)
= ¡µ
(a; θ) = 0
: (6.12)
As we saw before, the eigenfunctions of the above problem are
np
(r; θ) = fJ
np
(r) cos(); J
np
(r) sin ()g:
Therefore, the eigenfunctions of on a cylinder are
φ
mnp
(r; θ; z) =
n
sin
H
z
J
np
(r) cos(); sin
H
z
J
np
(r)sin ()
o
; (6.13)
with eigenvalues λ
mnp
=
m
2
π
2
H
2
+
z
np
2
a
2
.
Remark 6.2. Fo r problems defined on the side surface of a cylinder (when r = a), we solve
the eigenvalue problem φ = ¡λφ on th e following set
D := f(θ; z); ¡π θ π; 0 z H g:
It is simply seen that in this case, th e eigenfunctions are
φ
mn
(θ; z) =
n
sin
H
z
cos(); sin
H
z
sin ()
o
; (6.14)
with eigenvalues λ
nm
=
m
2
π
2
H
2
+ n
2
.
6.2.5 Linear problems on the surface of a cylinder
Let D denote the side surface of a cylinder of radius a and h eight H (without top and bottom
caps).
Example 6.5. Let us solve th e following Poisson equation
u = z
u(θ; 0) = 0; u(θ; π) = cos(θ)
;
6.2 Problems in cylindrical domains 9
where u is defined in the side surface of a cylinder of radius 1 and height π. By superposition
principle, the solution consists two terms, the solution that is cont ributed by the boundary
data, and the solution that is contr ibuted by the source term. For the contribution from
boundary, we solve the following equation
v = 0
v(θ; 0) = 0; v(θ; π) = co s(θ)
:
Since cos(θ) is a part of the eigenfunction s in
¡
H
z
cos(θ), we write v = V (z) cos(θ), for some
unknown function V (z). Substituting this into the equation leads to the following one
V
00
¡V = 0
V (0) = 0; V (π) = 1
;
that is solved for
V (z) =
1
sinh(π)
sinh(z);
and thus v =
1
sinh(π )
sinh(z)cos(θ). For the contribution by the source z, we solve the following
Poisson equation
w = z
w(θ; 0) = 0; w(θ; π) = 0
:
Note that the source term is independent f θ and thus we can write w = W (z). Substituting
w into the equation leads to the following equation
W
00
= z
W (0) = W (π) = 0
;
that is solved for W (z) =
1
6
z(z
2
¡π
2
). Finally, the solution is
u(θ; z) =
1
sinh(π)
sinh(z) cos(θ) +
1
6
z(z
2
¡π
2
):
Remark 6.3. In the above example, we could solve the Poisson equation for w by eigen-
function series as follows
w(θ; z) =
X
m=1
1
W
m
sin(mz); (6.15)
that leads to
w(z) =
X
m=1
1
2 cos()
m
3
sin(mz):
It is simply verified that the above series is th e series expansion of
1
6
z(z
2
¡π
2
).
Example 6.6. Let us solve the following wave problem on the side surface of a cylinder o f
radius a = 1 and height H = 1
8
<
:
@
tt
u = u
u(t; θ; 0) = u(t; θ; 1) = 0
u(0; θ; z) = 0; @
t
u(0; θ; z) = sin(θ)
:
10 3D Linear Second-Order Equations
According to the initial data, the solution can be written in the following form
u(t; θ; z) =
X
m=1
1
U
m
(t) sin(mπz) sin(θ):
Substituting this into the wave eq uation , we d erive the following equation for U
m
(t)
(
U
m
00
(t) =¡(m
2
π
2
+ 1)U
m
(t)
U
m
(0) = 0; U
m
0
(0) =
2(1 ¡ cos())
mπ
;
which is solved fo r
U
m
(t) =
2(1 ¡cos())
mπ λ
m
p
sin( λ
m
p
t);
where λ
m
= (m
2
π
2
+ 1). Therefore we reach the solution as the following series
u(t; θ; z) =
"
X
m=1
1
2(1 ¡cos())
mπ λ
m
p
sin( λ
m
p
t) s in(mπz)
#
sin(θ):
6.2.6 Linear problems on a solid cylinder
We solve a few examples to show the method how linear problems can be solve by the
eigenfunction expansion method.
Example 6.7. Consider the the fol lowing problem in the solid cylinder of radius a = 1 and
height H = 1
8
<
:
u = r sin(πz)
u(1; θ; z) = 0
u(r; θ; 0) = u(r; θ; 1) = 0
:
Since the source term is independent of θ (the eigenfunction associated to n = 0), we write
the solution as follows
u(r; θ; z) = sin(πz)
X
p=1
1
U
p
J
0p
(r):
Substituting u into the equation and using u = ¡(z
0p
2
+ π
2
)u, yields
X
p=1
1
¡(z
0p
2
+ π
2
)U
p
J
0p
(r) = r:
The above equation determines U
p
as follows
U
p
=
¡1
(z
0p
2
+ π
2
)kJ
0p
k
2
Z
0
1
J
0p
(r) r
2
dr;
6.2 Problems in cylindrical domains 11
where
kJ
0p
k
2
=
Z
0
1
jJ
0
(z
0p
r)j
2
rdr:
Example 6.8. Consider the the following problem in the solid cylinder D of radius a = 1
and height H = 1
8
>
>
>
>
>
>
>
>
>
>
<
>
>
>
>
>
>
>
>
>
>
:
@
t
u = u
u(t; 1; θ; z) = 0
u(t; r; θ; 0) = 0
u(t; r; θ; 1) = sin(θ)
u(0; r; θ; z) = 0
:
First, we nd the steady state solution of the problem through solving the following one
8
>
>
>
>
>
>
<
>
>
>
>
>
>
:
v = 0
v(1; θ; z) = 0
v(r; θ; 0) = 0
v(r; θ; 1) = sin(θ)
:
Regarding the boundary data, the solut ion can be written in the following form
v(r; θ; z) =
X
p=1
1
A
p
sinh(z
1p
z)J
1p
(r) sin(θ);
where A
p
is
A
p
=
1
kJ
1p
k
2
sinh(z
1p
)
Z
0
1
J
1p
(r) rdr:
Now, we write u(t; r; θ; z) = v(r; θ; z) + w(t; r; θ; z) where w satisfies the following
homogeneous equation
(
@
t
w = w
wj
bnd(D)
=0
:
It is simply seen that w has the series form
w(t; r; θ; z) =
X
n;m; p
e
¡λ
nmp
t
sin(mπz) J
np
(r) fA
nmp
cos() + B
nmp
sin()g:
Applying the initial condition of the problem leads to the following equality
¡
X
p=1
1
A
p
sinh(z
1p
z)J
1p
(r) sin(θ) =
X
n;m; p
sin(mπz) J
np
(r)fA
nmp
cos() + B
nmp
sin()g;
that implies in turn A
nmp
= 0 and
¡A
p
sinh(z
1p
z) =
X
m=1
1
B
1mp
sin(mπz) :
12 3D Linear Second-Order Equations
We obtain
B
1mp
= ¡2A
p
Z
0
1
sinh(z
1p
z) sin(mπz) dz;
and finally
u =
X
p=1
1
A
p
sinh(z
1p
z) J
1p
(r) sin(θ) +
X
m;p=1
1
A
1mp
e
¡λ
1mp
t
J
1p
(r) sin(mπz) sin(θ):
Problems
Problem 6.6. Show that functions I
np
(r) are orthogonal with respect to σ(r) = r, that is,
hI
np
; I
nq
i
r
= 0; p =/ q:
Problem 6.7. Let denote a solid cylinder with radius a = 1 and height H = 1. Find a series s olution
to the following problem on
8
>
>
>
>
>
>
<
>
>
>
>
>
>
:
u = 0
u(1; θ; z) = 0
u(r; θ; 0) = cosθ
u(r; θ; 1) = sinθ
:
Problem 6.8. Let denote a solid cylinder with radius a = 1 and height H = 1. Find a series s olution
to the following problem on
8
>
>
>
>
>
>
<
>
>
>
>
>
>
:
u = 0
u(1; θ; z) = 0
u(r; θ; 0) = r
u(r; θ; 1) = sinθ + cosθ
:
Problem 6.9. Let denote a solid cylinder with radius a = 1 and height H = 1. Find a series s olution
to the following equation on
8
>
>
>
>
>
>
<
>
>
>
>
>
>
:
u = 0
u(1; θ; z) = 0
u(r; θ; 0) = θ
u(r; θ; 1) = r
:
Problem 6.10. Let denote a solid cylinder with radius a = 1 and height H = 1. Find a series solution
to the following equation on
8
>
>
>
>
>
>
<
>
>
>
>
>
>
:
u = 0
u(1; θ; z) = z cosθ
u(r; θ; 0) = 0
u(r; θ; 1) = 0
:
Draw solution at θ = π/4, z = 1/2 with respect to r.
Problem 6.11. Let denote a solid cylinder with radius a = 1 and height H = 1. Find a series solution
to the following equation on
8
<
:
u = 0
u(1; θ; z) = sin(2πz) sinθ
u(r; θ; 0) = u(r; θ; 1 ) = 0
:
Draw solution at θ = π/4, z = 1/2 with respect to r.
6.2 Problems in cylindrical domains 13
Problem 6.12. Let denote a solid cylinder with radius a = 1 and height H = 1. Find a series solution
to the following equation on
8
<
:
u = 0
u(1; θ; z) = sin(2πz) θ
u(r; θ; 0) = cosθ; u(r; θ; 1) = 0
:
Problem 6.13. Let D denote t he side surface of a cylinder with radius a and height H. Note that the
cylinder does not include top and button caps. Solve the following equation on D for u = u(θ; z)
u = 0
u(θ; 0) = f(θ); u(θ; H) = g(θ)
:
Problem 6.14. Let D denote t he side surface of a cylinder with radius a and height H. Note that the
cylinder does not include top and button caps. Solve the following equation on D for u = u(θ; z)
u + 2@
z
u = 0
u(θ; 0) = f(θ); u(θ; H) = g(θ)
:
Problem 6.15. Let D denote the side surface of a cylinder with radius a = 1 and height H = 1. Note
that the cylinder does not include top and button caps. Find a closed for m solution to the following
problem on D
u = z
u(θ; 0) = cosθ; u(θ; 1) = 0
Problem 6.16. Let D denote the side surface of a cylinder with radius a = 1 and height H = 1. Note
that the c ylinder does not include top and button caps. Consider the following problem on D
u = z sin(2θ)
u(θ; 0) = u(θ; 1) = 0
:
a) Find a series solution to the problem.
b) Find a closed form solution to the problem and verify it is equal to the series solution obtained
in (a).
Problem 6.17. Let D denote the side surface of a cylinder with radius a = 1 and height H = 1. Note that
the cylinder does not include top and button caps. Find a series solution to the following problem on D
u =
u(θ; 0) = sinθ; u(θ; 1) = cosθ
:
Problem 6.18. Let D denote the side surface of a cylinder with radius a = 1 and height H = 1. Note
that the c ylinder does not include top and button caps. Consider the following problem on D
u = sin(πz)θ
u(θ; 0) = sin(θ); u(θ; 1) = 0
:
a) Find a series solution to the problem.
b) Find a closed form solution to the problem and verify it is equal to the series solution obtained
in (a).
Problem 6.19. Let denote a solid cylinder with radius a = 1 and height H = 1. Solve the following
Poisson equation on .
8
<
:
u = rz
u(1; θ; z) = 0
u(r; θ; 0) = 0 ; u(r; θ; 1) = r
14 3D Linear Second-Order Equations
Problem 6.20. Let D denote the side surface o f a cylinder with radius a = 1 and height H = 1. Solve
the following heat problem on D
8
<
:
@
t
u = u
u(0; θ; z) = cos(θ) sin(πz)
u(t; θ; 0) = u(t; θ; 1) = 0
:
Problem 6.21. Let D denote the side surface o f a cylinder with radius a = 1 and height H = 1. Solve
the following heat problem on D
8
<
:
@
t
u = u ¡t sinθ
u(0; θ; z) = 0
u(t; θ; 0) = cosθ; u(t; θ; 1) = sinθ
:
Problem 6.22. Let D denote the side surface o f a cylinder with radius a = 1 and height H = 1. Solve
the following heat problem on D
8
>
>
<
>
>
:
@
tt
u = c
2
u
u(0; θ; z) = sinθ sin(πz); @
t
u(0; θ; z) = 0
u(t; θ; 0) = 0; u(t; θ; 1) = 0
:
Problem 6.23. Let denote a solid cylinder with radius a = 1 and height H = 1. Solve the following
problem on .
8
>
>
>
>
>
>
<
>
>
>
>
>
>
:
@
t
u = u ¡e
¡t
u(t; 1; θ; z) = 0
u(t; r; θ; 0) = u(t; r; θ; 1) = 0
u(0; r; θ; z) = 0
:
Problem 6.24. Let denote a solid cylinder with radius a = 1 and height H = 1. Solve the following
problem on .
8
>
>
>
>
>
>
<
>
>
>
>
>
>
:
@
t
u = u
u(t; 1; θ; z) = z sinθ
u(t; r; θ; 0) = u(t; r; θ; 1) = 0
u(0; r; θ; z) = 0
:
Problem 6.25. Let denote a solid cylinder with radius a = 1 and height H = 1. Solve the following
problem on .
8
>
>
>
>
>
>
<
>
>
>
>
>
>
:
@
tt
u = c
2
u
u(t; 1; θ; z) = 0
u(t; r; θ; 0) = u(t; r; θ; 1) = 0
u(0; r; θ; z) = 0; @
t
u(0; r; θ; z) = (1 ¡r)z
:
6.3 Problems on sphe res
6.3.1 Spherical coordi n ate
A point p in the spherical coordinate is represented by the triple (r; θ; φ), where r 0 is the
distance of p to the origin, θ 2[0; π] is the angle it makes with z-axis, and φ 2[¡π; π] is the
angle the projection of p on the (x; y)-plane makes with x- a xi s.
6.3 Problems on spheres 15
θ
φ
y
x
z
p
r
If denote a ball of radius a, then a closed solid ball is represented by the following set of
points
= f(r; θ; φ); 0 r a; 0 θ π; ¡π φ π g:
The Laplacian operator in the spherical coordinate has the following form
u =
1
r
2
@
r
(r
2
@
r
u) +
1
r
2
sinθ
@
θ
(sinθ@
θ
u) +
1
r
2
sin
2
θ
@
φφ
u: (6.16)
To distinguish be tween a solid ball and a sphere, we use word sphere for the shell and denote
it by S
2
, and word ball for a solid ball. The inner product between two function f (r; θ; φ)
and g(r; θ; φ) in the spherical coordinate is as follows
hf ; gi=
Z
¡π
π
Z
0
π
Z
0
a
f(r; θ; φ) g(r; θ; φ) r
2
sinθdrdθdφ: (6.17)
Remember that dV = r
2
sinθdr is the volume element in the sph erical coordinate.
Remark 6.4. The spherical coordinate is specified by the following transformation
8
<
:
x = r sinθ cosφ
y = r sinθ sinφ
z = r c o sθ
:
In the first chapter, we asked the reader to derive the form of nabla operator r by the aid
of unit vectors
r^ =
1
(@
r
x)
2
+ (@
r
y)
2
+ (@
r
z)
2
p
(@
r
x; @
r
y; @
r
z) = sinθ cosφ i
^
+ sinθ sinφ j
^
+ cosθ k
^
;
and similarly for θ
^
; φ
^
as
θ
^
=
1
(@
θ
x)
2
+ (@
θ
y)
2
+ (@
θ
z)
2
p
(@
θ
x; @
θ
y; @
θ
z) = cosθ cosφ i
^
+ cosθ sinφ j
^
¡sinθ k
^
φ
^
=
1
(@
φ
x)
2
+ (@
φ
y)
2
+ (@
φ
z)
2
p
(@
φ
x; @
φ
y; @
φ
z) = ¡sinφ i
^
+ cosφ j
^
:
16 3D Linear Second-Order Equations
It is simply seen that
r= r^@
r
+
1
r sin θ
φ
^
@
φ
+
1
r
θ
^
@
θ
;
and thus
= r·r=
r^@
r
+
1
r sin θ
φ
^
@
φ
+
1
r
θ
^
@
θ
·
r^@
r
+
1
r sin θ
φ
^
@
φ
+
1
r
θ
^
@
θ
;
after after direct calculation gives the form of in the spherical coordinate as given in (6.16).
Problem 6.26. Show with the aid of following relations that the differential volume in spherical coor-
dinate is dV = r
2
sinθdr
dx = sinθ cosφdr + r cosθ cosφ ¡r sinθ sinφ;
dy = sinθ sinφd r + r cosθ sinφ + r sinθ cosφ;
dz = cosθdr ¡r sinθ:
6.3.2 Laplace equatio n and Legendre polynomials
Let denote a ball in R
3
of radius a. Consider the fo llowing e quation on
u = 0
u(a; θ; φ) = f (θ; φ)
: (6.18)
First, assume that f is independent of φ, that is, f = f (θ). This leads to an important class
of special functions called the Legendre polynomials. Consider the equation
u = 0
u(a; θ; φ) = f(θ)
: (6.19)
Since the boundary data is independe nt of φ, (that is, f is axially symmetric about the z-
axes), we can assume that the solution is a xially sy mmetr ic in , that is, u = u(r; θ). Due
to the form of in the spherical coordinate, the separated solution u(r; θ) = R(r) Θ(θ) leads
to the following equation
r
2
R
00
+ 2rR
0
R
+
1
Θ sinθ
d
(sinθΘ
0
) = 0: (6.20)
The equation for Θ leads to the f o llowing eigenvalue problem:
d
(sinθΘ
0
) = ¡λ
θ
sinθΘ; (6.21)
for some eigenvalue λ
θ
. It is observed that a singularity in Θ may happen at θ = 0; π, where
the coefficient of the highest derivative Θ
00
become zero. To avoid the p o ssible blow up at
these points, we impose the following condition for the solution Θ(θ)
lim
θ!0;π
jΘ(θ)j< 1: (6.22)
If we take x = cos(θ), the eigenvalue problem (6.21) reduces to the following familiar form
which is called the Legendre's equation
d
dx
[(1 ¡x
2
) Θ
0
] = ¡λ
θ
Θ(x); ¡1 x 1: (6.23)
6.3 Problems on spheres 17
The Legendre equation is discussed in our boo k on ordinary differential equations and
readers are referred to it. The solution of the Legendre equation can be derived by the
power series as follows
Θ(x) =
X
k=0
1
c
k
x
k
;
where c
k
satisfy the following recursive formula
c
k+2
=
k(k + 1) ¡λ
θ
(k + 2)(k + 1)
c
k
:
Note that if λ
θ
is an integer of th e form n(n + 1) for n = 0; 1; 2; ···, then o ne solution to (6.23)
is a polynomial of order n. This polynomial is called the Lege ndre polynomial of order n
after the French mathematician A.M. Legendre, a nd is denoted by P
n
(x). A closed form
representation of this polynomial is given by the O. Rodrigues formula
P
n
(x) =
(¡1)
n
2
n
n!
d
n
dx
n
(1 ¡x
2
)
n
: (6.24)
The following table shows P
n
(x) for n = 0; ···; 6.
n P
n
(x)
0 1
1 x
2
1
2
(3x
2
¡1)
3
1
2
x(5x
2
¡3)
4
1
8
(35x
4
¡30x
2
+ 3)
5
1
8
x(63x
4
¡70x
2
+ 1 5 )
6
1
16
(231x
6
¡315x
4
+ 1 0 5 x
2
¡5)
Table 6 .1.
It turns out that if λ
θ
=/ n(n+1), the infinite series solution blows up at x = ±1. Therefore„
to keep the soluti o ns bounded, we assume λ
θ
= n(n + 1), where n is a non-neg ative integer.
Consequently, Θ
n
(θ) =P
n
(cos θ) for n 0. Note that P
n
(cos θ) for n = 0; 1; :::, are solutions to
(6.21) for λ
θ
= n(n+ 1) and therefore they are orthogonal with respect to the weight function
σ = sinθ
Z
0
π
P
n
(cos θ) P
m
(cos θ) sin(θ) = 0; n =/ m: (6.25)
In addition, the set fP
n
(cos θ)g
n=0
1
is a basis for smooth functions in θ 2[0; π]. At the end
of this chapter, we will prove the following proposition for P
n
(cos θ).
Proposition 6.1. The following relations hold for Legendre polynomials P
n
(cos θ)
Z
0
π
P
n
(cos θ) sin(θ) = 0;
kP
n
k
2
=
Z
0
π
jP
n
(cos θ)j
2
sin(θ) =
2
2n + 1
:
18 3D Linear Second-Order Equations
Now, we back to the equation for R. From (6.20), we reach
r
2
R
00
+ 2rR
0
¡n(n + 1)R = 0;
which is a Cauchy-Euler equation. The solution set of the above equation is R
n
(r) =
fr
n
; r
¡n¡1
g where we ignore term r
¡n¡1
for p roblems defined inside a ball. The reason is th at
r
¡n¡1
is unbounded at r = 0. For the exterior Laplace equations (equations defined in the
exterior of a ball), we ignore the term r
n
and write R
n
(r) = r
¡n¡1
. Therefore, for problems
inside a ball, the solution of (6.19) has the following form
u(r; θ) =
X
n=0
1
U
n
r
n
P
n
(cos θ);
where U
n
are determined through the boundary condition and the following inner product
U
n
=
hf ; P
n
i
si
a
n
kP
n
k
2
=
2n + 1
2a
n
Z
0
π
f(θ) P
n
(cos θ) sin(θ) :
Example 6.9. Consider the following problem
u = 0
u(1; θ; φ) = 1
:
Let us write the series solution as follows
u(r; θ; φ) =
X
n=0
1
U
n
r
n
P
n
(cos θ):
The boundary condition at r = 1 gives
1 =
X
n=0
1
U
n
P
n
(cos θ);
and since P
0
= 1, we d erive U
n
= 0 for n 1 and U
0
= 1 and thus u = 1 is the solution to the
problem. This solution confirms the maximum principle for harmonic functions.
Example 6.10. We solve the f o llowing Laplace equation
u = 0
u(1; θ; φ) = cos(θ)
:
Since the boundary condition is independent of φ then we take u = u(r; θ) and write
u(r; θ) =
X
n=0
1
U
n
r
n
P
n
(cos θ):
Applying the boundary condition results to
cos θ =
X
n=0
1
U
n
P
n
(cos θ) )U
n
=
1 n = 1
0 n =/ 1
;
6.3 Problems on spheres 19
and finally u(r; θ) = r cos(θ).
6.3.3 Associated Legendre polynomials
Now we relax the restriction that f is axially symmetric. Let us write the separated solution
as u = R(r) Y (θ; φ) and substitute that into (6.18) to obtain
r
2
R
00
+ 2rR
0
R
+
1
Y
(θ;φ)
Y = 0; (6.26)
where
(θ;φ)
Y stands for
(θ;φ)
Y =
1
sinθ
@
θ
(sinθ@
θ
Y ) +
1
sin
2
θ
@
φφ
Y : (6.27)
The above equat ion implies that
1
Y
(θ;φ)
Y is a constant. Let us denote this constant again
by λ
θ
. Therefore
(θ;φ)
Y = ¡λ
θ
Y : (6.28)
To solve the a bove problem, we w rite Y (θ; φ) = Θ(θ)Φ(φ) and obtain
sinθ
Θ
d
sinθ
dΘ
+
1
Φ
d
2
Φ
2
= ¡λsin
2
θ: (6.29)
This equation implies in turn that
1
Φ
d
2
Φ
2
is constant. Let us denote this constant by λ
φ
,
that is, Φ
00
= ¡λ
φ
Φ. Notice that Φ(φ) must satisfy the periodicity condition
Φ(¡π) = Φ(π); Φ
0
(¡π) = Φ
0
(π):
Regarding this periodicity condition, we derive the following list o f solutions f o r Φ
Φ
m
(φ) 2f1; cos(); sin()g
m=1
1
;
and λ
φ
= m
2
. Substituting this constants into (6.29) gives
d
dθ
(sin(θ) Θ
0
) ¡
m
2
sin(θ)
Θ = ¡λ
θ
sin(θ) Θ:
Observe that the derived equation is similar to a Legendre equation except the extra term
m
2
sin(θ)
Θ. Taking x = cos(θ), will transforms the equation into the foll owing one which is called
the associated Legendre equation:
d
dx
[(1 ¡x
2
) Θ
0
] ¡
m
2
1 ¡x
2
Θ = ¡λ
θ
Θ: (6.30)
The admissible values for λ
θ
are aga in λ
θ
= n(n + 1), n 0 to guarantee that the solution
remains bounded at x = ¡1; 1.
Proposition 6.2. If λ
θ
= n(n + 1), then the solution of (6:30) are
P
n;m
(x) = (1 ¡x
2
)
m
2
P
n
(m)
(x); m = 0; :::; n;
20 3D Linear Second-Order Equations
where P
n
(m)
(x) =
d
m
dx
m
P
n
(x).
Proof. Note that we have
(1 ¡x
2
)P
n
00
¡2xP
n
0
= ¡n(n + 1)P
n
:
Differentiating the above equation m-times leads to the following one
(1 ¡x
2
)P
n
(m+2)
¡2x(m + 1)P
n
(m+1)
= [¡n(n + 1) + m(m + 1)] P
n
(m)
: (6.31)
Now for the function P
n;m
(x) = (1 ¡x
2
)
m
2
P
n
(m)
(x), one needs to show
d
dx
(1 ¡x
2
)
d
dx
P
n;m
¡
m
2
1 ¡x
2
P
n;m
= ¡n(n + 1) P
n;m
: (6.32)
A simple calculation shows
d
dx
(1 ¡x
2
)
d
dx
P
n;m
= (1 ¡x
2
)
m
2
f(1 ¡x
2
)P
n
(m+2)
¡2(m + 1)xP
n
(m+1)
g+
+
m
2
1 ¡x
2
¡m(m + 1)
P
n;m
:
Now, by the relation (6.31), we have
(1 ¡x
2
)
m/2
f(1 ¡x
2
)P
n
(m+2)
¡2(m + 1)xP
n
(m+1)
g= [¡n(n + 1) + m(m + 1)] P
n;m
:
This implies in turn
d
dx
(1 ¡x
2
)
d
dx
P
n;m
=
¡n(n + 1) + m(m + 1) +
m
2
1 ¡x
2
¡m(m + 1)
P
n;m
+
=
¡n(n + 1) +
m
2
1 ¡x
2
P
n
;
that completes the proof.
Since P
n
(x) is a polynomial of order n, P
n;m
(x) are zero for m > n. It is evident also that
P
n;m
(1) = 0 for all n > 0 and P
n;0
(x) = P
n
(x).
Proposition 6.3. The function P
n;m
(cos θ) are orthogonal in t he following sense
Z
0
π
P
n;m
(cos θ) P
n
0
;m
(cos θ) sin(θ) = 0; n =/ m;
and each list of the following class
fP
n
(cos θ)g
n=0
1
; fP
n;1
(cos θ)g
n=1
1
; fP
n;2
(cos θ)g
n=2
1
; ···;
is a basis for smooth functions f (θ) defined for θ 2[0; π].
The figur e (6.1), shows the convergence of a series in terms of the functions in fP
n;2
(x)g
n=2
N
to the functions f(x) = x
2
, ¡1 < x < 1 f o r N = 4; 10.
6.3 Problems on spheres 21
1
.
0
0
.
5
0
.
5 1
.
0
1
N
= 4
N
= 10
Figure 6.1.
The table (6.2) shows some associated Legendre fu nc tions P
n;m
(x).
m n = 0 n = 1 n = 2 n = 3 n = 4
0 1 P
1
(x) P
2
(x) P
3
(x) P
4
(x)
1 0 1 ¡x
2
p
3x 1 ¡x
2
p
3
2
1 ¡x
2
p
(5x
2
¡1)
5
2
x 1 ¡x
2
p
(7x
2
¡3)
2 0 0 3(1 ¡x
2
) 15x(1 ¡x
2
)
15
2
(1 ¡x
2
)(7x
2
¡1)
3 0 0 0 15(1 ¡x
2
)
3/2
105x(1 ¡x
2
)
3/2
4 0 0 0 0 105(1 ¡x
2
)
2
Table 6 .2.
Now back to (6.26), the equation for R is
r
2
R
00
+ 2rR
0
R
¡n(n + 1) = 0;
which is a Cauchy-Euler equation w ith the solution fr
n
; r
¡n¡1
g. Solving an equation
inside a ball, we reject th e solution r
¡n¡1
and keep r
n
, that is, R
n
(r) = r
n
. Finally, the
solution u in this case is written in the series form a s
u(r; θ; φ) =
X
n=0
1
X
m=0
n
r
n
P
n;m
(cosθ) (A
nm
cos() + B
nm
sin()):
The constants A
nm
; B
nm
are determined by the aid of the boundary condition.
Example 6.11. Let us solve the equation in the exterior of the u nit ball
u = 0
u(1; θ; φ) = sin(φ)
:
According to the boundary condition, we write the solution in the series fo rm as
u =
X
n=1
1
U
n
r
¡n¡1
P
n;1
(cosθ) sinφ:
Applying the boundary condition, we obtain
sinφ =
X
n=1
1
U
n
P
n;1
(cosθ) s inφ;
22 3D Linear Second-Order Equations
and thus
1 =
X
n=1
1
U
n
P
n;1
(cosθ):
The above equation determines constants U
n
as
U
n
=
1
kP
n;1
k
2
Z
0
π
P
n;1
(cosθ) s in(θ) =
1
kP
n;1
k
2
Z
¡1
1
P
n;1
(x) dx:
6.3.4 Eigenvalue p roblem
In order to solve linear problems in a ball or on a sphere, one n eeds to solve the following
eigenvalue problem
u = ¡λu
u(a; θ; φ) = 0
:
The separation of variable u(r; θ; φ) = R(r) Y (θ; φ) leads to the eigenvalue problem
1
R
d
dr
(r
2
R
0
) +
1
Y
(θ;φ)
Y = ¡λr
2
: (6.33)
Thus
1
Y
(θ;φ)
Y is λ
θ
= n(n + 1) (otherwise the solution goes unbounded), and hence
r
2
R
00
+ 2rR
0
+ (λr
2
¡n(n + 1))R = 0: (6.34)
The equation (6.34) is called the spherical Bessel equation (because of the term n(n + 1)
instead of n
2
and 2r instead of r). Since λ > 0, and we take x = λ
p
r to transform (6.34)
into the following standard form
x
2
y
00
+ 2xy
0
+ (x
2
¡n(n + 1))y = 0: (6.35)
The bounded solution to the above equation is called j-spherical Bessel functions and is
denoted by j
n
(x).
Proposition 6.4. The function j
n
(x) =
π
2x
q
J
n+
1
2
(x) is the bounded solution to the equation
(6:35).
The proof is left as an exercise to the reader. Applying the zero boundary condition,
determines λ as
j
n
( λ
p
a) = 0 )λ
np
=
z
n+
1
2
p
2
a
2
:
We denote the zeroth of j
n
(x) by ζ
np
, that is , j
n
(ζ
np
) = 0. It is simply seen (and it is left a
an exercise to the reader again) that the foll owing orthogonality condition holds for spherical
Bessel functions
Z
0
a
j
np
(r) j
nq
(r) r
2
dr = 0; p =/ q;
where j
np
(r) stands for the functions j
n
(ζ
np
r / a). The table (6.3) shows the zeros of the
function j
n
(x).
6.3 Problems on spheres 23
p ζ
0p
ζ
1p
ζ
2p
ζ
3p
1 3.1415 4.4934 6.7635 6.9880
2 6.2832 7.7252 9.0950 10.4171
3 9.4248 10.9041 12.3230 13.6980
4 12.5664 14.0662 15.5146 16.9236
5 15.7080 17.2208 18.6890 20.1218
6 18.8496 20.3713 21.8539 23.3042
7 21.9911 23.5195 25.0129 26.4768
8 25.1327 26.6661 28.1678 29.6426
9 28.2743 29.8116 31.3204 32.8037
10 31.4159 32.9564 34.4705 35.9614
Table 6 .3.
The above discussion implies that the eigenfunctions of on a ball are:
'
nmp
(r; θ; φ) 2fj
np
(r)P
n;m
(cosθ)cos(); j
np
(r)P
n;m
(cosθ)sin()g: (6.36)
In addition, we have h'
nmp
; '
n
0
m
0
p
0
i= 0 if at lea st one of indices are not equal. Note also that
'
nmp
= ¡
ζ
np
a
2
2
'
nmp
;
and in particular for m = 0 we have
fj
np
(r) P
n
(cos θ)g= ¡
ζ
np
2
a
2
j
np
(r) P
n
(cos θ):
Remark 6.5. The above discussion gives also the eigenvalues and eigenfunctions o f
(θ;φ)
on S
2
. In fact, the solution to the problem
(θ;φ)
Y = ¡λY ;
are
Y
n;m
(θ; φ) 2fP
n;m
(cos θ) cos(); P
n;m
(cosθ) sin()g: (6.37)
Notice that S
2
has no boundary, and thus
(θ;φ)
is symmetric operator on C
1
(S
2
). Further-
more, if f(θ; φ) is a smooth function defined on S
2
, one can represent it as a series in terms
of functions in Y
nm
(θ; φ). The appropriate inner product between two functions f (θ; φ) and
g(θ; φ) is
hf ; gi=
Z
¡π
π
Z
0
π
f(r; θ) g(r; θ) sinθdφ:
6.3.5 Linear problems on the shell
Let us solve the Poisson equation u = f(θ; φ) on the shell of a ball. Since the solution
should be 2π-periodic with respect to φ, the solution should satisfied the following conditions
u(θ; ¡π) = u(θ; π); @
φ
(θ; ¡π) = @
φ
(θ; π):
24 3D Linear Second-Order Equations
But, according to the divergence theorem, we have
ZZ
S
u =
I
bnd(S)
ru ·n^ dA = 0;
(since bnd(S) = ;) and thus the equation u = f(θ; φ) has a solution only if
ZZ
S
f(θ; φ) dA = 0:
Example 6.12. Let us solve the equation u = φ on the unit s phere. Since the function φ
is odd in (¡π; π), we write the s o lution as
u(θ; φ) =
X
n=1
1
X
m=1
n
U
nm
P
n;m
(cosθ) s in():
Substituting this into the equation and using the rel a tion
(θ; φ)
fP
n;m
(cosθ) sin()g= ¡n(n + 1)P
n;m
(cos θ) sin();
we obtain
X
n=1
1
X
m=1
n
¡n(n + 1)U
nm
P
n;m
(cos θ) sin() = φ:
The above equation determines U
nm
as
U
nm
=
¡1
πn(n + 1)kP
n;m
k
2
Z
¡π
π
Z
0
π
φP
n;m
(cos θ) sin() sin(θ) =
¡1
πn(n + 1)kP
n;m
k
2
Z
¡1
1
P
n;m
(x)dx
Z
¡π
π
φ sin()
=
=
2(¡1)
m
mn(n + 1)kP
n;m
k
2
Z
¡1
1
P
n;m
(x)dx
:
Example 6.13. Let us solve the f o llowing heat problem on the unit sphere
(
@
t
u =
(θ;φ)
u ¡cos(θ)
u(0; θ; φ) = sin(θ)
:
We rst solve the Poisson equation u = cosθ on the sphere. The solution is independent
of φ and thus we write
u(θ; φ) =
X
n=0
1
U
n
P
n
(cosθ):
Substitution into the Poisson equation gives
(θ; φ)
u =
X
n=0
¡n(n + 1)U
n
P
n
(cosθ) = cos(θ):
6.3 Problems on spheres 25
Hence n = 1 and U
n
=
¡1
2
and consequently u(θ; φ) = ¡
1
2
cos(θ). Now, we write the solution
to the original equation as
u(t; θ; φ) = ¡
1
2
cos(θ) + w(t; θ; φ);
where w satisfies the homogeneous heat problem
(
@
t
w =
(θ;φ)
w
w(0; θ; φ) = sin(θ) +
1
2
cos(θ)
:
We represent th e solution as the series
w(t; θ; φ) =
X
n=1
1
W
n
(t) P
n
(cosθ):
The equation for W
n
(t) is W
n
0
= ¡n(n + 1)W
n
and therefore
u(t; θ; φ) =
X
n=1
1
W
n
e
¡n(n+1)t
P
n
(cos θ):
Applying the initial condition gives
sin(θ) +
1
2
cos(θ) =
X
n=1
1
W
n
P
n
(cos θ):
This implies W
1
=
1
2
, W
n
= 0 for n = 2k + 1, k = 0; 1; 2; ···. For n even, we have
W
n
=
1
kP
n
k
2
Z
¡1
1
P
n
(x) 1 ¡x
2
p
dx:
Finally, we write the solution as
u(t; r; θ) = ¡
1
2
cos(θ) +
1
2
cos(θ) e
¡2t
+
X
n:even
W
n
e
¡n(n+1)t
P
n
(cos θ):
Example 6.14. We solve the f o llowing wave problem on a unit sphere
8
>
>
<
>
>
:
@
tt
u = c
2
(θ;φ)
u
u(0; θ; φ) = 0
@
t
u(0; θ; φ) = cos(θ) sin(2φ)
:
According to the initial condition, we write the solution as
u(t; θ; φ) =
X
n=2
1
U
n
(t)P
n;2
(cosθ) s in(2φ):
Substituting the series into the equation gives
X
n=2
1
U
n
00
(t)P
n;2
(cos θ) sin(2φ) =
X
n=2
1
¡c
2
n(n + 1)U
n
(t)P
n;2
(cos θ) sin(2φ):
26 3D Linear Second-Order Equations
Hence the following equation holds for U
n
(t)
U
n
00
(t) = ¡c
2
n(n + 1)U
n
(t):
Thus u has the series form
u(t; θ; φ) =
X
n=2
1
[A
n
cos(c λ
n
p
t) + B
n
sin(c λ
n
p
t)]P
n;2
(cos θ) sin(2φ):
To determine A
n
; B
n
, we use the initial data. It is simply seen that A
n
= 0 and
cos(θ) =
X
n=2
1
c λ
n
p
B
n
P
n;2
(cos θ);
that gives
B
n
=
1
kP
n;2
k
2
Z
¡1
1
xP
n;2
(x) dx:
6.3.6 Linear Problems on a solid ball
Example 6.15. Let us solve the f o llowing Poisson equation on a unit ball
u = cos(θ)
u(1; θ; φ) = 0
:
Note that the forcing term is independent of φ. Since P
n
(cosθ) =cos(θ), we write the solution
as the series
u(r; θ; φ) =
X
p=1
1
U
p
j
1p
(r) cos(θ):
Regarding the relation
∆( j
1p
(r) cos θ) = ¡ζ
1p
2
j
1p
(r) cos(θ);
we obtain
cos(θ)
X
p=1
1
¡ζ
1p
U
p
j
1p
(r) =cos(θ):
Constants U
p
are determined by the formula
U
p
=
¡1
ζ
1p
2
kj
1p
k
2
Z
0
1
j
1p
(r) r
2
dr:
An alternative method is to write the solution as u(r; θ; φ) = U(r) cos(θ) and substitute that
into the equation to obtain
r
2
U
00
+ 2rU
0
¡2U = r
2
:
The above Cauchy-Euler equation is solved for U(r) = Ar +
1
4
r
2
. The boundary condition
u(1; θ; φ) = 0 implies A = ¡
1
4
and finally
u(r; θ; φ) =
1
4
r(r ¡1) cos(θ):
6.3 Problems on spheres 27
The series solution of the equation is just the series form of the later closed form solution.
Example 6.16. Let us solve the f o llowing heat problem
8
>
>
<
>
>
:
@
t
u = u ¡e
¡t
u(t; 1; θ; φ) = cos(θ)
u(0; r; θ; φ) = 0
:
Since the boundary condition is nonzero, we write the solution as
u(t; r; θ; φ) = v(r; θ; φ) + w(t; r; θ; φ):
The equation for v is the following Laplace equation
v = 0
v(1; θ; φ) = cos(θ)
;
with the solution v = r cos(θ). The equation for w is
8
>
>
<
>
>
:
@
t
w = w ¡e
¡t
w(t; 1; θ; φ) = 0
w(0; r; θ; φ) = ¡r cos(θ)
:
Note that the initial c o ndition for w is independent of φ and also the forcing term is inde-
pendent of φ and θ. According to this information, we write the solution as the series in
terms of fj
1p
(r)P
1
(cos θ)g as
w(t; r; θ; φ) =
X
p=1
1
W
p
(t)j
1p
(r) cos(θ):
Remember that P
1
(cosθ) = cos(θ). Substituting w into the equation gives
X
p=1
1
W
p
0
(t)j
1p
(r) cos(θ) =
X
p=1
1
¡ζ
1p
2
W
p
(t)j
1p
(r) cos(θ) ¡e
¡t
:
In order to merge summations and find the desired equation for W
p
0
, we have to expand the
source term e
¡t
in terms of eigenfunctions fj
1p
(r) P
1
(cosθ)g. But this is impossible because
the source term is independent of θ. Fo r this, we split the equation of w into two sub-
problems
(a)
8
>
>
<
>
>
:
@
t
w = w ¡e
¡t
w(t; 1; θ; φ) = 0
w(0; r; θ; φ) = 0
+ (b)
8
<
:
@
t
w = w
w(t; 1; θ; φ) = 0
w(0; r; θ; φ) = ¡r cos(θ)
:
The solution to the sub-problem (b) is derived as
w
b
(t; r; θ; φ) =
X
p=1
1
W
p
e
¡ζ
1p
2
t
j
1p
(r)cos(θ);
28 3D Linear Second-Order Equations
where W
p
are determined as
W
p
=
¡1
kj
1p
k
2
Z
0
1
j
1p
(r) r
3
dr:
To solve the sub-problem (a), we expand the source terms as
e
¡t
= e
¡t
X
p=1
1
R
p
j
0p
(r);
where
R
p
=
1
kj
0p
k
2
Z
0
1
j
0p
(r) r
2
dr:
We write the solution to (a) as
w
a
(t; r; θ; φ) =
X
p=1
1
R
p
ζ
0p
2
¡1
¡
e
¡t
¡e
¡ζ
0p
2
t
j
0p
(r):
Finally, the solution is
u(t; r; θ; φ) = r cos(θ) +
X
p=1
1
R
p
ζ
0p
2
¡1
¡
e
¡t
¡e
¡ζ
0p
2
t
j
0p
(r) +
X
p=1
1
W
p
e
¡ζ
1p
2
t
j
1p
(r)cos(θ):
Example 6.17. Let us solve the f o llowing wave equati on in a unit solid ball
8
>
>
<
>
>
:
@
tt
u = u ¡10rcos(θ)
u(1; θ; φ) = 0
u(0; r; θ; φ) = r(r
2
¡1)cos(θ); @
t
u(0; r; θ; φ) = sin(θ)sin(φ)
:
Write the solution as
u(t; r; θ; φ) = v(r; θ; φ) + w(t; r; θ; φ);
where v satisfies the Poisson equation
v = 10r cos(θ)
v(1; θ; φ) = 0
:
If we w rite v = V (r) cosθ, then V (r) satisfies the ordinary equation
(
r
2
V
00
+ 2rV
0
¡2V = 10r
3
V (1) = 0; V (0): bounded
:
This is a Cauchy-Euler equation and is solved for V (r) =
1
c
2
r(r
2
¡1). Therefore, we obtain
u(t; r; θ; φ) = r(r
2
¡1)cos(θ) + w(t; r; θ; φ);
where w satisfies the equation
8
<
:
@
tt
w = w
w(1; θ; φ) = 0
w(0; r; θ; φ) = 0; @
t
w(0; r; θ; φ) = sin(θ)sin(φ)
:
6.3 Problems on spheres 29
Note that P
1
1
(cosθ) =sinθ and thus the so lution of the above equation is written in the series
form as
w(t; r; θ; φ) =
X
p=1
1
W
p
(t)j
1p
(r) P
1;1
(cosθ) s in(φ);
where W
p
(t) satisfies the equation W
p
00
= ¡ζ
1p
2
W
p
. Since W
p
(0) = 0, the solution W (t) is
W
p
(t) = B
p
sin(ζ
1p
t):
Therefore, w is
w(t; r; θ; φ) =
X
p=1
1
B
p
sin(ζ
1p
t)j
1p
(r) P
1;1
(cosθ) sin(φ);
where constants B
p
satisfy the relation
1 =
X
p=1
1
ζ
1p
B
p
j
1p
(r);
and
B
p
=
1
ζ
1p
kj
1p
k
2
Z
0
1
j
1p
(r) r
2
dr:
Finally, the series solution to the prob lem is the series
u(t; r; θ; φ) = r(r
2
¡1)cos(θ) +
X
p=1
1
B
p
sin(ζ
1p
t)j
1p
(r) sin(θ) sin(φ):
Problems
Problem 6.27. Show that P
n
m
(x) a re orthogonal in the following sense
a)
Z
¡1
1
P
n;m
(x) P
n
0
;m
(x) dx = 0; n =/ n
0
:
b)
Z
¡1
1
1
1 ¡x
2
P
n;m
(x) P
n;m
0
(x) dx = 0; m =/ m
0
:
Problem 6.28. Find series of the following fun ctions in terms of Legendre polynomials fP
n
(x)g for
x 2[¡1; 1] and draw the first 5 terms of each series.
a) f(x) = 1 ¡x
2
p
b) f (x) = sin(πx)
Problem 6.29. Write the series representation of the following functions in terms of functions in the
list fP
n
1
(x)g for ¡1 x 1. Draw each series for first 5 terms.
a) f(x) = 1 ¡x
2
b) f (x) = x
3
Problem 6.30. Repeat the above problem in terms of fP
n;2
(x)g.
Problem 6.31. Solve the Laplace equation u = 0 inside the unit ball with the following boundary
conditions
a) u(1; θ; φ) = 3 cos
2
θ ¡1
30 3D Linear Second-Order Equations
b) u(1; θ; φ) = θ + 1
c) u (1; θ; φ) = sin(3φ) + cos(2θ)
Problem 6.32. Solve the Laplace equation u = 0 in the exterior of the unit ball with the following
bo undary conditions
a) u(1; θ; φ) = P
n
(cosθ)
b) u(1; θ; φ) = φ
Problem 6.33. Solve the Laplace equation u = 0 defined on the space 1 < r < 2 in R
3
(the space
between two sphere r = 1, r = 2) with the following boundary condition:
a) u(1; θ; φ) = ¡1 ; u(2; θ; φ) = 1 .
b) u(1; θ; φ) = sin(φ); u(2; θ; φ) = sin (φ).
Problem 6.34. Solve the following Laplace equation inside the unit ball
u = 0
u(1; θ; φ) = sin(φ)
:
Use a calculator to find the coefficients of first 4 terms.
Problem 6.35. Verify that the spherical Bessel functions j
n
(x) =
π
2x
q
J
n+1/2
(x) satisfies the spherical
Bessel equation
x
2
y
00
+ 2xy
0
+ (x
2
¡n(n + 1))y = 0;
where J
n
(x) is the so lution to the Bessel equation
x
2
y
00
+xy
0
+ (x
2
¡n
2
)y = 0:
Problem 6.36. Write the series representation of the following functions in terms of fj
0p
(r)g in 0r 1
and plot each
a) f(r) = 1
b) f (r) = r
c) f (r) = r
2
.
Problem 6.37. Repeat the above problem for functions in the list {j
1p
(r)}.
Problem 6.38. Solve the Poisson equation
(θ; φ)
u = θ on the surface of the unit ball. Use a calculator
to determine the coefficients of the first 4 terms.
Problem 6.39. Solve the Poisson equation
(θ; φ)
u = sin
2
φ on the surface of the unit ball.
Problem 6.40. Explain why the eigenfunction expansion method does not work for the Poisson
equation
(θ;φ)
u = 1 defined on the surface of the unit ball. Is there a unique solution to the problem?
Problem 6.41. Solve the following heat problem on the surface of the unit ball
(
@
t
u =
(θ;φ)
u ¡P
k
(cosθ)
u(0; θ; φ) = 0
;
where k 1 is a xed integer. Draw the temperature of the circle (1; π /4; φ) in time fo r n = 2.
Problem 6.42. Solve the following heat problem on the surface of the unit ball
(
@
t
u =
(θ;φ)
u
u(0; θ; φ) = P
n
(cosθ)
;
where n 0.
6.3 Problems on spheres 31
Problem 6.43. Solve the following wave problem on the surface of the unit sphere
(
@
tt
u =
(θ;φ)
u
u(0; θ; φ) = 0; @
t
u(0; θ; φ) = f (θ; φ)
:
Plot the solution at θ = π/4, if f (θ; φ) = 0.1 cosθ in terms of time t.
Problem 6.44. Even though the Dirac delta δ(x) is not a function in usual sense, let us write a
symbolic series of δ(x) in terms of P
n
(x) a s
δ(x) =
X
n=0
1
D
n
P
n
(x):
The coefficients D
n
are determined by the aid of inner product as
D
n
=
P
n
(0)
kP
n
k
2
=
2n + 1
2
P
n
(0):
a) Plot the series of δ(x) for 30 terms in the interval (¡1; 1).
b) Solve the following equation on the surface of the unit ball
(
@
tt
u =
(θ;φ)
u ¡δ(t ¡1) δ(θ ¡π /2)
u(0; θ; φ) = @
t
u(0; θ; φ) = 0
:
Problem 6.45. Consider the following Poisson equation inside the unit ball
u = 1
u(1; θ; φ) = 0
:
a) Find a series solution to the problem.
b) Find the solution in closed form.
Problem 6.46. Consider the following Poisson equation inside the unit ball
u = P
n
(cos θ)
u(1; θ; φ) = 0
:
a) Find a series solution to the problem.
b) Find the solution in closed form.
Problem 6.47. Solve the following Poisson equation inside the unit ball
u = φ
u(1; θ; φ) = 1 + cos(θ)
:
Problem 6.48. Solve the following heat equation inside the unit ball
8
>
>
>
>
>
>
<
>
>
>
>
>
>
:
@
t
u = u ¡cos(θ)
u(t; 1; θ; φ) =
5
4
cos(θ)
u(0; r; θ; φ ) =
r
2
4
cos(θ)
:
and find first 3 terms of the transient solution.
Problem 6.49. Solve the following heat problem inside the unit ball
8
>
>
<
>
>
:
@
t
u = k u ¡P
k
1
(cos θ) sin(φ)
u(t; 1; θ; φ) = 0
u(0; r; θ; φ ) = 0
;
32 3D Linear Second-Order Equations
and draw few terms of the series solution at the point r = 0.5; θ = π / 2,φ = π /2 with respect to time t
for k = 0.001.
Problem 6.50. (10 points) Let denote the space between the spheres r = 1 and r = 2.
a) Solve the Laplace equation u = 0 in with t he boundary conditions
u(1; θ; φ) = 1 + cos(θ); u(2; θ; φ) = 2 + 2cos(θ)
b) Use P
2
2
(cosθ) and find a closed form so lution to the following Poisson equation
8
>
>
<
>
>
:
u = 18r sin
2
θ sin(2φ)
u(1; θ; φ) = 1 + cos(θ)
u(2; θ; φ) = 2 + 2 cos(θ)
:
Problem 6.51. Solve the following heat problem inside the unit ball
8
>
>
<
>
>
:
@
t
u = 0.001u ¡δ(t ¡1)P
k
1
(cos θ) sin(φ)
u(t; 1; θ; φ) = 0
u(0; r; θ; φ) = 0
;
and draw few terms of the series solution at the point r = 0.5; θ = π/2,φ = π/2 with respect to time t.
Problem 6.52. Solve the following damped wave equation inside the unit ball
8
>
>
<
>
>
:
@
tt
u + 2ξ@
t
u = c
2
u
u(t; 1; θ; φ) = 0
u(0; r; θ; φ ) = 0; @
t
u(0; r; θ; φ ) = φ
:
Assume tha t ξ > 0 is small enough and the system is in the under-damped mode.
Problem 6.53. Solve the following wave problem inside the unit ball
8
>
>
<
>
>
:
@
tt
u = c
2
u ¡e
¡t
u(t; 1; θ; φ) = 0
u(0; r; θ; φ ) = r
Problem 6.54. Let D be the following section of the unit ball:
D =
n
(r; θ; φ); 0 < r < 1; 0 θ π; 0 φ
π
2
o
:
Solve the following heat equation on D:
8
>
>
>
>
>
>
<
>
>
>
>
>
>
:
@
t
u = u
u(t; r; θ; 0) = u(t; r; θ; π/2) = 0
u(t; 1; θ; φ) = cos(θ) sin(2φ)
u(0; r; θ; φ) = 0
:
6.4 Legendre polynomials
The force field generated by a mass m in R
3
is
f
~
= ¡
mG
jrj
2
e
r
;
6.4 Legendre polynomials 33
where e
r
is the unit vector in the direction of r, the line connecting a point (x; y; z) to the
location of m. P. S. Laplace observed that the above force field is the gradient of a scalar
function which is equal to
V (r) =
mG
jrj
;
and moreover, V satisfies the equation V = 0 if r =/ 0. The British Mathematician G.
Green was the first person who called V a potential function for f
~
. For this reason, the
Laplace equation is sometimes called a potential equation. Th e French mathematician, J.
Legendre gave a series representati o n of the potential gen erated by a mass which is located
at the point (0; 0; R); see Fig.6.2.
p
R
m
r
s
θ
Figure 6.2.
The potential (assuming m = 1 and omitting the constant G) i s equal to
V =
1
jrj
=
1
R
2
+ s
2
¡2sRcos(θ)
p
:
Substituting ρ =
s
R
and x = cos(θ), we reach
V =
1
R
1
1 + ρ
2
¡2ρx
p
:
Let us write the series of the right hand side of V (ρ) in terms of ρ as f o llows (omitting
1
R
)
1
1 + ρ
2
¡2ρx
p
=
X
n=0
1
P
n
(x) ρ
n
; (6.38)
for some functions P
n
(x). From (6.38) it is immediately obtained that P
n
is of th e following
form
P
n
(x) =
1
n!
@
n
@ρ
n
(1 + ρ
2
¡2ρx)
¡1/2
j
ρ=0
:
34 3D Linear Second-Order Equations
On the other hand, it turns out that P
n
(x) satisfies a differential equation ca lled the
Legendre equation. In fact, since V is a potential, we have V = 0 or equivalently
∆(P
n
(cosθ)ρ
n
) = 0. We have
∆(P
n
(cosθ) ρ
n
) =
n(n + 1)
R
n
s
n¡2
P
n
(cos θ) +
s
n¡2
R
n
sin(θ)
d
(sinθP
n
(cos θ)) = 0:
Simplifying the above relation g ives the fo llow ing equation:
n(n + 1) P
n
+
1
sin(θ)
d
(sinθP
n
) = 0:
For x = cosθ, the above equation reads
d
dx
(1 ¡x
2
)
dP
n
dx
+ n(n + 1) P
n
= 0: (6.39)
From (6.38) we have
1
1 + ρ
2
¡2ρx
=
X
n=0
1
P
n
2
(x) ρ
2n
+
X
n=/ m
P
n
(x) P
m
(x) ρ
n+m
;
and then
Z
¡1
1
dx
1 + ρ
2
¡2ρx
=
X
n=1
1
ρ
2n
Z
¡1
1
P
n
2
(x) dx:
But
Z
¡1
1
dx
1 + ρ
2
¡2ρx
=
1
ρ
log
ρ + 1
ρ ¡1
=
X
n=0
1
2
2n + 1
ρ
2n
:
and we obtain
Z
¡1
1
P
n
2
(x) dx =
2
2n + 1
:
Again, from (6.38) we obtain for x = 1
1
1 + ρ
2
¡2ρ
p
=
1
1 ¡ ρ
=
X
n=0
1
ρ
n
;
and thus P
n
(1) = 1 for all n 0. For x = ¡1 we h ave
1
1 + ρ
2
+ 2ρ
p
=
1
1 + ρ
=
X
n=0
1
(¡1)
n
ρ
n
and therefore P
n
(¡1) = (¡1)
n
. Also changing ρ to ¡ρ gives
X
n=0
1
P
n
(x) (¡ρ)
n
=
1
1 + ρ
2
+ 2ρx
p
=
1
1 + ρ
2
¡2ρ (¡x)
p
=
X
n=0
1
P
n
(¡x) ρ
n
Therefore P
n
(¡x) = (¡1)
n
P
n
(x). The list fP
n
(x)g
n=0
1
is an orthogonal basis for smooth
functions in [¡1; 1]. Therefore i f f(x), x 2[¡1; 1] is a smooth function, it can be represented
by the series
f(x)
X
n=0
1
f
n
P
n
(x);
6.4 Legendre polynomials 35
where the coefficients f
n
are calculated by the aid of inner product as
f
n
=
2n + 1
2
Z
¡1
1
f(x) P
n
(x) dx: (6.40)
It is simply seen that the above series can be written in an integral form. In fact, we have
f(x)
X
n=0
1
2n + 1
2
Z
¡1
1
f(y) P
n
(y) dy
P
n
(x) =
Z
¡1
1
f(y)
X
n=0
1
2n + 1
2
P
n
(x)P
n
(y)
!
dy
and if we denote the kernel K(x; y) as
K(x; y) =
X
n=0
1
2n + 1
2
P
n
(x)P
n
(y); (6.41)
then the function f(x) can be represented as the integral
f(x)
Z
¡1
1
K(x; y)f(y) dy: (6.42)
36 3D Linear Second-Order Equations