Within this polynomial family, already holds and gives . Thus one solution is
Two specified point values alone do not give uniqueness among all solutions of the heat equation.
The proposed function has partial derivatives and . Substitution in the heat equation requires , hence
The coefficient remains arbitrary.
Write the kernel as , with . Its partial derivatives are
Thus the heat kernel itself satisfies . The proposed convolution consequently gives
This verifies the heat equation. The parameter is positive time; the real integral formula is not defined at negative time.
The passage of derivatives through the integral needs justification. A sufficient condition is the Gaussian-weighted absolute integrability in heat-kernel convergence for Gaussian-integrable initial data; it holds, in particular, for data of polynomial growth. On compact positive-time intervals strictly below an integrable later time, the differentiated kernels have an integrable Gaussian bound, so differentiation under the integral sign applies.
Even if the PDF's assumed convergence is read as ordinary conditional convergence, one can justify the same calculation. Choose a later time and let be a primitive of . Convergence at spatial point zero and time makes bounded on both tails. Put . This function, its spatial and time derivatives, and their -derivatives decay as Gaussians when . Integration by parts rewrites the convolution as , with vanishing endpoint terms. Boundedness of now permits differentiation under this absolutely convergent integral; since , the same equation follows. Thus one need not silently equate conditional and absolute convergence.
Set . The similarity solution uses , whose partial derivatives at fixed or are
Apply the multivariable chain rule to :
Substituting in the heat equation and cancelling the positive common factor gives
The heat equation is linear and homogeneous in : the operator satisfies . Thus the superposition principle applies to its solutions. Spatial translations are also allowed because the coefficients are constant.
Choose in part (b) and multiply by to make the initial amplitude one. Taking the two shifts and then gives
At this reproduces both initial peaks. Each term is an instance of Gaussian initial data for the heat equation, so their sum satisfies the equation. Its extension to negative times is a real smooth solution precisely on the connected interval
At the lower endpoint the peaks narrow without bound and their heights diverge; there is no finite classical continuation there. For positive times each peak spreads and decreases in height while preserving its integral.
The steady profile has no time derivative. Substituting and using its steady equation cancels the forcing, giving
The initial condition is
The resulting heat equation is independent of , as are its boundary conditions. Its initial amplitude still depends on ; removing a source from the evolution equation does not remove it from the whole problem.
For the heat equation , separation of variables with homogeneous Neumann boundary condition at both ends gives spatial modes and decay factors . The mode is constant and does not decay.
The initial profile already contains only two such modes:
Evolving each mode therefore yields
The endpoint derivatives vanish, and substitution checks both the equation and the initial profile. The spatial integral remains : no heat escapes through insulated ends, so the limiting uniform temperature is .
Figure 1.
Insulated and zero-temperature endpoints evolve the same initial heat profile differently
. Original mode calculations. Both panels start from the same squared sine. Insulated endpoints conserve the mean temperature and approach ; zero-temperature endpoints remove heat and the profile decays to zero. Times are expressed as . Details.
With homogeneous Dirichlet boundary condition, the eigenfunctions are and all modes decay. Write
Reflection about the midpoint makes every even- coefficient zero. For odd , putting and using the product-to-sum identity gives
In particular and . Thus
This uses the Fourier sine series of a squared sine. The coefficients are , so the initial series converges uniformly; for the exponential factors also justify termwise differentiation to check the heat equation. Every mode vanishes at both endpoints, and the initial series gives the specified profile. Unlike part (a), there is no constant mode: the temperature tends to zero, with leading long-time term
Fourth-order spatial formula. For a sufficiently smooth function, pair the Taylor expansions at opposite shifts:
Multiply the first sum by sixteen, subtract the second, and subtract . The constant and fourth-derivative terms cancel, leaving
Hence the fourth-order centered second derivative satisfies
Rearranging proves the requested , including its leading error coefficient.
Explicit diffusion scheme. Take , , , and let approximate . Combining the forward Euler method in time with in space gives
To check the error, insert the exact solution. The heat equation gives , while the time Taylor expansion and the spatial formula give the one-step defect
Thus its unnormalized local truncation error is
as requested. Dividing this defect by gives the normalized residual ; these are distinct error conventions.
Boundary implementation. The centered stencil requires two ghost values at each end. An even-reflection closure for Neumann diffusion imposes
The reflected first centered difference at either endpoint is zero. Apply the same evolution formula at the endpoints after substituting these ghost values; for example,
The ghost values also close the stencil at and . They are determined auxiliary values, not new physical data. For a smooth solution compatible with the Neumann boundary conditions, differentiating those conditions in time and using the heat equation gives at the endpoints. Thus even reflection preserves the smoothness needed for fourth-order spatial accuracy. If the initial data fail the required higher compatibility conditions, a uniform smooth error expansion through cannot be assumed.
For completeness, the reflected spatial operator has cosine eigenvectors and eigenvalues
The most negative one is . Requiring gives the forward Euler method stability restriction in the natural trapezoid-weighted discrete norm. A fourth-order spatial stencil does not remove the explicit diffusion time-step restriction.
Implicit alternative. The Crank-Nicolson diffusion scheme using the same spatial operator and boundary closure is
It has second-order time accuracy and fourth-order spatial accuracy for smooth compatible solutions; its one-step defect is . Each spatial eigenvalue has amplification factor of magnitude at most one, so it removes the explicit restriction for this boundary closure.
The price is solving a banded linear system at every step; the same matrix factorization can be reused for fixed and . Large time steps still reduce accuracy. Moreover, the amplification factor tends to as , so short spatial wavelengths can alternate sign with little numerical damping. Thus unconditional linear stability does not guarantee a monotone or well-resolved transient. Boundary accuracy and initial compatibility remain necessary with either time discretization.
Steady state. In the heat equation, time independence makes the second spatial derivative zero. The two endpoint temperatures therefore determine the linear profile
Insulation is along the sides; the endpoint reservoirs can still exchange heat with the rod.
Transient solution. Subtract the steady profile before applying separation of variables: let . Then , and for . Writing gives
The homogeneous Dirichlet boundary conditions exclude and select the eigenfunctions with eigenvalues , . Their orthogonality gives the Fourier sine series coefficients
Here integration by parts uses . Thus
Every summand satisfies the heat equation and the homogeneous endpoint conditions, while the steady profile supplies the prescribed endpoint values. The initial Fourier sine series equals in the open interval. At the initially cold rod and the suddenly imposed hot endpoint are incompatible; the formula describes the prescribed data for and the initial limit at interior points.
Heat absorption. Integrating in kills the even modes. With , the total heat relative to the initial state is
Consequently the net rate of heat absorption is
For each , any fixed number of differentiated modes is bounded by a polynomial in times . These bounds have finite sums, proving absolute convergence, uniform convergence on such time intervals and the validity of the integration and differentiation. In particular the displayed rate is finite for every , positive when , and tends to zero as equilibrium is approached. The same answer follows from the heat equation balance ; this subtracts loss at the cold endpoint from input at the hot endpoint.
With temperature measured relative to the fixed-temperature end, the heat equation and its data are
Here is thermal diffusivity and is thermal conductivity. The sign of the derivative condition describes incoming heat flux at : the outward conductive heat flux is .
By Fourier's law, insulation means zero outward heat flux. The Neumann boundary conditions are . The constant mode equals the initial integral average . For , the cosine coefficients are
Odd modes and modes divisible by four vanish; write the remaining indices as . The heat flow from a triangular initial temperature with insulated endpoints gives
The nonconstant modes decay, so uniformly as . Integrating the heat equation gives , explaining the conserved mean. The cooled case tends instead to zero because heat leaves through its ends.
The initial triangle has nonzero endpoint slopes, so it is not compatible with the insulated condition at the corner . The series nevertheless recovers the continuous initial temperature and satisfies the insulated condition for every ; one should not assert continuity of its spatial derivative at that initial corner.
With constant positive thermal diffusivity , no internal heat source and one spatial coordinate, the heat equation is
Separation of variables makes each spatial mode decay by . The endpoint conditions determine whether the initial triangular profile is expanded in a Fourier sine series or a Fourier cosine series.
Figure 1.
The same triangular initial temperature with cooled and insulated ends
. Original heat-equation solutions for several dimensionless times. Fixed zero-temperature ends cool the bar to zero; insulated ends preserve its initial mean and approach a uniform temperature. Details.
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.
Use the convention
These are the Fourier transform and inverse Fourier transform for suitably integrable data. Assuming the required ordinary transforms exist and the lower derivatives vanish at both ends, integration by parts gives . Repeating this argument yields
The decay assumptions are used to discard the boundary terms at each step.
For positive diffusivity , transforming the heat equation gives . Thus , where . The convolution theorem and the Gaussian heat kernel give
For , the Fourier transform of a Gaussian is . Multiplying by the heat factor and inverting gives the Gaussian initial data for the heat equation solution
It recovers the initial profile as and preserves its spatial integral .
Each spatial eigenfunction acquires the temporal factor under the heat equation. Expanding the initial constant using the preceding coefficients gives the cooling of an initially uniform square:
For the exponential factors justify differentiating the series and enforce the zero boundary temperature. As , it tends to at every interior point and in L2 space; the instantaneous boundary cooling is incompatible with continuity at the initial boundary corners, which is expected for this idealization.
The slowest decaying nonzero mode is , giving
at each fixed interior point when . The next contributing modes have and decay as , making the leading-mode approximation exponentially accurate.
Differentiate the spatial Fourier transform under the integral, and integrate the second spatial derivative by parts twice. For sufficiently decaying temperature and first derivative, the boundary terms vanish:
Hence the transformed heat equation is the ordinary differential equation
The substitution separates the uniform equilibrium from the decaying perturbation. Direct differentiation gives
Consequently the reaction-diffusion equation reduces to the heat equation . Its data become
When the three constants coincide, the Dirichlet boundary conditions for are homogeneous. Separation of variables gives and , selecting the normal modes for . Thus
Two integrations by parts give , while the constant term uses . Therefore the Fourier sine series is
For , its first coefficient is nonzero. Multiplying by and retaining the slowest-decaying mode gives
The remainder estimate holds uniformly in for sufficiently large positive time. If , the fundamental vanishes and the next possible mode has decay rate , explaining the exclusion.
There is an initial endpoint compatibility issue unless : the given polynomial profile vanishes at the endpoints, whereas the boundary values equal . The series realizes the initial data in L2 space and pointwise in the open interval, imposing the prescribed boundary values for . For nonzero it cannot also be continuous at both initial endpoint corners.
Complete the square in the Fourier transform exponent:
The supplied shifted Gaussian integral therefore gives
This is the Fourier transform of a Gaussian, with angular-wavenumber convention .
Take the spatial Fourier transform of the heat equation. Two integrations by parts, with decaying fields and first derivatives at infinity, give . Thus each mode satisfies the ordinary differential equation
Inserting the transformed initial condition and integrating the time equation gives
Finally set . The inverse Fourier transform, evaluated by the same Gaussian identity, gives
Equivalently the Gaussian initial data for the heat equation evolve as
The profile broadens and its peak decreases, while its total integral remains , as required by diffusion without loss on the whole line. Direct differentiation verifies the equation and the initial limit.
Substitute into the axisymmetric heat equation and cancel the exponential:
Thus the radial ordinary differential equation and its Sturm-Liouville form are
The weight in this Sturm-Liouville problem is therefore . The outer Dirichlet boundary condition is , and the physical solution is regular at the centre. The factor in the weighted inner product is also the radial part of the polar area element.