Singularity swapping method for nearly singular integrals based on trapezoidal rule
Abstract.
Accurate evaluation of nearly singular integrals plays an important role in many boundary integral equation based numerical methods. In this paper, we propose a variant of singularity swapping method to accurately evaluate the layer potentials for arbitrarily close targets. Our method is based on the global trapezoidal rule and trigonometric interpolation, resulting in an explicit quadrature formula. The method achieves spectral accuracy for nearly singular integrals on closed analytic curves. In order to extract the singularity from the complexified distance function, an efficient root finding method is proposed based on contour integration. Through the change of variables, we also extend the quadrature method to integrals on the piecewise analytic curves. Numerical examples for Laplace’s and Helmholtz equations show that high order accuracy can be achieved for arbitrarily close field evaluation.
Key words and phrases:
Nearly singular integrals, trapezoidal rule, boundary integral equations, quadrature1. Introduction
The method of boundary integral equations (BIE) has been widely used in the numerical computation of Laplace and wave scattering problems, examples including Helmholtz equations in acoustics[18], Maxwell equations in electromagnetics[20], and Navier equations in elasticity[10]. The appealing advantages of BIE are that they automatically satisfy the radiation condition at infinity for wave scattering in unbounded region, and reduce the dimension of computational domain by one when the medium coefficient or wavenumber is piecewise constant.
However, these advantages do not come for free. As the boundary integral equations are constructed through layer potentials, one of the major difficulties encountered in the numerical application of BIE is the evaluation of singular or nearly singular integrals[16], which, in the two dimensional setting, is typically given in the form of
(1) |
where is assumed to be a closed analytic curve in . The density function is assumed to be analytic on , and is the kernel function that has a singularity as . Generally, the kernel function is of logarithmic form[1]
(2) |
(here we use to denote the natural logarithm) or of power-law form
(3) |
where is a positive integer and is an analytic function in the neighborhood of . Extension of integral (1) to piecewise analytic curve will also be discussed later on. Applications of integral (1) include the single and double layer potentials for Laplace’s and Helmholtz equations.
When the target point is far away from the boundary, the integrand in (1) is smooth, and high-order quadratures can be easily obtained by standard methods, such as Gauss-Legendre quadrature or trapezoidal rule. In particular, when is a closed analytic curve, trapezoidal rule gives spectral accuracy[25] for smooth integrals, as reviewed in the following Section 2. On the other hand, when is on the boundary , integral (1) becomes singular and a well-known method to evaluate it is through singularity extraction. Details can be found in [17]. Difficulties arise when is near the curve, but not necessary on the curve, in which case the integral is called the close evaluation problem. This can happen in many applications when the near field interaction is required, such as the multi-particle scattering in electromagnetics [19], or the evaluation of pressure gradient due to a force on a moving boundary in the Stokes equation [3]. It also happens for the on-boundary field evaluation when is wiggly shaped so that far away points in the parameter space may be very close geometrically. For the close evaluation problem, due to the sharply peaked kernel in the layer potential, standard quadrature rule produces an error.
Due to the wide range applications of BIE, the close evaluation problem has been extensively studied in the literature. In [22], a recursive method for the evaluation of potentials and their derivatives near and up to the boundary surface based on the asymptotic pseudo-homogeneous kernel expansions was constructed. In [5], a regularization type method was proposed by first regularizing the singularity, evaluating the regularized integral by a standard quadrature rule, and then adding a correction term to eliminate the error. In [15], the authors found a change of variable technique that canceled the principal singularity and then applied the Gauss-Legendre quadrature to the resulted integral. In [12], a barycentric interpolation for the Laplace’s equation has been proposed to evaluate the nearly singular integral. In [16] and [4], quadrature by expansions(QBX) method has been developed based on the continuity of singular integrals near the boundary. It can efficiently evaluate the nearly singular integrals and is compatible with the fast multipole method(FMM). Other methods include singularity subtraction techniques [8], density subtraction techniques [21, 7], special purpose quadratures [14], etc. Although some of the methods are very efficient in the numerical implementation, the corrected integrands in many techniques remain singular or nearly singular in the sense that they contain large or unbounded higher order derivatives, resulting in only algebraic accuracy.
Recently, Klinteberg and Barnett[1] proposed a singularity swapping method that swaps the target singularity from the physical space into the parameter space, and integrates the transformed integrand by composite Gauss-Legendre quadrature and polynomial interpolation. It naturally extends the singularity subtraction technique from the on-boundary field evaluation to the near field evaluation, and achieves a uniform high-order accuracy for arbitrarily close targets. However, its convergence rate is still algebraic for integrals on smooth closed curves. In this paper, we introduce a variant of that method by using global trapezoidal rule and trigonometric interpolation for the transformed integrand. It results in an explicit quadrature formula with exponential convergence for integrals defined on closed analytic curves. We also propose a quadrature method to find the complex singularity efficiently based on the modified trapezoidal rule. The method is extended to integrals defined on piecewise analytic curves by substituting a suitable new variable and then applying the singularity swapping method for the transformed integral. Overall, our algorithm is simple, elegant and yet efficient, in the sense that it only needs to slightly modify the classic trapezoidal rule and still achieves rapid convergence rate.
The remainder of this paper is organized as follows. Section 2 presents an interpolatory quadrature on equidistant nodes for periodic nearly singular integrals. Section 3 presents a singularity swapping method that transforms the integral (1) into the form discussed in Section 2. Applications to Laplace and Helmholtz layer potentials are also discussed in this section. The extension to non-periodic nearly singular integrals is given in Section 4. We demonstrate the effectiveness of the proposed method by numerical examples presented in Section 5. Section 6 concludes our paper.
2. Periodic nearly singular integrals
In this section, we propose a modified trapezoidal rule to accurately evaluate the periodic nearly singular integrals based on the error analysis of classic trapezoidal rule. It is well known that for an integral with integrand, the classic trapezoidal rule only gives second order accuracy. However, when the integrand is periodic and belongs to , Euler-Macularin formula shows it can achieve an accuracy of order . If the function is further assumed to be analytic, trapezoidal rule gives spectral accuracy[25]. Therefore, the convergence rate of trapezoidal rule highly depends on the smoothness of the integrand. Here we briefly review the spectral convergence property of trapezoidal rule for periodic smooth integrals and then extend it to the nearly singular case.
2.1. Review of trapezoidal rule
In this subsection, we are mainly concerned with the integral
(4) |
where is an analytic and periodic function on . Rewrite with . The original integral (4) becomes
(5) |
Throughout this paper, a complex contour such as is always to be understood as traversed once in the counterclockwise direction. Since is analytic on , by analytic extension, there exists such that is analytic in the region . For any positive integer , the approximation to using trapezoidal rule with quadrature nodes is simply given by
(6) |
To analyze the error of , note that the function has simple poles at , , with residues equal to . By the residue theorem, it holds
(7) |
Since is analytic in , we can change to the circle in equation (5) without changing the value. Thus, combining (5) and (7) gives the representation of as an integral,
(8) |
Using (8) and the boundedness of , we obtain the exponential convergence of trapezoidal rule.
Lemma 2.1.
If is analytic in the annulus for some , then
(9) |
2.2. Nearly singular integrals
We now turn to the evaluation of nearly singular integral defined on , which is given in the form of
(10) |
where is analytic in the annulus for some and is analytic in a smaller annulus with .
Presumably, is very close to , which means is badly behaved on the unit circle. According to (9), trapezoidal rule gives very poor convergence rate that is on the order of . To overcome this difficulty, one way is to adaptively place very dense quadrature nodes on the unit circle that are close to the singularity of . Another way is to numerically recalculate the weights of trapezoidal rule based on the variance of Euler-Macularin formula so that the singularity of is taken into account[2]. Both ways will only lead to an algebraic convergence of (10). Here we propose a modified trapezoidal rule, in which the quadrature weights can be explicitly obtained and the error still keeps exponential decay. The main idea is to replace with its Laurent expansion and then apply the trapezoidal rule to .
More precisely, let
(11) |
be the th order Laurent expansion of at zero, where
(12) |
Note that the -th term of the Laurent series (11) is halved, as well as the -th term, which is not mandatory but we do this for symmetry and consistency with the classical trigonometric interpolation, as shown later. The modified trapezoidal rule for integral (10) is simply
(13) |
Now let us analyze the error of formula (13). It follows from equation (7) that
(14) |
Write , where
Using the fact that is analytic in and is analytic in , it holds
(15) |
From the Cauchy’s estimate
(16) |
we have the following results on
(17) | |||
(18) |
Same estimates hold for and on . Combining (2.2), (17) and (18) gives
(19) |
Furthermore, equation (2.2) implies for and .
To summarize, we have the following result.
Theorem 2.2.
Assume is analytic in the annulus for some and is analytic in a smaller annulus with . It holds
(20) |
Note that the presented method can be regarded as interpolating at into the form of and then integrating analytically, so it can be treated as an interpolatory quadrature. Compared to the original trapezoidal rule, it only has half of the polynomial order of accuracy, as we have preassigned quadrature nodes at . It is possible to construct a generalized Gaussian quadrature that exactly integrates functions using only function evaluations [13], but that would require solving nonlinear equations and the corresponding quadrature nodes will vary with [6]. From that perspective, the presented method of fixed quadrature nodes is more convenient for practical computation.
To illustrate the application of the modified trapezoidal rule (13), we give the explicit expressions for the nearly singular integrals of some typical kernel functions, which can be used to evaluate the near field of single and double layer potentials for Laplace’s and Helmholtz equations.
Corollary 2.3.
For the nearly singular integral of
(21) |
with and close to the line segment . It holds
(22) |
where
is -th order Laurent expansion of (21).
When , formula (22) reduces to the well known Kress quadrature [17]:
(23) |
Note that the vector can be calculated by the Fast Fourier Transform (FFT). In the next section, we will reduce the Laplace’s and Helmholtz single layer potential to the evaluation of (21).
Corollary 2.4.
When , the modified trapezoidal rule yields
(24) |
Such a kernel can be appeared in the gradient of Laplace’s and Helmholtz single layer potentials. When , the left-hand side exists as Cauchy principal value, and a limit is needed to take on the right-hand side when for some . One can also make use of the formula (24) to construct the quadrature rule for kernel (3) with through differentiation of .
Corollary 2.5.
When the kernel function is given in the form of
(25) |
with and close to the line segment . For , the modified trapezoidal rule yields
(26) |
where
is -th order Laurent expansion of (25).
3. Singularity swapping method
In the last section, we have proposed a modified trapezoidal rule to integrate the nearly singular integrals in the form of (10). Compared to the original layer potential (1), there are two issues still remaining: the first is how to effectively find the singularity , and the second is how to easily construct the Laurent expansion for a given kernel function defined on a general smooth curve . In this section, we introduce a variant of singularity swapping method [1] to address these two issues. For now we still assume is analytic, as the extension to piecewise analytic case will be discussed in the next section.
3.1. Singularity cancellation
In this part, we mainly focus on the second issue and discuss the kernels given in the form of (2) and (3), more specifically, the single and double layer potentials for Laplace’s equations, due to their wide applications in the potential theory. We expect the same idea can be extended to other kernels in a straightforward way. Identify with and assume that is parameterized by that maps the interval to . Thus the parametric form of the single layer potential with logarithmic kernel (2) is
(27) |
where is an analytic function that consists of the density function and the Jacobian . Bringing near introduces a singularity near real axis in the analytic continuation of . Specifically, it has a singularity when the complexified squared distance
(28) |
goes to zero, which gives . Taking the negative case, the singularity thus obeys
(29) |
and one may check by Schwarz reflection that the positive case gives its conjugate . Equation (29) can be rewritten as . The method to efficiently find will be discussed in the next subsection 3.2. For now we assume that is 2-periodic, analytic and single-valued in a sufficiently large strip , so the only solution to is , which is called the preimage of under .
Now we rewrite the integral (27) as
(30) |
The first integral in (30) is analytic in a larger domain , so the classic trapezoidal rule (6) can be used. The second integral can be numerically evaluated by the modified trapezoidal rule (22) in Corollary 2.3. Hence, the singularities and from is swapped to the function through (30).
For the Laplace double layer potential, it is given by
(31) |
where is unit outward normal vector of at . One way to swap its singularity is given by [1]
(32) |
The second term in (32) is smooth and plays the same role as in (26). We can therefore follow the quadrature rule given by (26) to discretize (32). However, there is another approach to swap the singularity:
(33) |
which we have found is numerically more accurate than (32).
One issue for the double layer evaluation is that when the target point is close to one of the sources with , the accuracy is lost due to the singularity at . Similar phenomenon has also been observed in [1]. To address this issue, we apply the singularity subtraction technique by rewriting (31) into
(34) |
where
(35) |
and is the bounded domain with boundary . Then swap the singularity as in (33). The new integrand vanishes at , so the rounding errors can be ignored. There is no such simple subtraction techniques for single layer potentials [7]. However, it is also not necessary since the single layer potential suffers much less from cancellation errors, as one would see in the numerical experiments.
As a comment on the extension of the techniques mentioned above to many other standard linear PDEs of interest (Helmholtz, Maxwell, Navier, etc), the integrals that we need to evaluate may be written as a combination of (27) and (31). For example, for the Hemholtz single layer potential, the kernel can be split by
(36) |
and for the Helmholtz double layer potential, the kernel can be split by
(37) |
The first terms in both (36) and (37) have logarithmic type singularities and the second term in (37) is the kernel of Laplace double layer potential. Therefore one may apply the same technique as Laplace to evaluate them.
3.2. Quadrature method to find the pole
Now the only missing ingredient in the scheme is how to find the singularity efficiently. Newton iteration is definitely an available option. However, it requires the evaluation of function values in the complex plane and the efficiency highly depends on the initial guess. Here we propose a quadrature method to find an approximation of , which does not need any initial guess and in many situations is good enough to be directly applied in the singularity swapping method.
For the convenience of derivation, let and , so that the equation becomes . Suppose is analytic in the annulus except a simple pole with residue equal to , where and are unknown. Similar to the analysis of equation (7), it holds
(38) |
and
(39) |
From the two formulas above, we can conclude that
(40) |
which provides a method to find the pole with high accuracy. The advantage of this formula is only function values on the unit circle are used and does not need any initial guess. To find an approximate solution to equation , we can apply (40) to , which gives
(41) |
In order to numerically test the accuracy of , we compare the performance of three different quadrature methods in the evaluation of nearly singular integrals. The first method is the classical trapezoidal rule given by (6), the second method is the interpolation quadrature given by (24) with exact , and the third method is also the interpolation quadrature (24) but with replaced by . Figure 1 tests the convergence of three integrals that are defined on and have the same nearly singular kernel . On top of the kernel, the three integrands are , and , respectively. For the first function , our analysis indicates that the interpolation quadrature (24) with is exact for , which is clearly shown in Figure 1(a). Using only loses one algebraic accuracy. The second function is entire in . The interpolation quadrature achieves super-geometric convergence. Using only causes the convergence speed to slow down slightly, as shown in 1(b). The third function is analytic in a neighborhood of but not throughout the complex plane. By Theorem 2.2, the exact interpolation quadrature has a geometric convergence that is on the order of , which is confirmed by Figure 1(c). Here using causes the convergence error to grow by a factor of , which is still geometrically convergent. On the other hand, application of the classic trapezoidal rule converges very slow throughout all these three integrals. The results clearly show the interpolation quadrature can significantly improve the convergence rate, either using exact or the approximate value .

