Académique Documents
Professionnel Documents
Culture Documents
This exam contains 6 pages (including this cover page) an empty scratch paper and 5 problems.
Check to see if any pages are missing. Enter all requested information on the top of this page.
You are required to show your work on each problem on this exam.
Do not write in the table to the right.
Problem Points Score
1 10
2 10
3 10
4 10
5 0
Total: 40
1. Let
1 when 0 ≤ x ≤ L,
f (x) =
0 when − L ≤ x < 0.
(a) (5 points) Find the Fourier series F ( x ) of f ( x ) on [− L, L] Solution: Notice that the func-
tion is neither even nor odd. Hence we have to find all the terms. We start with a0
Z L Z L
1 1
a0 = f ( x )dx = 1dx = 1.
L −L L 0
Then an , n = 1, 2, . . . ,
Z L
1 nπx 1 L nπx
Z
an = f ( x ) cos( )dx = 1 cos( )dx
L −L L L 0 L
1 sin( nπx
L ) L
= nπ |0
L L
1 sin(nπ ) 1 1
= nπ − nπ
L L L L
sin(nπ ) 0
= − = 0.
nπ nπ
We next find bn , n = 1, 2, . . .,
Z L
1 nπx 1 L nπx
Z
bn = f ( x ) sin( )dx = 1 sin( )dx
L −L L L 0 L
1 cos( nπx L ) L
= [− nπ ]|0
L L
cos(nπ ) 1 (−1)n 1
=− + =− +
nπ nπ nπ nπ
Hence
∞
a0 nπx nπx
F (x) = + ∑ [ an cos( ) + bn sin( )]
2 n =1
L L
∞
1 1 − (−1)n nπx
= +∑ sin( )
2 n =1 πn L
Solution: Notice that 1 − (−1)n = 0 when n is even and it is 2 when n is odd. Hence if we
Math 3435 Practice Exam 2 - Page 3 of 6 March 28
replace n = 2k + 1 we have
∞
1 2 (2k + 1)πx
F (x) = +∑ sin( ).
2 k=0 π (2k + 1) L
Solution: Since the boundary conditions are homogeneous, we can pass to the second step.
That is we shall look for where u( x, t) = u1 ( x, t) + u2 ( x, t) where u1 solves the homogeneous
heat equation;
(u1 )t − (u1 ) xx = 0, 0 ≤ x ≤ π, t ≥ 0,
u1 (0, t) = 0, u1 (π, t) = 0, (2)
u1 ( x, 0) = sin(3x ).
and u2 solves the non-homogeneous heat equation with zero initial condition
u1 ( x, t) = e−9t sin(3x ).
solves (2). Now we focus on v2 . To solve (6), we shall use the Duhamel’s principle. That is,
Z t
u2 ( x, t) = ṽ( x, t − s; s)ds
0
where ṽ solves
ṽt − ṽ xx = 0, 0 ≤ x ≤ π, t ≥ 0,
ṽ(0, t; s) = 0, ṽ(π, t; s) = 0, (4)
ṽ( x, 0; s) = e−4s cos(s) sin(2x ).
Here you should think of e−4s cos(s) as a constant independent of t. We know that the general
solution is
∞
∑ Cn e−n t sin(nx)
2
ṽ( x, t; s) =
n1
Math 3435 Practice Exam 2 - Page 5 of 6 March 28
which tells us that C2 = e−4s cos(s) and all other Cn = 0. Hence we have (for n = 2)
To find u2 we need to find that integral. After some algebra we see that
Z t Z t
−4s −4( t − s ) −4t
u2 ( x, t) = e cos(s)e sin(2x )ds = e sin(2x ) cos(s)ds = e−4t sin(2x ) sin(t)
0 0
where the boundary conditions are non-homogeneous. Transform the equation into a new
one with homogeneous boundary conditions. (You do not need to solve the new equation).
Solution: We first should make the non-homogeneous boundary conditions homogeneous.
To this end, we look for time-independent or steady-state solution u p ( x, t) to heat equation.
We know that the only steady state solution is u p ( x, t) = ax + b for some a, b. We will figure
out a, b so that u p (0, t) = −1 and u x (1, t) = 1 (which are our non-homogeneous boundary
conditions). Hence u p (0, t) = b = −1 and (u p ( x, t)) x = a which we want to be 1 when x = 1,
i.e. (u p ( x, t)) x = a = 1. Hence we get u p ( x, t) = x − 1. We now let
v( x, t) = u( x, t) − u p ( x, t)
and hope that v will satisfy the heat equation with homogeneous boundary conditions. To see
this, as u solves (5), and u p is steady-state solution to heat equation, and heat equation is linear
v solves the heat equation vt = 2v xx . Next, we check the boundary conditions
Hence v satisfies the homogeneous boundary conditions. We next see the initial condition
3πx 3πx
v( x, 0) = u( x, 0) − u p ( x, 0) = x + sin( ) − 1 − ( x − 1) = sin( ).
2 2
If we summarize what we got for v is that
vt = 2v xx 0 ≤ x ≤ 1, t ≥ 0
v(0, t) = 0 v x (1, t) = 0
3πx
v( x, 0) = sin( 2 ).
Math 3435 Practice Exam 2 - Page 7 of 6 March 28
4. (10 points) Describe the steps how to solve the following heat equation
ut − ku xx = h( x, t), 0 ≤ x ≤ L, t ≥ 0,
u(0, t) = a(t), u( L, t) = b(t), (6)
u( x, 0) = f ( x ).
Solution:
Step 1: The boundary conditions are non-homogeneous, we will make them homogeneous. To
do this, we let
1
u p ( x, t) := (b(t) − a(t)) x + a(t)
L
Now consider
v( x, t) = u( x, t) − u p ( x, t).
We should see that
and u2 solves the non-homogeneous heat equation with zero initial condition
(u2 )t − (u2 ) xx = H ( x, t), 0 ≤ x ≤ L, t ≥ 0,
u (0, t) = 0, u2 ( L, t) = 0, (8)
2
u2 ( x, 0) = 0.
Step 3: Find v1 . In case F ( x ) is not given in terms of sine function we then need to do the half
range extension and then find the Fourier series of F ( x ) and finally find v1 .
Math 3435 Practice Exam 2 - Page 8 of 6 March 28
where ṽ solves
ṽt − ṽ xx = 0, 0 ≤ x ≤ L, t ≥ 0,
ṽ(0, t; s) = 0, ṽ( L, t; s) = 0, (9)
ṽ( x, 0; s) = H ( x, s; s).
Step 5: Find ṽ first and in case H ( x, s; s) is not given in terms of sine function we then need to do
the half range extension and then find the Fourier series of H ( x, s; s) and finally find ṽ.
Then find v2 .
Step 6: Combining all of these we get
u( x, t) = v( x, t) + u p ( x, t) = v1 ( x, t) + v2 ( x, t) + u p ( x, t).
Math 3435 Practice Exam 2 - Page 9 of 6 March 28
Show that Z π
I (t) = eu(x,t) dx
0
decreases as a function of t for t ≥ 0.
Solution: To show I (t) decreases, we show that I 0 (t) ≤ 0 for every t ≥ 0. To this end,
Z π
0 d u( x,t)
I (t) = e dx
dt 0
d u(x,t)
Z π
= (e )dx
0 dt
Z π
= ut ( x, t)eu(x,t) dx.
0
d u(x,t)
Z π
I 0 (t) = [u x ( x, t)eu(x,t) ]0π − u x ( x, t) e dx
0 dt
Z π
= u x (π, t)eu(π,t) − u x (0, t)eu(0,t) − u2x ( x, t)eu(x,t) dx
0
Z π
= 0−0− u2x ( x, t)eu(x,t) dx.
0
Since u2x ( x, t) and eu(x,t) are always non-negative, therefore the right-hand side is always non-
positive. That is I 0 (t) ≤ 0 for every t. Hence I (t) decreases as a function of t for t ≥ 0.