Math2065: Intro To Pdes Tutorial Solutions (Week 6)
Math2065: Intro To Pdes Tutorial Solutions (Week 6)
Semester 2, 2006
Tutorial Solutions (Week 6)
Now, the cosine function is zero at π/2, and at any points ±π, ±2π, ±3π, etc, away from
this value. That is, we need
π
p L = + n π n = 0, ±1, ±2, ±3, · · ·
2
However, we have chosen p > 0, and so we must limit ourselves to
π
p L = + n π n = 0, 1, 2, 3, · · ·
2
This means that 2
2 π/2 + nπ
λn = p = n = 0, 1, 2, 3, · · ·
L
are the eigenvalues. The corresponding eigenfunctions are, since A = 0 but B 6= 0,
π/2 + nπ
φn (x) = sin x n = 0, 1, 2, · · ·
L
2. We have already solved the heat equation in this form, for a general initial condition
u(x, 0) = f (x). The solution is given by
∞
X nπx −k(nπ/L)2 t
u(x, t) = Bn sin e ,
n=1
L
where
2 L
Z
nπx
Bn = f (x) sin dx (1)
L 0 L
gives the coefficients, which are related to the expansion of f (x) in terms of sine functions
in the form ∞
X nπx
f (x) = Bn sin .
n=1
L
For this problem, we are given that
πx 3πx
f (x) = 3 sin − sin
L L
Note that we do not need to invoke the formula (1), since f is already given in terms of a
expansion in sines. In fact, we can simply read off
B1 = 3 and B3 = −1 ,
with all other Bn s being zero. This is since, for example, B3 is the coefficient of sin 3πx
L
.
Therefore, in the infinite summation representing the solution u(x, t), all but two terms
are zero. Retaining only these two terms (corresponding to n = 1 and n = 3), we get the
solution
kπ 2 t 9kπ 2 t
πx 3πx
u(x, t) = 3 sin exp − 2 − sin exp − 2 .
L L L L
3. Please refer the solution to the previous problem. In this case, however, we are not able to
simply read off the values of the Bn s, since f (x) is not given as an expansion over the sines.
We therefore have to employ the formula (1):
Z L/2 Z L !
2 nπx nπx
Bn = 1 sin dx + 2 sin dx
L 0 L L/2 L
L/2 L !
2 cos nπx
L
cos nπx
L
= − nπ − 2 nπ
L L x=0 L x=L/2
2 L nπ nπ
= − cos − cos 0 + 2 cos nπ − 2 cos
L nπ 2 2
2 h nπ i
= 1 − 2(−1)n + cos .
nπ 2
There is unfortunately no nice expression for cos nπ
2
. The solution is therefore
∞
2 X 1 − 2(−1)n + cos nπ
2 nπx −k(nπ/L)2 t
u(x, t) = sin e .
π n=1 n L
4. (Very brief solutions will be given; the basic solution technique is essentially the same as in
the previous problems, with the insulated boundary conditions requiring a cosine expansion
rather than a sine one)
The solution is given by (2.4.19), where the coefficients satisfy (2.4.21), and hence (2.4.23-
24). The values of these coefficients is given below.
L
1 L 1 2 L nπx 2 L nπx 2
sin nπ
R R
(a) A0 = L L/2 1 dx = 2 , An = L L/2 cos L dx = L nπ sin L = − nπ 2
for n 6= 0.
L/2
5. Assume a separation of variables solution of the form u(x, t) = X(x) T (t), which upon
substitution into the PDE leads to
X 00 (x) 1 T 00 (t)
= 2 = −λ
X(x) c T (t)
for a separation constant λ. The fact that λ must be a constant is obtained by realising
that it cannot be a function of t (since it equals the left-hand term above), and moreover
it cannot be a function of x (since it equals the middle term above). Now, examining the
homogeneous boundary and initial conditions, we see that
The ODE for X(x) is the standard boundary value problem, which can be nontrivially
nπ 2
solved only if λ = λn = for positive integers n, leading to the solutions
L
nπx
Xn (x) = sin .
L
The T equation then becomes
nπc 2
00
T (t) + T (t) = 0
L
from which the basic form
nπct nπct
Tn (t) = A cos + B sin
L L
results. Since T (0) = 0 is required, A must be zero, and the cosine term can be discarded.
Now, since the solution u(x, t) is the product of X and T , for each n the function
nπx
nπct
un (x, t) = sin sin
L L
The inhomogeneous initial condition is all that remains to be satisfied. Taking the t deriva-
tive of the above,
∞
∂u X nπc nπx nπct
= Bn sin cos .
∂t n=1
L L L
3L 4πx 4πct
u(x, t) = sin sin .
4π L L