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

Double-Exponential transformation:
A quick review of a Japanese traditionthanks: This is a preliminary version of an article to be included in ICIAM 2023, Tokyo Intelligencer.

Kazuo Murota  and  Takayasu Matsuo The Institute of Statistical Mathematics, Tokyo 190-8562, Japan; and Faculty of Economics and Business Administration, Tokyo Metropolitan University, Tokyo 192-0397, Japan, murota@tmu.ac.jp Department of Mathematical Informatics, Graduate School of Information Science and Technology, University of Tokyo, Tokyo 113-8656, Japan matsuo@mist.i.u-tokyo.ac.jp
(January 5, 2023)
Abstract

This article is a short introduction to numerical methods using the double exponential (DE) transformation, such as tanh-sinh quadrature and DE-Sinc approximation. The DE-based methods for numerical computation have been developed intensively in Japan and the objective of this article is to describe the history in addition to the underlying mathematical ideas.

Keywords: Double exponential transformation, DE integration formula, tanh-sinh quadrature, DE-Sinc method.

1 Introduction

The double exponential (DE) transformation is a generic name of variable transformations (changes of variables) used effectively in numerical computation on analytic functions, such as numerical quadrature and function approximation. A typical DE transformation is a change of variable xx to another variable tt by x=ϕ(t)x=\phi(t) with the function

ϕ(t)=tanh(π2sinht).\phi(t)=\tanh\left(\frac{\pi}{2}\sinh t\right).

The term “double exponential” refers to the property that the derivative

ϕ(t)=π2coshtcosh2(π2sinht)\phi^{\prime}(t)=\frac{\frac{\pi}{2}\cosh t}{\cosh^{2}(\frac{\pi}{2}\sinh t)}

decays double exponentially

ϕ(t)exp(π2exp|t|)\phi^{\prime}(t)\approx\exp\left(-\frac{\pi}{2}\exp|t|\right) (1)

as |t||t|\to\infty.

This article is a short introduction to numerical methods using DE transformations such as the double exponential formula (tanh-sinh quadrature) for numerical integration and the DE-Sinc method for function approximation. The DE-based methods for numerical computation have been developed intensively in Japan [5, 7, 34, 38] and a workshop titled “Thirty Years of the Double Exponential Transforms” was held at RIMS (Research Institute for Mathematical Sciences, Kyoto University) on September 1–3, 2004 [14]. The objective of this article is to describe the history of the development of the DE-based methods in addition to the underlying mathematical ideas.

This article is written to the memory of Professors Masao Iri (President of Japan SIAM, 1996), Masatake Mori (President of Japan SIAM, 1998), and Masaaki Sugihara (Vice President of Japan SIAM, 2008).

2 DE formula for numerical integration

The DE formula for numerical integration invented by Hidetosi Takahasi and Masatake Mori [37] was first presented at the RIMS workshop “Studies on Numerical Algorithms,” held on October 31–November 2, 1972. The celebrated term of “double exponential formula” was proposed there, as we can see in the proceedings paper [36].

2.1 Quadrature formula

The DE formula was motivated by the fact that the trapezoidal rule is highly effective for integrals over the infinite interval (,+)(-\infty,+\infty). For an integral

I=11f(x)dx,I=\int_{-1}^{1}f(x){\rm d}x,

for example, we employ a change of variable x=ϕ(t)x=\phi(t) using some function ϕ(t)\phi(t) satisfying ϕ()=1\phi(-\infty)=-1 and ϕ(+)=1\phi(+\infty)=1, and apply the trapezoidal rule to the transformed integral

I=+f(ϕ(t))ϕ(t)dt,I=\int_{-\infty}^{+\infty}f(\phi(t))\phi^{\prime}(t){\rm d}t,

to obtain an infinite sum of discretization

Ih=hk=f(ϕ(kh))ϕ(kh).I_{h}=h\sum_{k=-\infty}^{\infty}f(\phi(kh))\phi^{\prime}(kh). (2)

A finite-term approximation to this infinite sum results in an integration formula

Ih(N)=hk=NNf(ϕ(kh))ϕ(kh).I_{h}^{(N)}=h\sum_{k=-N}^{N}f(\phi(kh))\phi^{\prime}(kh). (3)

