A metal rod starts with an uneven temperature profile while both of its ends are held at a fixed temperature. Which features of the profile fade first, and what is left after a long time? Here is the temperature at position and time , measured from a chosen reference so that negative values are allowed, and subscripts denote partial derivatives, so and . This lesson writes the solution as a sum of spatial modes that each decay at their own rate, and it shows how insulated ends and nonzero end temperatures change the modes and the final state.
Key terms
Heat equation
Definition The one-dimensional heat equation for a temperature on an interval is
where the constant is the thermal diffusivity, with units of length squared per time. For a uniform rod, Fourier’s law gives the heat flux with the thermal conductivity , and the heat balance of a short piece of the rod gives , where is the density and the specific heat. Together these give the heat equation with
A well-posed problem on the interval adds the initial temperature and one boundary condition at each end, and it is solved forward in time, for .
In plain words The temperature rises where the profile curves upward and falls where it curves downward. Peaks cool, valleys warm, and sharp features smooth out. A larger diffusivity means faster smoothing.
Example Take on with both ends held at , and the initial profile , which has its peak at . Its second derivative is at every interior point, so the whole interior starts to cool. The function shows this exactly, since and . The opposite profile is a valley, and it warms toward at the same rate.
Separation of variables for PDEs
Definition Separation of variables looks for solutions of a linear homogeneous partial differential equation with linear homogeneous boundary conditions in the product form , a function of position alone times a function of time alone. Write and . For the heat equation, substitution gives , and dividing by where it is nonzero gives
The left side depends only on and the middle only on , so both equal one constant, written . The spatial factor solves the eigenvalue problem with the boundary conditions, and the time factor solves , so up to a constant factor. Since the equation and the boundary conditions are linear and homogeneous, finite sums of these product solutions are again solutions. The initial condition is met by an infinite sum whose coefficients are the coefficients of in the orthogonal eigenfunctions. For a piecewise continuous those coefficients are bounded, so for every the factors make the series converge together with all its termwise derivatives, and the sum solves the equation and the boundary conditions for .
In plain words Each building block keeps a fixed spatial shape and only changes its size in time. The boundary conditions decide which shapes are allowed, each allowed shape decays at its own rate, and the initial profile decides how much of each shape to use.
Example For on with , the problem with has the eigenvalues and the eigenfunctions for . The initial profile is already a sum of two of them, so orthogonality gives the coefficient for , the coefficient for , and for every other . Hence
To check, and , so . At the profile is , and both sines vanish at and at , so the end conditions hold too.
Dirichlet and Neumann modes
Definition On , the Dirichlet conditions hold both end temperatures at zero. The separated problem then has the eigenvalues and the Dirichlet modes for . The Neumann conditions describe insulated ends, through which no heat flows. They give the same eigenvalues with the Neumann modes for , including the zero mode with the constant . In both cases
with the half-range coefficients of ,
Dirichlet problems use . Neumann problems use for and , which is the mean value of .
In plain words Zero end temperatures call for sines, which vanish at the ends. Insulated ends call for cosines, which are flat at the ends, and the cosines include the constant, which never decays because heat cannot leave.
Example Take on with insulated ends and . The cosine coefficients are , so , and , with all others zero, so
Its slope vanishes at and at , and . The cosine fades and the constant remains. Leaving out the zero mode would predict decay to , which is wrong for this problem.
Conserved mean temperature
Definition Let solve on for , with , , and continuous up to the ends. Integrating the equation over the interval gives
With insulated ends both values of are zero, so the total is constant, and so is the mean temperature
For a piecewise continuous , every Neumann mode with decays, and approaches the constant uniformly as . With Dirichlet ends the boundary fluxes are in general nonzero, and the total is not conserved.
In plain words Insulation means that no heat crosses the ends, so the heat already in the rod has nowhere to go. It spreads out evenly, and the final temperature is the average of the initial one.
Example For on , the cosine integrates to zero, so at every time, and the mean is , which is also the limit. For the Dirichlet solution the total is
which decays because heat leaves through the ends. Its derivative matches the flux formula, since .
Boundary lifting
Definition For constant end temperatures and , the lift
is the steady solution with these end values, since . The difference satisfies with zero end values and . That is a Dirichlet problem, solved by the sine series, and tends to as . If the end temperatures and vary in time, the same formula gives a lift , and
where for this linear lift, so the changing ends act as a source in the equation for . For to be continuous at the corners and , the data must agree there, and .
In plain words Subtract a simple profile that already has the right end temperatures. What remains has zero end temperatures, which the sine modes handle, and adding the profile back restores the correct end values.
Example On with , hold the ends at and , and start from . The lift is , so and . Hence
which takes the values and at the ends, satisfies , and tends to the straight-line profile from to . The data agree at the corners, since and .
Diffusive decay
Definition In the Dirichlet problem on with a piecewise continuous , the mode decays like , at a rate proportional to . If , then
uniformly as , so the solution comes to look like a decaying first mode with the time scale . For every the profile is infinitely differentiable in , even when has jumps. For a solution with zero Dirichlet or zero Neumann conditions that is smooth up to the ends, the energy satisfies
because the boundary term from integration by parts vanishes.
In plain words Fine wiggles die out much faster than broad ones. After a short time only the smoothest modes are visible, and after a long time only the slowest mode present in the data. A rod twice as long takes four times as long to smooth out.
Example In the solution , the second mode starts twice as large as the first but decays four times as fast. At the amplitudes are and , a ratio of . The energy is
and its derivative equals , as the identity says.
Check yourself
- Solve on with and , using the identity .
Show the answer
The initial profile is already a sum of the Dirichlet modes and , with the eigenvalues and . Each coefficient picks up its own decay factor, so
Both terms satisfy , both vanish at and at , and at the sum is . By the factor has fallen to , while is still about , so the profile already looks like a single sine arch.
- Solve on with insulated ends and . A classmate expands in sines and predicts that the rod cools to . What went wrong, and what temperature does the rod approach?
Show the answer
Insulated ends call for the cosine modes, including the constant one. The sine series belongs to the problem with zero end temperatures, a different problem. The cosine coefficients are and, for ,
which is for odd and for even . So
Every term of the sum decays, and the rod approaches the mean of , which is , in agreement with the conserved mean temperature. The data have at both ends, which does not match the insulated ends at , but the series still solves the problem for every .
- Take on with , and . With the lift , which problem does solve? What goes wrong if the extra term is dropped, and which profile does approach for large ?
Show the answer
The lift has and , so
with and . The data agree at the corners, since both end temperatures start at . Dropping the term would give and , but that function has and , so it does not solve the heat equation. A steady solution of the problem for needs with , which gives
The difference solves the homogeneous Dirichlet problem with initial value , so it decays like . For large , therefore,
This profile satisfies and the end conditions exactly. The full solution adds , which cancels the profile at .