13.3 Heat Equation
INTRODUCTION
Consider a thin rod of length L with an initial temperature f(x) throughout and whose ends are held at temperature zero for all time t > 0. If the rod shown in FIGURE 13.3.1 satisfies the assumptions given on page 721, then the temperature u(x, t) in the rod is determined from the boundary-value problem
(1)
(2)
(3)
In the discussion that follows next we show how to solve this BVP using the method of separation of variables introduced in Section 13.1.
Solution of the BVP
Using the product u(x, t) = X(x)T(t), and –λ as the separation constant, leads to
(4)
and X″ + λX = 0(5)
T′ + kλT = 0.(6)
Now the boundary conditions in (2) become
u(0, t) = X(0)T(t) = 0 and u(L, t) = X(L)T(t) = 0.
Since the last equalities must hold for all time t, we must have X(0) = 0 and X(L) = 0. These homogeneous boundary conditions together with the homogeneous ODE (5) constitute a regular Sturm–Liouville problem:
X″ + λX = 0, X(0) = 0, X(L) = 0.(7)
The solution of this BVP was discussed in detail in Example 2 of Section 3.9 and on page 701 of Section 12.5. In that example, we considered three possible cases for the parameter λ: zero, negative, and positive. The corresponding general solutions of the DEs are
(8)
(9)
(10)
Recall, when the boundary conditions X(0) = 0 and X(L) = 0 are applied to (8) and (9) these solutions yield only X(x) = 0 and so we are left with the unusable result u = 0. Applying the first boundary condition X(0) = 0 to the solution in (10) gives c1 = 0. Therefore X(x) = c2 sin αx. The second boundary condition X(L) = 0 now implies
X(L) = c2 sin αL = 0.(11)
If c2 = 0, then X = 0 so that u = 0. But (11) can be satisfied for c2 ≠ 0 when sin αL = 0. This last equation implies that αL = nπ or α = nπ/L, where n = 1, 2, 3, … . Hence (7) possesses nontrivial solutions when λn = = n2π2/L2, n = 1, 2, 3, … . The values λn and the corresponding solutions
(12)
are the eigenvalues and eigenfunctions, respectively, of the problem in (7).
The general solution of (6) is T(t) = , and so
(13)
where we have replaced the constant c2c3 by An. The products un(x, t) given in (13) satisfy the partial differential equation (1) as well as the boundary conditions (2) for each value of the positive integer n. However, in order for the functions in (13) to satisfy the initial condition (3), we would have to choose the coefficient An in such a manner that
un(x, 0) = f(x) = An sin x.(14)
In general, we would not expect condition (14) to be satisfied for an arbitrary, but reasonable, choice of f. Therefore we are forced to admit that un(x, t) is not a solution of the problem given in (1)–(3). Now by the superposition principle the function
(15)
must also, although formally, satisfy equation (1) and the conditions in (2). If we substitute t = 0 into (15), then
This last expression is recognized as the half-range expansion of f in a sine series. If we make the identification An = bn, n = 1, 2, 3, … , it follows from (5) of Section 12.3 that
(16)
We conclude that a solution of the boundary-value problem described in (1), (2), and (3) is given by the infinite series
(17)
In the special case when the initial temperature is u(x, 0) = 100, L = π, and k = 1, you should verify that the coefficients (16) are given by
and that the series (17) is
(18)
Insulated Boundaries
Another boundary-value problem associated with the heat equation is
The boundary conditions in this problem indicate that both ends of the rod in Figure 13.3.1 are insulated. See the discussion on page 723 of Section 13.2. The major change in the solution of this boundary-value problem by separation of variables is that the analogue of (7) is now
In solving this type of Sturm–Liouville problem, you are cautioned to pay close attention to the case
Use of Computers
The solution u in (18) is a function of two variables and as such its graph is a surface in 3-space. We could use the 3D-plot application of a computer algebra system to approximate this surface by graphing partial sums Sn(x, t) over a rectangular region defined by 0 ≤ x ≤ π, 0 ≤ t ≤ T. Alternatively, with the aid of the 2D-plot application of a CAS we plot the solution u(x, t) on the x-interval [0, π] for increasing values of time t. See FIGURE 13.3.2(a). In Figure 13.3.2(b) the solution u(x, t) is graphed on the t-interval [0, 6] for increasing values of x(x = 0 is the left end and x = π/2 is the midpoint of the rod of length L = π). Both sets of graphs verify that which is apparent in (18)—namely, u(x, t) → 0 as t → ∞.
13.3 Exercises Answers to selected odd-numbered problems begin on page ANS-34.
In Problems 1–6, solve the heat equation (1) subject to the given conditions.
In Problems 7 and 8, solve the heat equation (1) subject to the given conditions. [Hint: A solution of the boundary-value problem (1)–(3) need not be an infinite series.]
- Suppose heat is lost from the lateral surface of a thin rod of length L into a surrounding medium at temperature zero. If the linear law of heat transfer applies, then the heat equation takes on the form
h a constant. Find the temperature u(x, t) if the initial temperature is f(x) throughout and the ends x = 0 and x = L are insulated. See FIGURE 13.3.3.
- Solve Problem 9 if the ends x = 0 and x = L are held at temperature zero.
- A thin rod (or wire) coinciding with the x-axis on the interval is bent into a circular ring by joining the two ends and See FIGURE 13.3.4. If the temperature u and the flux of heat are continuous at the point of juncture, then the temperature in the rod satisfies the boundary-value problem
See (15) in Section 12.5. Find the temperature u(x, t). [Hint: Think full Fourier series.]
Computer Lab Assignments
-
- Solve the heat equation (1) subject to
- Use the 3D-plot application of your CAS to graph the partial sum S5(x, t) consisting of the first five nonzero terms of the solution in part (a) for 0 ≤ x ≤ 100, 0 ≤ t ≤ 200. Assume that k = 1.6352. Experiment with various three-dimensional viewing perspectives of the surface (called the ViewPoint option in Mathematica).
Discussion Problems
- In Figure 13.3.2(b) we have the graphs of u(x, t) on the interval [0, 6] for x = 0, x = π/12, x = π/6, x = π/4, and x = π/2. Describe or sketch the graphs of u(x, t) on the same time interval but for the fixed values x = 3π/4, x = 5π/6, x = 11π/12, and x = π.