Professional Documents
Culture Documents
Topics for this week Duhamels principle and other techniques for inhomogeneous problems
Solutions on finite domains - separated solutions Boundary conditions eigenvalue (Sturm-Liouville)
problems for ODEs
Reading: Read sections 3.2, 3.3, 3.4, 4.1 and 4.2 of the text
Page 66, problem 1. The Neumann problem for the wave equation on 0 < x < is ut t = c2 uxx
for all x > 0 and t > 0 subject to the initial conditions u(x, 0) = (x) and ut (x, 0) = (x) for x > 0
and the boundary condition ux (0, t) = 0 for t > 0. To solve this, we need the even extensions of
(x) and (x):
( (
(x) if x > 0 (x) if x > 0
(x) = and (x) =
(x) if x < 0 (x) if x < 0
We need to interpret dAlemberts solution
Z x+ct
1 1
u(x, t) = (x + ct) + (x ct) + (s) ds
2 2c xct
in terms of these extended functions. There are two cases: either x > ct or x < ct.
In the first case, x > ct, we have x + ct > 0 and x ct > 0. In this case,
Z x+ct
1 1
u(x, t) = (x + ct) + (x ct) + (s) ds
2 2c xct
In the second case, x < ct, we have x + ct > 0 and x ct < 0 (or ct x > 0). In this case,
Z 0 Z x+ct
1 1
u(x, t) = (x + ct) + (ct x) + (s) ds + (s) ds
2 2c xct 0
Z ctx Z x+ct
1 1
= (x + ct) + (ct x) + (q) dq + (s) ds
2 2c 0 0
Z ctx Z x+ct
1 1
= (x + ct) + (ct x) + 2 (q) dq + (s) ds
2 2c 0 ctx
2
Page 66, problem 3. Since u(x, t) = f (x + ct) for x > 0 and t < 0, we have
We also have u(0, t) = 0 because the end is fixed. Because of this, we extend f and cf 0 as odd
functions:
( (
f (x) if x > 0 cf 0 (x) if x > 0
(x) = and (x) =
f (x) if x < 0 cf 0 (x) if x < 0
in terms of these extended functions. There are two cases: either x > ct or x < ct.
In the first case, x > ct, we have x + ct > 0 and x ct > 0. In this case,
Z x+ct
1 1
u(x, t) = f (x + ct) + f (x ct) + cf 0 (s) ds
2 2c xct
1 1
= f (x + ct) + f (x ct) + f (x + ct) f (x ct)
2 2
= f (x + ct)
In the second case, x < ct, we have x + ct > 0 and x ct < 0 (or ct x > 0). In this case,
Z 0 Z x+ct
1 1 0 0
u(x, t) = f (x + ct) f (ct x) + cf (s) ds + cf (s) ds
2 2c xct 0
1 1 Z 0
0
= f (x + ct) f (ct x) + f (q) dq + f (x + ct) f (0)
2 2 ctx
1 1
= f (x + ct) f (ct x) + f (0) f (ct x) + f (x + ct) f (0)
2 2
= f (x + ct) f (ct x)
Page 66, problem 9. We want to solve utt = uxx on the x-interval 0 < x < 1. Since c = 1,
the characteristics have slope 1. And because the boundary conditions u(0, t) = u(1, t) = 0 are
homogeneous Dirichlet conditions, we need to make the odd extensions ext and ext of the initial
data u(x, 0) = x2 (1 x) and ut (x, 0) = (1 x)2 at every integer (so these extensions will have period
2). In dAlemberts solution
Z x+ct
1 1
u(x, t) = ext (x + ct) + ext (x ct) + ext (s) ds
2 2c xct
we can use the oddness of the extensions to simplify the integral of ext , since whenever we integrate
over an x-interval of length 2 we will get zero.
(a) To find u( 23 , 2), we need initial data on the x-interval [ 23 2, 23 + 2] = [ 43 , 38 ]. Since this
interval has length 4, we know that the integral of the odd periodic extension of over it is zero.
So we know that
3/4 3/4
(1 x)3 1 27
Z
13
= ut (s, 0) ds = = =
1/4 3
1/4 192 96
where between the last two integrals we used that ext is odd so that its integral from 41 to 1
4 is
zero. We conclude that:
u( 14 , 72 ) = 21 ext ( 13 4 ) + ext ( 15
4 ) + 1
2 ( 13
96 ) = 1
2 ext ( 5
4 ) + ext ( 7
4 ) 13
192
= 12 ext ( 34 ) + ext ( 41 ) 192 13
= 12 u( 34 , 0) u( 14 , 0) 192
13
= 12 64
9
64 3 13
192 = 64 3 13
192 = 1924
= 48 1
.
Page 70, problem 1. We want to solve ut kuxx = f (x, t) for x > 0 and t > 0 with u(0, t) = 0
and u(x, 0) = (x). Since were dealing with a Dirichlet condition at x = 0, we make odd extensions
of (x) and f (x, t) so we let
(
f (x, t) for x > 0
F (x, t) =
f (x, t) for x < 0
and (
(x) for x > 0
h(x)
(x) for x < 0
4
Then
2
Z t Z (xy) Z (xy)2
1 4k(ts) 1
u(x, t) = p e F (y, s) dy ds + e 4kt h(y) dy
0 4k(t s) 4kt
2
Then, writing S(x, t) = ex /4kt / 4kt as usual, we have
Z tZ Z
u(x, t) = S(x y, t s)F (y, s) dy ds + S(x y, t)h(y) dy
0
Z t Z Z 0
= S(x y, t s)F (y, s) dy + S(x y, t s)F (y, s) dy ds
0 0
Z Z 0
+ S(x y, t)h(y) dy + S(x y, t)h(y) dy
0
Z t Z Z 0
= S(x y, t s)f (y, s) dy + S(x y, t s)(f (y, s)) dy ds
0 0
Z Z 0
+ S(x y, t)(y) dy + S(x y, t)((y)) dy
0
Z t Z Z
= S(x y, t s)f (y, s) dy + S(x + y, t s)(f (y, s)) dy ds
0 0 0
Z Z
+ S(x y, t)(y) dy + S(x + y, t)((y)) dy
0 0
2 2 2 2
Z tZ h (xy) h
(x+y) i (xy) (x+y)
Z
1 1 i
= p e 4k(ts) e 4k(ts) h(y, s) dy ds + e 4k(t) e 4k(t) (y) dy
0 0 4k(t s) 4kt 0
Page 79, problem 1. Since the initial position and velocity are both zero, the solution of utt =
c2 uxx + xt is given by
Z tZ x+ctcs Z t y=x+ctcs
1 1 1 2
u(x, t) = ys dy ds = y s ds
2c 0 xct+cs 2c 0 2 y=xct+cs
Z t s=t
1 1 4
= 4x(ct cs)s ds = 2xcts2 xcs3
4c 0 4c 3 s=0
1 4 3 1
= 2xct xct = xt3
3
4c 3 6
utt = c2 utt + f (x, t) u(x, 0) = 0 and ut (x, 0) = (x) for x > 0, and u(0, t) = (x)
it is the sum of three terms, one involving , one involving and one involving f .
Page 79, problem 10. Just for practice, well use the Greens function method. So suppose that
u(x, t) (for x > 0 and t > 0) is the solution of
utt = c2 utt + f (x, t) u(x, 0) = 0 and ut (x, 0) = 0 for x > 0, and u(0, t) = 0
The domain of dependence D for u(x0 , t0 ) is either the triangle with vertices (x0 ct0 , 0), (x0 +xt0 , 0),
and (x0 , t0 ) if x0 > ct0 , or else it is the quadrilateral with vertices (ct0 x0 , 0), (x0 + ct0 , 0), (x0 , t0 )
and (0, t0 x0 /c). For x0 > ct0 we already know (see the notes) that
ZZ
1
u(x0 , t0 ) = f (y, s) dy ds.
2c D
For x0 < ct0 , we have to prove this. So here goes: Assume that u(x, t) is the solution of the problem,
and that ct > x. Then D is the quadrilateral described above and
ZZ ZZ I
f (y, s) dy ds = utt c2 uxx = ut dx c2 ux dt
D D bd(D)
The horizontal segment on the x-axis starting at (ct0 x0 , 0) and ending at (x0 + ct0 , 0). This
part evaluates to zero because ut (x, 0) = 0 by the initial conditions and dt = 0 on the segment
since t is identically zero there.
The diagonal segment from (x0 + ct0 , 0) to (x0 , t0 ). We have to do this one. Parametrize the
segment via
x = x0 + c(t0 s) and t = s for 0 s t0
and then dx = c ds and dt = ds so the integral becomes
Z (x0 ,t0 ) Z t0
2
ut dx c ux dt = cut (x0 + c(t0 s), s) c2 ux (x0 + c(t0 s), s) ds
(x0 +ct0 ,0) 0
The diagonal segment from (x0 , t0 ) to the point (0, t0 x0 /c) on the t-axis. We parametrize
this segment via
x0
x = x0 cs and t = t0 s for 0 s
c
and then dx = c ds and dt = ds so the integral becomes
Z (0,t0 x0 /c) Z x0 /c
2
ut dx c ux dt = cut (x0 cs, t0 s) + c2 ux (x0 cs, t0 s) ds
(x0 ,t0 ) 0
And now make the observation that with x and t defined as functions of s as in the parametriza-
tion of this segment, we have that
du u dx u dt x0 x0
= + = cux cs, t0 s ut cs, t0 s .
ds x ds t ds c c
And this is precisely 1/c times the integrand, so the value of this part of the line integral is
the difference between the value of cu(x, t) at the end of the segment and at the beginning of
it. But u is zero at both points, because of the boundary and initial conditions, so that the
value of the integral over this segment is zero.
Now we can insert the value of the line integral back into our original computation:
ZZ ZZ I
2
f (y, s) dy ds = utt c uxx = ut dxc2 ux dt = 0+cu(x0 , t0 )+cu(x0 , t0 )+0 = 2cu(x0 , t0 ).
D D bd(D)
Page 89, problem 2. The differential equation for the temperature of the rod starting at the
moment the ends are immersed is the heat equation ut = kuxx , together with the initial condition
u(x, 0) = 1 for 0 < x < ` and boundary conditions u(0, t) = u(`, t) = 0 for t > 0. This is the
initial/boundary-value problem given by equations (13), (14) and (15) on page 87 of the textbook
(with (x) = 1 for all x between 0 and `). The solution is given by equation (17):
X 2 nx
u(x, t) = An e(n/`) kt
sin ,
n=1
`
So, writing the odd numbers as 2k + 1 for k = 0, 1, 2, . . . we can express the solution as
X 4 2 (2k + 1)x
u(x, t) = e[(2k+1)/`] kt sin
(2k + 1) `
k=0
Page 89,
problem 3. The Schrodinger equation looks just like the heat equation with k replaced
by i = 1. So the solution of the Dirichlet problem corresponding to it should look just like the
solution (equation (17) on page 87) of the heat equation, with k replaced by i:
X 2 nx
u(x, t) = An e(n/`) it
sin
n=1
`
Page 92, problem 1. If we seek separated solutions u(x, t) = X(x)T (t) of the diffusion equation
ut = kuxx , we get that X(x)T 0 (t) = kX 00 (x)T (t), or in other words
T 00 (t) X 00 (x)
= = .
kT (t) X(x)
The boundary conditions u(0, t) = 0 and ux (`, t) = 0 give us conditions X(0) = 0 and X 0 (`) = 0 on
X, so we solve the equation for X first.
Can we have = 0? In that case, the solution of X 00 = 0 is X(x) = c1 + c2 x, and the boundary
conditions again force c1 = c2 = 0, so zero is not an eigenvalue.
Now we deal with the T equation: T 0 + kT = 0. The solution of this is T (t) = cekt . So the
solution of the diffusion equation with the given boundary conditions is
X 2 (2n + 1)x
u(x, t) = An e[(2n+1)/2`] kt
sin .
n=0
2`
Page 66, problem 4. Since u(x, t) = f (x + ct) for x > 0 and t < 0, we have
We also have ux (0, t) = 0 because the end is free. Because of this, we extend f and cf 0 as even
functions:
( (
f (x) if x > 0 cf 0 (x) if x > 0
(x) = and (x) =
f (x) if x < 0 cf 0 (x) if x < 0
in terms of these extended functions. There are two cases: either x > ct or x < ct.
In the first case, x > ct, we have x + ct > 0 and x ct > 0. In this case,
Z x+ct
1 1
u(x, t) = f (x + ct) + f (x ct) + cf 0 (s) ds
2 2c xct
1 1
= f (x + ct) + f (x ct) + f (x + ct) f (x ct)
2 2
= f (x + ct)
In the second case, x < ct, we have x + ct > 0 and x ct < 0 (or ct x > 0). In this case,
Z 0 Z x+ct
1 1
u(x, t) = f (x + ct) + f (ct x) + cf 0 (s) ds + cf 0 (s) ds
2 2c xct 0
Z 0
1 1
= f (x + ct) + f (ct x) + f 0 (q) dq + f (x + ct) f (0)
2 2 ctx
1 1
= f (x + ct) + f (ct x) + f (ct x) f (0) + f (x + ct) f (0)
2 2
= f (x + ct) + f (ct x) f (0)
where we made the substitution q = s in one of the integrals. We conclude that
(
f (x + ct) if x ct
u(x, t) =
f (x + ct) + f (ct x) f (0) if x ct
Page 66, problem 10. We need to solve utt = 9uxx for 0 < x < /2 (so c = 3) with initial
conditions u(x, 0) = cos x and ut (x, 0) = 0 on that interval, and ux (0, t) = 0 (so the left end is
free) and u(/2 , t) = 0 (so the right end is fixed). Since cos(x) = cos x and cos(/2 + x) =
cos(/2 x), the appropriate periodic extension of u(x, 0) which should be even at multiples
of and odd at odd multiples of /2 is just cos x. So we can use dAlemberts solution with
(x) = cos x for all x and (x) = 0 and the solution is
1
u(x, t) = cos(x + 3t) + cos(x 3t) = cos x cos 3t
2
after using the trig identities cos(A B) = cos A cos B sin A sin B.
Page 70, problem 2. We need to solve vt kvxx = f (x, t) for x > 0 and t > 0 together with the
initial condition v(x, 0) = (x) and the boundary condition v(0, t) = h(t). So to start, we suppress
the boundary condition by letting
w(x, t) = v(x, t) h(t).
Then w satisfies wt kwxx = f (x, t) h0 (t) for x > 0 and t > 0 together with the initial condition
w(x, 0) = (x) h(0) and the boundary condition w(0, t) = 0. We are going to need the odd
extension of w(x, 0), which were going to call Q(x):
(
(x) h(0) if x > 0
Q(x) =
(x) + h(0) if x < 0
10
Then
Z Z tZ
w(x, t) = S(x y, t)Q(y) dy + S(x y, t s)F (y, s) dy ds
0
Z Z 0
= S(x y, t) (y) h(0) dy + S(x y, t) (y) + h(0) dy
0
Z tZ Z tZ 0
0
+ S(x y, t s) f (y, s) h (s) dy ds + S(x y, t s) f (y, s) + h0 (s) dy ds
0 0 0
Z Z
= S(x y, t) (y) h(0) dy + S(x + y, t) (y) + h(0) dy
0 0
Z tZ Z tZ
+ S(x y, t s) f (y, s) h0 (s) dy ds + S(x + y, t s) f (y, s) + h0 (s) dy ds
0 0 0 0
Z
= S(x y, t) S(x + y, t) (y) h(0) dy
0
Z tZ
+ S(x y, t s) S(x + y, t s) f (y, s) h0 (s) dy ds
0 0
Theres only a bit of simplification (or Erf-ificaion) we can do here. The terms with h(0) and h0 (s)
can be brought out of at least one integral and then we need to compute an integral of the form:
Z Z (x+y)2 (xy)2
1 4kt 4kt
S(x + y, t) S(x y, t) dy = e e dy.
0 0 4kt
Make the change of variables p = (x + y)/ 4kt (so dp = dy/ 4kt) in the first integral and q =
(x y)/ 4kt (so dq = dy/ 4kt) in the second to get
Z Z x/4kt
1 p2 1 q2 1 1 x 1 1 x x
e dp e dq = Erf + Erf = Erf .
x/ 4kt 2 2 4kt 2 2 4kt 4kt
Using this, we can rewrite our expression for w(x, t) above as
Z (xy)2 (x+y)2
1 x
w(x, t) = e 4kt e 4kt (y) dy h(0) Erf
4kt 0 4kt
2
(x+y)2
Z tZ ! Z t !
1 (xy) x
+ p e 4k(ts) e 4k(ts) f (y, s) dy ds h0 (s) Erf p ds
0 0 4k(t s) 0 4k(t s)
Page 79, problem 2. We need to solve utt = c2 uxx +eax on the whole line with zero initial position
and velocity. By the Duhamel formula (only the term for the inhomogeneity of the differential
equation will be present):
Z tZ x+ctcs
1 1 t a(x+ctcs)
u(x, t) = eay dy ds = e e ea(xct+cs) ds
2c 0 xct+cs 2ac 0
1 h a(x+ctcs) it 1 h ax i
a(xct+cs) a(x+ct) a(xct)
= e e = 2e a e
2a2 c2 0 2a2 c2
1 h i
= 2 2 aa(x+ct) + ea(xct) 2eax
2a c
using Leibnizs rule (or the fundamental theorem of calculus in its fanciest form). The first term is
clearly zero. Use Leibniz again on the second term (the only t0 s are in the limits of integration) to
conclude that:
1 t
Z
u
= f (x + ct cs, s) + f (x ct + cs, s) ds.
t 2 0
Observe that this shows that ut (x, 0) = 0 since well have another integral from 0 to 0.
since the only place om the formula for u that x appears is in the limits of integration of the inner
integral. And then
t
2u
Z
1 f f
2
= (x + ct cs, s) (x ct + cs, s) ds
x 2c 0 x x
And comparing the expressions for utt ad uxx above, you can see that utt c2 uxx = f (x, t).
Page 79, problem 13. We need to solve the wave equation utt = c2 uxx for x > 0 with initial
conditions u(x, 0) = x and ut (x, 0) = 0 and boundary condition u(0, t) = t2 .
We will trade the inhomogeneous boundary condition for an inhomogeneous equation by letting
v(x, t) = u(x, t) t2 . Then v will satisfy
Then Z tZ x+ct
1 1h i
v(x, t) = f (y) dy ds + (x + ct) + (x ct)
2c 0 xct 2
If x > ct then f (y) is identically 2 over the triangular domain D of integration, which has area
1 2 2
2 (2ct)t = ct , so for x > ct we have v(x, t) = t + x.
Forx < ct, the function f (x) is equal to +2 over the small triangular portion of D with vertices
x
(0, 0), 0, t , (x ct, 0), which has area
c
1 x 1
(ct x) t = (c2 t2 2ctx + x2 )
2 c 2c
So the integral
Z tZ x+ct
2x2
1 2 2
f (y) dy ds = 2ct2 + 4 (c t 2ctx + x2 ) = 4tx.
0 xct 2c c
Therefore
x t2
for x > ct
v(x, t) = 2
x + x 2tx for x < ct
c2 c
13
Page 89, problem 4. We want to find separated solutions for the damped wave equation
XT 00 + rXT 0 = c2 X 00 T
or
T 00 + rT 0 X 00
= =
c2 T X
So the problem for X(x) is
where
X nx
An sin = (x)
n=1
`
and
r !
X 1 4n2 2 c2 r nx
r 2 B n An sin = (x).
n=1
2 `2 2 `
that satisfy the initial condition u(x, 0) = 0 and the boundary conditions u(0, t) = u(, t) = 0.
Usually, wed expect there not to be any non-zero solution to this problem, but the t multiplying
the ut makes something odd happen for t = 0, so specifying the initial condition there is likely to
cause something unexpected. Substitute u(x, t) = X(x)T (t) into the equation to obtain
tXT 0 = X 00 T + 2XT
or
tT 0 X 00
2= =
T X
So the problem for X(x) is
satisfies all the conditions of the problem. Therefore, there are infinitely many solutions.
Page 92, problem 2. We want to solve the wave equation utt = c2 uxx for t > 0 and 0 < x < `
with boundary conditions ux (0, t) = 0 and u(`, t) = 0, so the string is fixed at its right end and free
at its left. So we do the usual separation of variables and obtain:
T 00 X 00
= = and X 0 (0) = X(`) = 0
c2 T X
15
(well be nave here and pretend we dont know that is not going to be negative, just to practice
proving that it cant be).
We need to find the eigenvalues of X 00 X = 0 with X 0 (0) = X(`) = 0. Since the solution is
different in this case, we check the possibility of = 0 first: If = 0 the X 00 = 0, so X = ax + b.
Then X 0 (0) = 0 tells us that a = 0 and X(`) = 0 tells us that b = 0, so zero is not an eigenvalue for
this problem.
For 6= 0we have that X = c1 e
x
+ c2 e x . Take the derivative of this and set x = 0 to
0
get X (0) = c1 c2 = 0. Since were assuming
6= 0,this implies that c1 = c2 , so lets call
their
common value c so that at this point, X = c(e x
+ e x ). Next, set x = ` and we get that
` `
c(e + c2 e ) = 0, in other words (assuming c 6= 0 so that we really have an eigenfunction)
1
`
e = which implies e2 `
= 1
e `
which means that 2 ` must be an odd multiple of i. Therefore
(2n + 1)i 2n + 1
= which implies Xn (x) = cn cos x n = 0, 1, . . .
2` 2`
And with = (2n + 1)2 2 /(2`)2 , we can solve the T equation and get
2n + 1 2n + 1
Tn (t) = an cos ct + bn ct .
2` 2`