This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Singularity swapping method for nearly singular integrals based on trapezoidal rule

Gang Bao, Wenmao Hua, Jun Lai, Jinrui Zhang School of Mathematical Sciences, Zhejiang University, Hangzhou, Zhejiang 310027, China [email protected], [email protected], [email protected], [email protected]
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, quadrature
JL was supported by the “Xiaomi Young Scholars” program from Xiaomi Foundation.

1. 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

ΓK(x,y)ϕ(y)𝑑s(y),x2,\int_{\Gamma}K(x,y)\phi(y)ds(y),\quad x\in\mathbb{R}^{2}, (1)

where Γ\Gamma is assumed to be a closed analytic curve in 2\mathbb{R}^{2}. The density function ϕ\phi is assumed to be analytic on Γ\Gamma, and KK is the kernel function that has a singularity as xyx\to y. Generally, the kernel function K(x,y)K(x,y) is of logarithmic form[1]

K(x,y)=log|xy|k(x,y),K(x,y)=\log|x-y|k(x,y), (2)

(here we use 𝑙𝑜𝑔\mathit{log} to denote the natural logarithm) or of power-law form

K(x,y)=k(x,y)|xy|2m,K(x,y)=\frac{k(x,y)}{|x-y|^{2m}}, (3)

where mm is a positive integer and k(x,y)k(x,y) is an analytic function in the neighborhood of Γ\Gamma. 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 xx 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 Γ\Gamma 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 xx is on the boundary Γ\Gamma, 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 xx is near the curve, but not necessary on the curve, in which case the integral (1)\eqref{layer potential} 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 Γ\Gamma 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 O(1)O(1) 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 C2C^{2} integrand, the classic trapezoidal rule only gives second order accuracy. However, when the integrand is periodic and belongs to C2kC^{2k}, Euler-Macularin formula shows it can achieve an accuracy of order 2k2k. 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

02πf(t)𝑑t,\int_{0}^{2\pi}f(t)dt, (4)

where ff is an analytic and periodic function on [0,2π][0,2\pi]. Rewrite f(t)=u(z)f(t)=u(z) with z=eitz=e^{it}. The original integral (4) becomes

I(u)=02πu(eit)𝑑t=|z|=1u(z)dziz.I(u)=\int_{0}^{2\pi}u(e^{it})dt=\int_{|z|=1}u(z)\frac{dz}{iz}. (5)

Throughout this paper, a complex contour such as |z|=1|z|=1 is always to be understood as traversed once in the counterclockwise direction. Since ff is analytic on [0,2π][0,2\pi], by analytic extension, there exists r>1r>1 such that uu is analytic in the region r1|z|rr^{-1}\leq|z|\leq r. For any positive integer nn, the approximation to I(u)I(u) using trapezoidal rule with nn quadrature nodes is simply given by

Tn(u)=2πnk=1nu(e2πik/n).T_{n}(u)=\frac{2\pi}{n}\sum_{k=1}^{n}u(e^{2\pi ik/n}). (6)

To analyze the error of Tn(u)I(u)T_{n}(u)-I(u), note that the function 1zn11iz\frac{1}{z^{n}-1}\frac{1}{iz} has nn simple poles at e2πik/ne^{2\pi ik/n}, k=1,2,,nk=1,2,\cdots,n, with residues equal to 1/(in)1/(in). By the residue theorem, it holds

Tn(u)=|z|=ru(z)zn1dziz|z|=r1u(z)zn1dziz.T_{n}(u)=\int_{|z|=r}\frac{u(z)}{z^{n}-1}\frac{dz}{iz}-\int_{|z|=r^{-1}}\frac{u(z)}{z^{n}-1}\frac{dz}{iz}. (7)

Since uu is analytic in r1|z|rr^{-1}\leq|z|\leq r, we can change |z|=1|z|=1 to the circle |z|=r1|z|=r^{-1} in equation (5) without changing the value. Thus, combining (5) and (7) gives the representation of Tn(u)I(u)T_{n}(u)-I(u) as an integral,

Tn(u)I(u)=|z|=ru(z)zn1dziz+|z|=r1u(z)zn1dziz.T_{n}(u)-I(u)=\int_{|z|=r}\frac{u(z)}{z^{n}-1}\frac{dz}{iz}+\int_{|z|=r^{-1}}\frac{u(z)}{z^{-n}-1}\frac{dz}{iz}. (8)

Using (8) and the boundedness of u(z)u(z), we obtain the exponential convergence of trapezoidal rule.

Lemma 2.1.

If uu is analytic in the annulus r1|z|rr^{-1}\leqslant|z|\leqslant r for some r>1r>1, then

Tn(u)I(u)=O(rn), when n.T_{n}(u)-I(u)=O(r^{-n}),\mbox{ when }\quad n\to\infty. (9)

Based on (8), one also finds that Tn(u)=I(u)T_{n}(u)=I(u) for u(z)=zn+1,,zn1u(z)=z^{-n+1},\dots,z^{n-1} and znznz^{n}-z^{-n}. Therefore, the trapezoidal rule can be treated as a Gaussian quadrature on the unit circle |z|=1|z|=1[25].

2.2. Nearly singular integrals

We now turn to the evaluation of nearly singular integral defined on |z|=1|z|=1, which is given in the form of

I(Ku)=|z|=1K(z)u(z)dziz,I(Ku)=\int_{|z|=1}K(z)u(z)\frac{dz}{iz}, (10)

where uu is analytic in the annulus R1|z|RR^{-1}\leqslant|z|\leqslant R for some R>1R>1 and KK is analytic in a smaller annulus r1|z|rr^{-1}\leqslant|z|\leqslant r with 1<r<R1<r<R.

Presumably, rr is very close to 11, which means KK is badly behaved on the unit circle. According to (9), trapezoidal rule gives very poor convergence rate that is on the order of O(rn)O(r^{-n}). 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 KK. Another way is to numerically recalculate the weights of trapezoidal rule based on the variance of Euler-Macularin formula so that the singularity of KK 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 KK with its Laurent expansion KnK_{n} and then apply the trapezoidal rule to KnuK_{n}u.

More precisely, let

Kn(z)=12cnzn+k=n+1n1ckzk+12cnznK_{n}(z)=\frac{1}{2}c_{-n}z^{-n}+\sum_{k=-n+1}^{n-1}c_{k}z^{k}+\frac{1}{2}c_{n}z^{n} (11)

be the nnth order Laurent expansion of KK at zero, where

ck=12πi|z|=1K(z)zk1𝑑z.c_{k}=\frac{1}{2\pi i}\int_{|z|=1}K(z)z^{-k-1}dz. (12)

Note that the nn-th term of the Laurent series (11) is halved, as well as the n-n-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

I(Ku)T2n(Knu)=πnk=12n(Knu)(eπik/n).\displaystyle I(Ku)\approx T_{2n}(K_{n}u)=\frac{\pi}{n}\sum_{k=1}^{2n}(K_{n}u)(e^{\pi ik/n}). (13)

Now let us analyze the error of formula (13). It follows from equation (7) that

T2n(Knu)=|z|=RKn(z)z2n1u(z)dziz|z|=R1Kn(z)z2n1u(z)dziz.T_{2n}(K_{n}u)=\int_{|z|=R}\frac{K_{n}(z)}{z^{2n}-1}u(z)\frac{dz}{iz}-\int_{|z|=R^{-1}}\frac{K_{n}(z)}{z^{2n}-1}u(z)\frac{dz}{iz}. (14)

Write K=Kn+Kn+Kn+K=K_{n}^{-}+K_{n}+K_{n}^{+}, where

