You are on page 1of 7

Chapter 12

Solving Nonhomogeneous
PDEs (Eigenfunction
Expansions)
12.1 Goal
We know how to solve diusion problems for which both the PDE and the BCs
are homogeneous using the separation of variables method. Unfortunately, this
method requires that both the PDE and the BCs be homogeneous. We also
learned how to apply certain transformations so that nonhomogeneous BCs are
transformed into homogeneous ones. Unfortunately, these transformations may
in some cases, transform the PDE into a nonhomogeneous one. To complete the
set of tools we have to solve diusion problems, we must learn how to handle
nonhomogeneous PDEs. More specically, we will show how to solve the IBVP
8
>
>
<
>
>
:
PDE n
t
= c
2
n
xx
+) (r, t) 0 < r < 1 0 < t < 1
BC
c
1
n
x
(0, t) +,
1
n(0, t) = 0
c
2
n
x
(1, t) +,
2
n(1, t) = 0
0 < t < 1
IC n(r, 0) = c(r) 0 r 1
(12.1)
by nding a series solution of the form
n(r, j) =
1
X
n=1
T
n
(t) A
n
(t)
where A
n
(t) are the eigenfunctions we nd when solving the associated homo-
geneous problem
8
>
>
<
>
>
:
PDE n
t
= c
2
n
xx
0 < r < 1 0 < t < 1
BC
c
1
n
x
(0, t) +,
1
n(0, t) = 0
c
2
n
x
(1, t) +,
2
n(1, t) = 0
0 < t < 1
IC n(r, 0) = c(r) 0 r 1
(12.2)
85
86CHAPTER 12. SOLVINGNONHOMOGENEOUS PDES (EIGENFUNCTIONEXPANSIONS)
and T
n
(t) are functions which can be found by solving a sequence of ODEs.
12.2 Outline
Recall that the solution of 12.2 is of the form
n(r, t) =
1
X
n=1

