Professional Documents
Culture Documents
an en t sin nx
n=1
where
2
an =
Thus
u(x, t) =
/2
sin nxdx =
2
((1)n cos(n/2))
n
2 t
2
2 9t
2 25t
e sin x e4t sin 2x +
e
sin 3x +
e
sin 5x +
3
5
Exercise 2. The solution is given by formula (4.14) in the text, where the coefficients are given by (4.15) and (4.16). Since G(x) = 0 we have cn = 0. Then
Z
Z
2
2 /2
x sin nx dx +
( x) sin nx dx
dn =
0
/2
R
Using the antiderivative formula x sin nx dx = (1/n2 ) sin nx (x/n) cos nx we
integrate to get
n
4
sin
dn =
n2
2
Exercise 3. Substituting u(x, y) = (x)(y) we obtain the Sturm-Liouville problem
= , x (0, l); (0) = (l) = 0
and the differential equation
= 0
n (x) = sin(nx/l)
Therefore
u(x, y) =
n=1
an sin(nx/l)
n=1
and
u(x, 1) = G(x) =
n=1
Thus
an =
and
2
l
F (x) sin(nx/l)dx
an cosh(n/l) + bn sinh(n/l) =
which gives the coefficients an and bn .
2
l
G(x) sin(nx/l)dx
X
u(x, t) =
ekt (an cos(mn t) + bn sin(mn t)) sin(nx)
n=1
X
u(x, 0) = f (x) =
an sin(nx)
n=1
and thus
an =
f (x) sin nx dx
n=1
Therefore
bn mn kan = 0
or
k
kan
=
bn =
mn
mn
f (x) sin nx dx
y(0) = y (l) = 0
X
u(x, t) =
(an sin((2n + 1)ct/l) + bn cos((2n + 1)ct/l)) sin((2n + 1)x/l)
n=0
u(x, t) = f (x) =
bn sin((2n + 1)x/l)
n=0
which yields
bn =
And
1
|| sin((2n + 1)x/l)||2
ut (x, 0) = 0 =
n=0
an cn sin((2n + 1)x/l)
n=0
(0) = (a) = 0
n (x) = cos(nx/a),
n = 1, 2, 3, . . .
The solution to the g equation is, corresponding to the zero eigenvalue, g0 (y) =
c0 y + d0 , and corresponding to the positive eigenvalues,
gn (y) = cn sinh(ny/a) + dn cosh(ny/a)
Thus we form the linear combination
X
(cn sinh(ny/a) + dn cosh(ny/a)) cos(nx/a)
u(x, y) = c0 y + d0 +
n=1
dn cos(nx/a)
n=1
which gives
d0 =
Next
1
a
f (x)dx, dn =
u(x, b) = 0 = c0 b + d0 +
2
a
f (x) cos(nx/a)dx
n=1
Therefore
c0 = d0 /b,
cn =
cosh(nb/a)
dn
sinh(nb/a)
(a0 + a1 )k
k 2 a0 a1
To determine the roots k, and thus the eigenvalues = k 2 , we can graph both sides
of this equation to observe that there are infinitely many intersections occuring at
kn , and thus there are infinitely many eigenvalues n = kn2 . The eigenfunctions are
a0
sin kn x
yn (x) = cos kn x +
kn
So the solution has the form
X
2
a0
cn en t (cos kn x +
u(x, t) =
sin kn x)
kn
n=1
The cn are then the Fourier coefficients
3.75k
k2 + 1
From a graphing calculator, the first four roots are approximately k1 = 1.08, k2 =
3.85, k3 = 6.81, k4 = 9.82.
tan k =
Exercise 4. Letting c(x, t) = y(x)g(t) leads to the periodic boundary value problem
y = y, y(0) = y(2l), y (0) = y (2l)
and the differential equation
g = Dg
which has solution
g(t) = eDt
The eigenvalues and eigenfunctions are found exactly as in the solution of Exercise
4, Section 3.4, with l replaced by 2l. They are
0 = 0, n = n2 2 /l2 , n = 1, 2, . . .
and
y0 (x) = 1,
Thus we form
c(x, t) = a0 /2 +
en
2 Dt/l2
n=1
n=1
which is the Fourier series for f . Thus the coefficients are given by
Z
1 2
lf (x) cos(nx/l)dx, n = 0, 1, 2, /ldots
an =
l 0
and
Z
1 2
bn =
lf (x) sin(nx/l)dx, n = 1, 2, /ldots
l 0
3. Laplaces Equation
Exercise 2. Substituting u(r, ) = g()y(r) into the PDE and boundary conditions
gives the Sturm-Liouville problem
g = g,
g(0) = g(/2) = 0
r2 y + ry + y = 0
This SLP has been solved many times in the text and in the problems. The eigenvalues and eigenfunctions are
n = 4n2 ,
gn () = sin(2n),
n = 1, 2, . . .
bn r2n sin(2n)
n=1
X
u(R, ) = f () =
bn R2n sin(2n)
n=1
bn =
1
R2n
/2
f () sin(2n)d
Exercise 3. Substituting u(r, ) = g()y(r) into the PDE and boundary conditions
gives the Sturm-Liouville problem
g = g,
g(0) = g (/2) = 0
r2 y + ry + y = 0
The eigenvalues and eigenfunctions are
n = (2n + 1)2 ,
gn () = sin((2n + 1)),
n = 0, 1, 2, . . .
3. LAPLACES EQUATION
Form
u(r, ) =
n=1
u(R, ) = f () =
n=1
1
R2n+1
/2
f () sin((2n + 1))d
= E(u + v)
Z
Z
1
(hu hv)dA
(u u + 2u v + v v)dV
=
2
Z
Z
Z
1
= E(u) +
u v dV +
v vdV
hv dA
2
Z
Z
Z
Z
1
v vdV
hv dA
= E(u) +
vu n dA
vu dV +
2
Z
Z
Z
1
vh dA +
= E(u) +
hv dA
v vdV
2
Z
1
v vdV
= E(u) +
2
So E(u) E(w).
Exercise 6. Multiply both sides of the PDE by u and integrate over . We obtain
Z
Z
u2 dV
uu dV = c
or
au2 dA
u u dV = c
u2 dV
The left side is negative and the right side is positive. Then both must be zero, or
Z
u2 dV = 0
Hence u = 0 in .
The uniqueness is standard. Let u and v be two solutions to the boundary
value problem
u cu = f, x
n u + au = g, x
w cw = 0, x
n w + aw = 0, x
Thus
which implies
u udV = 0
u = 0
Thus u =constant.
4. Cooling of a Sphere
Exercise 1. The problem is
2
y y = y,
or
y = 1 (a sinh k + b cosh k)
For boundedness at = 0 we set b = 0. Then y() = 0) forces sinh k = 0. Thus
k = 0. Consequently, there are no negative eigenvalues.
4. COOLING OF A SPHERE
2
1
(1)n+1 en kt
n
n=1
0R
Assume u = y()g(t). Then the PDE and boundary conditions separate into the
boundary value problem
y + (2/)y + y = 0,
The latter has solution g(t) = exp(kt). One can show that the eigenvalues are
positive. So let = p2 and make the substitution Y = y, as in the text, to obtain
Y + p2 Y = 0
This has solution
Y () = a cos p + b sin p
10
Thus we have
u(, t) =
n=1
p
cn en kt 1 sin( n )
X
p
cn 1 sin( n )
u(, 0) = f () =
n=1
Thus
cn =
f () sin( n )d
RR 2
sin ( n )d
0
RR
0
sin
u(1, ) = f (), 0
1
(sin Y ) = Y
sin
We transform the Y equation by changing the independent variable to x = cos .
Then we get, using the chain rule,
d
1 d
=
sin d
dx
So the Y equation becomes
d
dy
(1 x2 )
= y
dx
dx
1<x<1
By the given facts, this equation has bounded, orthogonal, solutions yn (x) = Pn (x)
on [1, 1] when = n = n(n + 1), n = 0, 1, 2, . . .. Here Pn (x) are the Legendre
polynomials.
Now, the Requation then becomes
2 R + 2R n(n + 1)R = 0
4. COOLING OF A SPHERE
11
This is a Cauchy-Euler equation (see the Appendix in the text) with characteristic
equation
m(m 1) + m n(n + 1) = 0
Rn () = an n
are the bounded solutions (the other root gives the solution n1 , which is unbounded at zero). Therefore we form
u(, ) =
an n Pn (cos )
n=0
or, equivalently
u(, x) =
an n Pn (x)
n=0
an Pn (x)
n=0
By orthogonality we get
or
1
an =
||Pn ||2
Z
1
f ()Pn (cos ) sin d
||Pn ||2 0
By direct differentiation we get
an =
1
5
3
(3x2 1), P3 (x) = x3 x
2
2
2
a0 = , a1 = a3 = 0, a2 = 0.49
4
Therefore a two-term approximation is given by
||P0 ||2 = 2, ||P1 ||2 =
u(, )
0.49 2
(3 cos2 1)
4
2
Exercise 5. To determine the temperature of the earth we must derive the temperature formula for any radius R (the calculation in the text uses R = ). The
method is exactly the same, but now the eigenvalues are n = n2 2 /R2 and the
eigenfunctions are yn = 1 sin(n/R), for n = 1, 2, . . .. Then the temperature is
u(, t) =
12
2T0 X n2 2 kt/R2
e
u (R, t) =
R n=1
RG X n2 2 ktc /R2
=
e
2T0
n=1
We must solve for tc . Notice that the sum has the form
X
2
ean
n=1
X
2 2
2
R
en ktc /R
2 ktc
n=1
T02
G2 k
Substituting the numbers in from Exercise 5 in Section 2.4 gives tc = 5.15(10)8
years. This is the same approximation we found earlier.
tc =
5. Diffusion in a Disk
Exercise 1. The differential equation is (ry ) = ry. Multiply both sides by y
and integrate over [0, R] to get
Z R
Z R
(ry ) ydr =
ry 2 dr
0
0
0
ry 2 dr
But, since y and y are assumed to be bounded, the boundary term vanishes. The
remaining integrals are nonnegative and so 0.
Exercise 2. Let y, and w, be two eigenpairs. Then (ry ) = ry and
(rw ) = rw. Multiply the first of these equations by w and the second by
y, and then subtract and integrate to get
Z R
Z R
[(ry ) w + (rw ) y]dr = ( )
ruwdr
0
5. DIFFUSION IN A DISK
13
Now integrate both terms in the first integral on the left hand side by parts to get
(ry w + rw y) |R
0 +
(ry w rw y )dr = ( )
ruwdr
0
The left side of the equation is zero and so y and w are orthogonal with respect to
the weight function r.
Exercise 3. We have
u(r, t) =
cn e0.25n t J0 (zn r)
n=1
where
cn =
R1
0
14
0<x<1
0<x<1
This problem was solved in Section 4.1 (see (4.14)(4.14)). The solution is
w(x, t, ) =
n=1
where
Z
2
f (x, ) sin nx dx
nc 0
So the solution to the original problem is
Z t
w(x, t , )d
u(x, t) =
cn ( ) =
Exercise 2. If f = f (x), and does not depend on t, then the solution can be
written
Z t
Z
2X
n2 k(t )
u(x, t) =
e
d sin nx
f (r) sin nr dr (
n=1 0
0
2X 1
n2 kt
u(x, t) =
f (r) sin nr dr sin nx
(1 e
)
n=1 kn2
0
Taking the limit as t gives
Z
2X 1
f
(r)
sin
nr
dr
sin nx
n=1 kn2
0
v(0) = v() = 0
This can be solved directly by integrating twice and using the boundary conditions
to determine the constants of integration. One obtains
1
(2x2 x4 3 x)
v(x) =
12k
15
To observe that the solution v(x) is the same as the limiting solution U (x) we
expand the right side of the vequation in its Fourier sine series on [0, ]. Then
kv =
where
cn sin nx
n=1
Z
2
r( r) sin nrdr
0
Integrating the differential equation twice gives
cn =
kv(x) + kv (0)x =
Evaluating at x = gives
n=1
kv (0) =
cn n2 (sin nx x)
cn n2
n=1
Whence
kv(x) =
cn n2 sin nx
n=1
or
Z
2 X 1
v(x) =
f (r) sin nr dr sin nx
k n=1 n2
0
gn (y) sin nx
n=1
where we find
gn n2 gn = fn (y),
gn (0) = gn (1) = 0
where fn (y) are the Fourier coefficients of f (x, y). From the variation of parameters
formula
Z
2 y
sinh(n( y))fn ()d
gn (y) = aeny + beny
n 0
Now gn (0) = 0 implies b = a. So we can write
Z
2 y
sinh(n( y))fn ()d
gn (y) = 2a sinh ny
n 0
which gives, using gn (1) = 0,
a=
1
n sinh n
16
0 r < R, t > 0
u(R, t) = 0, t > 0
u(r, 0) = 0, 0 < r < R
For w = w(r, t, ) we consider the problem
wt = w
0 r < R, t > 0
w(R, t ) = 0, t > 0
w(r, 0, ) = f (r, ), 0 < r < R
This is the model for heat flow in a disk of radius R; the solution is given by
equation (4.53) in Section 4.5 of the text. It is
X
w(r, t, ) =
cn ( )en kt J0 (zn r/R)
where zn are the zeros of the Bessel function J0 , n = zn2 /R2 and
Z R
1
f (r, )J0 (zn r/R)rdr
cn ( ) =
||J0 (zn r/R)||2 0
Then
u(r, t) =
w(r, t , )d
p1 = p0 er1 t , p2 = p0 er2 t
Dividing the two equations and then taking natural logarithms gives
1
r1 r2 = (ln p1 ln p2 )
t
By the mean value theorem
d ln x
1
| ln a ln b|
=
|x=c =
|a b|
dx
c
(x)yf (x)dxds
= f
17
(1 x)(x)yf (x)dx
The last step follows by interchanging the order of integration. If (x) =r ho0 is a
constant, then
yf (0)
0 =
R1
f 0 (1 x)yf (x)dx
2X 1
n2 kt
f
(r)
sin
nr
dr
sin nx
(1
e
)
u(x, t) =
n=1 kn2
0
Therefore
U (t) = u(/2, t) =
2X
1
n2 kt
sin nr sin(n/2) 2 (1 e
) f (r)dr
n=1
kn
We want to recover f (x) if we know U (t). This problem is not stable, as the
following example shows. Let
2
u(x, t) = m3/2 (1 em t ) sin mx, f (x) = m sin mx
U (x, s) = F (s)ex
Here we have discarded the unbounded part of the solution. So, by convolution,
Z t
2
x
ex /4(t ) d
u(x, t) =
f ( ) p
3
4(t
)
0
Hence, evaluating at x = 1,
U (t) =
f ( ) p
1
4(t )3
e1/4(t ) d
which is an integral equation for f (t). Suppose f (t) = f0 is constant and U (5) = 10.
Then
Z 5 1/4(5 )
20
e
p
d = 2 erf c (1/ 5)
=
3
f0
4(5 )
0
where erf c = 1 erf . Thus f0 = 59.9 degrees.
18
x R, t > 0;
u(x, 0) = eax , x R
2
a
e(xvt) /((a+4Dt)
u(x, t) =
a + 4Dt
Thus, choosing a = v = 1 we get
2
1
U (t) = u(1, t) =
e(1t) /((1+4Dt)
1 + 4Dt
n = 0, 1, 2, . . . ; Y0 = 1
where h is the step size. With h = 0.1 the values of Yn at the points tn = nh, n =
0, . . . , 10 are:
1, 1.1, 1.199, 1.295, 1.385, 1.466, 1.534, 1.585, 1.615, 1.617, 1.587
Exercise 2. A time snapshot of the solution surface at t = 1 is shown in the
accompanying figure. The Maple program in Figure 4.8 of the text was run with
h = 0.1 and k = 0.1, which gives r = k/h2 = 10. This violates the stability
condition, and one can observe the highly oscillatory behavior of the numerical
scheme.
Exercise 3. The Maple worksheet and surface plot is given in the two figures.
Exercise 4. The Maple worksheet and surface plot is given in the two figures.
Exercise 5. The Maple worksheet and surface plot for the first problem in Exercise
5 is given in the accompanying figures.
19
20
21
22
23
24
25
CHAPTER 2
Appendix
(wex
/2
) = x2 ex
/2
wex
/2
w(0) =
Then
2
w(x) = 1/y(x) = ex
/2
r2 er
/2
dr
0
2
w(0) ex
/2
r2 er
/2
dr
28
2. APPENDIX
Then
y(x) =
x
2
dx
arctan
+B
+B =
+A
2A
2A
x2 /2
!
3x
3x
x/2
a cos
y(x) = e
+ b sin
2
2
8. In the equation yy (y )3 = 0 the independent variable does not appear
dv
. Then we get
explicitly. So let v = y which gives y = v dy
yv
dv
= v3
dy
b
y(x) = a x +
x
(yex ) = ex
2. APPENDIX
29
y(x) = y(0)e
ex
r 2
dr