Jackson 2.23 Homework Problem Solution
Jackson 2.23 Homework Problem Solution
PROBLEM:
A hollow cube has conducting walls defined by six planes x = 0, y = 0, z = 0, and x = a, y = a, z = a.
The walls z = 0 and z = a are held at constant potential V. The other four sides are at zero potential.
(a) Find the potential Φ(x, y, z) at any point inside the cube.
(b) Evaluate the potential at the center of the cube numerically, accurate to three significant figures.
How many terms in the series is it necessary to keep in order to attain this accuracy? Compare your
numerical result with the average value of the potential on the walls. See Problem 2.28.
SOLUTION:
The problem contains no charge, so the electric potential is described everywhere inside the cube by
the Laplace equation:
∇ 2 =0
This problem has a boundary, the cube, that best matches rectangular coordinates. In rectangular
coordinates, the Laplace equation becomes:
∂2 ∂ 2 ∂2
=0
∂ x 2 ∂ y 2 ∂ z2
Using the method of separation of variables, the most general solution to this equation is:
This must be true for all y and z, so that each term must vanish separately.
This forces Aα0 = 0 and Bα = -Aα. The solution now becomes:
Similarly, the boundary condition, Φ(x, y = 0, z) = 0 leads to Aβ0 = 0 and Bβ = -Aβ which gives the
solution:
∑ A sin x B 0 y A e B e
z − z
∑ A sin x A sin y A e z B e − z
,
∑ A sin a B 0 y A e z B e − z
∑ A sin a A sin y A e z B e− z
,
The only way this can be true for all y and z is if Bα0 = 0 and α = nπ/a where n = 0, 1, 2,...
x , y , z =∑ An sin
n
n x
a
B 0 y A e z B e− z ∑ An sin
n ,
n x
a
A sin y A e z B e − z
Similarly, apply the boundary condition Φ(x, y = a, z) = 0 to get Bβ0 = 0 and β = mπ/a where
n = 0, 1, 2,...
x , y , z =∑ An sin
n, m
n x
a
Am sin
a
m y
A e zB e− z
By definition we have 2 = 2 2 so that we now know = n 2m2 2 / a2 . We can combine several
constants so that we now have:
x , y , z =∑ sin
n, m
n x
a
sin
m y
a 2 2 2 2
An ,m e z n m / a Bn ,m e −z n m /a
2 2 2 2
V =∑ sin
n ,m
n x
a
sin
m y
a
An , mB n , m
Multiply both side by sin n ' x
a
sin
a
m' y
and integrate over x and y from 0 to a
a a
∫∫ V sin
0 0
n ' x
a
sin
m ' y
a
a
dx dy
a
= ∑∫ sin
n x
a
sin
n ' x
a
dx ∫ sin
m y
a
sin
m' y
a
dy An , mB n , m
n, m 0 0
Due to orthogonality, each integral on the right is zero, except when n = n' and m = m'
a a
a2
∫∫ V sin
0 0
n x
a
sin
m y
a
dx dy= A n , mB n , m
4
a a
4V
An ,m Bn , m= 2
a
∫ sin na x dx ∫ sin m a y dy
0 0
4V a a
An ,m Bn , m= [ 1−−1n ] [ 1−−1m ]
a n m
2
16 V
An , mB n , m= n, m = odd
n m 2
V =∑ sin
n ,m
n x
a
sin
m y
a 2 2 2 2
An , m e a n m /a Bn , m e −a n m / a
2 2 2 2
16 V
An , m e n m Bn ,m e− n m =
2 2 2 2 2 2
n, m = odd
n m 2
1
n2 m2 2
8V e2
B n , m=
n m 2 cosh / 2 n2m2
1 1
− n 2m2 2 2 2 2
z n m / a
2 n2m2 2 −z n 2m2 2 /a 2
2 2
n x m y 8 V e e e e
x , y , z = ∑ sin
a
sin
a n m 2 cosh / 2 n m
2 2
n ,m odd
x , y , z = ∑
n ,m odd
16 V
n m 2
sin
n x
a
sin
m y
a cosh /2 n2 m2 2 z / a−1
cosh /2 n m
2 2
(b) Evaluate the potential at the center of the cube numerically, accurate to three significant figures.
How many terms in the series is it necessary to keep in order to attain this accuracy? Compare your
numerical result with the average value of the potential on the walls. See Problem 2.28.
a /2, a / 2, a /2=
16V
2
∑
n ,m odd
1
nm
sin
n
2
sin
m
2
1
cosh /2 n2 m2
Φ( a /2, a /2, a /2)=V [
16
π 2
sin
π
2
sin
π
( ) ( )(1
2 cosh ((π/ 2) √ 2) )
16 1
2 sin
3
2
sin
3
2
1
cosh / 2 10
16 1
2 sin
3
3
2
sin
1
2 cosh / 2 10
16 1
2 sin
5
2
sin
5
2
1
cosh / 2 26
... ]
a /2, a / 2, a /2=V [0.3476−0.0075−0.00750.0002...]
Here is solution, to three significant figures, if you only keep the first term, or the first two terms, etc:
V
a / 2, a /2, a /2=
3
There are six walls on the cube and two sides have a non-zero potential V, so the average value of the
2V V
potential on the sides of the cube is Φ ave on surf = 6 = 3 . This leads to the interesting conclusion that:
[
= − 0
d
dn ]
n=a
We have solved the potential on the inside of the cube, so we can only use that potential to find the
surface charge density on the inside of the z = a surface. The normal to the inside surface is in the
negative z direction so that:
[
= 0
d
dz ]
z=a
[
= 0
d
∑ 16 V
dz n , m odd n m 2
sin
n x
a
sin
m y
a cosh /2 n2m2 2 z /a −1
cosh /2 n 2m2 ]
z =a
[
= 0 ∑
n ,m odd
16 V
n m 2
sin
n x
a
sin
m y
a sinh /2 n 2m2 2 z /a−1
cosh /2 n m
2 2
/a n 2m2
]
z=a
16 ϵ0 V √ n 2+m2
σ=
πa
∑ n m sin
n , m odd
( ) ( )(tanh ((π/ 2) √ n +m ))
nπ x
a
sin
mπ y
a
2 2