To summarize, numerical observation indicates replacing with into the quadrature formula (24) gives a new residue term
(42) |
which is slightly larger than the approximation error analyzed in (20). We briefly analyze this term by taking as an example:
The last identity holds because . In a word, the factor in (42) comes from the -th power in the error term of (20).
If such an error is unacceptable, usually one Newton iteration
(43) |
is enough to eliminate the error caused by singularity approximation. In order to improve the efficiency further, we can decrease the number of nodes in (41) and increase the number of Newton iterations. It is numerically found that for the same accuracy, one Newton iteration is roughly equivalent to reducing the number of nodes by half. By balancing the operations of the two parts, we can obtain a good approximation within almost operations.
4. Non-periodic nearly singular integrals
Now let us extend the interpolatory quadrature introduced in Section 2 to non-periodic nearly singular integrals. Assume is a piecewise analytic closed or open curve, that may have finitely many corners. It is well known that when using integral representation (1) for Laplace’s or Helmholtz equations with boundary , corners or endpoints will introduce extra singularities on the density function . It was shown in [23] that the density function for boundary value problem of Laplace’s equations has singularity of this type
(44) | |||||
(45) |
where is the distance from the corner or endpoint of , are constants. The exponent , where is the interior angle of the corner, and for open arc. This property also holds for Helmholtz equation up to a logarithmic factor [24]. Because of the corner singularity, a uniform mesh yields a very poor convergence.
Take out one smooth piece of and still denote it as . We focus on calculating the layer potential generated by this piece. Let be parameterized by an analytic function with nonzero for all . Rewriting the layer potential (1) based on the parametrization yields
with non-periodic integrand , which is analytic in but may have singularities at or . Suppose the interior angles at and are and respectively and let
(46) |
From (44), we have for single layer potential. To take proper care of this corner singularity, we follow the idea in [9] by substituting a new variable so that the derivative of the new integrand vanishes up to a certain order at the endpoints. Then apply the singularity swapping method given in Section 3 to the transformed integrals.
More specifically, let the function be one-to-one, strictly monotonically increasing and analytic in . Assume that at the two endpoints vanishes up to order , i.e., near and near . We then substitute to obtain
(47) |
Applying the trapezoidal rule to the transformed integral now yields the quadrature formula
(48) |
where means that the first and last term need to be halved. A typical example for such a substitution is given by
(49) | ||||
where in (49) is the truncated Taylor series of up to order . There are many other transformations that can serve the purpose, and readers are referred to [11] for more details. We choose (49) simply because its quadrature points are relatively uniformly distributed.
The following theorem provides an error estimate for (48). It can be derived from the Euler-Maclaurin formula, but here we provide an alternative proof using the residue theorem.
Theorem 4.1.
Assume that is analytic in the annulus cut along the interval for some . Assume furthur that as and as for some and constants . Then
(50) |
where is given by (5) and is the non-periodic version of trapezoidal rule
Proof.
Since has a branch cut along , equation (8) becomes
(51) |
where and are two contours shown in Figure 2. The integral in (51) near exists as Cauchy principal value.

