Escolar Documentos
Profissional Documentos
Cultura Documentos
1. Exercises 2.3: 2.3.3. Consider the heat equation u 2u = k 2, t x subject to the boundary conditions u(0, t) = 0 and u(L, t) = 0.
Solve the initial value problem if the temperature is initially (a) u(x, 0) = 6 sin 9x L { 1, 0 < x L/2, (d) u(x, 0) = 2, L/2 < x < L. Solution. Recall that for the heat equation with zero Dirichlet boundary conditions and initial condition f (x), we have u(x, t) = if u(x, 0) = f (x) = with coecients 2 Bn = L
0 n=1 n=1 L
Bn e( L )
n 2
kt
sin
nx , L
Bn sin
nx , L
f (x) sin
nx dx. L
(a) Since u(x, 0) = 6 sin 9x , we have B9 = 6 and Bn = 0 for n = 9. Thus, u(x, t) = L 6e(9/L)
2 kt
sin 9x . L
1, 2,
Bn = = = = = and so u(x, t) =
n=1
2 L 2 L
u(x, 0) sin [0
L/2
] nx dx 2 sin L 0 L/2 [ ] L 2 nx L/2 2L nx L cos | cos | L n L 0 n L L/2 2 n [1 + cos 2 cos n] n 2 2 n [1 + cos 2(1)n ], n 2 nx dx + 1 sin L
L
nx dx L
Bn e( L )
n 2
kt
sin
n=1
2. Exercises 2.3 : 2.3.8. Consider 2u u = k 2 u t x This corresponds to a one-dimensional rod either with heat loss through the lateral sides with outside temperature 0o ( > 0, see Exercise 1.2.4) or with insulated lateral sides with a heat sink proportional to the temperature. Suppose that the boundary conditions are u(0, t) = 0 and u(L, t) = 0.
(a) What are the possible equilibrium temperature distributions if > 0? (b) Solve the time-dependent problem [u(x, 0) = f (x)] if > 0. Analyize the temperature for large time (t ) and compare to part (a). Solution. (a) Let u(x, t) = u(x). Then the PDE becomes k d u u = 0 and boundary dx2 conditions become u(0) = 0 and u(L) = 0. If > 0, then u(x) = c1 e /kx + c2 e /kx . Then u(0) = 0 implies c1 + c2 = 0, and u(L) = 0 implies c1 e /kL + c2 e /kL = 0. Thus, c1 = c2 = 0 and u(x) 0 is the only equilibrium solution. (b) Method 1. Let u(x, t) = (x)G(t). Then (0) = (L) = 0, and (x) dG(t) d2 (x) = kG(t) (x)G(t). dt dx2 2
2
So, 1 dG(t) 1 d2 (x) + = := . kG(t) dt k (x) dx2 Then we get the following two ODEs: 1. 1 d2 (x) := , (x) dx2 which have eigenvalues: n = and eigenfunctions n (x) = sin 2. 1 dG(t) + = , kG(t) dt k which can be solved for each n = 1, 2, 3, , by G(t) = ce(n k+)t . Thus, u(x, t) =
n=1
( n )2 L
n = 1, 2, 3, ,
nx , L
n = 1, 2, 3, ;
n 2 nx nx = Bn et e( L ) kt sin . L L
n=1
Method 2. Let u(x, t) = et v(x, t). Then v(x, t) = et u(x, t). It is easy to see that v(s, t) satises
v(x, t) t
and v(0, t) = 0, v(L, t) = 0 and v(x, 0) = u(x, 0) = f (x). Thus, v(x, t) satises the heat equation with initial condition f (x) and zero Dirichlet boundary conditions and so v(x, t) =
n=1
Bn e( L )
n 2
kt
sin
nx L
with Bn =
2 L
L
0
kt
sin
nx . L
From this form of u(x, t), we can see that limt u(x, t) = 0, that is u(x, t) goes to the equilibrium solution 0 as t goes to . 3. Exercises 2.4: 2.4.1 Solve the heat equation
u t
(a) u(x, 0) =
0, x < L/2, 1, x > L/2. Solution. Recall that for heat equation with initial condition u(x, 0) = f (x) and zero
An e( L )
n 2
kt
cos
nx L
L
0
f (x)dx and n = 1, 2, 3, .
2 L nx f (x) cos dx, L 0 L { 0, x < L/2, (a) Since u(x, 0) = f (x) = 1, x > L/2. An = 1 A0 = L similarly, 2 An = L Thus,
L
1 f (x)dx = L
(
0
L/2
0dx +
) 1dx = 1/2,
L/2
cos
L/2
n = 1, 2, 3, .
assume that no solutions of the heat equation exponentially grow in time. You may also guess appropriate orthogonality conditions for the eigenfunctions. Solution. Let u(x, t) = (x)G(t). By the method of separation of variables, we transfer the PDE into two ODEs: 1.
dG(t) dt
solutions of the heat equation exponentially grow in time, we can assume that 0. Otherwise, G(t) will exponentially grow in time); 2.
d2 (x) dx2
= (x) with
d dx (0)
= 0 and (L) = 0.
If > 0, the general of this second order ODE can be written as (x) = c1 cos( x) + c2 sin( x). d Then dx (0) = 0 implies c2 = 0 and so (x) = c1 cos( x). Then, (L) = 0 implies L = (2n 1) for n = 1, 2, 3, . So, for each n = 1, 2, 3, , eigenvalue is 2 ( n = and the corresponding eigenfunction is (( n (x) = cos ) ) n 1 x 2 . L (n 1 ) 2 L )2
If = 0, the general of this second order ODE can be written as (x) = c1 + c2 x. Then
d dx (0)
(n 1 ) 2
L
)2 kt
cn e
) 1 n 2 x cos . L
) 1 n 2 x f (x) cos dx L
( cos2
) 2(n 1 )x L 1 2 n 2 x 1 + cos L L dx = dx = . L 2 2 0
5. Exercises 2.5 : 2.5.1. Solve Laplaces equation inside a rectangle 0 x L, 0 y H, with the following boundary conditions: (b) (c)
u x (0, y) u x (0, y)
Solution. (b) Let u(x, y) = h(x)(y). Then the boundary conditions imply h (L) = 0 and (0) = (H) = 0. The rst ODE is (y) = (y) with boundary conditions (0) = (H) = 0. For each n = 1, 2, 3, , eigenvalues are n = and eigenfunctions are n (y) = sin ny . H ( n )2 H ,
( n )2 H
h(x)
with h (L) = 0. The general solution can be written as h(x) = a1 cosh So, h (x) = a1 n n(x L) n n(x L) sinh + a2 cosh . H H H H 6 n(x L) n(x L) + a2 sinh . H H
Then h (L) = 0 implies a2 = 0, and so h(x) = a1 cosh n(xL) . Thus H u(x, y) = and
n=1
An cosh
ny n(x L) sin H H
So,
g(y) sin
ny dy H
g(y) sin
ny dy. H
(c) Let u(x, y) = h(x)(y). The boundary conditions become h (0) = 0, (0) = (H) = 0. The rst ODE reads (y) = (y) with (0) = (H) = 0. Thus, for each n = 1, 2, 3, , eigenvalues are n = and eigenfunctions are sin ny . H ( n )2 H
with h (0) = 0. So, the general solution can be written as h(x) = a1 cosh Then h (x) = a1 n nx n nx sinh + a2 cosh H H H H 7 nx nx + a2 sinh . H H
An cosh
n=1
nx ny sin . H H nL ny sin . H H
An cosh
g(y) sin
ny dy. H
For the following functions, sketch the Fourier series of f (x) (on the interval L x L) and determine the Fourier coecients: (b) f (x) = ex , Solution. (b) For f (x) = ex , its Fourier series can be sketched as follows:
6
| | x | | | | 3L
| | x | | | | L
| | x | | | | L
| | x | | | | 3L
| 5L
| 5L
1 a0 = 2L
ex dx =
an = = = = = = so, ( )
1 L
ex cos
x
1 n 1 n
nx dx L
[e
nx L sin ]| + L L nx dx L nx L
) nx x sin e dx L L
L
ex sin
L
L (n)2
ex d cos
L2 1+ (n)2
an =
ex sin
7. Exercise 3.3: 3.3.2 (b) For the following functions, sketch the Fourier sine series of f (x) and determine its Fourier coecients. 1, 3, (b) f (x) = 0, Solution. x < L/6, L/6 < x < L/2. x > L/2
3 1 L | L/2 | | x | | L/6 x | -1 | | x | -3
| x |
| | x | | L/2
| | L/6
| L
2 L
f (x) sin
nx dx L
For the following functions, sketch the Fourier cosine series of f (x) and determine its Fourier coecients: (a) f (x) = x2 . Solution. A0 = L2 , 3 An = 4L2 (1)n . (n)2
10
6 y
L2
| 3L
| 2L
| L
| 2L
| 3L
11