152 Chapter 2 The Heat Equation
If φ has the form given in the preceding, the boundary conditions require that
φ(0) = c
1
=0, leaving φ(x) = c
2
sin(λx).Thenφ(a) = c
2
sin(λa) = 0.
We now have two choices: either c
2
=0, making φ(x) ≡ 0 for all values of x,
or sin(λa) =0. We reject the first possibility, for it leads to the trivial solution
w(x, t) ≡ 0. In order for the second possibility to hold, we must have λ =
nπ/a,wheren =±1, ±2, ±3,....Thenegativevaluesofn do not give any
new functions, because sin(−θ) =−sin(θ ).Henceweallown = 1, 2, 3,...
only. We shall set λ
n
=nπ/a.
Incidentally, because the differential equations (13) and the boundary con-
ditions (14) for φ(x) are homogeneous, any constant multiple of a solution is
still a solution. We shall therefore remember this fact and drop the constant c
2
in φ(x). Likewise, we delete the c in T(t).
To review our position, we have, for each n = 1, 2, 3,...,afunctionφ
n
(x) =
sin(λ
n
x) and an associated function T
n
(t) = exp(−λ
2
n
kt).Theproductw
n
(x, t)
=sin(λ
n
x) exp(−λ
2
n
kt) has these properties:
1.
∂
2
w
n
∂x
2
=−λ
2
n
w
n
;
∂w
n
∂t
=−λ
2
n
kw
n
; and therefore w
n
satisfies the heat equa-
tion.
2. w
n
(0, t) = sin(0)e
−λ
2
n
kt
= 0 for any n and t; and therefore w
n
satisfies the
boundary condition at x = 0.
3. w
n
(a, t) = sin(λ
n
a)e
−λ
2
n
kt
= 0 for any n and t because λ
n
a = nπ and
sin(nπ)= 0. Therefore w
n
satisfies the boundary condition at x = a.
Now we call on the Principle of Superposition in order to continue.
Principle of Superposition.
If u
1
, u
2
,...are solutions of the same linear, homogeneous equations, then so
is
u =c
1
u
1
+c
2
u
2
+···.
In fact, we have infinitely many solutions, so we need an infinite series to
combine them all:
w(x, t) =
∞
n=1
b
n
sin(λ
n
x) exp
−λ
2
n
kt
. (15)
Using an infinite series brings up questions about convergence that we are go-
ing to ignore. However, it is easy to verify that the function defined by the
series does satisfy the boundary conditions: At x = 0andatx = a ,eachterm
is 0, so the sum is 0 as well. To check the partial differential equation, we have
to differentiate w(x, t) by differentiating each term of the series. This done, it
is easy to see that terms match and the heat equation is satisfied.