Since the integral near is dominant in (51), it holds the following estimate on the upper edge of the branch cut
where is the Gamma function, and is the Riemann-zeta function. Since as , we are free to add or remove integrals other than . Same estimate holds for the integral on the lower edge of the branch cut . The conclusion follows from the two estimates combined together. ∎
Assume that near the two endpoints for some . Since the transformed integrand , from Theorem 4.1, the error of (48) is . By choosing large enough, theoretically we can obtain high order convergence. However, too large is numerically unstable due to the rounding errors in float-point arithmetic. In practice, or would be sufficient.
When the target point is very close to , one needs to use the modified trapezoidal rule (13) after the variable substitution. In the non-periodic case, it will introduce an additional error term compared to (20), as shown in the following theorem.
Theorem 4.2.
Proof.
Remark 4.3.
For the first error term in (4.2), the integral interval can be replaced by any interval with and , because the integrand decays exponentially when is away from 1. In most cases, , so there’s no need to calculate this integral. In the remaining cases, it is easy to calculate the error term numerically and subtract it from the right hand side of equation (4.2). Our idea is to first replace the interval to , substitute and then apply points trapezoidal rule in , or shift to if the singularity is close to the imaginary axis. More specifically, if we use (33) to swap the singularity, the corresponding integral in (4.2) is (the constant multiplier is ignored)
We approximate this integral by
where we use the residue theorem first and then apply the trapezoidal rule for , and use the trapezoidal rule only for .
From Theorem 4.2, although cannot essentially improve the convergence rate, it will reduce the error caused by the near singularity, which is the dominant part when is small, and make the error decay uniformly as for arbitrarily close targets.
To illustrate the performance of , we again test three integrals using the three quadrature methods as mentioned in subsection 3.2. As before, we use the root finding method to find an approximate pole of and apply the singularity swapping method introduced in Section 3. All the three integrals have the same nearly singular kernel . The three density functions are , and , respectively. The first one is on but not analytic. The second function is and the third function is just continuous. Figure 3(a) shows for the first function all three quadratures are essentially sub-geometrically convergent. Figure 3(b) and (c) show the convergence rates for the second and third functions are both algebraic, which is consistent with the error analysis given by equation (50). Throughout all the examples, using causes the convergence speed to be slightly slower than using the exact , but it is still much faster than the classic trapezoidal rule.