n
c
(n)
2
t
A
n
(r)
Where `
n
and A
n
(r) are the eigenvalues and eigenfunctions of the problem
8
<
:
A
00
+`
2
A = 0
c
1
A
0
(0) +,
1
A (0) = 0
c
2
A
0
(1) +,
2
A (1) = 0
For the problem in 12.1, we will look for a solution of the form
n(r, t) =
1
X
n=1
T
n
(t) A
n
(r)
The physical reason for this is that without ) (r, t), there is no heat source, so it
is normal to expect the temperature to decrease with time, hence the damping
term c
(n)
2
t
. With a heat source, temperature will no longer decrease, hence
we might expect the part which depends on t to be dierent.
12.3 General Idea
We illustrate this method with the following nonhomogeneous IBVP:
8
>
>
<
>
>
:
PDE n
t
= c
2
n
xx
+) (r, t) 0 < r < 1 0 < t < 1
BC
n(0, t) = 0
n(1, t) = 0
0 < t < 1
IC n(r, 0) = c(r) 0 r 1
(12.3)
The general idea is to decompose ) (r, t) into simple components
) (r, t) = )
1
(t) A
1
(r) +)
2
(t) A
2
(r) +... +)
n
(t) A
n
(r) +...
and nd the response n
n
(r, t) = T
n
(t) A
n
(r) to each of these individual com-
ponents. The solution to our problem will then be
n(r, t) =
1
X
n=1
n
n
(r, t)
We will break the procedure of solving this problem into several steps.
12.3. GENERAL IDEA 87
Step 1 Find the functions A
n
(r). It turns out that the functions A
n
(r)
are the eigenfunctions of the associated homogeneous problem when we
solve it by separation of variables. We derive this problem one more
time. The associated homogeneous PDE is n
t
= c
2
n
xx
. If we look for
a solution of the form n(r, t) = T (t) A (r). Replacing in the PDE gives
T
0
(t) A (r) = c
2
T (t) A
00
(r). Dividing each side by c
2
T (t) A (r) gives
T
0
(t)
c
2
T (t)
=
A
00
(r)
A (r)
. We concluded these had to be equal to a negative
constant we called `
2
. Thus, to nd A, we solve the second order ODE
A
00
+ `
2
A = 0. For A, the boundary condition meant that A (0) = 0
and A (1) = 0. Thus, we see that nding A amounts to solving the initial
value problem
8
<
:
A
00
+`
2
A = 0
A (0) = 0
A (1) = 0
When we do so, we say that we are nding the eigenfunctions of this
problem. You will recall that the solutions are A (r) = sin`r+1cos `r.
Using the boundary conditions gives 0 = A (0) = 1, so that A (r) =
sin`r. Also, we have 0 = A (1) = sin`. It follows that we must have
sin` = 0 which means that ` = : for : = 1, 2, 3, 4, .... If we call `
n
= :
for each : = 1, 2, 3, 4, ... then we have A
n
(r) = sin:r. Note that we
omitted the constant, it will be part of the other components )
n
(t).
Step 2 Find the functions )
n
(t). So far, we have
) (r, t) = )
1
(t) sinr +)
2
(t) sin2r +... +)
n
(t) sin:r +...
To nd )
n
(t) we simply multiply each side by sin:r and integrate from
0 to 1 with respect to r. We have already used this method. We will have
Z
1
0
) (r, t) sin:rdr =
1
X
n=1
)
n
(t)
Z
1
0
sin:rdrsin:rdr
=
1
2
)
m
(t)
Thus
)
n
(t) = 2
Z
1
0
) (r, t) sin:rdr (12.4)
Step 3 Find the response n
n
(r, t) = T
n
(t) A
n
(r). We can replace the
nonhomogeneous term ) (r, t) by its decomposition
) (r, t) =
1
X
n=1
)
n
(t) sin:r
and we try to nd the individual responses
n(r, t) =
1
X
n=1
T
n
(t) sin:r
88CHAPTER 12. SOLVINGNONHOMOGENEOUS PDES (EIGENFUNCTIONEXPANSIONS)
So, we have to nd the functions T
n
(t) which solve the IBVP 12.3. If we
replace n in that problem with the expression we have, we obtain
8
>
>
>
>
>
>
>
>
>
>
>
>
>
<
>
>
>
>
>
>
>
>
>
>
>
>
>
:
PDE
1
X
n=1
T
0
n
(t) sin:r = c
2
1
X
n=1
(:)
2
T
n
(t) sin:r +
1
X
n=1
)
n
(t) sin:r 0 < r < 1 0 < t < 1
BC
1
X
n=1
T
n
(t) sin0 = 0
1
X
n=1
T
n
(t) sin: = 0
0 < t < 1
IC
1
X
n=1
T
n
(0) sin:r = c(r) 0 r 1
The BCs do not give us any information, they simply say 0 = 0. We are
left with
8
>
>
>
<
>
>
>
:
1
X
n=1
h
T
0
n
(t) + (:c)
2
T
n
(t) )
n
(t)
i
sin:r = 0
1
X
n=1
T
n
(0) sin:r = c(r)
Thus, T
n
must satisfy the initial value problem
(
T
0
n
(t) + (:c)
2
T
n
(t) )
n
(t) = 0
T
n
(0) = 2
R
1
0
c(r) sin:rdr
Let a
n
= 2
R
1
0
c(r) sin:rdr. This is a rst order linear ODE which can
be solved using the integration factor technique. Recall, if we multiply
each side of the ODE by c
(n)
2
t
, we obtain
T
0
n
(t) c
(n)
2
t
+ (:c)
2
T
n
(t) c
(n)
2
t
= )
n
(t) c
(n)
2
t
which is

T
n
(t) c
(n)
2
t

0
= )
n
(t) c
(n)
2
t
Integrating from 0 to t on each side, we get
Z
t
0

T
n
(t) c
(n)
2

0
dt =
Z
t
0
)
n
(t) c
(n)
2
t
dt
T
n
(t) c
(n)
2
t
T
n
(0) =
Z
t
0
)
n
(t) c
(n)
2

dt
Recall we set a
n
= T
n
(0), so we have
T
n
(t) = a
n
c
(n)
2
t
+c
(n)
2
t
Z
t
0
)
n
(t) c
(n)
2

