Professional Documents
Culture Documents
FINAL
SOLUTIONS
Name:
Signature:
INSTRUCTIONS
1. Time allowed: 120 mins
2. There are 10 problems worth a total of 106 points. Present the solutions to the problems
you attempt in the space provided. Show all your working neatly and concisely, and
indicate your final answer clearly.
3. The use of calculators is not permitted during the examination. For full credit you
must show your working in the solutions of all problems unless otherwise stated in the
question.
Question
1
2
3
4
5
6
7
8
9
10
TOTAL
c
2016
Points
Section 01
Fourier series
Sine series 0 < x < l.
f (x) =
bn sin
nx
l
nx
2 l
bn =
f (x) sin
dx
l 0
l
n=1
nx
X
1
f (x) = a0 +
an cos
2
l
n=1
Z l
nx
2
f (x) cos
dx
an =
l 0
l
nx
nx
X
1
an cos
+ bn sin
f (x) = a0 +
2
l
l
n=1
Z l
nx
1
an =
f (x) cos
dx
l l
l
Z
nx
1 l
bn =
f (x) sin
dx
l l
l
Sturm-Liouville operator
1
[(p(x)y 0 )0 + q(x)y]
w(x)
Z
a1 (x) a02 (x)
w(x) = exp
dx
a2 (x)
p(x) = a2 (x)w(x)
q(x) = a0 (x)w(x)
Sy :=
Section 01
1. (10 points)
equation,
ux (0, y, t) = 0,
u(a, y, t) = 0,
uy (x, 0, t) = 0,
u(x, b, t) = 0 .
y
b
i) ux (0, y, t) = 0, the normal slope of the membrane on the left edge is zero.
ii) u(a, y, t) = 0, the height of the membrane on right edge is zero.
iii) uy (x, 0, t) = 0, the normal slope of the membrane on the bottom edge is zero.
iv) u(x, b, t) = 0, the height of the membrane on the top edge is zero.
Section 01
2. (10 points) Find the Fourier cosine series for f (x) = ex , 0 < x < .
Z
eau
Hint, eau cos bu du = 2
(a cos bu + b sin bu) + C.
a + b2
an =
=
=
=
=
Z
2 x
e cos nx dx
0
x
2
e
(cos nx + n sin nx)
1 + n2
0
e
1
2
(cos n + n sin n)
1 + n2
1 + n2
2
e
1
n
(1)
1 + n2
1 + n2
n
2(e (1) 1)
(1 + n2 )
Z
2 x
e dx
a0 =
0
2
= [ex ]0
2
= (e 1)
X
1
f (x) = e = a0 +
an cos(nx)
2
n=1
x
X
1
2(e (1)n 1)
= (e 1) +
cos(nx)
(1 + n2 )
n=1
Section 01
3. (10 points) Derive the heat equation for a 2D region with no internal heat generation.
Let u(x, y, t) be the temperature and (x, y, t) the flux vector. Assume the density of the plate
and the specific heat of the material of the plate are both 1. Hint, the divergence theorem for
a 2D region D is
ZZ
I
F dA =
D
F n ds .
D
Section 01
0<x<1,
Show that there are no non-positive eigenvalues and find an equation for all the positive eigenvalues.
For = p2 < 0,
X(x) = a cosh px + b sinh px
X 0 (x) = ap sinh px + bp cosh px
X 0 (0) = bp = 0
b=0
0
X (1) + 2X(1) = ap sinh p + 2a cosh p = 0
For p > 0 also sinh p > 0 and cosh p > 0, so a = 0 and the only solution is trivial.
For = 0,
X(x) = a + bx
X 0 (0) = b = 0
X 0 (1) + 2X(1) = 0 + 2a = 0
So a = 0 and there are no nontrivial solutions.
For = p2 > 0,
X(x) = a cos px + b sin px
X 0 (x) = ap sin px + bp cos px
X 0 (0) = bp = 0
b=0
0
X (1) + 2X(1) = ap sin p + 2a cos p = 0
Section 01
5. (10 points)
xy 00 + (1 x)y 0 + y = 0,
0<x<1,
y(0) = 0 ,
y 0 (1) = 0 .
Put the problem in Sturm-Liouville form and state p, q and w. Is the problem regular, periodic
or singular? Explain why and if the problem is singular state appropriate modified boundary
conditions at the singular point or points.
a1 (x) a02 (x)
w(x) = exp
dx
a2 (x)
Z
(1 x) 1
dx
= exp
x
Z
= exp
1dx
Z
= ex
p(x) = a2 (x)w(x) = xex
q(x) = a0 (x)w(x) = 0
In Sturm-Liouville form
ex
xex y 0
0 i
+ y = 0 .
p(0) = 0 so the Sturm-Liouville problem is singular and x = 0 is a singular point. Appropriate modified boundary conditions are that y and y 0 remain bounded as x 0+ .
Section 01
utt = c2 uxx ,
0 < x < ,
u(0, t) = u(, t) = 0 ,
u(x, 0) = 1 ,
ut (x, 0) = 0 .
t > 0,
XT 00 = c2 X 00 T
T 00
X 00
=
=
c2 T
X
T 00 + c2 T = 0
X 00 + X = 0
X(0) = X() = 0
X() = b sin = 0
n = n2
n = 1, 2, . . .
p
Xn (x) = sin n x .
Tn (t) = an cos
p
p
n ct + bn sin n ct
Section 01
n=1
u(x, 0) =
an sin nx = 1
n=1
Z
2
an =
sin nx dx
0
2 h cos nx i
=
n
0
2
((1)n (1))
=
n
4
n odd
n
=
0
n even
X
sin nx(can sin nct + cbn cos nct)
ut (x, t) =
n=1
ut (x, 0) =
cbn sin nx = 0
n=1
bn = 0
X
4
u(x, t) =
sin nx cos nct
n
n=1
n odd
10
Section 01
7. (10 points) Consider the 1D heat equation in a rod of length 1 where the left endpoint is
fixed at a temperature of 3 units and the right endpoint is fixed at a temperature of 1 unit.
ut = uxx ,
u(0, t) = 3 ,
u(1, t) = 1 .
0 < x < 1,
t > 0,
Find a general solution to the boundary value problem. (You do not need to find coefficients to
match an initial condition.)
Write the solution as a sum of a steady state solution v and a transient w,
u(x, t) = v(x) + w(x, t) .
Steady state problem, as v is independent of t,
v 00 (x) = 0 ,
v(0) = 3 ,
0<x<1
v(1) = 1 .
v(1) = 3 + B = 1 .
w(1, t) = 0 .
11
Section 01
X(1) = B sin = 0
n = (n)2
n = 1, 2, . . .
p
Xn (x) = sin n x .
cn sin
p
n xen t
n=1
2
n = (n)
n = 1, 2, . . . .
12
Section 01
1
, 0 x 1, for n = 1, 2, . . . .
enx
(a) Calculate the uniform error between fn and f (x) = 0. Does fn converge to f in the
uniform sense as n ? Explain.
Uniform error
1
=1.
0x1 enx
0x1
(b) Calculate the L2 error between fn and f (x) = 0. Does fn converge to f in the L2 sense
as n ? Explain.
L2 error
s
s
Z
s
Z
=
1
enx
2
dx
e2nx dx
s
=
r
=
0 lim
1
e2nx
2n
1
0
1
(1 e2n ) .
2n
1
1
(1 e2n ) lim
= 0 so fn converges to f in the L2 sense.
n
2n
2n
13
Section 01
X
g(x) =
cn Xn (x) .
n=1
Derive a formula for the coefficients cn . (Show all your work, quoting a formula for cn is not
sufficient.)
Multiply the expansion formula for g by a function Xm in the orthogonal family and
integrate over the interval.
g(x)Xm (x) =
b
g(x)Xm (x) dx =
a
X
n=1
cn Xn (x)Xm (x)
cn
Xn (x)Xm (x) dx
a
n=1
As {Xn (x)}
n=1 is an orthogonal family
Z
Rb
a
Z
g(x)Xm (x) dx = cm
Xm (x)Xm (x) dx
a
Hence
Rb
cm =
g(x)Xm (x) dx
.
Rb
2 (x) dx
X
m
a
hg, Xm i
.
hXm , Xm i
14
Section 01
10. (12 points) Consider the heat equation on the sector 0 < r < 1, 0 < <
, t > 0,
2
1
1
ut = urr + ur + 2 u ,
r
r
u(r, 0, t) = u(r, , t) = 0 ,
2
u(1, , t) = 0 ,
u(r, , 0) = f (r, ) .
y
1
00 + = 0
r2 R00 + rR0 + (r2 )R = 0
T (t) = aet
(1)
(2)
(3)
15
Section 01
() = a cos + b sin
(0) = a = 0
( ) = b sin = 0
2
2
n = (2n)2
n () = sin 2n
R(1) = 0
J2n ( ) = 0
nm = (z2n,m )2
(e) Use the superposition principle to write a general solution to the heat equation on the
sector.
By the superposition principle a general solution is,
u(r, , t) =
n=1 m=1