NOTE5
NOTE5
NOTE5
To solve the BVPs that we have encountered so far, we will use separation of
variables on the homogeneous part of the BVP. This separation of variables leads
to problems for ordinary dierential equations (some with endpoints conditions).
The ODE problems are much easier to solve. (At this time you need to refresh
your knowledge about linear dierential equations that you have learned in the
rst course of dierential equations: MAP2302).
To understand and appreciate the technique of separation of variables, we are
going to solve in details some BVPs dealing with heat, wave , and Laplace equations. The nonhomogeneous terms of the problems below are cooked up so as to
understand the situation. For more general nonhomogeneous terms, we have to
wait until after Fourier series are studied.
The separation of variables is based on the following obvious observation,
Observation. Let x and y be independent variables varying in intervals I, J R.
Suppose that f and g are functions of x and y, respectively. If
f (x) = g(y)
x I,
y J,
then both functions are equal to the same constant. That is, there is a constant
C R such that
f (x) = g(y) = C
x I, y J.
Example 1.
Consider the BVP modeling heat propagation in a rod of length L with both
ends kept at constant temperature 0 degrees and the initial temperature of the rod
is given by the function
3x
7x
f (x) = 100 sin
50 sin
.
L
L
If u(x, t) denotes the temperature at time t of point x, then u satises the BVP
u(x, 0) = f (x)
0<x<L.
where k is the thermal diusivity of the rod. Now we describe the method of
separation for this BVP.
Step 1. Separate the BVP into its homogeneous part (HP) and nonhomogeneous
part (NHP). In this problem the HP is:
{
ut (x, t) = kuxx (x, t)
0 < x < L, t > 0 ;
(2)
u(0, t) = 0, u(L, t) = 0
t>0.
and the NHP is
(3)
u(x, 0) = f (x)
0<x<L.
Note that the homogeneous part HP consists of all equations that are satised by
the zero function. So in our BVP, u(x, t) 0 solves the rst three equations but
not the fourth. Hence, the rst three equations form HP and the fourth is NHP.
Step 2. Separate HP into ODE problems. Assume that HP has a nontrivial 1
solution of the form
u(x, t) = X(x)T (t)
with X a function of x alone and T a function of t alone. Such a function has
separated variables. We rewrite the HP for such a function u. It becomes
{
X(x)T (t) = kX (x)T (t)
0 < x < L, t > 0 ;
(4)
X(0)T (t) = 0, X(L)T (t) = 0
t>0.
At all points where X(x)T (t) = 0 the PDE can be written as
T (t)
X (x)
=
.
kT (t)
X(x)
The functions T /kT and X /X depend on the independent variables t and x and
they are equal. Thus the functions are equal to a constant:
T (t)
X (x)
=
= ,
kT (t)
X(x)
with a constant (called the separation constant). The minus sign in front of is
just for latter convenience. It follows that X and T solve the ODEs
X (x) + X(x) = 0,
0 < x < L,
t > 02 .
The boundary conditions in (4) imply that X(0) = 0 and X(L) = 0 (since T 0).
We have therefore split HP into two ODE problems. The X-problem:
{
X + X = 0
0<x<L;
(5)
X(0) = X(L) = 0 ,
and the T -problem:
(6)
T + kT = 0 ,
t>0.
The X-problem, which consists of a second order ode and two endpoints conditions,
is an example of a Sturm-Liouville problem. The values of for which the SLproblem has nontrivial solutions are called the eigenvalues of the problem and the
corresponding nontrivial solutions are the eigenfunctions.
Step 3. Find the eigenvalues and eigenfunctions of the SL-problem. The characteristic equation of the ODE in the SL-problem is
m2 + = 0 with roots m = .
Depending on the sign of , we distinguish three cases:
Case : < 0. We write = 2 with > 0. The characteristic roots are
m = . The general solution of the ODE in the X-problem is
X(x) = Aex + Bex ,
1By nontrivial solutions we mean the solutions that are not identically zero.
2To be more rigorous, we have these odes in the regions where XT = 0 but then it follows
from uniqueness that these equations are valid on the intervals where X and T are defined.
A+B =0
X(L) = 0
AeL + BeL = 0
The above linear system for A and B has the unique solution A = B = 0. The
reason is the following. From the rst equation we have B = A and then the
second equation becomes
A(eL eL ) = 0 .
Now L > 0 and > 0 imply that eL eL > 0. Hence the equation for A holds
only when A = 0.
With A = 0 and B = 0, the function X is zero X(x) = 0 for 0 x L. We
have proved that if < 0, the only solution for the X-problem is X 0. This
means that < 0 cannot be an eigenvalue of the SL-problem.
Case : = 0. The characteristic roots are m = 0 (with multiplicity 2). The
general solution of the ODE of the X-problem is
X(x) = A + Bx ,
with A, B constants. The endpoints conditions X(0) = X(L) = 0 imply that A
and B satisfy the system
A = 0 and
A + BL = 0
A cos(L) + B sin(L) = 0 .
Summary of the above discussion. The SL-problem has innitely many eigenvalues. For each n Z+ we have:
( n )2
nx
,
eigenfunction : Xn (x) = sin
eigenvalue : n =
.
L
L
Note that any nonzero multiple of Xn is also an eigenfunction. We need only write
a generator of the eigenspace.
Step 4. For each eigenvalue, solve the corresponding T -problem. For = n , the
T -problem is:
( n )2
T (t) + k
T (t) = 0 .
L
The general solution is
T (t) = Cek(
n
L
with C constant.
Step 5. Use steps 3 and 4 to write the solutions with separated variables for the
Homogeneous problem HP: For each n Z+ , we have:
eigenvalue: n = (n/L)2 ;
eigenfunction: Xn (x) = sin(nx/L);
T -solution: Tn (t) = exp(k(n/L)2 t);
a corresponding solution of HP with separated variable is:
n 2
nx
un (x, t) = Tn (t)Xn (x) = ek( L ) t sin
.
L
Step 6. Use the principle of superposition to obtain more solutions of HP. Any
linear combination of the solutions un obtained in step 5 is again a solution of
problem (2). That is, for c1 , , cN constants the function
u(x, t) = c1 u1 (x, t) + + cN uN (x, t) =
cj ek( L ) t sin
j=1
jx
L
is also a solution of (2). In fact, under appropriate conditions, we can form a linear
combination of innitely many solutions un and obtain again a solution of (2) (see
Principle of Superposition 1).
Step 7. Find the coecients cj so that the solution of HP found in step 6 satises
also the nonhomogeneous condition (3). This means, we need to nd c1 , c2 ,
so that
3x
7x
u(x, 0) = f (x) = 100 sin
50 sin
.
L
L
We have,
2x
N x
3x
7x
x
+ c2 sin
+ + cN sin
= 100 sin
50 sin
L
L
L
L
L
We take all coecients cj to be zero except c3 = 100 and c7 = 50.
u(x, 0) = c1 sin
2
3x
7x
50ek(7/L) t sin
.
L
L
eix + eix
2
and
sin x =
eix eix
.
2i
ex + ex
2
and
sinh x =
ex ex
.
2
We also have
ex = cosh x + sinh x and ex = cosh x sinh x .
The following identities of cosh and sinh are left for you to verify as an exercise.
cosh(x)
sinh(x)
1
0
Example 2.
The following BVP models wave propagation with damping in a string of length
L.
(7)
The waves speed is c and the damping constant is a. We assume that 0 a < c/L.
This problem models the vibrations in a string of length L with end points attached.
The initial position and initial velocity are given by the functions f (x) and g(x).
Take for instance,
x
6x
x
13x
(8)
f (x) = 20 sin
sin
, and g(x) = 3 sin
+ sin
.
L
L
L
L
To solve this problem, we proceed with steps of Example 1.
Step 1. Separate the BVP into its homogeneous part (HP) and nonhomogeneous
part (NHP).
Homogeneous part (HP):
{
utt (x, t) + 2aut (x, t) = c2 uxx (x, t)
0 < x < L, t > 0 ;
(9)
u(0, t) = 0, u(L, t) = 0
t>0.
Nonhomogeneous part (NHP)
(10)
Step 2. Separate HP into ODE problems. Assume that u(x, t) = X(x)T (t) is a
nontrivial solution of (HP) We rewrite the HP for such a function u. It becomes
{
X(x)T (t) + 2aX(x)T (t) = c2 X (x)T (t)
0 < x < L, t > 0 ;
(11)
X(0)T (t) = 0, X(L)T (t) = 0
t>0.
By separating the variables, the PDE can be written as
T (t)
2aT (t)
X (x)
+
=
= (constant).
c2 T (t)
c2 T (t)
X(x)
It follows that X and T solve the ODEs
X (x) + X(x) = 0 ,
The boundary conditions imply that X(0) = 0 and X(L) = 0. Problem (11) splits
then into two ODE problems. The X-problem (SL-problem):
{
X + X = 0
0<x<L;
(12)
X(0) = X(L) = 0 ,
and the T -problem:
(13)
T + 2aT + c2 T = 0 ,
t>0.
Step 3. Find the eigenvalues and eigenfunctions of the SL-problem. The Xproblem was solved in Example 1 and we found that it has innitely many eigenvalues. For each n Z+ we have:
( n )2
,
eigenvalue :
n = n2 =
L
nx
.
eigenfunction : Xn (x) = sin n x = sin
L
Step 4. For each eigenvalue, solve the corresponding T -problem. For = n , the
T -problem is:
T (t) + 2aT (t) + c2 n2 T (t) = 0 .
The characteristic equation of this ODE is
m2 + 2am + (cn )2 = 0
with roots
m = a
a2 (cn )2 .
Note that since a < c/L, then a2 (cn )2 < 0 for every n Z+ . We can then
write a2 (cn )2 = n2 with n > 0. Thus, the characteristic roots are complex
conjugate and can be written as
m = a in .
Two independent solutions of the T -problem are:
Tn1 (t) = eat cos n t and Tn2 (t) = eat sin n t .
Step 5. Use steps 3 and 4 to write the solutions with separated variables for the
Homogeneous problem (11). For each n Z+ , we have:
eigenvalue: n = n2 = (n/L)2 ;
eigenfunction: Xn (x) = sin(n x) = sin(nx/L);
T -solutions: Tn1 (t) = eat cos n t and Tn2 (t) = eat sin n t
Corresponding solutions of HP with separated variable are:
u1n (x, t) = Tn1 (t)Xn (x) = eat cos(n t) sin(n x) ;
u2n (x, t) = Tn2 (t)Xn (x) = eat sin(n t) sin(n x) .
Step 6. Use the principle of superposition to obtain more solutions of HP. Any
linear combination of the solutions u1n and u2n obtained in step 5 is again a solution
of problem (9). That is, for A1 , , AN and B1 , , BN constants the function
u(x, t)
j=1
j=1
j=1
The initial position and initial conditions (14) and (15) became
u(x, 0) =
Aj sin
j=1
N
jx
x
6x
= 20 sin
sin
L
L
L
ut (x, 0) =
j=1
jx
x
13x
= 3 sin
+ sin
.
L
L
L
1
a
3 + 20a
, B13 =
, B6 =
, and Bj = 0, j = 1, 6, 13.
1
13
6
1 < r < 2 , 0 2 ;
u(r, ) = 0 ,
u(1, ) = cos ,
0 2 ;
(16)
ur (2, ) = sin 2; ,
0 2 .
This BVP can be interpreted as that for the steady-state temperature in an annular
u=0
u=cos
ur=sin 2
Remark The polar coordinates (r, ) and (r, + 2) represent the same point in
the plane. So any function u dened in the plane is 2-periodic in : u(r, ) =
u(r, + 2). Hence, although it is not explicitly listed in the BVP, it is understood
that u(r, 0) = u(r, 2) and also u (r, 0) = u (r, 2).
Now, we proceed as in the previous problems.
Step 1. Separate the BVP into its homogeneous part (HP) and nonhomogeneous
part (NHP).
Homogeneous part (HP):
1
1
(17)
urr (r, ) + ur (r, ) + 2 u = 0 1 < r < 2, 0 2 .
r
r
Nonhomogeneous part (NHP)
(18)
0 2 .
=
()
R(r)
R(r)
It follows that and R solve the ODEs
() + () = 0 ,
(constant).
(0) = (2)
We have then the following ODE problems. The -problem (periodic SL-problem):
{
+ = 0 0 2 ;
(20)
(0) = (2) and (0) = (2) .
and the R-problem:
(21)
1<r<2.
Step 3. Find the eigenvalues and eigenfunctions of the periodic SL-problem. The
characteristic equation of the ODE in the SL-problem is
m2 + = 0 with roots m = .
Depending on the sign of , we distinguish three cases:
Case : < 0. We write = 2 with > 0. The characteristic roots are
m = . The general solution of the ODE in the -problem is
() = A cosh(x) + B sinh(x) ,
with A and B constants. We need to nd A and B so that satises the periodic
conditions:
(0) = (2)
A = A cosh(2) + B sinh(2)
(0) = (2)
B = A sinh(2) + B cosh(2)
10
=0
=0
and
B = B.
B = A sin(2) + B cos(2) .
=0
=0
Eigenfunctions
0 () = 1
1n () = cos(n) and 2n () = sin(n)
Step 4. For each eigenvalue, solve the corresponding R-problem. Note that the
ode for R is a Cauchy-Euler equation. We can nd solutions of the form rm . The
characteristic equation is
m(m 1) + m = 0
m2 = 0 .
For = 0, we have m = 0 with multiplicity 2 and the general solution of the ode is
R(r) = A + B ln r .
11
n=1
1
4
2
2
, B11 = , A22 =
, B22 =
5
5
17
17
The solution of the original problem (16) is
(
)
(
)
1
4
2
1
u(r, ) =
r+
cos +
r2 2 sin(2)
5
r
17
r
A11 =
Example 4
Consider the BVP
u(0, t) = 0 ,
(22)
u(, t) = ux (, t) ,
u(x, 0) = f (x)
This problem models heat conduction in a rod in which one end (at x = 0) is kept
at 0 degrees and at the other end (x = ) the heat ux is controlled. The initial
temperature is f (x).
12
T + T = 0 ,
t>0.
m2 + = 0 with roots m = .
Depending on the sign of , we distinguish three cases:
Case : < 0. Set = 2 with > 0. The characteristic roots are m = .
The general solution of the ODE in the X-problem is
X(x) = Aex + Bex ,
with A and B constants. The endpoint conditions implies
A + B = 0,
Ae + Be = [Ae Be ] .
In order to get a nontrivial solution must satisfy the equation
e e = [e + e ]
or equivalently
1+
1
This equation has a unique positive solution 0 . Furthermore 0 (0, 1) (check
this claim as an exercise). Thus 0 = 02 is the unique negative eigenvalue with
the corresponding eigenfunction
e2 =
X0 (x) =
e0 x e0 x
= sinh(0 x)
2
13
(28)
This equation has innitely many positive solutions. For each k Z+ , it has a
f () = ( 1) cos() + sin() .
Note that cos() and sin() are either both positive or both negative in the
interval (k, k + (1/2)). Hence, f does not change sign in the interval and f is
either increasing or either decreasing in the interval. Therefore, it cannot have
two zeroes. I will leave it as an exercise to verify that f does not have zeroes
14
between k + (1/2) and k + 1. We can also consider the second form of the equation
tan() = . The solutions are given by the intersection of the graphs of the
functions y = tan() and y = (See gure).
Therefore, to each solution j > 0 of the above equation tan() = corresponds
a nontrivial solution Xj (x) = sin(j x) of the Sturm-Liouville problem (26). A
numerical estimate of the rst 5 values j and j = j2 is given in the following
table.
n
n
n = n2
1
1.2901
1.6644
2
2.3731
5.6314
3
3.4092
11.6225
4
5
4.4293 5.4422
19.6189 29.6171
with C constant.
T (t) = Ce0 t
with C constant.
solves (23).
Step 7. If we know how to express f (x) in terms of the eigenfunctions sin(n x)
and sinh(0 x), then we would match the coecients. To complete this step, we
need to study Fourier series.
15
Example 5
Consider the BVP
(29)
u(x, y, 0) = 0 ,
ut (x, y, 0) = sin x sin(7y/2) ,
u(x, 0, t) = u(x, 2, t) = 0 ,
u(0, y, t) = u(, y, t) = 0 ,
u(x, y, 0) = 0 ,
u(x, 0, t) = u(x, 2, t) = 0 ,
u(0, y, t) = u(, y, t) = 0 ,
7y
,
2
XY T = X Y T + XY T ,
0 < x < , 0 < y < 2 t > 0 ;
Y (0) = Y (2) = 0,
T (0) = 0
X + X = 0 ,
Y + Y = 0 ,
T + T = 0 ,
X(0) = X() = 0
Y (0) = Y (2) = 0
T (0) = 0 .
16
Xj (x) = sin(jx) .
4j 2 + k 2
k2
2
=
= jk
4
4
ky
2
4j 2 + k 2
.
2
Step 6. Any linear combination of the solutions ujk is again a solution of problem
(30). That is, any function of the form
ky
cjk sin(jk t) sin(jx) sin
u(x, y, t) =
2
with jk =
jN, kM
ky
ut (x, y, t) =
cjk jk cos(jk t) sin(jx) sin
2
jN, kM
Hence,
ut (x, y, 0) =
jN, kM
ky
7y
= sin x sin
2
2
1
2
= .
1,7
53
17
Exercises
Use the method of separation of variables to solve the following boundary value
problems.
Exercise 1.
ut (x, t) = 3uxx (x, t)
u(0, t) = u(2, t) = 0
x
u(x, 0) = sin sin(3x)
2
Exercise 2.
0 < x < 2
Exercise 3.
ut (x, t) = 2uxx (x, t)
u(0, t) = ux (, t) = 0
x
7x
11x
u(x, 0) = 50 sin 25 sin
+ 10 sin
2
2
2
Exercise 4.
where
f (x) = sin
Exercise 5.
x 1
1
7x
sin(2x) + sin
3 2
5
3
where
g(x) = sin
2x 1
5x
+ sin
3
2
3
Exercise 6.
utt (x, t) = uxx (x, t)
u(0, t) = ux (1, t) = 0
x
u(x, 0) = sin
2
7x
ut (x, 0) = sin
2
18
Exercise 7.
utt (x, t) = uxx (x, t)
ux (0, t) = ux (1, t) = 0
u(x, 0) = 0
1
5x
ut (x, 0) = 1 cos
2
2
Exercise 8.
u(x, y) = 0
u(0, y) = u(1, y) = 0
u(x, 0) = sin(2x), u(x, 2) = sin(3x)
Exercise 9.
u(x, y) = 0
y
5y
u(0, y) = 1 cos
, u(1, y) = 3 cos
2
2
uy (x, 0) = uy (x, 2) = 0
0<y<2
0<x<1
0 < r < 2 , 0 2
0 2
1 < r < 2 , 0 2
0 2
0 2
Exercise 14.
Exercise 15.
ut (x, t) = 3uxx (x, t)
u(0, t) = 0
u(2, t) = ux (2, t)
Exercise 16.
Exercise 17.
19