Such combination of the trapezoidal rule with a change of variables was conceived by several authors [2, 24, 25, 35] around 1970.

The error IIh(N)I-I_{h}^{(N)} of the formula (3) consists of two parts, the error EDIIhE_{\rm D}\equiv I-I_{h} incurred by discretization (2) and the error ETIhIh(N)E_{\rm T}\equiv I_{h}-I_{h}^{(N)} caused by truncation of an infinite sum IhI_{h} to a finite sum Ih(N)I_{h}^{(N)}.

The major findings of Takahasi and Mori consisted of two ingredients. The first was that the double exponential decay of the transformed integrand f(ϕ(t))ϕ(t)f(\phi(t))\phi^{\prime}(t) achieves the optimal balance (or trade-off) between the discretization error EDE_{\rm D} and the truncation error ETE_{\rm T}. The second finding was that a concrete choice of

ϕ(t)=tanh(π2sinht)\phi(t)=\tanh\left(\frac{\pi}{2}\sinh t\right) (4)

is suitable for this purpose thanks to the double exponential decay shown in (1). With this particular function ϕ(t)\phi(t) the formula (3) reads

Ih(N)=hk=NN\displaystyle I_{h}^{(N)}=h\sum_{k=-N}^{N} f(tanh(π2sinh(kh)))(π/2)cosh(kh)cosh2((π/2)sinh(kh)),\displaystyle f\left(\tanh\left(\frac{\pi}{2}\sinh(kh)\right)\right)\frac{({\pi}/{2})\cosh(kh)}{\cosh^{2}(({\pi}/{2})\sinh(kh))},

which is sometimes called “tanh-sinh quadrature.” The error of this formula is estimated roughly as

|IIh(N)|exp(CN/logN)\big{|}I-I_{h}^{(N)}\big{|}\approx\exp(-CN/\log N) (5)

with some C>0C>0. The DE formula has an additional feature that it is robust against end-point singularities of integrands.

The idea of the DE formula can be applied to integrals over other types of intervals of integration. For example,

I=0+f(x)dx,x=exp(π2sinht),\displaystyle I=\int_{0}^{+\infty}f(x){\rm d}x,\ \ x=\exp\left(\frac{\pi}{2}\sinh t\right), (6)
I=+f(x)dx,x=sinh(π2sinht).\displaystyle I=\int_{-\infty}^{+\infty}f(x){\rm d}x,\ \ x=\sinh\left(\frac{\pi}{2}\sinh t\right). (7)

Such formulas are also referred to as the double exponential formula. The DE formula is available in Mathematica (NIntegrate), Python library SymPy, Python library mpmath, C++ library Boost, Haskell package integration, etc.

2.2 Optimality

Optimality of the DE transformation (4) was discussed already by Takahasi and Mori [37]. Numerical examples also support its optimality. Figure 1 (taken from [5]) shows the comparison of the DE transformation (4) against other transformations

ϕ(t)\displaystyle\phi(t) =tanht,\displaystyle=\tanh t,
ϕ(t)\displaystyle\phi(t) =tanh(π2sinht3),\displaystyle=\tanh\left(\frac{\pi}{2}\sinh t^{3}\right),
ϕ(t)\displaystyle\phi(t) =erf(t)=2π0texp(s2)ds\displaystyle={\rm erf}(t)=\frac{2}{\sqrt{\pi}}\int_{0}^{t}\exp(-s^{2}){\rm d}s

for

111(x2)(1x)1/4(1+x)3/4dx\int_{-1}^{1}\frac{1}{(x-2)(1-x)^{1/4}(1+x)^{3/4}}{\rm d}x

that has integrable singularities at both ends of the interval of integration. The DE formula converges much faster than others. It is known that the tanh-rule (using ϕ(t)=tanht\phi(t)=\tanh t) has the (rough) convergence rate exp(CN)\exp(-C\sqrt{N}), in contrast to exp(CN/logN)\exp(-CN/\log N) in (5) of the DE formula.

Refer to caption
Figure 1: Comparison of the efficiency of several variable transformations for the integral 11dx/{(x2)(1x)1/4(1+x)3/4}\int_{-1}^{1}{\rm d}x/\{(x-2)(1-x)^{1/4}(1+x)^{3/4}\}; taken from Mori [5, Fig. 4] with permission from the European Mathematical Society; uu and NN in the figure correspond, respectively, to tt and 2N+12N+1 in the present notation.

