2.6 Example: Convection 173
that makes w
n
(x, t) = φ
n
(x)T
n
(t) a solution of the partial differential equa-
tion (6) and the boundary conditions Eq. (7). Since Eqs. (6) and (7) are lin-
ear and homogeneous, any linear combination of solutions is also a solution.
Therefore, the transient solution will have the form
w(x, t) =
∞
n=1
b
n
sin(λ
n
x) exp
−λ
2
n
kt
,
and the remaining condition to be satisfied, the initial condition Eq. (8), is
w(x, 0) =
∞
n=1
b
n
sin(λ
n
x) = g(x), 0 < x < a. (12)
Thus the constants b
n
are to be chosen so as to make the infinite series equal
g(x).
Although Eq. (12) looks like a Fourier series problem, it is not, because λ
2
,
λ
3
, and so forth are not all integer multiples of λ
1
.Ifweattempttousetheidea
of orthogonality, we can still find a way to select the b
n
, for it may be shown by
direct computation that
a
0
sin(λ
n
x) sin(λ
m
x) dx = 0, if n = m. (13)
Then if we multiply both sides of the proposed Eq. (12) by sin(λ
m
x) (where
m is fixed) and integrate from 0 to a,wehave
a
0
g(x) sin(λ
m
x) dx =
∞
n=1
b
n
a
0
sin(λ
n
x) sin(λ
m
x) dx,
where we have integrated term by term. According to Eq. (13), all the terms
of the series disappear except the one in which n = m, yielding an equation
for b
m
:
b
m
=
a
0
g(x) sin(λ
m
x) dx
a
0
sin
2
(λ
m
x) dx
. (14)
By this formula, the b
m
may be calculated and inserted into the formula for
w(x, t). Then we may put together the solution u(x, t) of the original problem
Eqs. (1)–(4):
u(x, t) = v(x) +w(x, t)
= T
0
+
xh(T
1
−T
0
)
(κ +ha)
+
∞
n=1
b
n
sin(λ
n
x) exp
−λ
2
n
kt
.
In Fig. 7 are graphs of u(x, t) for two different values of the parameter κ/ha;
both have initial conditions u(x, 0) = 0.SeeanimationsontheCD.