Kn(z)=k=n1ckzk+12cnzn,Kn+(z)=12cnzn+k=n+1ckzk.K_{n}^{-}(z)=\sum_{k=-\infty}^{-n-1}c_{k}z^{k}+\frac{1}{2}c_{-n}z^{-n},\quad K_{n}^{+}(z)=\frac{1}{2}c_{n}z^{n}+\sum_{k=n+1}^{\infty}c_{k}z^{k}.

Using the fact that KnuK_{n}^{-}u is analytic in r1|z|Rr^{-1}\leqslant|z|\leqslant R and Knu+Kn+uK_{n}u+K_{n}^{+}u is analytic in R1|z|rR^{-1}\leqslant|z|\leqslant r, it holds

T2n(Knu)I(Ku)\displaystyle T_{2n}(K_{n}u)-I(Ku)
=\displaystyle= |z|=R(Kn(z)z2n1Kn(z))u(z)dziz\displaystyle\int_{|z|=R}\left(\frac{K_{n}(z)}{z^{2n}-1}-K_{n}^{-}(z)\right)u(z)\frac{dz}{iz}
|z|=R1(Kn(z)z2n1+Kn(z)+Kn+(z))u(z)dziz\displaystyle-\int_{|z|=R^{-1}}\left(\frac{K_{n}(z)}{z^{2n}-1}+K_{n}(z)+K_{n}^{+}(z)\right)u(z)\frac{dz}{iz}
=\displaystyle= |z|=R(Kn(z)z2n1Kn(z))u(z)dziz+|z|=R1(Kn(z)z2n1Kn+(z))u(z)dziz.\displaystyle\int_{|z|=R}\left(\frac{K_{n}(z)}{z^{2n}-1}-K_{n}^{-}(z)\right)u(z)\frac{dz}{iz}+\int_{|z|=R^{-1}}\left(\frac{K_{n}(z)}{z^{-2n}-1}-K_{n}^{+}(z)\right)u(z)\frac{dz}{iz}. (15)

From the Cauchy’s estimate

|ck|Kr|k|, with K:=supr1|z|r|K(z)|,|c_{k}|\leqslant\|K\|_{\infty}r^{-|k|},\quad\mbox{ with }\|K\|_{\infty}:=\sup_{r^{-1}\leqslant|z|\leqslant r}|K(z)|, (16)

we have the following results on |z|=R|z|=R

|Kn(z)z2n1|k=nnKrkRkR2n1KR2n1(Rr)n+1Rr1,\displaystyle\left|\frac{K_{n}(z)}{z^{2n}-1}\right|\leqslant\frac{\sum_{k=-n}^{n}\|K\|_{\infty}r^{-k}R^{k}}{R^{2n}-1}\leqslant\frac{\|K\|_{\infty}}{R^{2n}-1}\frac{(\frac{R}{r})^{n+1}}{\frac{R}{r}-1}, (17)
|Kn(z)|k=nKrkRk=K(Rr)n+1Rr1.\displaystyle|K_{n}^{-}(z)|\leqslant\sum_{k=-\infty}^{-n}\|K\|_{\infty}r^{k}R^{k}=\frac{\|K\|_{\infty}(Rr)^{-n+1}}{Rr-1}. (18)

Same estimates hold for |Kn(z)z2n1|\left|\frac{K_{n}(z)}{z^{-2n}-1}\right| and |Kn+(z)||K_{n}^{+}(z)| on |z|=R1|z|=R^{-1}. Combining (2.2), (17) and (18) gives

|T2n(Knu)I(Ku)|4πKu((Rr)n+1(Rr1)(R2n1)+(Rr)n+1Rr1).|T_{2n}(K_{n}u)-I(Ku)|\leqslant 4\pi\|K\|_{\infty}\|u\|_{\infty}\left(\frac{(\frac{R}{r})^{n+1}}{(\frac{R}{r}-1)(R^{2n}-1)}+\frac{(Rr)^{-n+1}}{Rr-1}\right). (19)

Furthermore, equation (2.2) implies T2n(Knu)=I(Ku)T_{2n}(K_{n}u)=I(Ku) for u(z)=zn+1,,zn1u(z)=z^{-n+1},\dots,z^{n-1} and zn+znz^{n}+z^{-n}.

To summarize, we have the following result.

Theorem 2.2.

Assume uu is analytic in the annulus R1|z|RR^{-1}\leqslant|z|\leqslant R for some R>1R>1 and KK is analytic in a smaller annulus r1|z|rr^{-1}\leqslant|z|\leqslant r with 1<r<R1<r<R. It holds

T2n(Knu)I(Ku)=O((Rr)n),n.\displaystyle T_{2n}(K_{n}u)-I(Ku)=O((Rr)^{-n}),\quad n\to\infty. (20)

