Write . If is a classical solution, multiply by a smooth function and apply the divergence theorem. The Neumann boundary condition removes the boundary term and gives
The density of smooth functions in a Sobolev space and boundedness of the coefficients extend this identity to every , so is a weak solution.
Conversely, take to be a test function compactly supported in . The weak formulation says
The fundamental lemma of the calculus of variations gives the equation in . Under the regularity implicit in the stated notion of a classical solution, it holds pointwise. Applying integration by parts again with arbitrary leaves
where is the trace operator. Traces of smooth functions can be chosen arbitrarily on the boundary, so the boundary fundamental lemma of the calculus of variations gives . Thus is a classical solution.
Varying the Polyakov action with respect to the worldsheet metric gives
In conformal gauge, variation of gives the wave equation
while the Virasoro constraints become and . The boundary variation is at each endpoint. It vanishes through a Neumann boundary condition , a Dirichlet boundary condition , or a direction-by-direction mixture of the two.
Multiply the Poisson equation by and apply Green's first identity. The Dirichlet boundary condition makes the trace of vanish on , while the Neumann boundary condition makes the boundary flux vanish on . Thus the weak formulation is: find such that
where
False. The constant function is a harmonic function and has zero normal derivative on every smooth boundary, but it is nonzero in .
In fact, the first of Green's identities gives
Hence ; path connectedness makes constant throughout . Thus this homogeneous Neumann boundary condition determines a harmonic function only up to an additive constant.
Let be the difference of two solutions. It is a harmonic function in the open rectangle, continuous on its closure, with
Interpret these Neumann boundary conditions classically on the open edges, with the corresponding first derivatives extending there. We use the strong maximum principle for harmonic functions together with even reflection across a homogeneous Neumann boundary. This avoids imposing differentiability at the two bottom corners, where the original data fail a corner compatibility condition for mixed boundary data.
By continuity on the compact rectangle, attains a maximum . Suppose . It cannot occur on the bottom edge, where . If it occurs in the interior, the strong maximum principle for harmonic functions makes constant, contradicting its bottom value. If it occurs on an open vertical or top edge, the zero normal derivative allows an even reflection across that edge. The reflected harmonic function then has an interior maximum, giving the same contradiction.
The only remaining possibilities are the two top corners. Reflect evenly across both meeting edges. This gives a bounded harmonic function on a punctured neighbourhood of the corner. The removable singularity for a bounded harmonic function fills the centre with its continuous value. The corner is now an interior maximum, again impossible. Therefore . Applying the identical argument to gives .
Thus , and the solution is unique among the continuous classical solutions with the stated edge conditions.
For , define . Differentiate under the integral and use Laplace's equation:
Thus is constant. The top Neumann boundary condition gives , so
For the included endpoint , the integral is interpreted as an improper integral at the bottom corners if necessary. The Fourier series constructed in c gives, on ,
The second series is absolutely and uniformly convergent; the first term has only integrable logarithmic singularities. Its integral is zero since , while every cosine term also has zero integral. This proves the endpoint as well:
For completeness, the logarithmic integral follows without any endpoint differentiation. Put and substitute to obtain . Adding and using gives , hence and the required full-interval result.
For separation of variables, set , with . The side Neumann boundary conditions give . As in the standard Sturm-Liouville problem, integration by parts shows . The zero eigenvalue gives constant , and together with makes constant too.
For positive eigenvalues, the side conditions give , , . The top condition chooses the hyperbolic cosine factor . Normalize it to one at , obtaining
The orthogonality of integer Fourier modes and the permitted interchange of summation and integration give
For the remaining Fourier coefficients, integrate by parts twice. The sine boundary term vanishes, and with ,
The last integral vanishes because and is a positive integer. Thus : only even Fourier modes survive, as expected from reflection symmetry about . Writing gives
The factor involving hyperbolic cosine lies between zero and one on the closed rectangle. Comparison with proves uniform convergence, so the solution is continuous on the entire boundary and takes the prescribed bottom values. On every strip , the Fourier coefficients have additional exponential decay, allowing differentiation and verifying Laplace's equation and all three Neumann boundary conditions.
To justify the endpoint calculation in b, differentiate at , in the interior-edge sense:
Subtracting from the hyperbolic tangent leaves an absolutely convergent series. For the remaining part, the power series gives, by taking real parts at and then ,
The same formula follows as the limit of the differentiated interior solution, since its leading multiplier is . This establishes the boundary normal derivative used in b. It also explains why the failure of the corner compatibility condition for mixed boundary data affects first derivatives at the bottom corners without spoiling continuity of itself.
Subtract the constant steady state profile: set . Then
The last equation follows from Fourier's law and zero heat flux at the insulated end. For a nonzero separated solution , separation of variables gives
To see that for a nonzero eigenfunction, multiply the spatial equation by and use integration by parts:
Both boundary terms vanish. If the right side were zero, would be constant and would make it zero. Thus write with . Solving gives , and requires . The mixed Dirichlet-Neumann modes on an interval therefore have
The eigenvalues of are ; are their positive square roots. By superposition, with coefficients for which the resulting series and its required derivatives converge at positive times,
The eigenfunctions are orthogonal on and have squared norm . Expanding the initial excess temperature gives
Thus the requested temperature is
At the insulated endpoint cancels the alternating coefficient sign, leaving
Every summand is positive. The endpoint temperature never drops below ; it decreases towards as and starts at .
For completeness, the Sturm-Liouville eigenfunction expansion gives the initial profile in the sense. Here the coefficients are absolutely summable, so the Weierstrass M-test also gives uniform convergence on , and the initial values are recovered everywhere. For positive times the exponential factors justify all required termwise derivatives, giving a classical solution. There is, however, an initial incompatibility with a Neumann boundary condition at : the initial slope is , while the insulated Neumann boundary condition requires zero slope for . The temperature is continuous to the initial edge, but cannot extend continuously to that corner. One must not differentiate the initial series term by term at .
The trigonometric identity
shows that only angular Fourier modes and are required. Differentiating the harmonic expansion on a disk at multiplies the coefficient of each nonconstant Fourier mode by . Thus and , giving
Each term is a regular harmonic function, and the radial derivative is
The Neumann compatibility condition for Laplace's equation holds because
as is necessary by the divergence theorem applied to the gradient of a harmonic function.
The additive constant is undetermined. This Neumann boundary condition is unchanged by , so the paper's blanket uniqueness assertion requires a normalization in this case. The uniqueness of the Neumann problem gives uniqueness up to a constant; prescribing , or zero mean temperature, selects the displayed answer with .
Set in Laplace's equation. Separation of variables gives
The Sturm-Liouville problem in has the constant mode with , and the eigenfunctions with , . Indeed, integration by parts makes nonnegative; for the first Neumann boundary condition removes the sine term and the second requires to be an integer. For , both derivative conditions make constant.
Expand the top data using a Fourier cosine series:
The constant coefficient is
For , the constant part has zero integral against , and two integrations by parts give
Since the bottom value is zero, a convenient factor depending on for the nonconstant modes is , which vanishes at . Its value at is . The zero mode is linear in , so matching both constant boundary values gives
To obtain exactly the paper's form, use the hyperbolic-function identity
Thus
Each product of hyperbolic sine or hyperbolic cosine with has . The zero mode is also a harmonic function. On , the factor lies between zero and one. Since converges, the Weierstrass M-test gives uniform convergence on the closed rectangle. The series therefore gives zero at the bottom and the continuous Fourier cosine series of at the top, including its endpoints. On compact subsets with , the factors decay exponentially with , justifying termwise partial derivatives. In particular on both open vertical edges because every differentiated cosine factor vanishes there. The solution has finite Dirichlet energy: Fourier orthogonality gives the th nonconstant mode's energy as , whose sum is finite. Here is the hyperbolic cotangent. Thus a proves uniqueness in that class.
There is a corner compatibility condition for mixed boundary data in the printed wording. The top data have , but the paper writes even at . The series solves the interior equation and all the open-edge boundary conditions; the literal derivative condition at is incompatible with the top data. A function differentiable in along the top edge would necessarily have . Hence it cannot simultaneously satisfy the printed zero derivative at that corner, and there is no solution with all those literal corner requirements. The standard interpretation of this mixed boundary condition imposes the Neumann boundary condition on the open sides and the Dirichlet boundary condition continuously on the horizontal edges. Differentiating the series term by term on the top edge would be invalid at this corner; the uniform convergence of the undifferentiated series does not license that operation.
Write . The transient satisfies the heat equation and homogeneous mixed boundary conditions
The left condition is a Neumann boundary condition and the right one a Dirichlet boundary condition. Separation of variables, , gives
The condition removes the sine term. The condition then selects
There is no nonzero mode with , because a linear satisfying both conditions is zero. There is no growing mode either: integration by parts gives , so every nonzero mode has .
These Sturm-Liouville eigenfunctions have orthogonality and squared norm
Expand the initial transient in this half-integer Fourier cosine series. Its coefficients are
The integration formula follows by integration by parts; the cosine at the endpoint is zero. Thus the half-integer cosine expansion of a linear profile gives
At the Fourier series reproduces everywhere, including the endpoints; its coefficient decay gives uniform convergence. For every the exponential factors allow termwise differentiation and verify the heat equation and both boundary conditions. The sudden switch-on of nonzero heat flux is incompatible with the spatial derivative of the constant initial temperature at the corner . Accordingly, the positive-time boundary derivative must not be inferred by differentiating the initial Fourier series term by term at that corner.
For a short string element of length , the small-slope approximation makes the upward components of tension at its two ends and . Its mass is . Newton's second law gives
Divide by and take the limit to obtain the wave equation on a string,
Here is linear mass density, and the derivation assumes small transverse slopes, uniform tension, and a flexible string.
At the right endpoint the string pulls the ring toward the interior. Its vertical force is therefore to first order; the frictionless wire supplies no vertical force. The ring obeys
This is the dynamic endpoint law for a string with an endpoint mass.
For a separated oscillatory solution, write with and . The fixed left end removes the spatial cosine, so the nonzero normal modes have
The endpoint law gives . Since would also force the cosine to vanish, it can be divided out for a nonzero mode. Using gives
For physical , these give all positive modal frequencies. There is no nonzero static linear mode: the left value and right slope conditions would force it to vanish. Positivity also follows by integration by parts from
For , the right endpoint is free, with the Neumann boundary condition . At , the allowed wave numbers are , , and . Zero initial displacement removes every cosine-in-time coefficient. The initial velocity contains only the modes and , each with coefficient one. Dividing those velocity coefficients by their angular frequencies gives
At each term vanishes, at each spatial derivative vanishes, and at the displacement and its time derivative reproduce the two initial conditions.
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.
The wave equation is a homogeneous linear partial differential equation. Consequently, if and solve it, every constant linear combination also solves it. This is the superposition principle, because partial differentiation distributes over the linear combination.
The same statement holds for the homogeneous Neumann boundary conditions. Initial conditions combine in the same way; an arbitrary combination need not retain a fixed nonzero initial displacement.
The equation as printed requires ; its sign does not affect the result. Seek separated solutions . Substitution into the wave equation gives
The Neumann boundary conditions impose . Multiplying the spatial equation by and integration by parts gives , so nontrivial spatial eigenfunctions require .
For , is constant and . For , . The first boundary condition gives , and the second gives . Thus is a positive integer and the spatial eigenfunctions are . Their time dependence is . By superposition,
The zero initial velocity sets . The trigonometric identity gives the initial profile , so only the constant mode and the first cosine mode occur. Hence
Its spatial derivative is , which vanishes at both boundaries, and its time derivative vanishes initially. Thus it satisfies all the required data.
For the two travelling profiles, the initial conditions imply
Since , is constant. One may therefore choose
where the constants cancel in the sum. The D'Alembert formula then gives
This agrees exactly with the restricted-domain solution from part (b). The whole-line cosine profile already has zero spatial derivative at both and for every time, so its restriction satisfies the Neumann boundary conditions without further modification.
Boundary form. For real functions and , integration by parts gives
The integral terms containing cancel, as do the terms. This is the Lagrange identity for a Sturm-Liouville operator. The boundary conditions must make this boundary form zero for every admissible pair. Several suitable choices are homogeneous Dirichlet boundary conditions at both endpoints; homogeneous Neumann boundary conditions at both endpoints; one of each; or separated homogeneous Robin boundary conditions
where each fixed real pair is nonzero. At each endpoint the two boundary data vectors are then proportional, making their antisymmetric product zero. Another choice is periodic data and , which cancel the two endpoint contributions. These domains give the required self-adjoint differential operator in the regular setting.
Eigenfunctions. Set , , and . The chain rule gives
The Chebyshev differential equation therefore becomes , with . For a positive integer , the first condition excludes the cosine term and the second is satisfied by . Thus
There is no nonzero eigenfunction: the transformed solution is linear in and vanishes at both endpoints only if identically zero. Negative merely repeats a positive mode with the opposite sign, so it is excluded from the indexing of an independent eigenbasis.
Weight and normalization. Multiplying the differential equation by puts it into Sturm-Liouville form:
Hence , and . Under , the measure becomes , so
Therefore
These endpoints are singular because vanishes and diverges there, but the weight is integrable. Moreover remains finite, so the vanishing values of make the boundary form zero. These are the Dirichlet eigenfunctions of the Chebyshev differential operator, not the first-kind Chebyshev polynomials , which have nonzero endpoint values.
Adapted homogeneous solutions. First assume real . The functions and solve and obey . Their Wronskian is
It is independent of and nonzero.
Green function. For , continuity at and the jump condition follow by matching the Dirac delta function source. In particular a jump in itself would produce a derivative of the Dirac delta function, which is absent. Write for and for . Solving the continuity and derivative-jump equations gives , . Hence the Neumann Green function for the modified Helmholtz equation on an interval is
The two pieces coincide at the source. Their derivative difference is and their endpoint derivatives vanish. The same expression has continuous one-sided limits as the source approaches an endpoint; the interior-source construction is what is needed in the integral solution.
Solution for a general source. By superposition, . Splitting the integral at gives
No nonzero homogeneous solution satisfies both endpoint conditions when : the condition at zero eliminates , and the condition at one then eliminates . Thus the Green function gives the unique solution.
The printed zero-parameter case. The statement permits real , but is exceptional. Integrating a putative equation would give , contrary to the two zero derivatives. Thus this Green function does not exist at zero. For with homogeneous Neumann boundary conditions, solvability instead requires , and a compatible solution has an arbitrary additive constant. This is the Fredholm solvability condition associated with the constant zero mode.
Explicit forcing. For and , the particular solution is . Write . Then gives and gives . Therefore
Direct differentiation gives , which vanishes at both endpoints, and , verifying the solution independently of the Green function integration.
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.
Green identity. With the outward unit normal, the product rule gives . Integrating over and applying the divergence theorem yields Green's first identity:
Uniqueness for nonzero mass. Suppose two real solutions have the same prescribed boundary data, and let be their difference. The spatial equation called the Klein-Gordon equation in the question is the modified Helmholtz equation, so . With , Green's first identity becomes
For identical Dirichlet boundary conditions, on ; for identical Neumann boundary conditions, there. Either makes the right-hand side zero. When is real and nonzero, both integrands on the left are nonnegative, forcing . Thus
This is the required uniqueness assertion; existence is understood for admissible smooth data on a suitable bounded region. Complex-valued solutions obey the same result by treating their real and imaginary parts separately.
Zero mass. For , the argument gives , hence on the connected region. Dirichlet boundary conditions still force , but Neumann boundary conditions leave an arbitrary additive constant:
The prescribed normal data in the zero-mass case must also satisfy , by the divergence theorem. For nonzero , that flux can instead equal .
Energy minimization. Let for the two functions in the last part. They share their boundary values, so on . Since is a harmonic function, Green's first identity gives
Expand the square in the Dirichlet energy of :
The cross term vanishes, so
Equality requires to be constant, and the shared boundary values then make it zero. This is the Dirichlet principle: among functions with fixed boundary values, the harmonic function minimizes Dirichlet energy.