Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

MATH2065: INTRO TO PDEs

Semester 2, 2009
Tutorial Solutions (Week 7)

1. A product solution φ(x, y) = X(x) Y (y) is assumed, and substitution into the PDE yields

X 00 (x) Y 00 (y)
X 00 (x)Y (y) + X(x)Y 00 (y) = 0 ⇒ =− = λ,
X(x) Y (y)

where λ is the separation constant. (Note: an “aside” appears later on as to what would
happen if you choose (−λ) above instead of λ. It actually does not matter in the end.)
Moreover, the homogeneous boundary conditions tell us that

φ(x, 0) = 0 ⇒ X(x) Y (0) = 0 for all x ⇒ Y (0) = 0


φ(x, L) = 0 ⇒ X(x) Y (L) = 0 for all x ⇒ Y (L) = 0
φ(0, y) = 0 ⇒ X(0) Y (y) = 0 for all y ⇒ X(0) = 0.

Notice that we do not deal with the inhomogeneous condition yet; that will not give us
straightforward conditions as above. Summarising the ODEs and the conditions which we
have at this point:

X 00 (x) = λ X(x) ; X(0) = 0,


Y 00 (y) = −λ Y (y) ; Y (0) = Y (L) = 0.

We deal with the second equation first; the reason is that we have two conditions on this,
but only one for the X equation (we will not be able to figure out conditions on λ with
only one condition present). Now, examining the eigenvalue problem associated with the Y
equation, we note that, as usual  nπ 2
λ = λn =
L
with corresponding eigenfunctions
nπy
Yn (y) = sin .
L
With this choice of λ, the X equation becomes
 nπ 2
X 00 (x) − X(x) = 0,
L
for which the general solution is
nπx nπx
Xn (x) = An cosh + Bn sinh .
L L
(Equivalently, one may use the form Cn exp nπx + Dn exp − nπx
 
L L
– but the above form
turns out to be more convenient in this case.) Since X(0) = 0 is required, An must be zero.
The linear superposition of the resulting product solutions φn (x, y) = Xn (x) Yn (y) is

X nπx nπy
φ(x, y) = Bn sinh sin , (1)
n=1
L L
for yet to be determined constants Bn . The final boundary condition we need to satisfy is
φ(L, y) = f (y), which when applied to Eq. (1) yields

X nπy
Bn sinh (nπ) sin = f (y).
n=1
L

This is the standard situation where a sum of sin(nπy/L) appears, except that here the
coefficient is not simply Bn but Bn sinh (nπ). Thus, the final form of the solution u(x, t)
will also have coefficients of this more complicated form instead of simply Bn . Thus we find
2 L
Z
nπy
Bn sinh (nπ) = f (y) sin dy .
L 0 L
Therefore, our unknown coefficients are given by
Z L
2 nπy
Bn = f (y) sin dy. (2)
L sinh (nπ) 0 L
The full solution is Eq. (1) with the Bn ’s given by Eq. (2).
Aside: You might have chosen −λ as your initial separation constant. Had you done so, your
equations for X and Y would be similar to those above, with λ replaced with −λ. Still, the Y
equation would be the one to examine first, since it involves two boundary values. This equation
would then be
Y 00 (y) = λ Y (y) ; Y (0) = Y (L) = 0 .
This then would be not quite in the standard boundary-value representation we’ve used – the
difference is that there would be a λ where we would normally see a −λ on the right-hand side.
2
If in the standard form, our eigenvalues would be nπ L . Since this has a negative sign difference,
2
the eigenvalues then would be negative this value, i.e., − nπ L . The eigenfunctions would be the
same. Now, the X equation, which is now
X 00 (x) = −λ X(x) ; X(0) = 0
with these new eigenvalues substituted in, becomes
 nπ 2
X 00 (x) = X(x) .
L
This is exactly the same equation that you would have got had you chosen the original separation
constant as λ rather than −λ. Therefore, the final solution would be the same independently of
whether you’d put in a +λ or −λ as your initial separation constant. The point is: it does not
matter – you just need to be consistent with whatever choice you make.

