Professional Documents
Culture Documents
Solutions For Homework Assignment #4
Solutions For Homework Assignment #4
homework assignment #4
Solution:
nπH −1
y X∞ nπy nπx
u(x, y) = b0 + bn sinh sinh cos ,
H n=1 L L L
where X∞ nπx
b0 + bn cos
n=1 L
is the Fourier cosine series of the function f (x) on [0, L], that is,
1 L 2 L
Z Z
nπx
b0 = f (x) dx, bn = f (x) cos dx, n = 1, 2, . . .
L 0 L 0 L
Detailed solution: We search for the solution of the boundary value problem as a superposition
of solutions u(x, y) = φ(x)h(y) with separated variables of Laplace’s equation that satisfy the three
homogeneous boundary conditions.
Substituting u(x, y) = φ(x)h(y) into Laplace’s equation
∂2u ∂2u
+ 2 = 0,
∂x2 ∂y
we obtain
φ00 (x)h(y) + φ(x)h00 (y) = 0,
φ00 (x) h00 (y)
=− .
φ(x) h(y)
Since the left-hand side does not depend on y while the right-hand side does not depend on x, it
follows that
φ00 (x) h00 (y)
=− = −λ,
φ(x) h(y)
where λ is a constant. Then
φ00 = −λφ, h00 = λh.
Conversely, if functions φ and h are solutions of the above ODEs for the same value of λ, then
u(x, y) = φ(x)h(y) is a solution of Laplace’s equation.
Substituting u(x, y) = φ(x)h(y) into the homogeneous boundary conditions, we get
It is no loss to assume that neither φ nor h is identically zero. Then the boundary conditions are
satisfied if and only if φ0 (0) = φ0 (L) = 0, h(0) = 0.
To determine φ, we have an eigenvalue problem
1
nπ 2
This problem has eigenvalues λn = , n = 0, 1, 2, . . .. The corresponding eigenfunctions are
L
nπx
φ0 = 1 and φn (x) = cos , n = 1, 2, . . ..
L
The function h is to be determined from the equation h00 = λh and the boundary condition
h(0) = 0. We may assume that λ is one of the above eigenvalues so that λ ≥ 0. If λ = 0 then the
general solution of the equation is h(y) = c1 + c2 y, where
√ c1 , c2 are constants. If λ > 0 then the general
solution is h(y) = c1 cosh µy + c2 sinh µy, where µ = λ and c1 , c2 are constants. In both cases, the
boundary condition h(0) = 0 holds if c1 = 0.
Thus we obtain the following solutions of Laplace’s equation satisfying the three homogeneous
boundary conditions:
nπy nπx
u0 (x, y) = y, un (x, y) = sinh cos , n = 1, 2, . . .
L L
A superposition of these solutions is a series
X∞ nπy nπx
u(x, y) = c0 y + cn sinh cos ,
n=1 L L
where c0 , c1 , c2 , . . . are constants. Substituting the series into the boundary condition u(x, H) = f (x),
we get
X∞ nπH nπx
f (x) = c0 H + cn sinh cos .
n=1 L L
The right-hand side is a Fourier cosine series on the interval [0, L]. Therefore the boundary condition
is satisfied if the right-hand side coincides with the Fourier cosine series
X∞ nπx
b0 + bn cos
n=1 L
of the function f (x) on [0, L]. Hence
b0 bn
c0 = , cn = , n = 1, 2, . . . ,
H sinh nπH
L
where Z L Z L
1 2 nπx
b0 = f (x) dx, bn = f (x) cos dx, n = 1, 2, . . .
L 0 L 0 L
Problem 2. Solve Laplace’s equation inside a semicircle of radius a (0 < r < a, 0 < θ < π)
subject to the boundary conditions: u = 0 on the diameter and u(a, θ) = g(θ).
Solution: X∞ r n
u(r, θ) = bn sin nθ,
n=1 a
where X∞
bn sin nθ
n=1
is the Fourier sine series of the function g(θ) on [0, π], that is,
2 π
Z
bn = g(θ) sin nθ dθ, n = 1, 2, . . .
π 0
∂ 2 u 1 ∂u 1 ∂2u
+ + = 0.
∂r2 r ∂r r2 ∂θ2
2
The boundary condition u = 0 on the diameter gives rise to three boundary conditions in polar
coordinates:
u(r, 0) = u(r, π) = 0 (0 < r < a),
u(0, θ) = 0 (0 < θ < π)
(the latter condition means that u = 0 at the origin).
We search for the solution of the boundary value problem as a superposition of solutions u(r, θ) =
h(r)φ(θ) with separated variables of Laplace’s equation that satisfy the above homogeneous boundary
conditions.
Substituting u(r, θ) = h(r)φ(θ) into Laplace’s equation, we obtain
1 0 1
h00 (r)φ(θ) + h (r)φ(θ) + 2 h(r)φ00 (θ) = 0,
r r
r2 h00 (r) + rh0 (r) φ00 (θ)
=− .
h(r) φ(θ)
Since the left-hand side does not depend on θ while the right-hand side does not depend on r, it follows
that
r2 h00 (r) + rh0 (r) φ00 (θ)
=− = λ,
h(r) φ(θ)
where λ is a constant. Then
Conversely, if functions h and φ are solutions of the above ODEs for the same value of λ, then
u(r, θ) = h(r)φ(θ) is a solution of Laplace’s equation in polar coordinates.
Substituting u(r, θ) = h(r)φ(θ) into the homogeneous boundary conditions, we get
It is no loss to assume that neither h nor φ is identically zero. Then the boundary conditions are
satisfied if and only if φ(0) = φ(π) = 0, h(0) = 0.
To determine φ, we have an eigenvalue problem
where c1 , c2 , . . . are constants. Substituting the series into the boundary condition u(a, θ) = g(θ), we
get X∞
g(θ) = cn an sin nθ.
n=1
3
The right-hand side is a Fourier sine series on the interval [0, π]. Therefore the boundary condition is
satisfied if the right-hand side coincides with the Fourier sine series
X∞
bn sin nθ
n=1
cn = bn a−n , n = 1, 2, . . . ,
where Z π
2
bn = g(θ) sin nθ dθ, n = 1, 2, . . .
π 0
Problem 3. Solve Laplace’s equation inside a 90o sector of a circular annulus (a < r < b,
0 < θ < π/2) subject to the boundary conditions:
Solution:
X∞ (r/a)2n − (a/r)2n
u(r, θ) = bn sin 2nθ,
n=1 (b/a)2n − (a/b)2n
where X∞
bn sin 2nθ
n=1
is the Fourier sine series of the function f (θ) on [0, π/2], that is,
Z π/2
4
bn = f (θ) sin 2nθ dθ, n = 1, 2, . . .
π 0
Detailed solution: We search for the solution of the boundary value problem as a superposition
of solutions u(r, θ) = h(r)φ(θ) with separated variables of Laplace’s equation that satisfy the three
homogeneous boundary conditions.
As shown in the solution of Problem 2, u(r, θ) = h(r)φ(θ) is a solution of Laplace’s equation in
polar coordinates if functions h and φ are solutions of the equations
It is no loss to assume that neither h nor φ is identically zero. Then the boundary conditions are
satisfied if and only if φ(0) = φ(π/2) = 0, h(a) = 0.
To determine φ, we have an eigenvalue problem
This problem has eigenvalues λn = (2n)2 , n = 1, 2, . . .. The corresponding eigenfunctions are φn (θ) =
sin 2nθ, n = 1, 2, . . ..
4
The function h is to be determined from the equation r2 h00 + rh0 = λh and the boundary condition
h(a) = 0. We may assume that λ is one of the above eigenvalues √ so that λ > 0. Then the general
solution of the equation is h(r) = c1 rµ + c2 r−µ , where µ = λ and c1 , c2 are constants. The boundary
condition h(a) = 0 holds if c1 aµ + c2 a−µ = 0, which implies that h(r) = c0 ((r/a)µ − (r/a)−µ ), where
c0 is a constant.
Thus we obtain the following solutions of Laplace’s equation satisfying the three homogeneous
boundary conditions:
r 2n a 2n
un (r, θ) = − sin 2nθ, n = 1, 2, . . .
a r
where c1 , c2 , . . . are constants. Substituting the series into the boundary condition u(b, θ) = f (θ), we
get
X∞ b 2n a 2n
f (θ) = cn − sin 2nθ.
n=1 a b
The right-hand side is a Fourier sine series on the interval [0, π/2]. Therefore the boundary condition
is satisfied if the right-hand side coincides with the Fourier sine series
X∞
bn sin 2nθ
n=1
bn
cn = , n = 1, 2, . . . ,
(b/a)2n − (a/b)2n
where Z π/2
4
bn = f (θ) sin 2nθ dθ, n = 1, 2, . . .
π 0
Problem 4. Consider the heat equation in a two-dimensional rectangular region, 0 < x <
L, 0 < y < H, 2
∂ u ∂2u
∂u
=k +
∂t ∂x2 ∂y 2
subject to the initial condition u(x, y, 0) = f (x, y).
Solve the initial-boundary value problem and analyze the temperature as t → ∞ if the
boundary conditions are:
∂u ∂u ∂u ∂u
(0, y, t) = 0, (L, y, t) = 0, (x, 0, t) = 0, (x, H, t) = 0.
∂x ∂x ∂y ∂y
Solution:
∞ X
∞
X nπx mπy
u(x, y, t) = cnm exp − (nπ/L)2 + (mπ/H)2 kt cos cos ,
L H
n=0 m=0
5
where Z LZ H
1
c00 = f (x, y) dx dy,
LH 0 0
Z LZ H
2 nπx
cn0 = f (x, y) cos dx dy, n ≥ 1,
LH 0 0 L
Z LZ H
2 mπy
c0m = f (x, y) cos dx dy, m ≥ 1,
LH 0 0 H
Z LZ H
4 nπx mπy
cnm = f (x, y) cos cos dx dy, n, m ≥ 1.
LH 0 0 L H
As t → ∞, the temperature uniformly approaches the constant c00 , the mean value of f (x, y) over
the rectangle.
Detailed solution: We search for the solution of the initial-boundary value problem as a
superposition of solutions u(x, y, t) = φ(x)h(y)G(t) with separated variables of the heat equation that
satisfy the boundary conditions.
Substituting u(x, y, t) = φ(x)h(y)G(t) into the heat equation, we obtain
φ(x)h(y)G 0 (t) = k φ00 (x)h(y)G(t) + φ(x)h00 (y)G(t) ,
Conversely, if functions φ, h, and G are solutions of the above ODEs for the same values of λ and µ,
then u(x, y, t) = φ(x)h(y)G(t) is a solution of the heat equation.
Substituting u(x, y, t) = φ(x)h(y)G(t) into the boundary conditions, we get
It is no loss to assume that neither φ nor h nor G is identically zero. Then the boundary conditions
are satisfied if and only if φ0 (0) = φ0 (L) = 0, h0 (0) = h0 (H) = 0.
To determine φ, we have an eigenvalue problem
6
mπ 2
This problem has eigenvalues µm = , m = 0, 1, 2, . . .. The corresponding eigenfunctions are
H
mπy
ψ0 = 1 and ψm (y) = cos , m = 1, 2, . . ..
H
The function G is to be determined from the equation G 0 = −(λ + µ)kG. The general solution of
this equation is G(t) = c0 e−(λ+µ)kt , where c0 is a constant.
Thus we obtain the following solutions of the heat equation satisfying the boundary conditions:
where cnm are constants. Substituting the series into the initial condition u(x, y, 0) = f (x, y), we get
∞ X
∞ ∞ ∞
X nπx mπy X X
f (x, y) = cnm cos cos = cnm φn (x)ψm (y).
L H
n=0 m=0 n=0 m=0
To determine the coefficients cnm , we multiply both sides by φN (x)ψM (y) (N, M ≥ 0) and integrate
over the rectangle 0 ≤ x ≤ L, 0 ≤ y ≤ H. We assume that the series may be integrated term-by-term:
Z LZ H ∞ X
X ∞ Z LZ H
f (x, y)φN (x)ψM (y) dx dy = cnm φN (x)ψM (y)φn (x)ψm (y) dx dy
0 0 n=0 m=0 0 0
∞ X
X ∞ Z L Z H
= cnm φN (x)φn (x) dx ψM (y)ψm (y) dy.
n=0 m=0 0 0
7
Problem 5. Consider the wave equation for a vibrating rectangular membrane (0 < x < L,
0 < y < H)
∂2u
2
∂ u ∂2u
2
=c +
∂t2 ∂x2 ∂y 2
∂u
subject to the initial conditions u(x, y, 0) = 0 and (x, y, 0) = f (x, y).
∂t
Solve the initial-boundary value problem if
∂u ∂u ∂u ∂u
(0, y, t) = 0, (L, y, t) = 0, (x, 0, t) = 0, (x, H, t) = 0.
∂x ∂x ∂y ∂y
Solution:
∞ X
∞ p
X sin( (nπ/L)2 + (mπ/H)2 ct) nπx mπy
u(x, y, t) = bnm p cos cos ,
(nπ/L)2 + (mπ/H)2 c L H
n=0 m=0
Detailed solution: We search for the solution of the initial-boundary value problem as a
superposition of solutions u(x, y, t) = φ(x)h(y)G(t) with separated variables of the wave equation that
satisfy the boundary conditions.
Substituting u(x, y, t) = φ(x)h(y)G(t) into the wave equation, we obtain
φ(x)h(y)G 00 (t) = c2 φ00 (x)h(y)G(t) + φ(x)h00 (y)G(t) ,
Conversely, if functions φ, h, and G are solutions of the above ODEs for the same values of λ and µ,
then u(x, y, t) = φ(x)h(y)G(t) is a solution of the wave equation.
Substituting u(x, y, t) = φ(x)h(y)G(t) into the boundary conditions, we get
It is no loss to assume that neither φ nor h nor G is identically zero. Then the boundary conditions
are satisfied if and only if φ0 (0) = φ0 (L) = 0, h0 (0) = h0 (H) = 0.
8
To determine φ, we have an eigenvalue problem
bnm
It follows that Cnm = 0 while Dnm = p , where bnm are coefficients of the
(nπ/L) + (mπ/H)2 c
2
expansion
∞ X∞
X nπx mπy
f (x, y) = bnm cos cos .
L H
n=0 m=0