Professional Documents
Culture Documents
Ryan C. Daileda
Trinity University
Separation of variables
Assuming that u(x, t) = X (x)T (t), the heat equation (1) becomes
XT ′ = c 2 X ′′ T .
This implies
X ′′ T′
= 2 = k,
X c T
which we write as
X ′′ − kX = 0, (4)
′ 2
T − c kT = 0. (5)
Case 1: k = µ2 > 0
X = c1 e µx + c2 e −µx .
Case 2: k = 0
The ODE (4) is simply X ′′ = 0 so that
X = Ax + B.
The boundary conditions (6) yield
0 = X ′ (0) = X ′ (L) = A.
Taking B = 1 we get the solution
X0 = 1.
The corresponding equation (5) for T is T ′ = 0, which yields
T = C . We set
T0 = 1.
These give the zeroth normal mode:
u0 (x, t) = X0 (x)T0 (t) = 1.
sin µL = 0.
Xn = cos µn x, n = 1, 2, 3, . . .
Initial conditions
If we now require that the solution (7) satisfy the initial condition
(3) we find that we need
∞
X nπx
f (x) = u(x, 0) = a0 + an cos , 0 < x < L.
L
n=1
1 L 2 L
Z Z
nπx
a0 = f (x) dx, an = f (x) cos dx, n ≥ 1.
L 0 L 0 L
Conclusion
Theorem
If f (x) is piecewise smooth, the solution to the heat equation (1)
with Neumann boundary conditions (2) and initial conditions (3) is
given by
∞
2
X
u(x, t) = a0 + an e −λn t cos µn x,
n=1
where
nπ
µn = , λn = cµn ,
L
and the coefficients a0 , a1 , a2 , . . . are those occurring in the cosine
series expansion of f (x). They are given explicitly by
L L
1 2
Z Z
nπx
a0 = f (x) dx, an = f (x) cos dx, n ≥ 1.
L 0 L 0 L
Example 1
Example
Solve the following heat conduction problem:
1
ut = uxx , 0 < x < 1 , 0 < t,
4
ux (0, t) = ux (1, t) = 0, 0 < t,
u(x, 0) = 100x(1 − x), 0 < x < 1.
Example 1
∞
50 200 X (1 + (−1)n ) −n2 π2 t/4
u(x, t) = − 2 e cos nπx.
3 π n2
n=1
Remarks
1 L
Z
u(t) = u(x, t) dx.
L 0
u(t) = a0 = f .
In (9) we take κ > 0. This states that the bar radiates heat to
its surroundings at a rate proportional to its current
temperature.
Recall that conditions such as (9) are called Robin
conditions.
Daileda The heat equation
Neumann Boundary Conditions Robin Boundary Conditions
Separation of variables
X ′′ − kX = 0,
T ′ − c 2 kT = 0,
X (0) = 0,
X ′ (L) = −κX (L).
Case 1: k = 0
0 = X (0) = B,
A = X ′ (L) = −κX (L) = −κ(AL + B).
Case 2: k = µ2 > 0
X = c1 e µx + c2 e −µx .
0 = c1 + c2 ,
µL
µ(c1 e − c2 e −µL
) = −κ(c1 e µL + c2 e −µL ).
Case 2: k = µ2 > 0
From X ′′ + µ2 X = 0 we find
X = c1 cos µx + c2 sin µx
0 = c1 ,
µ(−c1 sin µL + c2 cos µL) = −κ(c1 cos µL + c2 sin µL).
µ cos µL + κ sin µL = 0
The figure below shows the curves y = tan µL (in red) and
y = −µ/κ (in blue).
Remarks
As n → ∞
µn → (2n − 1)π/2L.
Normal modes
Xn = sin µn x
which give the normal modes of the heat equation with boundary
conditions (8) and (9)
2
un (x, t) = Xn (x)Tn (t) = e −λn t sin µn x.
Superposition
Conclusion
Theorem
The solution to the heat equation (1) with Robin boundary
conditions (8) and (9) and initial condition (3) is given by
∞
2
X
u(x, t) = cn e −λn t sin µn x,
n=1
Example 2
Example
Solve the following heat conduction problem:
1
ut = uxx , 0 < x < 3 , 0 < t,
25
u(0, t) = 0, 0 < t,
1
ux (3, t) = − u(3, t), 0 < t,
2
x
u(x, 0) = 100 1 − , 0 < x < 3.
3
Example 2
and
3
3
Z
sin2 µn x dx = + cos2 3µn .
0 2
Hence
200(3µn − sin 3µn )
cn = .
3µ2n (3 + 2 cos2 3µn )
Example 2
Example 2
Remarks:
In order to use this solution for numerical approximation or
visualization, we must compute the values µn .
Example 2
Here are approximate values for the first 5 values of µn and cn .
n µn cn
1 0.7249 47.0449
2 1.6679 45.1413
3 2.6795 21.3586
4 3.7098 19.3403
5 4.7474 12.9674
Therefore
u(x, t) = 47.0449e −0.0210t sin(0.7249x) + 45.1413e −0.1113t sin(1.6679x)
+ 21.3586e −0.2872t sin(2.6795x) + 19.3403e −0.5505t sin(3.7098x)
+ 12.9674e −0.9015t sin(4.7474x) + · · ·