2. Try separation of variables in the form u(x, y) = h(x)φ(y). Looking at the zero boundary
conditions, we see that
∂u
(0, y) = 0 for all y ⇒ h0 (0)φ(y) = 0 for all y ⇒ h0 (0) = 0 .
∂x
∂u
(L, y) = 0 for all y ⇒ h0 (L)φ(y) = 0 for all y ⇒ h0 (L) = 0 .
∂x
u(x, 0) = 0 for all x ⇒ h(x)φ(0) = 0 for all x ⇒ φ(0) = 0 .
We leave the nonhomogeneous boundary condition as it is for the moment, since we are
not able to extract information on the functions h and φ from it. Now, substituting the
“separation of variables” solution to the PDE,
1 00 1
h (x) = − φ00 (y) = −λ .
h φ
The h equation is then in a familiar form:
d2 h
= −λ h(x) ; h0 (0) = 0 , h0 (L) = 0 .
dx2
Thus, from our table on boundary value problems, λn = (nπ/L)2 , with n = 0, 1, 2, · · ·, and
hn (x) = cos nπx
L
. The φ equation becomes

d2 φ  nπ 2
= φ(y) .
dy 2 L
When n = 0, this has solution φ0 (y) = Ay + B, and applying φ(0) = 0 yields B = 0. When
n 6= 0,
nπy nπy
φ(y) = C cosh + D sinh
L L
(this is a more convenient representation than the exponentials), and applying φ(0) = 0, we
get C = 0. The result of superposition on all of these solutions is therefore

X nπx nπy
u(x, y) = A0 y + An cos sinh . (3)
n=1
L L

The nonhomogeneous boundary condition yields



X nπx nπH
f (x) = A0 H + An cos sinh ,
n=1
L L

which we identify as a series representation for f . We can now read off the coefficients based
on our table on boundary value problems as being
1 L
Z Z L
1
A0 H = f (x)dx ⇒ A0 = f (x)dx ,
L 0 HL 0
2 L
Z Z L
nπH nπx 2 nπx
An sinh = f (x) cos dx ⇒ An = nπH
f (x) cos dx .
L L 0 L L sinh L 0 L

The solution is therefore (3), with the constants as given above.

3. It helps to follow the example from the lecture in this case. The example was for inside a
circle, whereas we now have to solve the equation outside a circle. When inside the circle,
we got rid of the terms of the form r−n , since these blew up (went to infinity) at the origin,
which was inside the domain of interest. Now, when considering a domain outside the circle,
we have no excuse to throw out these terms. On the other hand, we are given the hint that
u(r, θ) should remain finite as r → ∞. For this to happen, we certainly cannot tolerate
having any terms of the form rn . Therefore, we need to keep terms of the form r−n , and
chuck out those of the form rn .
There are still a couple of terms to worry about – those resulting from choosing n = 0.
These give r solutions in the form A0 + B0 ln r. Since we need the solution to be finite
as r → ∞, this logarithmic part is also not acceptable (although the constant A0 is fine).
Therefore, getting rid of all these unwelcome terms, we are left with

X ∞
X
u(r, θ) = A0 + An r−n cos nθ + Bn r−n sin nθ , (4)
n=1 n=1

for a bunch of (to be determined) constants.


(a) For this choice, substituting r = a in (4),

X ∞
X
−n
ln 2 + 4 cos 3θ = A0 + An a cos nθ + Bn a−n sin nθ .
n=1 n=1

There needs to be equality of the functions above, and by equating coefficients of


the constant term, we get A0 = ln 2. Similarly equating coefficients of cos 3θ, we get
A3 = 4a3 . That takes care of everything, and we set all other constants equal to zero.
The solution is then, from (4),
 a 3
u(r, θ) = ln 2 + 4 cos 3θ .
r

(b) Cheap trick: The boundary condition are the same as in the case inside the disk except
that an is replaced by a−n . Thus, the coefficients are determined from the solution of
that case with an replaced by a−n .

You might also like