If is the zero-Dirichlet heat kernel on an interval for , integration by parts gives
The opposite endpoint signs are essential. Nonzero boundary values are limits of the full formula; evaluating each homogeneous sine mode at the boundary prematurely loses the forcing.
Use unfolding a reflected interval trajectory: reflect the interval across each wall so that a bouncing trajectory becomes a free trajectory in an image interval. A return path starting at ends at after an even number of reflections, or at after an odd number. Each hard-wall reflection contributes phase , giving the positive direct images and negative reflected images of the Dirichlet heat kernel on an interval.
Figure 1.
Even and odd reflection paths unfolded across an infinite square well
.
The method of images therefore gives
Here has inverse-energy units, since . In physical imaginary time , the same dimensionless action is , with . Thus the question's convention has exactly the weight .
Put and apply the Dirichlet gauge transform for constant drift . Taking derivatives directly removes the advection term and gives the damped heat equation . Thus , while the two Dirichlet boundary conditions become and .
The Dirichlet heat kernel on an interval and its damped version are
The method of images gives an alternative, often better at short times:
To determine the boundary signs, multiply the equation for by the backward heat kernel and use integration by parts in . Since the kernel vanishes at , the surviving boundary expression is . Consequently an integral representation containing only the given data is
This is a Dirichlet boundary-forcing heat-kernel formula. For the short-time Gaussian decay makes the forcing integral well defined. The endpoint values are interior limits of the complete formula: evaluating a termwise sine series at an endpoint before taking the time integral loses the nonzero boundary values. At the initial corners a continuous classical solution requires and ; otherwise the same formula describes the solution away from those corners.
Here is a second integral representation, useful when the integral transforms are explicit. Extend by zero after ; the values of the extension cannot affect a solution at . Write their Laplace transforms as and set using the principal square root. The transformed Dirichlet Green function for is
It vanishes at both endpoints and its first derivative in jumps by , which verifies the sign of its unit source. The resolvent kernel for Dirichlet advection-diffusion on an interval gives the transformed solution
The Bromwich inversion formula therefore yields
The square-root notation creates no genuine branch singularity here: all three kernels are even in . Their only spatial resolvent operator poles are . This transformed formula and the causal heat kernel formula represent the same solution in the usual smooth-data class.
Reflecting an interval repeatedly across its endpoints maps a reflected path to a free path in an image interval. A return trajectory from ends at after an even number of wall reflections, or after an odd number. An infinite square well has reflection amplitude , so the corresponding Dirichlet heat kernel on an interval is the difference of direct and mirrored free kernels. Individual straight paths illustrate the geometry; the path integral sums all time-sliced paths with the same endpoints.