The optimality argument of [37], based on complex function theory, was convincing enough for the majority of scientists and engineers, but not perfectly satisfactory for theoreticians. Rigorous mathematical argument for optimality of the DE formula was addressed by Masaaki Sugihara [28, 29, 30] in the 1980–1990s in a manner comparable to Stenger’s framework [26] for optimality of the tanh rule. It is shown in [30] (also [42]) that the DE formula is optimal with respect to a certain class (Hardy space) of integrand functions.

In principle, for each class of integrand functions we may be able to find an optimal quadrature formula, and the optimal formula naturally depends on our choice of the admissible class of integrands. Thus the optimality of a quadrature formula is only relative. However, it was shown by Sugihara that no nontrivial class of integrand functions exists that admits a quadrature formula with smaller errors than the DE formula. We can interpret this fact as the absolute optimality of the DE formula.

2.3 Fourier-type integrals

For Fourier-type integrals like

I=0+f1(x)sinxdx,I=\int_{0}^{+\infty}f_{1}(x)\sin x\ {\rm d}x,

the DE formula like (6) is not very successful. To cope with Fourier-type integrals, a novel technique, in the spirit of DE transformation, was proposed by Ooura and Mori [22, 23]. In [22] they proposed to use

ϕ(t)=t1exp(Ksinht)\phi(t)=\frac{t}{1-\exp(-K\sinh t)}

(K>0K>0), which maps (,+)(-\infty,+\infty) to (0,+)(0,+\infty) in such a way that (i) ϕ(t)0\phi^{\prime}(t)\to 0 double exponentially as tt\to-\infty and (ii) ϕ(t)t\phi(t)\to t double exponentially as t+t\to+\infty. The proposed formula changes the variable by x=Mϕ(t)x=M\phi(t) to obtain

I=M+f1(Mϕ(t))sin(Mϕ(t))ϕ(t)dt,\displaystyle I=M\int_{-\infty}^{+\infty}\!\!f_{1}(M\phi(t))\sin(M\phi(t))\phi^{\prime}(t){\rm d}t,

to which the trapezoidal rule with equal mesh hh is applied, where MM and hh are chosen to satisfy Mh=πMh=\pi. The transformed integrand decays double-exponentially toward tt\to-\infty because of the factor ϕ(t)\phi^{\prime}(t) and also toward t+t\to+\infty because Mϕ(t)M\phi(t) for t=kht=kh (sample point of the trapezoidal rule) tends double-exponentially to Mt=Mkh=kπMt=Mkh=k\pi, at which sine function vanishes. Another (improved) transformation function

ϕ(t)=t1exp(2tα(1et)β(et1)),\phi(t)=\frac{t}{1-\exp(-2t-\alpha(1-{\rm e}^{-t})-\beta({\rm e}^{t}-1))},

is given in [23], where β=1/4\beta=1/4 and α=β/1+Mlog(1+M)/(4π)\alpha=\beta/\sqrt{1+M\log(1+M)/(4\pi)}.

2.4 IMT rule

In 1969, prior to the DE formula, a remarkable quadrature formula was proposed by Masao Iri, Sigeiti Moriguti, and Yoshimitsu Takasawa [2]. The formula is known today as the “IMT rule,” which name was introduced in [35] and used in [1].

For an integral

I=01f(x)dxI=\int_{0}^{1}f(x){\rm d}x

over [0,1][0,1], the IMT rule applies the trapezoidal rule to the integral

I=01f(ϕ(t))ϕ(t)dtI=\int_{0}^{1}f(\phi(t))\phi^{\prime}(t){\rm d}t

resulting from the transformation by

ϕ(t)=1Q0texp[(1τ+11τ)]dτ,\phi(t)=\frac{1}{Q}\int_{0}^{t}\exp\left[-\left(\frac{1}{\tau}+\frac{1}{1-\tau}\right)\right]{\rm d}\tau,

where

Q=01exp[(1τ+11τ)]dτQ=\int_{0}^{1}\exp\left[-\left(\frac{1}{\tau}+\frac{1}{1-\tau}\right)\right]{\rm d}\tau

is a normalizing constant to render ϕ(1)=1\phi(1)=1.