5. Numerical examples
In this section, we test the modified trapezoidal rule with singularity swapping method for the near field evaluation in several examples. To verify the accuracy, we construct an artificial solution for Laplace’s and Helmholtz equations by the point source technique. Namely, for the interior problem, assuming the computational domain is , we place a point source outside of and impose the exact boundary condition on . When the boundary integral equation is solved correctly, the point source solution can be recovered in . Similar technique applies to the exterior problem. Details are given in [18]. All the experiments are carried out by MATLAB on a laptop with an Intel CPU inside.
5.1. Laplace interior Dirichlet problem in a star-shaped domain
In this example, we test the Laplace’s equation in the interior of a star-shaped domain with boundary parameterized by . Impose the Dirichlet boundary conditions on with and . We discretize with equal spaced points in the parameter space . The solution to the Laplace’s equation is represented by either single or double layer potential, which results in two different integral equations in . They can be solved using the Nyström method [17] and the proposed quadrature. Once is found, we evaluate the layer potential in based on the value of at the discretization points, and compare the numerical solution with the exact solution . For close evaluation, we use (30) to evaluate the single layer potential and (33) for the double layer potential.
In our first test, we solve the integral equation with and evaluate the field on a uniform grid that covers the domain with spacing . Results of relative error for both single and double layer potentials are shown in Figure 4. The blank point indicates that the calculated result of that point is “exact” in float point arithmetic. Far from the boundary, both trapezoidal rule and the singularity swapping method give the same accuracy. Near the boundary, trapezoidal rule gets no digit whereas the proposed quadrature method still gives at least 10 digits accuracy.