dt
= a
n
c
(n)
2
t
+
Z
t
0
)
n
(t) c
(n)
2
(t)
dt
12.4. A SPECIFIC PROBLEM 89
Thus, the solution to the IBVP 12.3 is
n(r, t) =
1
X
n=1
T
n
(t) sin:r
=
1
X
n=1
a
n
c
(n)
2
t
sin:r +
1
X
n=1
sin:r
Z
t
0
)
n
(t) c
(n)
2
(t)
dt
This shows in particular that the temperature in the rod is due to two
parts. One comes from the initial condition. The other one from the heat
source.
12.4 A specic Problem
We now apply the above procedure to a specic example. Consider the following
IBVP:
8
>
>
<
>
>
:
PDE n
t
= c
2
n
xx
+ sin3r 0 < r < 1 0 < t < 1
BC
n(0, t) = 0
n(1, t) = 0
0 < t < 1
IC n(r, 0) = sinr 0 r 1
The eigenfunctions A
n
(r) depend on the corresponding homogeneous PDE and
the BCs. Since they are the same in this problem as in the previous one, the
A
n
(r) will be the same. Thus, we have to compute the coecients T
n
(t) in
the expansion n(r, t) =
1
X
n=1
T
n
(t) sin:r. Using our work from the previous
example, we see that T
n
(t) must satisfy
T
0
n
+ (:c)
2
T
n
= )
n
= 2
Z
1
0
sin3rsin:rdr
=

0 if : 6= 3
1 if : = 3
And
T
n
(0) = 2
Z
1
0
sinrsin:rdr
=

0 if : 6= 1
1 if : = 1
90CHAPTER 12. SOLVINGNONHOMOGENEOUS PDES (EIGENFUNCTIONEXPANSIONS)
If we write these equations for each :, we have
8
>
>
>
>
>
>
>
>
>
>
<
>
>
>
>
>
>
>
>
>
>
:
(: = 1)
T
0
1
+ (c)
2
T
1
= 0
T
1
(0) = 1
(: = 2)
T
0
2
+ (2c)
2
T
2
= 0
T
2
(0) = 0
(: = 3)
T
0
3
+ (3c)
2
T
3
= 1
T
3
(0) = 0
(: 4)
T
0
n
+ (:c)
2
T
n
= 0
T
n
(0) = 0
Solution for : = 1 T
1
(t) = c
()
2
t
. Since T
1
(0) = 1, it follows that = 1.
Thus, T
1
(t) = c
()
2
t
.
Solution for : = 2 T
2
(t) = c
(2)
2
t
. Since T
2
(0) = 0, it follows that =
0. Thus, T
2
(t) = 0.
Solution for : = 3 We use the integrating factor technique. We get T
3
(t) =
1
(3c)
2

1 c
(3)
2
t

.
Solution for : 4 T
2
(t) = c
(n)
2
t
. Since T
n
(0) = 0, it follows that =
0. Thus, T
n
(t) = 0.
Thus, we see that the solution is
n(r, t) = c
()
2
t
sinr +
1
(3c)
2

1 c
(3)
2
t

sin3r
Remark 63 It is important to realize that the eigenfunctions A
n
(r) and the
eigenvalues `
n
which appear in the solution of nonhomogeneous problems vary
for each problem. They depend on the PDE used and the BCs.
12.5 Problems
1. In the last example, nd the solution in the case : = 3.
2. Solve the problem
8
>
>
<
>
>
:
PDE n
t
= n
xx
+ sinr + sin2r 0 < r < 1 0 < t < 1
BC
n(0, t) = 0
n(1, t) = 0
0 < t < 1
IC n(r, 0) = 0 0 r 1
3. Solve the problem
8
>
>
<
>
>
:
PDE n
t
= n
xx
+ sinr 0 < r < 1 0 < t < 1
BC
n(0, t) = 0
n(1, t) = 0
0 < t < 1
IC n(r, 0) = 1 0 r 1
12.5. PROBLEMS 91
4. Solve the problem
8
>
>
<
>
>
:
PDE n
t
= n
xx
+ sin`
1
r 0 < r < 1 0 < t < 1
BC
n(0, t) = 0
n
x
(1, t) +n(1, t) = 0
0 < t < 1
IC n(r, 0) = 0 0 r 1
where `
1
is the rst root of the equation tan` = `. What are the
eigenfunctions A
n
in this problem?
5. Solve the problem
8
>
>
<
>
>
:
PDE n
t
= n
xx
0 < r < 1 0 < t < 1
BC
n(0, t) = 0
n(1, t) = cos t
0 < t < 1
IC n(r, 0) = r 0 r 1
by:
(a) Transforming it to one with homogeneous BCs.
(b) Solving the resulting problems using the techniques of this chapter.

You might also like