The transformed integrand g(t)=f(ϕ(t))ϕ(t)g(t)=f(\phi(t))\phi^{\prime}(t) has the property that all the derivatives g(j)(t)g^{(j)}(t) (j=1,2,)(j=1,2,\ldots) vanish at t=0,1t=0,1. By the Euler–Maclaurin formula, this indicates that the IMT rule should be highly accurate. Indeed, it was shown in [2] via a complex analytic method that the error of the IMT rule can be estimated roughly as exp(CN)\exp(-C\sqrt{N}), which is much better than N4N^{-4} of the Simpson rule, say, but not as good as exp(CN/logN)\exp(-CN/\log N) of the DE formula. Variants of the IMT rule have been proposed for possible improvement [4, 10, 21, 29], but it turned out that an IMT-type rule, transforming 01dx\int_{0}^{1}{\rm d}x to 01dt\int_{0}^{1}{\rm d}t rather than to +dt\int_{-\infty}^{+\infty}{\rm d}t, cannot outperform the DE formula.

3 DE-Sinc methods

Changing variables is also useful in the Sinc numerical methods. The book [27] of Stenger in 1993 describes this methodology to the full extent, focusing on single exponential (SE) transformations like ϕ(t)=tanh(t/2)\phi(t)=\tanh(t/2). Use of the double exponential transformation in the Sinc numerical methods was initiated by Sugihara [31, 33] around 2000, with subsequent development mainly in Japan. Such numerical methods are often called the DE-Sinc methods. The subsequent results obtained in the first half of 2000s are described in [5, 7, 34].

3.1 Sinc approximation

The Sinc approximation of a function f(x)f(x) over (,)(-\infty,\infty) is given by

f(x)k=NNf(kh)S(k,h)(x),f(x)\approx\sum_{k=-N}^{N}f(kh)S(k,h)(x), (8)

where S(k,h)(x)S(k,h)(x) is the so-called Sinc function defined by

S(k,h)(x)=sin[(π/h)(xkh)](π/h)(xkh)S(k,h)(x)=\frac{\sin[(\pi/h)(x-kh)]}{(\pi/h)(x-kh)}

and the step size hh is chosen appropriately, depending on NN. The technique of variable transformation x=ϕ(t)x=\phi(t) is also effective in this context. By applying the formula (8) to f(ϕ(t))f(\phi(t)) we obtain

f(ϕ(t))k=NNf(ϕ(kh))S(k,h)(t),f(\phi(t))\approx\sum_{k=-N}^{N}f(\phi(kh))S(k,h)(t),

or equivalently,

f(x)k=NNf(ϕ(kh))S(k,h)(ϕ1(x)).f(x)\approx\sum_{k=-N}^{N}f(\phi(kh))S(k,h)(\phi^{-1}(x)).

To approximate f(x)f(x) over [0,1][0,1], for example, we choose

ϕ(t)\displaystyle\phi(t) =12tanht2+12,\displaystyle=\frac{1}{2}\tanh\frac{t}{2}+\frac{1}{2}, (9)
ϕ(t)\displaystyle\phi(t) =12tanh(π2sinht)+12,\displaystyle=\frac{1}{2}\tanh\left(\frac{\pi}{2}\sinh t\right)+\frac{1}{2}, (10)

etc. The methods using (9) and (10) are often called the SE- and DE-Sinc approximations, respectively. The error of the SE-Sinc approximation is roughly exp(CN)\exp(-C\sqrt{N}) and that of the DE-Sinc approximation is exp(CN/logN)\exp(-CN/\log N).

These approximation schemes are compared in Fig. 2 (taken from [34]) for function

f(x)=x1/2(1x)3/4f(x)=x^{1/2}(1-x)^{3/4}

over [0,1][0,1]. In Fig. 2, “Ordinary-Sinc” means the SE-Sinc approximation using (9), and the polynomial interpolation with the Chebyshev nodes is included for comparison.

Refer to caption
Figure 2: Errors in the Sinc approximations for x1/2(1x)3/4x^{1/2}(1-x)^{3/4} using (9) and (10) and the Chebyshev interpolation; taken from Sugihara and Matsuo [34, Fig. 3] with permission from Elsevier; nn in the figure corresponds to NN in (8).