In the second test, we solve the same problem using and evaluate the solution at a specific target point to test the convergence rate. The target point is very close to the boundary. Its nearest two preimages are and . The preimage of under the parameter and the parameter on the unit circle is related by . From (19), the convergence rate is . The error of single layer case is smaller by a factor of because the estimate (16) can be improved to for . Numerical results given in Figure 5 confirm the exponential decay of the error.

.
In the third test, we solve the same problem with and evaluate the field on a slice of defined by the mapping of the square in , i.e.,
which is extremely close to the boundary. We use grid points that are uniform in and logarithmic in . The results of this test are shown in Figure 6. One can see that the single layer potential keeps 13 digits accuracy except at . However, for the double layer potential, Figure 6(b) shows the accuracy around each source drops to 10 digits. Using the subtraction technique, the accuracy improves to 14 digits, as shown in Figure 6(c), which implies the subtraction technique is every effective for the field evaluation near the source.

5.2. Helmholtz interior Dirichlet problem in an inkblot-shaped domain
In this example, we test our method on a piecewise analytic curve by solving an exterior Dirichlet problem of Helmholtz equation
with , , and the boundary parameterized by
It is clear that the exact solution is . The contour has eight corners with interior angle or , and the corresponding in (46) is
The contour is divided into eight analytic pieces. For each piece, the parameter is shifted and rescaled to and then substituted by given by (49) with . Each piece is discretized with points uniformly in . Similar to the first example, solution to the Helmholtz equation is represented by either single or double layer potential.
The first test is shown in Figure 7. This example evaluates the field with on a uniform grid that covers with spacing . Far from the boundary, both trapezoidal rule and singularity swapping method give 12 digits. On the other hand, trapezoidal rule gets no digit near the boundary, whereas the proposed quadrature gets 8 digits accuracy in most of the near boundary regions and drops to 6 digits in the concave part of the boundary.

