Interpret the printed coordinate notation as the square corners , , , . This listed order is clockwise, contrary to the counterclockwise convention in (ii). Keep the printed first side directed from top to bottom. Then , , and . Put and , where is the outward normal derivative on the right side. The pullback formula, without any orientation shortcut, gives
Indeed , and . If one reverses the side to match the counterclockwise convention, its parameter is and its integrand is . Reversing every side multiplies the global relation by minus one, leaving its zero value unchanged.
The unheaded numerical reconstruction request. The four unknown Neumann boundary conditions are four functions on the sides, not four scalar values. The polygonal global relation is linear in their outward normal derivatives, and its remaining terms depend only on the prescribed Dirichlet boundary data.
Choose a finite approximation on each side, for example an expansion of in Legendre polynomials or piecewise polynomials. Substitute those expansions into the consistently oriented global relation. At chosen nonzero spectral parameters for a linear boundary value problem, integrate the exponential kernels against each basis function to assemble a complex linear system; the known right-hand side is obtained by integrating the given Dirichlet boundary data. Use enough independent samples to resolve all side coefficients, and preferably oversample. The conjugate global relations for the modified Helmholtz equation provide useful companion tests; for complex data use the corresponding independent adjoint relation rather than assuming the traces real.
Solve the scaled system by least-squares solution using a stable factorization such as a singular value decomposition. Sampling directions should probe all sides, and exponential row scaling avoids overflow and poor conditioning. Refine the side approximation and spectral samples until the recovered traces and unused global relation residuals stabilize. Corner incompatibilities or limited corner regularity call for mesh refinement or enriched endpoint basis functions. This realizes a numerical Dirichlet-to-Neumann map without first discretizing the whole interior.
The underlying Dirichlet problem is uniquely solvable in the usual trace class for with : the homogeneous problem has . This supports the boundary reconstruction, although uniqueness of the continuous problem alone does not guarantee that an arbitrary finite set of spectral samples is well conditioned.
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.
Let be a bounded piecewise smooth domain, and , with the outward normal vector. Integrating the divergence form from part (i) and using the divergence theorem gives two global relations for a linear boundary value problem:
These conjugate global relations for the modified Helmholtz equation are identities between the prescribed Dirichlet boundary condition and its unknown normal derivative; neither is a pointwise boundary equation. Both hold for every nonzero boundary spectral parameter under the usual trace regularity assumptions.
If is real, its two boundary traces are real. Since and the outward normal vector is real,
Thus apply complex conjugation to the first global relation for a linear boundary value problem, and replace its parameter by , to get the second. For complex , conjugation would also replace its traces by their conjugates, so that argument requires the stated reality assumption. There is also an algebraic redundancy in this particular parametrization: , hence even for complex data. This does not change the requested conjugation identity.