Detailed theoretical analyses on the DE-Sinc method can be found in Sugihara [33] as well as Tanaka et al. [41] and Okayama et al. [16, 20]. An optimization technique is used to improve the DE-Sinc method in Tanaka and Sugihara [39].

3.2 Application to other problems

Once a function approximation scheme is at hand, we can apply it to a variety of numerical problems. Indeed this is also the case with the DE-Sinc approximation as follows.

  • Indefinite integration by Muhammad and Mori [8], Tanaka et al. [40], and Okayama and Tanaka [19].

  • Initial value problem of differential equations by Nurmuhammad et al. [11] and Okayama [15].

  • Boundary value problem of differential equations by Sugihara [32], followed by Nurmuhammad et al. [12, 13] and Mori et al. [6].

  • Volterra integral equation by Muhammad et al. [9] and Okayama et al. [18].

  • Fredholm integral equation by Kobayashi et al. [3], Muhammad et al. [9], and Okayama et al. [17].

Acknowledgement. The authors are thankful to Ken’ichiro Tanaka and Tomoaki Okayama for their support in writing this article.

References

  • [1] P. J. Davis and P. Rabinowitz: Methods of Numerical Integration, Academic Press, 1st ed., 1975; 2nd ed., 1984.
  • [2] M. Iri, S. Moriguti and Y. Takasawa: On a certain quadrature formula (in Japanese), RIMS Kokyuroku, 91 (1970), 82–118. English translation in J. Comput. Appl. Math., 17 (1987), 3–20.
  • [3] K. Kobayashi, H. Okamoto, and J. Zhu: Numerical computation of water and solitary waves by the double exponential transform, J. Comput. Appl. Math., 152 (2003), 229–241.
  • [4] M. Mori: An IMT-type double exponential formula for numerical integration, Publ. RIMS, 14 (1978), 713–729.
  • [5] M. Mori: Discovery of the double exponential transformation and its developments, Publ. RIMS, 41 (2005), 897–935.
  • [6] M. Mori, A. Nurmuhammad, and M. Muhammad: DE-sinc method for second order singularly perturbed boundary value problems, Japan J. Indust. Appl. Math., 26 (2009), 41–63.
  • [7] M. Mori and M. Sugihara: The double exponential transformations in numerical analysis, J. Comput. Appl. Math., 127 (2001), 287–296.
  • [8] M. Muhammad and M. Mori: Double exponential formulas for numerical indefinite integration, J. Comput. Appl. Math., 161 (2003), 431–448.
  • [9] M. Muhammad, A. Nurmuhammad, M. Mori, and M. Sugihara: Numerical solution of integral equations by means of the Sinc collocation method based on the double exponential transformation, J. Comput. Appl. Math., 177 (2005), 269–286.
  • [10] K. Murota and M. Iri: Parameter tuning and repeated application of the IMT-type transformation in numerical quadrature, Numer. Math., 38 (1982), 347–363.
  • [11] A. Nurmuhammad, M. Muhammad, and M. Mori: Numerical solution of initial value problems based on the double exponential transformation, Publ. RIMS, 41 (2005), 937–948.
  • [12] A. Nurmuhammad, M. Muhammad, and M. Mori: Sinc-Galerkin method based on the DE transformation for the boundary value problem of fourth-order ODE, J. Comput. Appl. Math., 206 (2007), 17–26.
  • [13] A. Nurmuhammad, M. Muhammad, M. Mori, and M. Sugihara: Double exponential transformation in the Sinc-collocation method for a boundary value problem with fourth order ordinary differential equation, J. Comput. Appl. Math., 182 (2005), 32–50.
  • [14] H. Okamoto and M. Sugihara, eds.: Thirty Years of the Double Exponential Transforms, Special issue of Publ. RIMS, 41 (2005), Issue 4.
  • [15] T. Okayama: Theoretical analysis of Sinc-collocation methods and Sinc-Nyström methods for systems of initial value problems, BIT Numer. Math., 58 (2018), 199–220.
  • [16] T. Okayama, T. Matsuo, and M. Sugihara: Error estimates with explicit constants for Sinc approximation, Sinc quadrature and Sinc indefinite integration, Numer. Math., 124 (2013), 361–394.
  • [17] T. Okayama, T. Matsuo, and M. Sugihara: Improvement of a Sinc-collocation method for Fredholm integral equations of the second kind, BIT Numer. Math., 51 (2011), 339–366.
  • [18] T. Okayama, T. Matsuo, and M. Sugihara: Theoretical analysis of Sinc-Nyström methods for Volterra integral equations, Math. Comput., 84 (2015), 1189–1215.
  • [19] T. Okayama and K. Tanaka: Yet another DE-Sinc indefinite integration formula, Dolomites Res. Notes Approx., 15 (2022), 105–116.
  • [20] T. Okayama, K. Tanaka, T. Matsuo, and M. Sugihara: DE-Sinc methods have almost the same convergence property as SE-Sinc methods even for a family of functions fitting the SE-Sinc methods, Part I: definite integration and function approximation, Numer. Math., 125 (2013), 511–543.
  • [21] T. Ooura: An IMT-type quadrature formula with the same asymptotic performance as the DE formula, J. Comput. Appl. Math., 213, (2008), 232–239.
  • [22] T. Ooura and M. Mori: The double exponential formula for oscillatory functions over the half infinite interval, J. Comput. Appl. Math., 38 (1991), 353–360.
  • [23] T. Ooura and M. Mori: A robust double exponential formula for Fourier type integrals, J. Comput. Appl. Math., 112 (1999), 229–241.
  • [24] C. Schwartz: Numerical integration of analytic functions, J. Comput. Phys., 4 (1969), 19–29.
  • [25] F. Stenger: Integration formulas based on the trapezoidal formula, J. Inst. Math. Appl., 12 (1973), 103–114.
  • [26] F. Stenger: Optimal convergence of minimum norm approximations in HpH_{p}, Numer. Math., 29 (1978), 345–362.
  • [27] F. Stenger: Numerical Methods Based on Sinc and Analytic Functions, Springer, 1993.
  • [28] M. Sugihara: On optimality of the double exponential formulas (in Japanese), RIMS Kokyuroku, 585 (1986), 150–175.
  • [29] M. Sugihara: On optimality of the double exponential formulas, II (in Japanese), RIMS Kokyuroku, 648 (1988), 20–38.
  • [30] M. Sugihara: Optimality of the double exponential formula—functional analysis approach, Numer. Math., 75 (1997), 379–395.
  • [31] M. Sugihara: Sinc approximation using double exponential transformations (in Japanese), RIMS Kokyuroku, 990 (1997), 125–134.
  • [32] M. Sugihara: Double exponential transformation in the Sinc-collocation method for two-point boundary value problems, J. Comput. Appl. Math., 149 (2002) 239–250.
  • [33] M. Sugihara: Near optimality of the sinc approximation, Math. Comput., 72 (2003), 767–786.
  • [34] M. Sugihara and T. Matsuo: Recent developments of the Sinc numerical methods, J. Comput. Appl. Math., 164/165 (2004), 673–689.
  • [35] H. Takahasi and M. Mori: Quadrature formulas obtained by variable transformation, Numer. Math., 21 (1973), 206–219.
  • [36] H. Takahasi and M. Mori: Quadrature formulas obtained by variable transformation (2) (in Japanese), RIMS Kokyuroku, 172 (1973), 88–104.
  • [37] H. Takahasi and M. Mori: Double exponential formulas for numerical integration, Publ. RIMS, 9 (1974), 721–741.
  • [38] K. Tanaka and T. Okayama: Numerical Methods with Variable Transformations (in Japanese), Iwanami, 2023 (forthcoming).
  • [39] K. Tanaka and M. Sugihara: Construction of approximation formulas for analytic functions by mathematical optimization, in G. Baumann (ed.): New Sinc Methods of Numerical Analysis, Birkhäuser (2021), 341–368.
  • [40] K. Tanaka, M. Sugihara, and K. Murota: Numerical indefinite integration by double exponential sinc method, Math. Comput., 74 (2004), 655–679.
  • [41] K. Tanaka, M. Sugihara, and K. Murota: Function classes for successful DE-Sinc approximations, Math. Comput., 78 (2009), 1553–1571.
  • [42] K. Tanaka, M. Sugihara, K. Murota, and M. Mori: Function classes for double exponential integration formulas, Numer. Math., 111 (2009), 631–655.