Fix the convention , , and let . With , two families of modified Helmholtz adjoint plane waves are
Both satisfy , since the products of their and exponents are . They obey . Green second identity gives the two conjugate global relations for the modified Helmholtz equation
For real boundary traces, . Thus the second identity is the conjugate spectral companion, rather than an unrelated extra boundary condition. In complex differential form the first relation is equivalently
Its integrand is a closed one-form: differentiating its coefficients gives . This supplies a direct derivation of the global relation as well as its outward-normal sign convention.
Write the known Dirichlet boundary condition on side as and the unknown outward normal derivative as , with . For any linear combination of the adjoint waves, the global relation is
Expanding the in a finite basis and enforcing these identities at selected collocation points for a global relation gives a linear system with a known right side. The square permits especially simple paired tests.
Let , , and for . Define four real adjoint solutions
They satisfy the modified Helmholtz equation because . Each is a linear combination of two adjoint exponentials, hence is obtained from the two spectral global relations. More explicitly, put , so . For the convention above, the required spectral pairs are
Appropriate phase-weighted differences produce . For example the top test is . The conjugate relation ensures a real system for real data. This is sine collocation of square modified Helmholtz global relations.
The functions are an orthonormal Fourier sine basis on . Set and compute the known quantity by numerical integration. Since , each adjoint test vanishes on both adjacent sides. On its own side it equals , and on the opposite side it equals , where . Thus the square modified Helmholtz Dirichlet-to-Neumann coefficients obey
Each block is inverted explicitly: for opposite sides ,
Compute these coefficients for and reconstruct . This is a semi-analytical scheme: the spectral basis integrals and two-by-two inverses are explicit, while the known boundary integrals are evaluated numerically. Increase and the quadrature resolution until the desired convergence is observed; compatible smooth side data have convergent normal-trace expansions, while corner singularities require the usual weaker trace interpretation and more careful quadrature.
The requested weak interaction between sides is particularly clear: the adjacent-side unknown traces contribute exactly zero, and the opposite-side coefficient is . The own-side coefficient stays equal to one. Thus diagonal dominance of paired square global-relation collocation is genuine after pairing; individual uncombined exponential samples need not have the same conditioning. The eigenvalues of each block are , so its condition number is .
There is also a direct localization check for an individual adjoint wave. On side with outward unit normal and tangent , the normalized test has . Its opposite-side magnitude is , and its magnitude integrates to at most along either adjacent side. This side localization of modified Helmholtz plane waves explains why suitable large spectral parameters suppress remote-side effects even before the exact sine cancellation.
Finally the interior solution can be evaluated from the computed traces using the two-dimensional modified Helmholtz fundamental solution
Here is the Modified Bessel function of the second kind, and . Replace by its computed finite Fourier sine series and use numerical integration; at interior points the boundary kernels are smooth. The sign follows from Green second identity with this fundamental-solution convention. This completes the numerical integration of the boundary value problem with a Dirichlet boundary condition, rather than stopping at an equation for its unknown boundary derivatives.
Use the Fourier coefficients
They are continuous for and bounded by . On compact subintervals of , the equation is uniformly elliptic with smooth coefficients. Local elliptic regularity at the flat vertical sides with zero boundary values permits differentiation and integration by parts there. Thus
For completeness, this identity also follows in the distributional sense without assuming boundary derivatives initially. Integrate on against and a test function of with support away from zero and one. The interior gradient estimate near a zero Dirichlet side gives on a nearby ball of radius comparable to ; continuity and the zero side value make that supremum uniformly over the support in . Therefore the boundary products and tend to zero. Move the derivatives to the test function before taking . This proves the ordinary differential equation, which makes each smooth in and yields the same classical identity.
The Cauchy-Euler differential equation has indicial roots
For the negative root is strictly negative. Boundedness as forces . Continuity at identifies
Because , the series converges absolutely and uniformly for . On compact subsets with , differentiated series converge as well. At each fixed , its Fourier coefficients equal those of ; completeness of the Fourier sine basis in and continuity in make the two functions equal. Therefore
This is also the requested sum over integers: take all coefficients with to be zero. Negative indices give redundant Fourier modes, and the sine vanishes. No pointwise convergence of the ordinary Fourier series on the top boundary is needed.
An important consequence is a forced zero trace at a quadratically degenerate boundary. Indeed the absolute sum is bounded by for , which tends to zero as , uniformly in . Thus on the entire lower side. It follows also from for every sine coefficient and completeness.