Note that the presented method can be regarded as interpolating uu at e2πik/(2n)e^{2\pi ik/(2n)} into the form of an+1zn+1++an1zn1+an(zn+zn)a_{-n+1}z^{-n+1}+\cdots+a_{n-1}z^{n-1}+a_{n}(z^{n}+z^{-n}) 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 2n2n quadrature nodes at e2πik/(2n)e^{2\pi ik/(2n)}. It is possible to construct a generalized Gaussian quadrature that exactly integrates 2n2n functions using only nn function evaluations [13], but that would require solving nonlinear equations and the corresponding quadrature nodes will vary with KK [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

log(4sintt02sintt0¯2)\displaystyle\log\left(4\sin\frac{t-t_{0}}{2}\sin\frac{t-\overline{t_{0}}}{2}\right) (21)

with t[0,2π]t\in[0,2\pi] and t0t_{0}\in\mathbb{C} close to the line segment [0,2π][0,2\pi]. It holds

02πlog(4sintt02sintt0¯2)f(t)𝑑tπnj=02n1Rn(t0,jπ/n)f(jπ/n).\int_{0}^{2\pi}\log\left(4\sin\frac{t-t_{0}}{2}\sin\frac{t-\overline{t_{0}}}{2}\right)f(t)dt\approx\frac{\pi}{n}\sum_{j=0}^{2n-1}R_{n}(t_{0},j\pi/n)f(j\pi/n). (22)

where

Rn(t0,t)=|t0|2k=1n1ek|t0|kcosk(tt0)en|t0|ncosn(tt0)R_{n}(t_{0},t)=|\Im t_{0}|-2\sum_{k=1}^{n-1}\frac{e^{-k|\Im t_{0}|}}{k}\cos k(t-\Re t_{0})-\frac{e^{-n|\Im t_{0}|}}{n}\cos n(t-\Re t_{0})

is nn-th order Laurent expansion of (21).

When t0=0\Im t_{0}=0, formula (22) reduces to the well known Kress quadrature [17]:

02πlog(4sin2tt02)f(t)𝑑tπnj=02n1Rn(t0,jπ/n)f(jπ/n).\int_{0}^{2\pi}\log\left(4\sin^{2}\frac{t-t_{0}}{2}\right)f(t)dt\approx\frac{\pi}{n}\sum_{j=0}^{2n-1}R_{n}(t_{0},j\pi/n)f(j\pi/n). (23)

Note that the vector {Rn(t0,jπ/n)}j=02n1\{R_{n}(t_{0},j\pi/n)\}_{j=0}^{2n-1} 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 K(z)=1zz0K(z)=\frac{1}{z-z_{0}}, the modified trapezoidal rule yields

I(Ku){T2n(2(z/z0)n(z/z0)n+12(zz0)u),|z0|>1,12T2n(2(z/z0)n(z/z0)n+12(zz0)u+2(z0/z)n(z0/z)n12(zz0)u),|z0|=1,T2n(2(z0/z)n(z0/z)n12(zz0)u),|z0|<1.I(Ku)\approx\begin{cases}T_{2n}\left(\frac{2-(z/z_{0})^{n}-(z/z_{0})^{n+1}}{2(z-z_{0})}u\right),&\quad|z_{0}|>1,\\ \frac{1}{2}T_{2n}\left(\frac{2-(z/z_{0})^{n}-(z/z_{0})^{n+1}}{2(z-z_{0})}u+\frac{2-(z_{0}/z)^{n}-(z_{0}/z)^{n-1}}{2(z-z_{0})}u\right),&\quad|z_{0}|=1,\\ T_{2n}\left(\frac{2-(z_{0}/z)^{n}-(z_{0}/z)^{n-1}}{2(z-z_{0})}u\right),&\quad|z_{0}|<1.\\ \end{cases} (24)

Such a kernel can be appeared in the gradient of Laplace’s and Helmholtz single layer potentials. When |z0|=1|z_{0}|=1, the left-hand side exists as Cauchy principal value, and a limit is needed to take on the right-hand side when z0=eπik/nz_{0}=e^{\pi ik/n} for some k=1,,2nk=1,\cdots,2n. One can also make use of the formula (24) to construct the quadrature rule for kernel (3) with m1m\geq 1 through differentiation of K(z)=1zz0K(z)=\frac{1}{z-z_{0}}.

Corollary 2.5.

When the kernel function is given in the form of

11ei(tt0)+11ei(tt0¯)\displaystyle\frac{1}{1-e^{-i(t-t_{0})}}+\frac{1}{1-e^{i(t-\overline{t_{0}})}} (25)

with t[0,2π]t\in[0,2\pi] and t0t_{0}\in\mathbb{C} close to the line segment [0,2π][0,2\pi]. For t0>0\Im t_{0}>0, the modified trapezoidal rule yields

02π[11ei(tt0)+11ei(tt0¯)]f(t)𝑑tπnj=02n1Kn(t0,jπ/n)f(jπ/n),\int_{0}^{2\pi}\left[\frac{1}{1-e^{-i(t-t_{0})}}+\frac{1}{1-e^{i(t-\overline{t_{0}})}}\right]f(t)dt\approx\frac{\pi}{n}\sum_{j=0}^{2n-1}K_{n}(t_{0},j\pi/n)f(j\pi/n), (26)

where

Kn(t0,t)=112ein(tt0)12ei(n+1)(tt0)1ei(tt0)+112ein(tt0¯)12ei(n+1)(tt0¯)1ei(tt0¯)K_{n}(t_{0},t)=\frac{1-\frac{1}{2}e^{-in(t-t_{0})}-\frac{1}{2}e^{-i(n+1)(t-t_{0})}}{1-e^{-i(t-t_{0})}}+\frac{1-\frac{1}{2}e^{in(t-\overline{t_{0}})}-\frac{1}{2}e^{i(n+1)(t-\overline{t_{0}})}}{1-e^{i(t-\overline{t_{0}})}}

is nn-th order Laurent expansion of (25).

Corollary (2.5) is essentially the same as Corollary 2.4. Later in the paper, we will use it to compute the near field of double layer potential for Laplace’s and Helmholtz equations.

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 z0z_{0}, and the second is how to easily construct the Laurent expansion for a given kernel function K(x,)K(x,\cdot) defined on a general smooth curve Γ\Gamma. In this section, we introduce a variant of singularity swapping method [1] to address these two issues. For now we still assume Γ\Gamma 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 2\mathbb{R}^{2} with \mathbb{C} and assume that Γ\Gamma is parameterized by g:g:\mathbb{R}\to\mathbb{C} that maps the interval [0,2π)[0,2\pi) to Γ\Gamma. Thus the parametric form of the single layer potential with logarithmic kernel (2) is

02πlog|xg(t)|2f(t)𝑑t,x,\int_{0}^{2\pi}\log|x-g(t)|^{2}f(t)dt,\quad x\in\mathbb{C}, (27)

where ff is an analytic function that consists of the density function and the Jacobian |g(t)||g^{\prime}(t)|. Bringing xx near Γ\Gamma introduces a singularity t0t_{0} near real axis in the analytic continuation of log|xg(t)|2\log|x-g(t)|^{2}. Specifically, it has a singularity when the complexified squared distance

|xg(t)|2=(x1g1(t))2+(x2g2(t))2\displaystyle|x-g(t)|^{2}=(x_{1}-g_{1}(t))^{2}+(x_{2}-g_{2}(t))^{2} (28)

goes to zero, which gives x1g1(t)=±i(x2g2(t))x_{1}-g_{1}(t)=\pm i(x_{2}-g_{2}(t)). Taking the negative case, the singularity t0t_{0} thus obeys

x1+ix2=g1(t0)+ig2(t0),x_{1}+ix_{2}=g_{1}(t_{0})+ig_{2}(t_{0}), (29)

and one may check by Schwarz reflection that the positive case gives its conjugate t¯0\bar{t}_{0}. Equation (29) can be rewritten as x=g(t0)x=g(t_{0}). The method to efficiently find t0t_{0} will be discussed in the next subsection 3.2. For now we assume that g:g:\mathbb{C}\to\mathbb{C} is 2π\pi-periodic, analytic and single-valued in a sufficiently large strip {t:|t|<logr}\{t\in\mathbb{C}:|\Im t|<\log r\}, so the only solution to x=g(t0)x=g(t_{0}) is t0=g1(x)t_{0}=g^{-1}(x), which is called the preimage of xx under gg.

Now we rewrite the integral (27) as

02πlog(|xg(t)|24sintt02sintt0¯2)f(t)𝑑t+02πlog(4sintt02sintt0¯2)f(t)𝑑t,\int_{0}^{2\pi}\log\left(\frac{|x-g(t)|^{2}}{4\sin\frac{t-t_{0}}{2}\sin\frac{t-\overline{t_{0}}}{2}}\right)f(t)dt+\int_{0}^{2\pi}\log\left(4\sin\frac{t-t_{0}}{2}\sin\frac{t-\overline{t_{0}}}{2}\right)f(t)dt, (30)

The first integral in (30) is analytic in a larger domain {t:|t|<logr}\{t\in\mathbb{C}:|\Im t|<\log r\}, 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 t0t_{0} and t0¯\overline{t_{0}} from log|xg(t)|2\log|x-g(t)|^{2} is swapped to the function log(4sintt02sintt0¯2)\log\left(4\sin\frac{t-t_{0}}{2}\sin\frac{t-\overline{t_{0}}}{2}\right) through (30).

For the Laplace double layer potential, it is given by

02π(xg(t))n(g(t))|xg(t)|2|g(t)|f(t)𝑑t=02πg(t)xg(t)f(t)𝑑t,\int_{0}^{2\pi}\frac{(x-g(t))\cdot n(g(t))}{|x-g(t)|^{2}}|g^{\prime}(t)|f(t)dt=\Im\int_{0}^{2\pi}\frac{g^{\prime}(t)}{x-g(t)}f(t)dt, (31)

where n(g(t))n(g(t)) is unit outward normal vector of Γ\Gamma at g(t)g(t). One way to swap its singularity is given by [1]

02π11ei(tt0)(1ei(tt0))g(t)xg(t)f(t)𝑑t.\int_{0}^{2\pi}\frac{1}{1-e^{-i(t-t_{0})}}\frac{(1-e^{-i(t-t_{0})})g^{\prime}(t)}{x-g(t)}f(t)dt. (32)

The second term (1ei(tt0))g(t)xg(t)f(t)\frac{(1-e^{-i(t-t_{0})})g^{\prime}(t)}{x-g(t)}f(t) in (32) is smooth and plays the same role as f(t)f(t) in (26). We can therefore follow the quadrature rule given by (26) to discretize (32). However, there is another approach to swap the singularity:

02π[g(t)xg(t)i1ei(tt0)]f(t)𝑑t+02πi1ei(tt0)f(t)𝑑t,\int_{0}^{2\pi}\left[\frac{g^{\prime}(t)}{x-g(t)}-\frac{-i}{1-e^{-i(t-t_{0})}}\right]f(t)dt+\int_{0}^{2\pi}\frac{-i}{1-e^{-i(t-t_{0})}}f(t)dt, (33)

which we have found is numerically more accurate than (32).

One issue for the double layer evaluation is that when the target point xx is close to one of the sources g(jπ/n)g(j\pi/n) with 0j2n10\leqslant j\leqslant 2n-1, the accuracy is lost due to the singularity at t=jπ/nt=j\pi/n. Similar phenomenon has also been observed in [1]. To address this issue, we apply the singularity subtraction technique by rewriting (31) into

02πg(t)xg(t)(f(t)f(jπ/n))𝑑t+μ(x)f(jπ/n),\Im\int_{0}^{2\pi}\frac{g^{\prime}(t)}{x-g(t)}(f(t)-f(j\pi/n))dt+\mu(x)f(j\pi/n), (34)

where

μ(x):=02πg(t)xg(t)𝑑t={2π,xD,π,xΓ,0,x2\D¯,\mu(x):=\Im\int_{0}^{2\pi}\frac{g^{\prime}(t)}{x-g(t)}dt=\begin{cases}-2\pi,&x\in D,\\ -\pi,&x\in\Gamma,\\ 0,&x\in\mathbb{R}^{2}\backslash\overline{D},\end{cases} (35)

and DD is the bounded domain with boundary Γ\Gamma. Then swap the singularity as in (33). The new integrand vanishes at t=jπ/nt=j\pi/n, 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 K(x,y)K(x,y) can be split by

i4H0(1)(k|xy|)=12πJ0(k|xy|)log|xy|+smooth residue term,\frac{i}{4}H_{0}^{(1)}(k|x-y|)=-\frac{1}{2\pi}J_{0}(k|x-y|)\log|x-y|+\text{smooth residue term}, (36)

and for the Helmholtz double layer potential, the kernel K(x,y)K(x,y) can be split by

ik4H1(1)(k|xy|)(xy)n(y)|xy|=\displaystyle\frac{ik}{4}H_{1}^{(1)}(k|x-y|)\frac{(x-y)\cdot n(y)}{|x-y|}= k2πJ1(k|xy|)|xy|(xy)n(y)log|xy|\displaystyle-\frac{k}{2\pi}\frac{J_{1}(k|x-y|)}{|x-y|}(x-y)\cdot n(y)\log|x-y|
+12π(xy)n(y)|xy|2+smooth residue term.\displaystyle+\frac{1}{2\pi}\frac{(x-y)\cdot n(y)}{|x-y|^{2}}+\text{smooth residue term}. (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 t0=g1(x)t_{0}=g^{-1}(x) 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 t0t_{0}, 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 z0=eit0z_{0}=e^{it_{0}} and g(t)=γ(eit)g(t)=\gamma(e^{it}), so that the equation g(t0)=xg(t_{0})=x becomes γ(z0)=x\gamma(z_{0})=x. Suppose uu is analytic in the annulus r1|z|rr^{-1}\leqslant|z|\leqslant r except a simple pole z0z_{0} with residue equal to WW, where z0z_{0} and WW are unknown. Similar to the analysis of equation (7), it holds

T2n(znu)+2πWz0n1z02n1=|z|=rznu(z)z2n1dziz|z|=r1znu(z)z2n1dziz=O(rn),T_{2n}(z^{n}u)+\frac{2\pi Wz_{0}^{n-1}}{z_{0}^{2n}-1}=\int_{|z|=r}\frac{z^{n}u(z)}{z^{2n}-1}\frac{dz}{iz}-\int_{|z|=r^{-1}}\frac{z^{n}u(z)}{z^{2n}-1}\frac{dz}{iz}=O(r^{-n}), (38)

and

T2n(zn+1u)+2πWz0nz02n1=|z|=rzn+1u(z)z2n1dziz|z|=r1zn+1u(z)z2n1dziz=O(rn).T_{2n}(z^{n+1}u)+\frac{2\pi Wz_{0}^{n}}{z_{0}^{2n}-1}=\int_{|z|=r}\frac{z^{n+1}u(z)}{z^{2n}-1}\frac{dz}{iz}-\int_{|z|=r^{-1}}\frac{z^{n+1}u(z)}{z^{2n}-1}\frac{dz}{iz}=O(r^{-n}). (39)

From the two formulas above, we can conclude that

T2n(zn+1u)T2n(znu)=z0+O(max(|z0|n,|z0|n)rn),\frac{T_{2n}(z^{n+1}u)}{T_{2n}(z^{n}u)}=z_{0}+O(\max(|z_{0}|^{n},|z_{0}|^{-n})r^{-n}), (40)

which provides a method to find the pole z0z_{0} 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 γ(z0)=x\gamma(z_{0})=x, we can apply (40) to u(z)=γ(z)γ(z)xu(z)=\frac{\gamma^{\prime}(z)}{\gamma(z)-x}, which gives

z^0:=T2n(zn+1γ(z)γ(z)x)T2n(znγ(z)γ(z)x)=z0+O(max(|z0|,|z0|1)nrn).\hat{z}_{0}:=\frac{T_{2n}\left(\frac{z^{n+1}\gamma^{\prime}(z)}{\gamma(z)-x}\right)}{T_{2n}\left(\frac{z^{n}\gamma^{\prime}(z)}{\gamma(z)-x}\right)}=z_{0}+O(\max(|z_{0}|,|z_{0}|^{-1})^{n}r^{-n}). (41)

In order to numerically test the accuracy of z^0\hat{z}_{0}, 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 z0z_{0}, and the third method is also the interpolation quadrature (24) but with z0z_{0} replaced by z^0\hat{z}_{0}. Figure 1 tests the convergence of three integrals that are defined on |z|=1|z|=1 and have the same nearly singular kernel (z1.1)1(z-1.1)^{-1}. On top of the kernel, the three integrands are z10+z10z^{-10}+z^{10}, eze^{z} and (z2)1(z-2)^{-1}, respectively. For the first function z10+z10z^{-10}+z^{10}, our analysis indicates that the interpolation quadrature (24) with z0=1.1z_{0}=1.1 is exact for n20n\geqslant 20, which is clearly shown in Figure 1(a). Using z^0\hat{z}_{0} only loses one algebraic accuracy. The second function eze^{z} is entire in \mathbb{C}. The interpolation quadrature achieves super-geometric convergence. Using z^0\hat{z}_{0} only causes the convergence speed to slow down slightly, as shown in 1(b). The third function (z2)1(z-2)^{-1} is analytic in a neighborhood of |z|=1|z|=1 but not throughout the complex plane. By Theorem 2.2, the exact interpolation quadrature has a geometric convergence that is on the order of 2.2n/22.2^{-n/2}, which is confirmed by Figure 1(c). Here using z^0\hat{z}_{0} causes the convergence error to grow by a factor of nn, 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 z0z_{0} or the approximate value z^0\hat{z}_{0}.

Refer to caption
Figure 1. Relative error of classic trapezoidal rule (dots), interpolation quadrature given by (24) (circles) and interpolation quadrature (24) with z0z_{0} replaced by z^0\hat{z}_{0} (stars) for three functions with the number of quadrature nodes nn ranging from 2 to 50. The solid curves is 1.1n1.1^{-n}.

To summarize, numerical observation indicates replacing z0z_{0} with z^0\hat{z}_{0} into the quadrature formula (24) gives a new residue term

O(nmax(|z0|,|z0|1)nrn),O(n\max(|z_{0}|,|z_{0}|^{-1})^{-n}r^{-n}), (42)

which is slightly larger than the approximation error analyzed in (20). We briefly analyze this term by taking |z0|>1|z_{0}|>1 as an example:

I(u)=\displaystyle I(u)= T2n(u)z0nT2n(1+z/z02znu)+O(|z0|nrn)\displaystyle T_{2n}\left(u\right)-z_{0}^{-n}T_{2n}\left(\frac{1+z/z_{0}}{2}z^{n}u\right)+O(|z_{0}|^{-n}r^{-n})
=\displaystyle= T2n(u)z^0n(1+O(|z0|nrn))nT2n(1+z/z02znu)+O(|z0|nrn)\displaystyle T_{2n}\left(u\right)-\hat{z}_{0}^{-n}\left(1+O(|z_{0}|^{n}r^{-n})\right)^{-n}T_{2n}\left(\frac{1+z/z_{0}}{2}z^{n}u\right)+O(|z_{0}|^{-n}r^{-n})
=\displaystyle= T2n(u)z^0nT2n(1+z/z^02znu)+O(n|z0|nrn).\displaystyle T_{2n}\left(u\right)-\hat{z}_{0}^{-n}T_{2n}\left(\frac{1+z/\hat{z}_{0}}{2}z^{n}u\right)+O(n|z_{0}|^{-n}r^{-n}).

The last identity holds because T2n(1+z/z02znu)=O(|z0|n)T_{2n}\left(\frac{1+z/z_{0}}{2}z^{n}u\right)=O(|z_{0}|^{-n}). In a word, the factor nn in (42) comes from the nn-th power in the error term of (20).

If such an error is unacceptable, usually one Newton iteration

z^0z^0γ(z^0)xγ(z^0)\hat{z}_{0}\leftarrow\hat{z}_{0}-\frac{\gamma(\hat{z}_{0})-x}{\gamma^{\prime}(\hat{z}_{0})} (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 z^0\hat{z}_{0} within almost O(n)O(n) 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 Γ\Gamma 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 Γ\Gamma, corners or endpoints will introduce extra singularities on the density function ϕ\phi. It was shown in [23] that the density function ϕ\phi for boundary value problem of Laplace’s equations has singularity of this type

ϕ(r)\displaystyle\phi(r) =\displaystyle= Crα1+smoother term,for single layer potential,\displaystyle Cr^{\alpha-1}+\text{smoother term},\quad\text{for single layer potential}, (44)
ϕ(r)\displaystyle\phi(r) =\displaystyle= C1+C2rα+smoother term,for double layer potential,\displaystyle C_{1}+C_{2}r^{\alpha}+\text{smoother term},\quad\text{for double layer potential}, (45)

where rr is the distance from the corner or endpoint of Γ\Gamma, C,C1,C2C,C_{1},C_{2} are constants. The exponent α=ππ+|πθ|\alpha=\frac{\pi}{\pi+|\pi-\theta|}, where θ\theta is the interior angle of the corner, and θ=0\theta=0 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 Γ\Gamma and still denote it as Γ\Gamma. We focus on calculating the layer potential generated by this piece. Let Γ\Gamma be parameterized by an analytic function g:[0,2π]g:[0,2\pi]\to\mathbb{C} with |g(t)||g^{\prime}(t)| nonzero for all t[0,2π]t\in[0,2\pi]. Rewriting the layer potential (1) based on the parametrization yields

02πf(t)𝑑t\int_{0}^{2\pi}f(t)dt

with non-periodic integrand ff, which is analytic in (0,2π)(0,2\pi) but may have singularities at t=0t=0 or t=2πt=2\pi. Suppose the interior angles at g(0)g(0) and g(2π)g(2\pi) are θ1\theta_{1} and θ2\theta_{2} respectively and let

α:=min(ππ+|πθ1|,ππ+|πθ2|).\alpha:=\min\left(\frac{\pi}{\pi+|\pi-\theta_{1}|},\frac{\pi}{\pi+|\pi-\theta_{2}|}\right). (46)

From (44), we have f(t):=12πlog|g(t)x||g(t)|ϕ(t)=O(tα1)f(t):=-\frac{1}{2\pi}\log|g(t)-x||g^{\prime}(t)|\phi(t)=O(t^{\alpha-1}) 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 w:[0,2π][0,2π]w:[0,2\pi]\to[0,2\pi] be one-to-one, strictly monotonically increasing and analytic in (0,2π)(0,2\pi). Assume that ww at the two endpoints vanishes up to order pp\in\mathbb{N}, i.e., w(t)=O(tp)w(t)=O(t^{p}) near t=0t=0 and w(t)=2π+O((t2π)p)w(t)=2\pi+O((t-2\pi)^{p}) near t=2πt=2\pi. We then substitute tw(t)t\to w(t) to obtain

02πf(t)𝑑t=02πw(t)f(w(t))𝑑t.\int_{0}^{2\pi}f(t)dt=\int_{0}^{2\pi}w^{\prime}(t)f(w(t))dt. (47)

Applying the trapezoidal rule to the transformed integral now yields the quadrature formula

02πf(t)𝑑t2πnj=0nw′′(2πj/n)f(w(2πj/n)),\int_{0}^{2\pi}f(t)dt\approx\frac{2\pi}{n}\sum_{j=0}^{n}{}^{\prime\prime}w^{\prime}(2\pi j/n)f(w(2\pi j/n)), (48)

where ′′\sum{}^{\prime\prime} means that the first and last term need to be halved. A typical example for such a substitution is given by

w(t)=\displaystyle w(t)= (p2)!!(p3)!!0t(tτ)(sinτ)p2𝑑τ\displaystyle\frac{(p-2)!!}{(p-3)!!}\int_{0}^{t}(t-\tau)(\sin\tau)^{p-2}d\tau (49)
=\displaystyle= t(sint+(sint)36+3(sint)540++(p4)!!(p3)!!(sint)p2p2)\displaystyle t-\left(\sin t+\frac{(\sin t)^{3}}{6}+\frac{3(\sin t)^{5}}{40}+\cdots+\frac{(p-4)!!}{(p-3)!!}\frac{(\sin t)^{p-2}}{p-2}\right)
=\displaystyle= tIp(sint),if p3 is odd,\displaystyle t-I_{p}(\sin t),\quad\text{if $p\geqslant 3$ is odd,}

where Ip()I_{p}(\cdot) in (49) is the truncated Taylor series of arcsin\arcsin up to order p2p-2. 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 uu is analytic in the annulus r1|z|rr^{-1}\leqslant|z|\leqslant r cut along the interval [r1,r][r^{-1},r] for some r>1r>1. Assume furthur that u(eit)=u(1)+C3tα1+o(tα1)u(e^{it})=u(1)+C_{3}t^{\alpha-1}+o(t^{\alpha-1}) as t0+t\to 0^{+} and u(eit)=u(e2πi)+C4(2πt)α1+o(2πt)α1u(e^{it})=u(e^{2\pi i})+C_{4}(2\pi-t)^{\alpha-1}+o(2\pi-t)^{\alpha-1} as t2πt\to 2\pi^{-} for some α>1\alpha>1 and constants C3,C4C_{3},C_{4}. Then

Tn(u)I(u)=(C3+C4)cos(π2α)Γ(α)ζ(α)nα+o(nα),n,T_{n}(u)-I(u)=(C_{3}+C_{4})\cos\left(\frac{\pi}{2}\alpha\right)\Gamma(\alpha)\zeta(\alpha)n^{-\alpha}+o(n^{-\alpha}),\quad n\to\infty, (50)

where I(u)I(u) is given by (5) and Tn(u)T_{n}(u) is the non-periodic version of trapezoidal rule

Tn(u)=2πnk=0nu′′(e2πik/n).T_{n}(u)=\frac{2\pi}{n}\sum_{k=0}^{n}{}^{\prime\prime}u(e^{2\pi ik/n}).
Proof.

Since uu has a branch cut along [r1,r][r^{-1},r], equation (8) becomes

Tn(u)I(u)=Γ1u(z)zn1dziz+Γ2u(z)1zndziz.T_{n}(u)-I(u)=\int_{\Gamma_{1}}\frac{u(z)}{z^{n}-1}\frac{dz}{iz}+\int_{\Gamma_{2}}\frac{u(z)}{1-z^{-n}}\frac{dz}{iz}. (51)

where Γ1\Gamma_{1} and Γ2\Gamma_{2} are two contours shown in Figure 2. The integral in (51) near z=1z=1 exists as Cauchy principal value.

Refer to caption
Figure 2. Γ1Γ2\Gamma_{1}\cup\Gamma_{2} is the boundary of exp((logr,logr)+(0,2π)i)\exp((-\log r,\log r)+(0,2\pi)i). Γ1\Gamma_{1} is in red and traversed in the counterclockwise direction. Γ2\Gamma_{2} is in blue and traversed in the clockwise direction.

Since the integral near z=1z=1 is dominant in (51), it holds the following estimate on the upper edge of the branch cut [r1,r][r^{-1},r]

r11u(z)1zndziz+1ru(z)zn1dziz\displaystyle\int_{r^{-1}}^{1}\frac{u(z)}{1-z^{-n}}\frac{dz}{iz}+\int_{1}^{r}\frac{u(z)}{z^{n}-1}\frac{dz}{iz}
=\displaystyle= 1n1/21u(z)1zndziz+11+n1/2u(z)zn1dziz+O(en1/2)\displaystyle\int_{1-n^{-1/2}}^{1}\frac{u(z)}{1-z^{-n}}\frac{dz}{iz}+\int_{1}^{1+n^{-1/2}}\frac{u(z)}{z^{n}-1}\frac{dz}{iz}+O(e^{-n^{1/2}})
=\displaystyle= 1n1/21u(1)+C3(ilogz)α11zndziz\displaystyle\int_{1-n^{-1/2}}^{1}\frac{u(1)+C_{3}(-i\log z)^{\alpha-1}}{1-z^{-n}}\frac{dz}{iz}
+11+n1/2u(1)+C3(ilogz)α1zn1dziz+o(nα)\displaystyle+\int_{1}^{1+n^{-1/2}}\frac{u(1)+C_{3}(-i\log z)^{\alpha-1}}{z^{n}-1}\frac{dz}{iz}+o(n^{-\alpha})
=\displaystyle= C31n1/21(ilogz)α11zndziz+C311+n1/2(ilogz)α1zn1dziz+o(nα)\displaystyle C_{3}\int_{1-n^{-1/2}}^{1}\frac{(-i\log z)^{\alpha-1}}{1-z^{-n}}\frac{dz}{iz}+C_{3}\int_{1}^{1+n^{-1/2}}\frac{(-i\log z)^{\alpha-1}}{z^{n}-1}\frac{dz}{iz}+o(n^{-\alpha})
=\displaystyle= C301(ilogz)α11zndziz+C31(ilogz)α1zn1dziz+o(nα)\displaystyle C_{3}\int_{0}^{1}\frac{(-i\log z)^{\alpha-1}}{1-z^{-n}}\frac{dz}{iz}+C_{3}\int_{1}^{\infty}\frac{(-i\log z)^{\alpha-1}}{z^{n}-1}\frac{dz}{iz}+o(n^{-\alpha})
=\displaystyle= C30(ix)α11enxdxi+C30(ix)α1enx1dxi+o(nα)\displaystyle C_{3}\int_{0}^{\infty}\frac{(ix)^{\alpha-1}}{1-e^{nx}}\frac{dx}{i}+C_{3}\int_{0}^{\infty}\frac{(-ix)^{\alpha-1}}{e^{nx}-1}\frac{dx}{i}+o(n^{-\alpha})
=\displaystyle= C3cos(π2α)0xα1enx1𝑑x+o(nα)\displaystyle C_{3}\cos\left(\frac{\pi}{2}\alpha\right)\int_{0}^{\infty}\frac{x^{\alpha-1}}{e^{nx}-1}dx+o(n^{-\alpha})
=\displaystyle= C3cos(π2α)Γ(α)ζ(α)nα+o(nα),\displaystyle C_{3}\cos\left(\frac{\pi}{2}\alpha\right)\Gamma(\alpha)\zeta(\alpha)n^{-\alpha}+o(n^{-\alpha}),

where Γ()\Gamma(\cdot) is the Gamma function, and ζ()\zeta(\cdot) is the Riemann-zeta function. Since (1n1/2)n=O(en1/2)(1-n^{-1/2})^{n}=O(e^{-n^{1/2}}) as nn\to\infty, we are free to add or remove integrals other than [1n1/2,1+n1/2][1-n^{-1/2},1+n^{-1/2}]. Same estimate holds for the integral on the lower edge of the branch cut [r1,r][r^{-1},r]. The conclusion follows from the two estimates combined together. ∎

Assume that f=O((t(2πt))α1)f=O((t(2\pi-t))^{\alpha-1}) near the two endpoints for some α>0\alpha>0. Since the transformed integrand w(t)f(w(t))=O((t(2πt))αp1)w^{\prime}(t)f(w(t))=O((t(2\pi-t))^{\alpha p-1}), from Theorem 4.1, the error of (48) is O(nαp)O(n^{-\alpha p}). By choosing pp large enough, theoretically we can obtain high order convergence. However, too large pp is numerically unstable due to the rounding errors in float-point arithmetic. In practice, p=5p=5 or 77 would be sufficient.

When the target point xx is very close to Γ\Gamma, 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.

Under the assumptions of Theorem 4.1, assume further that KK is analytic on the unit circle |z|=1|z|=1. When nn\to\infty, it holds

T2n(Knu)I(Ku)\displaystyle T_{2n}(K_{n}u)-I(Ku)
=\displaystyle= r1rznK(z)znKn+(z)znKn(z)znzn(u(1)u(e2πi))dziz+O(nα),\displaystyle\int_{r^{-1}}^{r}\frac{z_{-}^{n}K(z)-z^{-n}K_{n}^{+}(z)-z^{n}K_{n}^{-}(z)}{z^{n}-z^{-n}}\left(u(1)-u(e^{2\pi i})\right)\frac{dz}{iz}+O(n^{-\alpha}), (52)

where Kn,Kn+,KnK_{n},K_{n}^{+},K_{n}^{-} are the same as in Section 2.2 and

zn={zn,|z|1,zn,|z|<1.z_{-}^{n}=\begin{cases}z^{-n},&|z|\geqslant 1,\\ z^{n},&|z|<1.\end{cases}
Proof.

From equation (2.2), it holds

T2n(Knu)I(Ku)\displaystyle T_{2n}(K_{n}u)-I(Ku)
=\displaystyle= Γ1(Kn(z)z2n1Kn(z))u(z)dzizΓ2(Kn(z)z2n1Kn+(z))u(z)dziz\displaystyle\int_{\Gamma_{1}}\left(\frac{K_{n}(z)}{z^{2n}-1}-K_{n}^{-}(z)\right)u(z)\frac{dz}{iz}-\int_{\Gamma_{2}}\left(\frac{K_{n}(z)}{z^{-2n}-1}-K_{n}^{+}(z)\right)u(z)\frac{dz}{iz}
=\displaystyle= Γ1K(z)Kn+(z)z2nKn(z)z2n1u(z)dzizΓ2K(z)z2nKn+(z)Kn(z)z2n1u(z)dziz\displaystyle\int_{\Gamma_{1}}\frac{K(z)-K_{n}^{+}(z)-z^{2n}K_{n}^{-}(z)}{z^{2n}-1}u(z)\frac{dz}{iz}-\int_{\Gamma_{2}}\frac{K(z)-z^{-2n}K_{n}^{+}(z)-K_{n}^{-}(z)}{z^{-2n}-1}u(z)\frac{dz}{iz}
=\displaystyle= Γ1znK(z)znKn+(z)znKn(z)znznu(z)dziz\displaystyle\int_{\Gamma_{1}}\frac{z^{-n}K(z)-z^{-n}K_{n}^{+}(z)-z^{n}K_{n}^{-}(z)}{z^{n}-z^{-n}}u(z)\frac{dz}{iz}
Γ2znK(z)znKn+(z)znKn(z)znznu(z)dziz\displaystyle-\int_{\Gamma_{2}}\frac{z^{n}K(z)-z^{-n}K_{n}^{+}(z)-z^{n}K_{n}^{-}(z)}{z^{-n}-z^{n}}u(z)\frac{dz}{iz}
=\displaystyle= Γ1Γ2znK(z)znKn+(z)znKn(z)znznu(z)dziz\displaystyle\int_{\Gamma_{1}\cup\Gamma_{2}}\frac{z_{-}^{n}K(z)-z^{-n}K_{n}^{+}(z)-z^{n}K_{n}^{-}(z)}{z^{n}-z^{-n}}u(z)\frac{dz}{iz}
=\displaystyle= r1rznK(z)znKn+(z)znKn(z)znzn(u(1)u(e2πi))dziz+O(nα).\displaystyle\int_{r^{-1}}^{r}\frac{z_{-}^{n}K(z)-z^{-n}K_{n}^{+}(z)-z^{n}K_{n}^{-}(z)}{z^{n}-z^{-n}}\left(u(1)-u(e^{2\pi i})\right)\frac{dz}{iz}+O(n^{-\alpha}).

Remark 4.3.

For the first error term in (4.2), the integral interval can be replaced by any interval [a,b][a,b] with 0a<10\leqslant a<1 and 1<b1<b\leqslant\infty, because the integrand decays exponentially when zz is away from 1. In most cases, u(1)=u(e2πi)=0u(1)=u(e^{2\pi i})=0, 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 [e1,e][e^{-1},e], substitute z=eitz=e^{it} and then apply 2n+12n+1 points trapezoidal rule in [i,i][-i,i], or shift to [πi,π+i][\pi-i,\pi+i] if the singularity t0t_{0} 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)

iieintein(tt0)+ei(n+1)(tt0)1ei(tt0)+eintein(tt0¯)+ei(n+1)(tt0¯)1ei(tt0¯)einteint𝑑t\displaystyle\int_{-i}^{i}\frac{e^{int}\frac{e^{-in(t-t_{0})}+e^{-i(n+1)(t-t_{0})}}{1-e^{-i(t-t_{0})}}+e^{-int}\frac{e^{in(t-\overline{t_{0}})}+e^{i(n+1)(t-\overline{t_{0}})}}{1-e^{i(t-\overline{t_{0}})}}}{e^{int}-e^{-int}}dt
=\displaystyle= iieint0(cottt02cott02)eint0¯(cottt0¯2cott0¯2)2sin(nt)𝑑t\displaystyle\int_{-i}^{i}\frac{e^{int_{0}}\left(\cot\frac{t-t_{0}}{2}-\cot\frac{-t_{0}}{2}\right)-e^{-in\overline{t_{0}}}\left(\cot\frac{t-\overline{t_{0}}}{2}-\cot\frac{-\overline{t_{0}}}{2}\right)}{2\sin(nt)}dt
:=\displaystyle:= iiMn(t0,t)2sin(nt)𝑑t.\displaystyle\int_{-i}^{i}\frac{M_{n}(t_{0},t)}{2\sin(nt)}dt.

We approximate this integral by

{ink=nnMn(t0,π+ik/n)2sin(ik)′′+2πik=n2nMn(t0,kπ/n)2(1)kn′′, if t0[0,π2),ink=nnMn(t0,ik/n)2sin(ik)′′, if t0[π2,3π2],ink=nnMn(t0,π+ik/n)2sin(ik)′′+2πik=0nMn(t0,kπ/n)2(1)kn′′, if t0(3π2,2π),\begin{dcases}\frac{i}{n}\sum_{k=-n}^{n}{}^{\prime\prime}\frac{M_{n}(t_{0},\pi+ik/n)}{2\sin(ik)}+2\pi i\sum_{k=n}^{2n}{}^{\prime\prime}\frac{M_{n}(t_{0},k\pi/n)}{2(-1)^{k}n},&\mbox{ if }\Re t_{0}\in[0,\frac{\pi}{2}),\\ \frac{i}{n}\sum_{k=-n}^{n}{}^{\prime\prime}\frac{M_{n}(t_{0},ik/n)}{2\sin(ik)},&\mbox{ if }\Re t_{0}\in[\frac{\pi}{2},\frac{3\pi}{2}],\\ \frac{i}{n}\sum_{k=-n}^{n}{}^{\prime\prime}\frac{M_{n}(t_{0},\pi+ik/n)}{2\sin(ik)}+2\pi i\sum_{k=0}^{n}{}^{\prime\prime}\frac{M_{n}(t_{0},k\pi/n)}{2(-1)^{k}n},&\mbox{ if }\Re t_{0}\in(\frac{3\pi}{2},2\pi),\end{dcases}

where we use the residue theorem first and then apply the trapezoidal rule for t0[0,π2)(3π2,2π]\Re t_{0}\in[0,\frac{\pi}{2})\cup(\frac{3\pi}{2},2\pi], and use the trapezoidal rule only for t0[π2,3π2]\Re t_{0}\in[\frac{\pi}{2},\frac{3\pi}{2}].

From Theorem 4.2, although T2n(Knu)T_{2n}(K_{n}u) cannot essentially improve the convergence rate, it will reduce the error caused by the near singularity, which is the dominant part when nn is small, and make the error decay uniformly as O(nαp)O(n^{-\alpha p}) for arbitrarily close targets.

To illustrate the performance of T2n(Knu)T_{2n}(K_{n}u), 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 z^0\hat{z}_{0} of KK and apply the singularity swapping method introduced in Section 3. All the three integrals have the same nearly singular kernel (z1.1)1(z-1.1)^{-1}. The three density functions are e(z+1)2e^{-(z+1)^{-2}}, (1/z+z)3(1/\sqrt{z}+\sqrt{z})^{3} and 1/z+z1/\sqrt{z}+\sqrt{z}, respectively. The first one e(z+1)2e^{-(z+1)^{-2}} is CC^{\infty} on |z|=1|z|=1 but not analytic. The second function (1/z+z)3(1/\sqrt{z}+\sqrt{z})^{3} is C2C^{2} and the third function 1/z+z1/\sqrt{z}+\sqrt{z} 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 z^0\hat{z}_{0} causes the convergence speed to be slightly slower than using the exact z0z_{0}, but it is still much faster than the classic trapezoidal rule.

Refer to caption
Figure 3. Relative error of trapezoidal rule (dots), interpolation quadrature given by (24) (circles) and interpolation quadrature (24) with z0z_{0} replaced by z^0\hat{z}_{0} give by equation (40) (stars) for three functions with the number of quadrature nodes nn ranging from 2 to 50. The solid curves is 1.1n1.1^{-n}.

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 Ω\Omega, we place a point source outside of Ω\Omega and impose the exact boundary condition on Ω\partial\Omega. When the boundary integral equation is solved correctly, the point source solution can be recovered in Ω\Omega. 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 Δu=0\Delta u=0 in the interior of a star-shaped domain DD with boundary parameterized by g(t)=(1+0.3cos(5t))eit,t[0,2π]g(t)=(1+0.3\cos(5t))e^{it},\ t\in[0,2\pi]. Impose the Dirichlet boundary conditions u=u0u=u_{0} on D\partial D with u0(x)=log|xx0|u_{0}(x)=\log|x-x_{0}| and x0=3+3ix_{0}=3+3i. We discretize D\partial D with equal spaced points in the parameter space [0,2π][0,2\pi]. The solution to the Laplace’s equation is represented by either single or double layer potential, which results in two different integral equations in ϕ\phi. They can be solved using the Nyström method [17] and the proposed quadrature. Once ϕ\phi is found, we evaluate the layer potential in DD based on the value of ϕ\phi at the discretization points, and compare the numerical solution with the exact solution u0u_{0}. 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 n=64n=64 and evaluate the field on a uniform grid that covers the domain with spacing 0.010.01. Results of relative error ErelE_{rel} 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.

Refer to caption
Figure 4. Near field evaluation for Laplace equation. (a) and (c): Results based on classic trapezoidal rule with (a) for single layer potential and (c) for double layer potential. (b) and (d): Results based on the modified trapezoidal rule with (b) for single layer potential and (d) for double layer potential.

In the second test, we solve the same problem using n=8,16,,128n=8,16,\cdots,128 and evaluate the solution at a specific target point x=0.5+ix=0.5+i to test the convergence rate. The target point xx is very close to the boundary. Its nearest two preimages g1(x)g^{-1}(x) are t1=1.058224887371462+0.045168525183462it_{1}=1.058224887371462+0.045168525183462i and t2=0.4227859113690200.293359723744667it_{2}=0.422785911369020-0.293359723744667i. The preimage of xx under the parameter tt and the parameter z0z_{0} on the unit circle is related by z0=eitz_{0}=e^{it}. From (19), the convergence rate is O(en(|t1|+|t2|))O(e^{-n(|\Im t_{1}|+|\Im t_{2}|)}). The error of single layer case is smaller by a factor of nn because the estimate (16) can be improved to |cn|=O(n1|z0|n)|c_{n}|=O(n^{-1}|z_{0}|^{-n}) for K(z)=log(zz0)K(z)=\log(z-z_{0}). Numerical results given in Figure 5 confirm the exponential decay of the error.

Refer to caption
Figure 5. Relative error of evaluating u(x)u(x) for Laplace’s equation using trapezoidal rule (stars) and modified trapezoidal (circles) and their theoretical convergence rate (solid curves). The red and blue lines plot the predicted convergence rate. (a) Single layer potential. (b) Double layer potential.

.

In the third test, we solve the same problem with n=128n=128 and evaluate the field on a slice of DD defined by the mapping gg of the square [1.66π,1.76π]×[108,0.15][1.66\pi,1.76\pi]\times[10^{-8},0.15] in \mathbb{C}, i.e.,

D={g(s):s[1.66π,1.76π],s[108,0.15]},D=\{g(s):\Re s\in[1.66\pi,1.76\pi],\Im s\in[10^{-8},0.15]\},

which is extremely close to the boundary. We use 300×300300\times 300 grid points that are uniform in s\Re s and logarithmic in s\Im s. The results of this test are shown in Figure 6. One can see that the single layer potential keeps 13 digits accuracy except at s=224nπ5.5\Re s=\frac{224}{n}\pi\approx 5.5. 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.

Refer to caption
Figure 6. Test on the extremely close field evaluation for Laplace’s equation. (a) Single layer potential without substraction technique. (b) Double layer potential without substraction technique. (c) Double layer potential with substraction technique.

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

{Δu+κ2u=0,in 2\D¯,u=i4H0(1)(κ|xx0|),on D,uriκu=o(r12),r=|x|,\begin{cases}\Delta u+\kappa^{2}u=0,&\text{in }\mathbb{R}^{2}\backslash\overline{D},\\ u=\frac{i}{4}H_{0}^{(1)}(\kappa|x-x_{0}|),&\text{on }\partial D,\\ \frac{\partial u}{\partial r}-i\kappa u=o(r^{-\frac{1}{2}}),&r=|x|\to\infty,\end{cases}

with κ=3\kappa=3, x0=1+ix_{0}=1+i, and the boundary D\partial D parameterized by

g(t)=(4+2|cos(4t)|sin(4t))eit,t[0,2π].g(t)=\left(4+2|\cos(4t)|\sin(4t)\right)e^{it},\quad t\in[0,2\pi].

It is clear that the exact solution is u0(x):=i4H0(1)(κ|xx0|)u_{0}(x):=\frac{i}{4}H_{0}^{(1)}(\kappa|x-x_{0}|). The contour D\partial D has eight corners with interior angle arctan43\arctan\frac{4}{3} or 2πarctan432\pi-\arctan\frac{4}{3}, and the corresponding α\alpha in (46) is

α=121πarctan43=0.586567797561351\alpha=\frac{1}{2-\frac{1}{\pi}\arctan\frac{4}{3}}=0.586567797561351\dots

The contour D\partial D is divided into eight analytic pieces. For each piece, the parameter is shifted and rescaled to [0,2π][0,2\pi] and then substituted by w(t)w(t) given by (49) with p=7p=7. Each piece is discretized with 2n2n points uniformly in tt. 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 n=32n=32 on a uniform grid that covers [6,6]2[-6,6]^{2} with spacing 0.10.1. 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.

Refer to caption
Figure 7. Relative error for the close field evaluation of Helmholtz equation. (a) and (c): Results based on classic trapezoidal rule with (a) for single layer potential and (c) for double layer potential. (b) and (d): Results based on the modified trapezoidal rule with (b) for single layer potential and (d) for double layer potential.

The second test is shown in Figure 8, this example tests the singular behavior of ϕ\phi near a cornor g(π8)g(\frac{\pi}{8}) with n=64n=64. The result confirms the estimates in (44) and (45), which shows the solution ϕ\phi is very accurate through our quadrature method.

Refer to caption
Figure 8. Singular behavior of ϕ\phi near the corner. ϕs\phi_{s} (stars): density obtained by the single layer representation. ϕd\phi_{d} (circles): density obtained by the double layer representation. The solid curves is the theoretical behavior. Details are given in Example 5.2.

In the third test, we solve the same problem using n=4,8,,64n=4,8,\cdots,64 and evaluate the field at a specific target point x=3+3ix=3+3i to test the convergence rate. The target point xx is very close to the boundary. Its nearest two preimages of xx under transformed parameterization are 3.0472361604851540.050219779775915i3.047236160485154-0.050219779775915i and 4.4280399702250410.649002137868717i4.428039970225041-0.649002137868717i. The results of this test are shown in Figure 9. When n36n\leqslant 36, the convergence rate of proposed method is exponential and mainly govern by the second preimage. When n40n\geqslant 40, the algebraic term nαpn^{-\alpha p} becomes the dominant part of the error.

Refer to caption
Figure 9. Relative error of evaluating u(x)u(x) of Helmholtz equation using trapezoidal rule (stars) and modified trapezoidal (circles) and their theoretical convergence rate (solid curves). The red and blue lines plot the predicted convergence rate. (a) Single layer potential. (b) Double layer potential.

In the fourth test, we solve the same problem using n=64n=64 and evaluate the field in a sector defined by

{g(π8)+reiθ:r[108,1],θ[π8arctan12,π8+arctan12]},\left\{g\left(\frac{\pi}{8}\right)+re^{i\theta}:r\in[10^{-8},1],\theta\in\left[\frac{\pi}{8}-\arctan\frac{1}{2},\frac{\pi}{8}+\arctan\frac{1}{2}\right]\right\},

which is extremely close to the corner. We use a 100×100100\times 100 grid that is uniform in θ\theta and logarithmic in rr. 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 [r1,r][r^{-1},r] in (51). However, it is still much better than the classic method.

Refer to caption
Figure 10. Test on the extremely close corner field evaluation for Helmholtz equation. (a) Single layer potential without substraction technique. (b) Double layer potential without substraction technique. (c) Double layer potential with substraction technique.

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.