Abstract
Applying the aliasing asymptotics on the coefficients of the Chebyshev expansions, the convergence rate of Clenshaw–Curtis quadrature for Jacobi weights is presented for functions with algebraic endpoint singularities. Based upon a new constructed symmetric Jacobi weight, the optimal error bound is derived for this kind of function. In particular, in this case, the Clenshaw–Curtis quadrature for a new constructed Jacobi weight is exponentially convergent. Numerical examples illustrate the theoretical results.
1. Introduction
The computation of the integral of the form
is one of the oldest and most important topics in numerical analysis [1], where is the Jacobi weight function, () is a function which has singularities at the endpoints, and is a suitably smooth function in . This kind of integrals arise widely in several applications, in particular in the numerical solution of singular and weakly singular integral equations by boundary element methods [2,3,4].
Clenshaw–Curtis quadrature for has been extensively studied since Clenshaw and Curtis [5] in 1960, whose formulae is usually derived from polynomial interpolation by a finite sum
based on the Chebyshev points and the weights which can be computed by sums of trigonometric functions. This rule is exact for the set of polynomials of degree up to n. A fast evaluation of its weights was given by Gentleman [6] and Woldvogel [7]. Its quadrature nodes with the Chebyshev density are nested, which makes it a suitable method to achieve fast convergence. Then Clenshaw–Curtis quadrature is widely used for numerical integration [8,9]. For Jacobi weight function, Clenshaw-Curtis quadrature has been extensively studied in a series of papers of Piessens [10,11] and Piessens and Branders [12,13].
During the past few decades, the convergence rates of Gauss–Legendre quadrature for integrals with singularities at one or both endpoints have received considerable attention [14,15,16,17,18,19,20]. It was shown by Verlinden [21] that for the integrand with being not an integer and analytic inside a neighborhood of the interval , the asymptotic error expansion of the n-point Gauss–Legendre quadrature is and the convergence rate is . Recently, Wang [22] showed that for the integrand where and , the error of an ()-point Clenshaw–Curtis quadrature with can be expanded as where are some constants independent of n and , and the convergence rate is , up to one power of n better than that given in Xiang and Bornemann [23] for this special case, where s is defined by
Here we study the convergence rate of the Clenshaw-Curtis quadrature rule for for functions with algebraic endpoint singularities. We firstly show the convergence rate. From the proof of Theorem 1, it directly follows for general functions of limited regularities. In addition, using the symmetry of a new Jacobi weight with , it yields the optimal convergence rate. In particular, in the case the function with algebraic endpoint singularities is known where , and is analytic in Bernstein ellipse including , then we will see that the Clenshaw-Curtis quadrature is exponentially convergent from a new constructed Jacobi weight function.
2. Numerical Analysis
The Clenshaw–Curtis quadrature rule for Jacobi weights has been extensively studied in [7,8,9,10]. If a function satisfies a Dini-Lipschitz condition on the interval , then its Chebyshev series expansion is
where is the first kind of Chebyshev polynomial of degree j, and the prime denotes the summation whose first term is halved. The Chebyshev coefficient is defined by
which can be efficiently computed by FFT [24].
The interpolant of at the Clenshaw-Curtis points , is of the form
Then the Clenshaw–Curtis quadrature is defined by
where
are the modified moments. The recurrence formulae for the evaluation of the modified moments are
with
(see [12]). Furthermore, the asymptotic expression is given by using the asymptotic theory of Fourier coefficients [12] as
The forward recursion is perfectly numerically stable [12], except in two cases:
For these two cases, the modified moments are stably computed by Oliver algorithm in [25] with one starting values and one end value to compute the modified moments. In this paper we consider .
Recalling (2.13.1.11) in [26] we know that
which gives
Lemma 1.
[27,28] Suppose that , and , then it holds that
where and denotes the smallest integer not less than z.
Lemma 2.
[22] For where and , the Chebyshev coefficients of is given by
Further, if one of γ and δ is an integer, then
2.1. The Convergence Rate of Clenshaw–Curtis Quadrature for Jacobi Weights Applied to Functions with Algebraic Endpoint Singularities
In this Section, based on the decay rate of Chebyshev coefficients and the aliasing errors of integration of Chebyshev polynomials (13), we derive the convergence rate of Clenhshaw–Curtis quadrature for Jacobi weights applied to functions with algebraic endpoint singularities.
Theorem 1.
Let where , with . Then, the convergence rate of n-point Clenshaw-Curtis quadrature rule for the Jacobi weights is
Proof.
From
it follows
where
From Lemma 1, we obtain for large k
From (13), we see that
and
since , which, together with (10), yields
and
Then we have
In the case , it follows for , and , then
These together lead to (18). □
Remark 1.
We will see from the numerical examples in Section 3 that in the case and , the bound (18) is attainable and then optimal. In other cases, we may define such that and the integral can be rewritten as
and then for the new Jacobi weight function , from Theorem 1, we get
which is optimal.
Remark 2.
If where , and , then the integral can be represented as
then, from Wang [22], if , we see that the Clenhsaw-Curtis quadrature with for has the convergence rate
For this case, in Section 2.2 we may construct a new Jacobi weight such that the Clenshaw-Curtis quadrature is exponentially convergent if is analytic inside a neighborhood of the interval .
Let () [23]. From the proof of Theorem 1, it directly follows for general functions of limited regularities.
Corollary 1.
Suppose (), then the convergence rate of n-point Clenshaw-Curtis quadrature rule for the Jacobi weight satisfies
2.2. The Convergence Rate of Clenshaw–Curtis Quadrature for Jacobi Weights Applied to Analytic Functions
Lemma 3.
(Bernstein [29]) If f is analytic with in the region bounded by the ellipse with foci and major and minor semiaxis lengths summing to , then for each ,
In the case and an analytic function, the Clenshaw–Curtis quadrature is exponentially convergent with .
Without loss of generality, for analyzing the convergence rate, assume and and instead of and , respectively.
Theorem 2.
If f is analytic with in the region bounded by the ellipse with foci and major and minor semiaxis lengths summing to , then
Proof.
From (13) and Lemma 3, we see that
then it follows
and
which leads to
In the case , it follows for , and , then
These together lead to the desired result. □
3. Numerical Examples
In this section, we confirm the convergence rate of Clenshaw–Curtis quadrature for Jacobi weights and compare it with Gauss–Jacobi quadrature All the numerical results are computed in an Apple laptop with 1.6 GHz Intel Core i5 and 4 GB 1600 MHz DDR3.
For the n-point Clenshaw–Curtis quadrature rule (6), the coefficients of the interpolant is evaluated by FFT, and the moments , except in two cases (11) and (12), are computed by the forward recursion (9), which is perfectly numerically stable. For these two cases, the moments are calculated by the Oliver algorithm in [25]. While for the Gauss–Jacobi quadrature, we cite in Chebfun [30], which costs operations for n-point Gauss–Jacobi quadrature.
Example 1.
Let us consider
where , , , and , and , , , and , respectively. Both the case satisfy . The error bound (18) with is attainable, which is displayed in Figure 1.
Figure 1.
The absolute errors for the n-point Clenshaw–Curtis quadrature rule for integral (23) compared with the absolute errors of Gauss-Jacobi quadrature for : , , , and (left column), and , , , and (right column), respectively.
Example 2.
Let us consider
where , , , and , is not satisfied . The numerical example shows the convergence rate is better than the error bound (18) with (see Figure 2).
Figure 2.
The absolute errors for the n-point Clenshaw–Curtis quadrature rule for integral (24) compared with the absolute errors of Gauss-Jacobi quadrature for , , , and (right column), respectively.
Setting , then the n-point Clenshaw-Curtis quadrature rule with the new Jacobi weight function for have the optimal convergence rate . The absolute errors are displayed in Figure 3.
Figure 3.
The absolute errors for the n-point Clenshaw–Curtis quadrature rule for compared with the absolute errors of Gauss-Jacobi quadrature for .
Example 3.
Let us consider
where , and , and , and , respectively. Figure 4 illustrates the exponential convergence both for the n-point Clenshaw–Curtis quadrature rule and Gauss–Jacobi quadrature.
Figure 4.
The absolute errors for the n-point Clenshaw–Curtis quadrature rule for integral (25) compared with the absolute errors of Gauss-Jacobi quadrature for : , and (left column), and , and (right column), respectively.
Example 4.
Let us consider
where , and , and , and , respectively. For functions of interior singularities, the estimated convergence rate (20) is attainable too (see Figure 5).
Figure 5.
The absolute errors for the n-point Clenshaw–Curtis quadrature rule for integral (26) compared with the absolute errors of Gauss–Jacobi quadrature for : , and (left column), and , and (right column), respectively.
Both the n-point Clenshaw–Curtis quadrature rule and Gauss–Jacobi quadrature are efficient. For the n-point Clenshaw-Curtis quadrature rule for computing each integral for n = 10:2:1000, the elapsed time totally is 0.333967 s, while the elapsed time totally is 11.982476 s for the Gauss–Jacobi quadrature.
4. Conclusions
In this paper, we have studied the convergence rate of Clenshaw–Curtis quadrature for integrals with Jacobi weights and functions with algebraic endpoint singularities. The decay rate of the Chebyshev coefficients for the integrand multiplied by Jacobi weights is combined with the aliasing errors of the integration of Chebyshev polynomials by Clenshaw–Curtis quadrature.
Author Contributions
The authors have equally contributed to this paper. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by NSF of China No. 11771454.
Acknowledgments
The authors are grateful for the referees’ helpful suggestions and insightful comments, which helped improve the manuscript significantly.
Conflicts of Interest
The authors declare no conflict of interest. The funders had no role in the design of study; in the collection, analysis, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.
References
- Brass, H.; Petras, K. Quadrature Theory: The Theory of Numerical Integration on a Compact Interval; American Mathematical Society: Providence, RI, USA, 2011. [Google Scholar]
- Aimi, A.; Diligenti, M.; Monegato, G. New numerical integration schemes for applications of Galerkin BEM to 2D problems. Int. J. Numer. Methods Eng. 1997, 40, 1977–1999. [Google Scholar] [CrossRef]
- Diligenti, M.; Monegato, G. Integral evaluation in the BEM solution of (hyper)singular integral equations. 2D problems on polygonal domains. J. Comput. Appl. Math. 1997, 81, 29–57. [Google Scholar] [CrossRef]
- Fearwheather, G.; Rizzo, F.J.; Shippy, D.J. Computation of double integrals in the boundary integral equation method. In Advances in Computer Methods for Partial Differential Equations III; Vichnevetsky, R., Stepleman, R.S., Eds.; IMACS: New Brunswick, NJ, USA, 1979; pp. 331–334. [Google Scholar]
- Clenshaw, C.W.; Curtis, A.R. A method for numerical integration on an automatic computer. Numer. Math. 1960, 2, 197–205. [Google Scholar] [CrossRef]
- Gentleman, W.M. Implementing Clenshaw-Curtis quadrature. Commun. ACM 1972, 15, 337–346. [Google Scholar] [CrossRef]
- Waldvogel, J. Fast construction of the Fejér and Clenshaw-Curtis quadrature rules. BIT Numer. Math. 2006, 46, 195–202. [Google Scholar] [CrossRef]
- Driscoll, T.A.; Hale, N.; Trefethen, L.N. Chebfun Guide; Pafnuty Publications: Oxford, UK, 2014. [Google Scholar]
- Trefethen, L.N. Approximation Theory and Approximation Practice; SIAM: Philadelphia, PA, USA, 2013. [Google Scholar]
- Piessens, R. Modified Clenshaw-Curtis integration and applications to numerical computation of integral transforms. In Numerical Integration; Keast, P., Fairweather, G., Eds.; Springer: Dordrecht, The Netherlands, 1987; pp. 35–51. [Google Scholar]
- Piessens, R. Computing integral transforms and solving integral equations using Chebyshev polynomial approximations. J. Comput. Appl. Math. 2000, 121, 113–124. [Google Scholar] [CrossRef]
- Piessens, R.; Branders, M. The evaluation and application of some modified moments. BIT Numer. Math. 1973, 13, 443–450. [Google Scholar] [CrossRef]
- Piessens, R.; Branders, M. On the computation of fourier transforms of singular functions. J. Comput. Appl. Math. 1992, 43, 159–169. [Google Scholar] [CrossRef]
- Chawla, M.M.; Jain, M.K. Asymptotic error estimates for the Gauss quadrature formula. Math. Comp. 1968, 22, 91–97. [Google Scholar] [CrossRef]
- Kzaz, M. Convergence acceleration of some Gaussian quadrature formula for analytic functions. Appl. Numer. Math. 1992, 10, 481–496. [Google Scholar] [CrossRef]
- Lubinsky, D.S.; Rabinowitz, P. Rates of convergence of Gaussian quadrature for singular integrands. Math. Comp. 1984, 43, 219–242. [Google Scholar] [CrossRef]
- Rabinowitz, P. Gaussian integration of functions with branch poitns singularities. Int. J. Comput. Math. 1968, 2, 625–638. [Google Scholar] [CrossRef]
- Rabinowitz, P. Rates of convergence of Gauss, Lobatto and Radau intgeration rules for singular integrands. Math. Comp. 1986, 47, 625–638. [Google Scholar] [CrossRef]
- Sidi, A. Asymptotic expansion of Gausss-Legendre quadrature rules for intgrals with an endpoint singularities. Math. Comp. 2009, 78, 1593–1612. [Google Scholar] [CrossRef]
- Sloan, I.H.; Smith, W.E. Product-integration with the Clenshaw-Curtis and related points. Num. Math. 1978, 30, 415–428. [Google Scholar] [CrossRef]
- Verlinden, P. Acceleration of Gauss-Legendre quadrature for an integrand with an endpoint singularity. J. Comput. Appl. Math. 1997, 77, 277–287. [Google Scholar] [CrossRef][Green Version]
- Wang, H. On the convergence rate of Clenshaw-Curtis quadrature for integrals with algebraic endpoint singularities. J. Comput. Appl. Math. 2018, 333, 87–98. [Google Scholar] [CrossRef]
- Xiang, S.; Bornemann, F. On the convergence rates of Gauss and Clenshaw-Curtis quadrature for functions of limited regularity. SIAM J. Numer. Anal. 2012, 50, 2581–2587. [Google Scholar] [CrossRef]
- Trefethen, L.N. Is Gauss quadrature better than Clenshaw-Curtis? SIAM Rev. 2008, 50, 67–87. [Google Scholar] [CrossRef]
- Xiang, S.; He, G.; Wang, H. On fast implementation of Clenshaw-Curtis and Féjer-type quadrature rules. Abstr. Appl. Anal. 2014, 2014, 436164. [Google Scholar] [CrossRef]
- Davis, P.J.; Rabinowitz, P. Methods of Numerical Integration, 2nd ed.; Academic Press: New York, NY, USA, 1984. [Google Scholar]
- Xiang, S.; He, G.; Cho, Y.J. On error bounds of Filon-Clenshaw-Curtis quadrature for highly oscillatory integrals. Adv. Comput. Math. 2015, 41, 573–597. [Google Scholar] [CrossRef]
- Liu, G.; Xiang, S. Clenshaw-Curtis-type quadrature rule for hypersingular integrals with highly oscilltory kernels. Appl. Math. Comput. 2019, 340, 251–267. [Google Scholar]
- Bernstein, S.N. Sur l’ordre de la meilleure approximation des fonctions continues par les polynomes de degré donné. Mem. Cl. Sci. Acad. Roy. Belg. 1912, 4, 1–103. [Google Scholar]
- Trefethen, L.N. Chebfun. Available online: https://www.chebfun.org (accessed on 13 February 2020).
© 2020 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).