PH631 - HW4 - Josh Collins
We consider the rectangular region
0 ≤ x ≤ a,
0 ≤ y ≤ b,
with no free charge anywhere in the interior.
The boundary conditions are
ϕ(x, 0) = 0,
ϕ(x, b) = 0,
ϕ(a, y) = ϕ0
∂ϕ
= 0.
∂x x=0
(0 < y < b),
(1)
(2)
(3)
(4)
—
1. Governing equation and uniqueness
Since there is no free charge, the electrostatic potential satisfies Laplace’s equation:
∇2 ϕ(x, y) =
∂ 2ϕ ∂ 2ϕ
+
= 0.
∂x2 ∂y 2
(5)
By the uniqueness theorem for Laplace’s equation, a solution that satisfies this equation
in the interior and the given boundary conditions is unique.
—
2. Separation of variables
Assume a separable solution:
ϕ(x, y) = X(x)Y (y).
(6)
Substitution into Laplace’s equation gives
X ′′ (x) Y ′′ (y)
+
= 0.
X(x)
Y (y)
(7)
Each term must equal a constant:
X ′′
= k2,
X
Y ′′
= −k 2 .
Y
—
1
(8)
3. Applying boundary conditions at y = 0 and y = b
The y-equation is
Y ′′ + k 2 Y = 0,
(9)
Y (y) = A sin(ky) + B cos(ky).
(10)
with general solution
Applying the boundary conditions:
Y (0) = 0 ⇒ B = 0,
Y (b) = 0 ⇒ sin(kb) = 0.
Thus,
k=
nπ
,
b
(11)
(12)
n = 1, 2, 3, . . .
and
Yn (y) = sin
nπy b
(13)
.
(14)
—
4. Solving the x-equation and general series
The x-equation is
X ′′ − k 2 X = 0,
(15)
with solution
Xn (x) = Cn ekn x + Dn e−kn x ,
kn =
nπ
.
b
(16)
The general solution is therefore
∞
X
nπy ϕ(x, y) =
Cn ekn x + Dn e−kn x sin
.
b
n=1
(17)
—
5. Neumann boundary condition at x = 0
The Neumann boundary condition is
Differentiating,
∂ϕ
= 0.
∂x x=0
(18)
∞
nπy ∂ϕ X
=
kn Cn ekn x − Dn e−kn x sin
.
∂x n=1
b
(19)
2
At x = 0:
∞
X
nπy = 0.
kn (Cn − Dn ) sin
b
n=1
(20)
By orthogonality of the sine functions, each coefficient must vanish:
Cn = Dn .
(21)
Xn (x) = An cosh(kn x),
(22)
Thus,
and
ϕ(x, y) =
∞
X
nπx nπy sin
.
An cosh
b
b
n=1
(23)
—
6. Fourier sine expansion of ϕ0
Apply the boundary condition at x = a:
ϕ(a, y) = ϕ0 .
Thus,
ϕ0 =
(24)
∞
X
nπa nπy sin
.
An cosh
b
b
n=1
(25)
Expand ϕ0 as a sine series:
ϕ0 =
∞
X
Bn sin
n=1
with
nπy b
,
(26)
Z b
nπy ϕ0 sin
dy.
b
0
(27)
2ϕ0
[1 − (−1)n ] .
nπ
(28)
4ϕ0
, n odd,
Bn = nπ
0,
n even.
(29)
2
Bn =
b
Evaluating the integral:
Bn =
Hence,
—
3
7. Coefficient matching and final solution
Matching coefficients gives
An =
1
4ϕ0
,
nπ cosh nπa
b
n odd.
(30)
Therefore,
ϕ(x, y) =
∞
X
4ϕ0 cosh nπx
n=1
n odd
nπy b sin
nπ cosh nπa
b
b
(31)
—
8. Uniqueness justification
The solution satisfies Laplace’s equation throughout the region and all boundary conditions.
By the uniqueness theorem, this solution is the only possible electrostatic potential in the
box.
4