On a bar of length , let the initial temperature increase linearly from zero at either endpoint to height at the midpoint. With thermal diffusivity and insulated Neumann boundary conditions, a Fourier cosine series gives the displayed solution. Its constant term is the initial integral average . Integration by parts on the two straight segments gives zero coefficients for odd modes and modes divisible by four; the remaining coefficients are . Nonconstant modes decay, leaving the uniform temperature , consistent with conservation of the total heat. This contrasts with the zero-temperature boundary solution in heat flow from a triangular initial temperature, where heat can leave the bar and the limit is zero. The initial endpoint slopes do not satisfy the insulated condition, so derivatives need not converge to their initial endpoint values as ; the series satisfies the Neumann condition for every and recovers the continuous initial profile.
The cooled endpoints impose Dirichlet boundary conditions . The spatial modes are . Integrating the initial profile on its two straight segments gives
The heat flow from a triangular initial temperature with height is therefore
Every nonzero mode decays, so as . There is no nonzero constant mode compatible with these endpoint temperatures.
Set in the heat equation. Separation of variables gives . Zero endpoint temperatures impose Dirichlet boundary conditions , selecting for . The separated factors can therefore be chosen as
Zero and negative separation eigenvalues give only the zero spatial solution under these boundary conditions.
The initial profile is continuous and triangular, with midpoint height . Its Fourier sine series coefficients are
Consequently the heat flow from a triangular initial temperature is
For , each summand has magnitude at most . The Weierstrass M-test proves absolute and uniform convergence. The initial Fourier sine series equals the continuous piecewise smooth profile, and for the exponential factors justify termwise spatial and time differentiation on every time interval bounded away from zero.
Figure 1.
Cooling of a bar with a triangular initial temperature profile
. Original normalized solution snapshots, with horizontal coordinate , temperature divided by its initial maximum , and time . Both endpoints remain at zero while the midpoint corner is smoothed. Details.