The second test is shown in Figure 8, this example tests the singular behavior of near a cornor with . The result confirms the estimates in (44) and (45), which shows the solution is very accurate through our quadrature method.

In the third test, we solve the same problem using and evaluate the field at a specific target point to test the convergence rate. The target point is very close to the boundary. Its nearest two preimages of under transformed parameterization are and . The results of this test are shown in Figure 9. When , the convergence rate of proposed method is exponential and mainly govern by the second preimage. When , the algebraic term becomes the dominant part of the error.

In the fourth test, we solve the same problem using and evaluate the field in a sector defined by
which is extremely close to the corner. We use a grid that is uniform in and logarithmic in . The results of this test are shown in Figure 10. The single layer representation gives 7 digits accuracy whereas the double layer potential only gives 4 digits accuracy but can be improved to 9 digits with subtraction techniques. Compared to the field evaluation that are far away from the corner, several digits are lost for field evaluation in the neighborhood of corners. The loss can be attributed to the large value of the intergrand on the interval in (51). However, it is still much better than the classic method.

6. Conclusion
We present a new version of the singularity swapping method for the close field evaluation of two dimensional layer potentials. Our approach combines the classic trapezoidal rule and the analytic expansion of singular kernels. The resulted quadrature formula is easy to use and achieves exponential convergence. Rigorous error analysis is provided based on the Cauchy integral and residue theorem. The method is also extended to piecewise analytic curves by a substitution of variables and achieves a high order convergence rate. Numerical results demonstrate the effectiveness of the proposed method in both smooth and non-smooth geometries.
We plan to extend our work on several aspects. Our immediate next step is to consider the application to other elliptic PDE kernels, such as Navier equations in elasticity and Stokes equations in fluid mechanics. We also plan to develop fast boundary integral solvers for multiple wave scattering problems based on the proposed quadrature, and generalize our work to three dimensional close evaluation problems.
References
- [1] Ludvig af Klinteberg and Alex H. Barnett. Accurate quadrature of nearly singular line integrals in two and three dimensions by singularity swapping. BIT Numerical Mathematics, 61:83–118, 2021.
- [2] B. K. Alpert. Hybrid Gauss-trapezoidal quadrature rules. SIAM J. Sci. Comput., 20:1551–1584, 1999.
- [3] Alex Barnett, Bowei Wu, and Shravan Veerapaneni. Spectrally accurate quadratures for evaluation of layer potentials close to the boundary for the 2d stokes and laplace equations. SIAM Journal on Scientific Computing, 37(4):B519–B542, 2015.
- [4] Alex H. Barnett. Evaluation of layer potentials close to the boundary for laplace and helmholtz problems on analytic planar domains. SIAM Journal on Scientific Computing, 36(2):A427–A451, 2014.
- [5] J. Thomas Beale and Ming-Chih Lai. A method for computing nearly singular integrals. SIAM Journal on Numerical Analysis, 38(6):1902–1925, 2001.
- [6] James Bremer, Zydrunas Gimbutas, and Vladimir Rokhlin. A nonlinear optimization procedure for generalized Gaussian quadratures. SIAM J. Sci. Comput., 32(4):1761–1788, 2010.
- [7] Camille Carvalho. Layer potential identities and subtraction techniques. arXiv e-prints, July 2020.
- [8] Camille Carvalho, Shilpa Khatri, and Arnold D. Kim. Asymptotic analysis for close evaluation of layer potentials. Journal of Computational Physics, 355:327–341, 2018.
- [9] D. Colton and R. Kress. Inverse Acoustic and Electromagnetic Scattering Theory, Applied Mathematical Sciences 93. Springer-Verlag, Berlin, 1998.
- [10] H. Dong, J. Lai, and P. Li. A highly accurate boundary integral method for the elastic obstacle scattering problem. Mathematics of Computation, 90:1, 04 2021.
- [11] David Elliott. Sigmoidal transformations and the trapezoidal rule. Anziam Journal, 40:77–137, 1998.
- [12] Johan Helsing and Rikard Ojala. On the evaluation of layer potentials close to their sources. Journal of Computational Physics, 227(5):2899–2921, 2008.
- [13] Daan Huybrechs and Ronald Cools. On generalized gaussian quadrature rules for singular and nearly singular integrals. SIAM Journal on Numerical Analysis, 47(1):719–739, 2009.
- [14] Federico Izzo, Olof Runborg, and Richard Tsai. High order corrected trapezoidal rules for a class of singular integrals. arXiv e-prints, March 2022.
- [15] M.A. Khayat and D.R. Wilton. Numerical evaluation of singular and near-singular potential integrals. IEEE Transactions on Antennas and Propagation, 53(10):3180–3190, 2005.
- [16] Andreas Klöckner, Alexander Barnett, Leslie Greengard, and Michael O’Neil. Quadrature by expansion: A new method for the evaluation of layer potentials. Journal of Computational Physics, 252:332–349, 2013.
- [17] Rainer Kress. Linear Integral Equations. Springer, New York, 1999.
- [18] Jun Lai, Sivaram Ambikasaran, and Leslie F. Greengard. A Fast Direct Solver for High Frequency Scattering from a Large Cavity in Two Dimensions. SIAM J. Sci. Comput., 36(6):B887–B903, 2014.
- [19] Jun Lai, Motoki Kobayashi, and Alex Barnett. A fast and robust solver for the scattering from a layered periodic structure containing multi-particle inclusions. Journal of Computational Physics, 298:194 – 208, 2015.
- [20] Jun Lai and Michael O’Neil. An fft-accelerated direct solver for electromagnetic scattering from penetrable axisymmetric objects. Journal of Computational Physics, 390:152 – 174, 2019.
- [21] Carlos Pérez-Arancibia, Luiz M. Faria, and Catalin Turc. Harmonic density interpolation methods for high-order evaluation of laplace layer potentials in 2d and 3d. Journal of Computational Physics, 376:411–434, 2019.
- [22] Christoph Schwab and Wolfgang L. Wendland. On the extraction technique in boundary integral equations. Math. Comput., 68:91–122, 1999.
- [23] Kirill Serkh and Vladimir Rokhlin. On the solution of elliptic partial differential equations on regions with corners. Journal of Computational Physics, 305:150–171, 2016.
- [24] Kirill Serkh and Vladimir Rokhlin. On the solution of the helmholtz equation on regions with corners. Proceedings of the National Academy of Sciences, 113(33):9171–9176, 2016.
- [25] Lloyd N. Trefethen and J. A. C. Weideman. The exponentially convergent trapezoidal rule. SIAM Review, 56(3):385–458, 2014.