2024 MSO HeatEqn
2024 MSO HeatEqn
⃗v = −K∇U, (1.1)
where is U (x, y, z, t) temperature, t is time, and K is called the thermal conductivity of the
body; in ordinary physical circumstances K is a constant. Using this information, we set up
the mathematical model of heat flow, the so-called heat equation or diffusion equation.
Solution. Let V be a region in the body bounded by a surface S with outer unit normal
vector n̂ such that the divergence theorem applies. Then ⃗v · n̂ is the component of ⃗v in the
direction of n̂, and the amount of heat leaving V per unit time is
ZZ
⃗v · n̂ dA.
S
Using
∇ · (∇U ) = ∇2 U = ∆U = Uxx + Uyy + Uzz ,
(where ∇2 or ∆ is the the Laplacian operator), we have by the divergence theorem and (1)
ZZ ZZZ ZZZ
⃗v · n̂ dA = −K ∇ · (∇U )dV = −K ∇2 U dV. (1.2)
S V V
where the constant σ is the specific heat of the material of the body and ρ is the density of
the material. Hence the time rate of decrease of H is
ZZZ
∂H ∂H
U
− =− σρ dV
∂t V ∂t
and this must be equal to the above amount of heat leaving V. This gives us
ZZZ ZZZ
∂U
− σρ dV = −K ∇2 U dV.
V ∂t V
1
And our derivation is another impressive demonstration of the great importance of the
divergence theorem. The heat equation is also called the diffusion equation because it also
models diffusion processes of motions of molecules tending to level off differences in density
or pressure in gases or liquids.
If heat flow does not depend on time, it is called steady-state heat flow. Then ∂U/∂t = 0
and hence ∇2 U = 0, so that (1.3) reduces to Laplace’s equation.
3. Heat Conduction in Different Domains
In this chapter we discuss the methods to solve the heat equation (or diffusion equation)
in different domains and initial and boundary conditions. We first consider the pure initial
value problem (with no boundaries),
ut (x, t) = c2 uxx (x, t), −∞ < x < ∞, t > 0, u(x, 0) = f (x), −∞ < x < ∞.
We assume that f (x) satisfies the assumptions for its Fourier integral to exist. We take
u(x, t) = X(x)T (t) and obtain
X ′′ T′
= 2 = λ.
X cT
′ 2
For T with get T = λc T. Since the temperature decreases with time, we must have λ =
2 2
−p2 , where p > 0. This gives us T (t) = T0 e−c p t , where T0 is a constant. For X we get
X ′′ + p2 X = 0 which gives X(x) = A cos px + B sin px. Thus,
2 p2 t
u(x, t; p) = (A cos px + B sin px)e−c ,
Hence Z ∞ Z ∞
1 1
A(p) = f (y) cos py dy, B(p) = f (y) sin py dy. (3.2)
π −∞ π −∞
1 ∞
Z Z ∞
−c2 p2 t
u(x, t) = f (y) cos p(x − y)e dy dp
π 0 −∞
1 ∞
Z Z ∞
−c2 p2 t
= f (y) cos p(x − y)e dy dp.
π −∞ 0
We use the following formula,
Z ∞ √
−s2 π −b2
e cos 2bs ds = e , (3.3)
0 2
2
√ √
and by putting s = cp t and p(x − y) = 2bs = 2bcp t which gives
x−y
b= √ ,
2c t
we get
∞
(x − y)2
Z
1
u(x, t) = √ f (y) exp − dy. (3.4)
2c πt −∞ 4c2 t
If we put
(x − y)
− = z,
4c2 t
then
1
Z ∞ √ 2
u(x, t) = √ f (x + 2cz t)e−z dz. (3.5)
π −∞
Example 1 Let f (x) = U0 , for |x| < 1 and f (x) = 0 for |x| > 1, where U0 is a constant.
Then
1
(x − y)2
Z
U0
u(x, t) = p √ exp − dy. (3.6)
2c πt −1 4c2 t
We may write (3.6) as √
Z (1−x)/2c t
U0 2
u(x, t) = √ √
e−z dz. (3.7)
π −(1+x)/2c t
The integral (3.7) can be expressed in terms of the error function erf (x),
Z x
2 2
erf (x) = √ e−z dz. (3.8)
π 0
3
4. Heat Conduction in a Semi-infinite Bar
If we have the following problem of heat conduction in a semi-infinite bar,
and consider
ut (x, t) = c2 uxx (x, t), 0 < x < ∞, t > 0
0
u(x, 0) = f (x), 0 < x < ∞.
Using (3.5) we get
1
Z ∞ √ 2
u(x, t) = √ f 0 (x + 2cz t)e−z dz. (4.1)
π −∞
√
We put 2c t = τ > 0, and observe that for 0 < x + τ z < ∞, we have −x/τ < z < ∞ and
for −∞ < x + τ z < 0, we have −∞ < z < −x/τ. Hence
Z ∞ Z −x/τ
1 −z 2 1 2
u(x, t) = √ f (x + τ z)e dz − √ f (−x − τ z)e−z dz
π −x/τ π −∞
Z ∞ Z ∞
1 −z 2 1 2
=√ f (x + τ z)e dz − √ f (−x + τ z)e−z dz
π −x/τ π x/τ
4
u(x, 0) = f (x), 0 < x < L, u(0, t) = u(L, t) = 0, t ≥ 0.
By taking u(x, t) = X(x)T (t), we get
X ′′ T′
= 2 = λ.
X cT
For X we get the SLP,
For this SLP to have non-zero solutions we know that λ = −µ2 where µ > 0. We get the
solutions as X(x) = A cos µx + B sin µx. The condition X(0) = 0 gives A = 0 and X(L) = 0
inmplies that µ = nπ/L. Hence λn = −n2 π 2 /L2 and Xn (x) = sin(nπx/L). The second SLP
2 2 2 2
T ′ + (n2 π 2 c2 /L2 )T = 0 gives Tn (t) = T0n e−c n π t/L . Hence
∞
2 n2 π 2 t/L2
X
u(x, t) = Bn e−c sin(xπx/L).
n=1
Example 2 let
x, 0 < x < L/2,
f (x) =
L − x, L/2 < x < L.
We have !
Z l/2 Z L
2
Bn = x sin(nπx/L) dx + (L − x) sin(nπx/L) dx .
L 0 l/2
Thus,
4L πx −(c2 π2 /L2 )t 1 3πx −(9c2 π2 /L2 )t
u(x, t) = 2 sin e − sin e + −··· .
π L 9 L
Figure 3 shows that the temperature decreases with increasing t, because of the heat loss
due to the cooling of the ends.
5
If the ends are insulated instead of keeping at zero temperature, we then have the Neu-
mann conditions at x = 0 and x = L, i.e., ux (0, t) = ux (L, t) = 0 for all t. Then we replace
earlier SLP for X by the SLP,
X ′′ = λX, X ′ (0) = 0 = X ′ (L).
For λ < 0, we get X ≡ 0. For λ = 0 we get X ≡ X0 , a constant solution. For λ > 0, we take
λ = µ2 , µ > 0. We have X(x) = A cos µx + B sin µx. X ′ (0) = 0 gives B = 0 and X ′ (L) gives
µn = nπ/L. Thus,
∞
X 2 2 2 2 nπx
u(x, t) = An e−(c n π /L )t cos .
n=0
L
The condition u(x, 0) = f (x) implies
∞
X nπx
f (x) = An cos .
n=0
L
Hence Z L
1 L
A0 = f (x) dx = ,
L 0 4
Z L
2 nπx 2L nπ
An = f (x) cos dx = 2 2 2 cos − cos nπ − 1 , n = 1, 2, , . . . .
L 0 L nπ 2
Hence the solution is
L 8L 1 2πx −(4c2 π2 /L2 )t 1 6πx −(36c2 π2 /L2 )t
u(x, t) = − 2 cos e + 2 cos e + ··· .
4 π 22 L 6 L
6
The terms decrease with increasing t, and u → L/4 as t → ∞, this is the mean value of the
initial temperature. This is plausible because no heat can escape from this totally insulated
bar. In contrast, the cooling of the ends in the first part led to heat loss and u → 0, the
temperature at which the ends were kept.
Non-homogeneous Heat Equation
Now we consider the following non-homogeneous heat conduction problem in a bar of finite
length L,
wt (x, t) − c2 wxx (x, t) = G(x, t), 0 < x < L, t > 0,
w(x, 0) = g(x), 0 < x < L, (1)
w(0, t) = h1 (t), w(L, t) = h2 (t), t ≥ 0.
We can transform the general problem (GP) to a problem with homogeneous boundary
conditions by taking
L−x x
v(x, t) = w(x, t) − h1 (t) + h2 (t)
L L
as
vt (x, t) − c2 vxx (x, t) = F (x, t), 0 < x < L, t > 0,
v(x, 0) = f (x), 0 < x < L, (2)
v(0, t) = 0, v(L, t) = 0, t ≥ 0,
where
L−x ′ x ′
F (x, t) = G(x, t) − h1 (t) + h2 (t) , 0 < x < L, t > 0,
L L
L−x x
f (x) = g(x) − h1 (0) + h2 (0) , 0 < x < L,
L L
Then we split the problem (1) into two sub-problems,
∗
vt∗ (x, t) − c2 vxx (x, t) = 0, 0 < x < L, t > 0,
v ∗ (x, 0) = f (x), 0 < x < L, (3)
∗ ∗
v (0, t) = 0, v (L, t) = 0, t ≥ 0,
and
vt∗∗ (x, t) − c2 vxx
∗∗
(x, t) = F (x, t), 0 < x < L, t > 0,
v ∗∗ (x, 0) = 0, 0 < x < L, (4)
v ∗∗ (0, t) = 0, v ∗∗ (L, t) = 0, t ≥ 0,
Then v = v ∗ + v ∗∗ . The first solution v ∗ can be obtained as before and we now use Duhamel’s
Principle to obtain the second solution v ∗∗ .
Duhamel’s Formula
Let W (x, t, s) satisfy,
Wt (x, t, s) − c2 Wxx (x, t, s) = 0, 0 < x < L, t > 0, s ≥ 0,
W (x, 0, s) = F (x, s), 0 < x < L, s ≥ 0 (5)
W (0, t, s) = 0, W (L, t, s) = 0, t ≥ 0, s ≥ 0.
Then Z t
∗∗
v (x, t) = W (x, t − s, s) ds, (6)
0
7
satisfies (4).
Proof. Clearly, the initial and boundary conditions of (4) are satisfied by v ∗∗ . By Leibniz
rule and (5), Z t
∗∗
vt (x, t) = W (x, 0, t) + Wt (x, t − s, s) ds
0
Z t
vt∗∗ (x, t) = F (x, t) + c2 Wxx (x, t − s, s) ds
0
t
∂2
Z
2
= F (x, t) + c W (x, t − s, s) ds
∂x2 0
2 L
Z
nπξ
Bn (s) = F (ξ, s) sin dξ.
L 0 L
From (6), under suitable conditions on F which allow us to interchange the integration and
summation, we get
∞ Z Z
∗∗ 2 X t L − n2 π22 c2 (t−s) nπx nπξ
v (x, t) = e L sin sin F (ξ, s) dξ ds
L n=1 0 0 L L
Z tZ L
= K(x, ξ, t − s)F (ξ, s) dξ ds,
0 0
where ∞
2 X − n2 π22 c2 t nπx nπξ
K(x, ξ, t) = e L sin sin .
L n=1 L L
Method of Variation of Constants: We now consider, as an alternative, the method of
variation of constants to the non-homogeneous heat conduction problem in a bar of finite
length L, with homogeneous IC and homogeneous BCs (problem (4), with v ∗∗ replaced by
u, in the earlier section),
ut (x, t) − c2 uxx (x, t) = F (x, t), 0 < x < L, t > 0,
u(x, 0) = 0, 0 < x < L, (1)
u(0, t) = 0, u(L, t) = 0, t ≥ 0.
8
and put it in the equation to get the system of IVP of ODEs,
n2 π 2 c2
Bn′ (t) + Bn (t) = Fn (t), Bn (0) = 0, n = 1, 2, 3, . . . .
L2
Solving this system of IVPs of ODES, we get
Z t
2 2 2 2
Bn (t) = Fn (τ )e−(n π c /L )(t−τ ) dτ.
0
Thus, Z t
−(n2 π 2 c2 /L2 )(t−τ )
u(x, t) = Fn (τ )e dτ sin(nπx/L).
0
Now, Z L
2
Fn (t) = F (t, ξ) sin(nπξ/L) dξ.
L 0
Hence
∞ Z t Z L
2X −(n2 π 2 c2 /L2 )(t−τ )
u(x, t) = F (τ, ξ) sin(nπξ/L) dξ e dτ sin(nπx/L)
L n=1 0 0
Z t "Z L ∞
! #
2X 2 2 2
= sin(nπξ/L) sin(nπx/L)e−(n π c /L)t F (ξ, τ )dξ dτ,
0 0 L n=1
which is the same as we got earlier using Duahmel’s principle.
For ant T > 0 let Q = (0, L) × (0, T ), Q = [0, L] × [0, T ] and Γ0 = {(x, t) : x = 0 or x =
L} ∪ {(x, t) : t = 0}. Consider a continuous function u(x, t) on Q satisfying the heat equation
Let
MQ = max u(x, t), MΓ0 = max u(x, t)
(x,t)∈Q̄ (x,t)∈Γ0
Then
MΓ0 = MQ .
Proof: Clearly, MΓ0 ≤ MQ . Suppose that MΓ0 < MQ . Then there exists (x0 , t0 ) ∈ Q
such that u(x0 , t0 ) = MQ . Consider the auxiliary function
MQ − MΓ0
v(x, t) = u(x, t) + 2
(x − x0 )2 ,
4R
where R > 0 is large enough so that the disc (x − x0 )2 + (t − t0 )2 ≤ R2 includes Q. Then
v(x0 , t0 ) = MQ and for any (x, t) ∈ Γ0 we have v(x, t) < MQ . Therefore maximum of v(x, t)
9
attained in Q or on {(x, t) : 0 < x < L, t = T }. In Q or on {(x, t) : 0 < x < L, t = T }, we
have
MQ − MΓ0 MQ − MΓ0
−vt + c2 vxx = −ut + c2 uxx + c2 2
= c2 > 0 (∗),
2R 2R2
since ut = c2 uxx there. But if there is (x1 , t1 ) ∈ Q ∪ {(x, t) : 0 < x < L, t = T }, such that
then
vt (x1 , t1 ) = 0, vxx (x1 , t1 ) ≤ 0, for 0 < t1 < T,
and for t1 = T
vt (x1 , t1 ) = vt (x1 , T −) ≥ 0,
since if vt (x1 , T −) < 0 then by the continuity of vt , for a small δ > 0, we have vt (x1 , s) < 0
for T − δ < s < T and hence
Z T
v(x1 , T ) − v(x1 , T − δ) = vt (x1 , s)ds < 0.
T −δ
Therefore v(x1 , T − δ) > v(x1 , T ), a contradiction to the fact that v(x1 , T ) is the maximum
in Q̄. Hence
−vt (x1 , t1 ) + c2 vxx (x1 , t1 ) ≤ 0,
which is a contradiction to (∗). Hence MQ̄ = MΓ0 .
10