Abstract and Applied Analysis

Volume 2013 (2013), Article ID 492507, 10 pages

http://dx.doi.org/10.1155/2013/492507

## Midpoint Derivative-Based Closed Newton-Cotes Quadrature

^{1}Faculty of Electronic Information and Electrical Engineering, Dalian University of Technology, Dalian 116024, China^{2}College of Air Traffic Management, Civil Aviation University of China, Tianjin 300300, China

Received 16 April 2013; Accepted 9 June 2013

Academic Editor: Luca Guerrini

Copyright © 2013 Weijing Zhao and Hongxing Li. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

#### Abstract

A novel family of numerical integration of closed Newton-Cotes quadrature rules is presented which uses the derivative value at the midpoint. It is proved that these kinds of quadrature rules obtain an increase of two orders of precision over the classical closed Newton-Cotes formula, and the error terms are given. The computational cost for these methods is analyzed from the numerical point of view, and it has shown that the proposed formulas are superior computationally to the same order closed Newton-Cotes formula when they reduce the error below the same level. Finally, some numerical examples show the numerical superiority of the proposed approach with respect to closed Newton-Cotes formulas.

#### 1. Introduction

Definite integration is one of the most important and basic concepts in mathematics. It has numerous applications in fields such as physics and engineering. In several practical problems, we need to calculate integrals. As is known to all, as for , once the primitive function of integrand is known, the definite integral of over the interval is given by Newton-Leibniz formula, that is,

However, the explicit primitive function is not available or its primitive function is not easy to obtain, such as , , and . Moreover, some of the integrand is only available at certain points , . It is often the case that the values of come from experimental data, such as sampling [1]. But the need often arises for calculating the definite integral. And how to get high-precision numerical integration formulas becomes one of the challenges in fields of mathematics [2].

The methods of quadrature are usually based on the interpolation polynomials and can be written in the following form: where there are distinct integration points at within the interval and weights , . If the integration points are uniformly distributed over the interval, so in which .

These can be derived in several different ways [3–5]. One method is to interpolate at the points , using the Lagrange polynomials and then integrating the foresaid polynomials to obtain (2).

The other method is based on the precision of a quadrature formula. Select the , , so that the error is exactly zero for , . Using the method of undetermined coefficients, this approach generates a system of linear equations for weights . Since the monomials are linearly independent, the linear system of equations has a unique solution.

The Newton-Cotes formulas are the most well-known numerical integration rules of this type. There are several subclasses of Newton-Cotes formulas that depend on the integer value of . We list some of them as follows. Trapezoidal rule where . Simpson’s rule where . Simpson’s rule where . Bool’s rule where .

Note that when is an even integer, the degree of precision is . When is odd, the degree of precision is only [1, 2].

In spite of the many accurate and efficient methods for numerical integration being available in [3–5], recently Dehghan et al. [6] improved the precision degree of closed Newton-Cotes quadrature by including the location of boundaries of the interval as two additional variables and rescaling the original integral to fit the optimal boundary locations. In their following work, they have applied this method to Gauss-Legendre quadrature [7], Gauss-Chebyshev quadrature [8], and open Newton-Cotes quadrature [9]. These formulas increase the order of accuracy of standard numerical integration by two orders. They use the method of undermined coefficients to set up nonlinear equations for parameters, which are solved approximately by using a computer algebra system. Burg has proposed derivative-based closed Newton-Cotes numerical quadrature [10], which uses the function values on uniformly spaced intervals and 2 derivative values at the endpoints. The precision of the method in [10] is higher than the standard closed Newton-Cotes quadrature.

The motivation for this research lies in construction of midpoint derivative-based closed Newton-Cotes numerical quadrature rule for Newton-Cotes quadrature which uses the derivative value at the midpoint only. These new schemes are given in Section 2. In Section 3, the error terms are presented. In Section 4, compared with the Newton-Cotes quadrature, computational costs of these methods and run time on a given processor are presented, where the minimum number of subinterval to achieve the same level is calculated along with the number of function and derivative evaluations. The numerical experiments results are shown in Section 5. Finally, conclusions are drawn in Section 6.

#### 2. Midpoint Derivative-Based Closed Newton-Cotes Quadrature

In this section, by adding the high derivative at the midpoint, schemes with higher precision than the Newton-Cotes quadrature rules are presented.

Theorem 1. *Midpoint derivative-based closed Trapezoidal rule is
**
The precision of this method is 3.*

*Proof. *Since the Trapezoidal rule has degree of precision 1, the formula (8) at least has 1 precision degree. Now, we just need to verify that the quadrature formula (8) is exact for .

When , ; .

When , ;
So the precision of midpoint derivative-based closed Trapezoidal rule is 3.

Theorem 2. *Midpoint derivative-based closed Simpson’s rule is
**
The precision of this method is 5.*

*Proof. *Since the Simpson’s rule has degree of precision 3, the formula (10) at least has 3 precision degree. Now, we just need to verify that the quadrature formula (10) is exact for .

When , ;

When , ;
So the precision of midpoint derivative-based closed Simpson’s rule is 5.

Similarly, we obtain the midpoint derivative-based closed Simpson’s rule and Bool’s rule.

Theorem 3. *Midpoint derivative-based closed Simpson’s rule is
**
The precision of this method is 5.*

*Proof. *Since the Simpson’s rule has degree of precision 3, the formula (13) at least has 3 precision degree. Similarly, we just need to verify that the quadrature formula (13) is exact for .

When , ;

When , ;

Theorem 4. *Midpoint derivative-based closed Bool’s rule is
**
The precision of this method is 7.*

*Proof. *Since the Bool’s rule has degree of precision 5, the formula (16) at least has 5 precision degree. We just need to verify that the quadrature formula (16) is exact for in like manner.

When , ;

When , ;

#### 3. The Error Terms of Midpoint Derivative-Based Closed Newton-Cotes Quadrature

In this section, the error terms of midpoint derivative-based closed Newton-Cotes quadrature are given. The error term can be given in mainly 3 different ways [5, 10]. Here, we use the concept of precision to calculate the error term, where the error term is related to the difference between the quadrature formula for the monomial and the exact value , where is the precision of the quadrature formula.

Theorem 5. *Midpoint derivative-based closed Trapezoidal rule with the error term is
**
where . Thus, this scheme is fifth order accurate with the error term , and the associate composite method is fourth order.*

*Proof. *Let . So ,
Therefore,
This implies that

Theorem 6. *Midpoint derivative-based closed Simpson’s rule with the error term is
**
where . Thus, this scheme is seventh order accurate with the error term , and the associate composite method is sixth order.*

*Proof. *Let . So ,
Therefore,This implies that

Theorem 7. *Midpoint derivative-based closed Simpson’s rule with the error term is
**
where . It has a seventh order leading order error term and is sixth order accurate in its composite form. And the error term of this method is .*

*Proof. *Let . So ,
Therefore,
This implies that

Theorem 8. *Midpoint derivative-based closed Bool’s rule with the error term is
**
where . It has a ninth order leading order error term and is eighth order accurate in its composite form. And the error term of this method is .*

*Proof. *Similarly, let . So ,
Therefore,
This implies that

Precision, the orders and the error terms for midpoint derivative-based closed Newton-Cotes quadrature are summarized in Table 1.

#### 4. Computational Efficiency in Composite Form

In this section, in order to compare the computational efficiency of the closed Newton-Cotes and the midpoint derivative-based quadrature formula, the number of calculations required by each quadrature formula to obtain a certain level of accuracy of and is calculated for the following integrals and , respectively.

In Tables 2 and 3, the number of function and derivative evaluations for the various quadrature formula presented for and are listed, respectively, using Matlab 6.5.

Take as an example, for the composite Trapezoidal rule, 25002 function evaluations are required, and the computing time is 0.125 seconds; while for the composite midpoint derivative Trapezoidal rule, 106 function evaluations and 105 second derivative evaluations are required (total = 211), and the computing time is 0.031 seconds on the same processor. So the midpoint derivative Trapezoidal rule is less time-consuming than Trapezoidal rule when they obtain the same level of accuracy.

In order to compare the different methods with the same computational cost, the numerical experiments between Trapezoidal rule and Midpoint derivative Trapezoidal rule are performed. We choose the following two integrals and as examples and compare the CPU time for when they reach the same level of accuracy of , , and . The comparative experimental results are shown in Tables 4 and 5.

#### 5. Numerical Results

So far, we have proposed midpoint derivative-based closed Newton-Cotes quadrature in Section 2 and demonstrate the results that the proposed methods use fewer evaluations in Section 4.

In this section, many numerical experiments are carried out to determine whether the novel methods are of high precision. In order to compare the precision of Newton-Cotes quadrature and the midpoint derivative-based closed Newton-Cotes quadrature, we calculate the following integrals: , . The comparison results are shown in Tables 6, 7, 8, 9, 10, 11, 12, and 13.

In Tables 6, 7, 8, 9, 10, 11, 12, and 13, the item Int. stands for the number of composite intervals.

Let us define Error = .

It can be seen from Tables 6–13 that midpoint derivative-based closed Newton-Cotes quadrature formulas have a much higher accuracy than classical closed Newton-Cotes quadrature formulas.

#### 6. Conclusion

We briefly summarize our main conclusions in this paper as follows.(1)A family of numerical integration formulas of closed Newton-Cotes quadrature rules is presented, which uses the derivative value at the midpoint. (2)It is proved that these kinds of quadrature rules obtain an increase of two orders of precision over the classical closed Newton-Cotes formula, and the error terms are given. (3)The computational cost for these methods is analyzed for several examples. And it has shown that the proposed formulas are superior computationally to the same order closed Newton-Cotes formulas when they reduce the error below the same level.(4)Finally, some numerical examples are given to show the efficiency of the proposed approach.

Dehghan’s technique may be applied for midpoint derivative-based closed Newton-Cotes quadrature and how to accelerate the convergence of the quadrature formulas by using Richardson extrapolation algorithm will be achieved by further research.

#### Acknowledgment

This work is supported by the National Natural Science Foundation of China (nos. 61074004, 61104038, 11101066).

#### References

- N. Petrovskaya and E. Venturino, “Numerical integration of sparsely sampled data,”
*Simulation Modelling Practice and Theory*, vol. 19, no. 9, pp. 1860–1872, 2011. View at Publisher · View at Google Scholar · View at Scopus - D. H. Bailey and J. M. Borwein, “High-precision numerical integration: progress and challenges,”
*Journal of Symbolic Computation*, vol. 46, no. 7, pp. 741–754, 2011. View at Publisher · View at Google Scholar · View at MathSciNet - K. E. Atkinson,
*An Introduction to Numerical Analysis*, John Wiley & Sons, New York, NY, USA, 2nd edition, 1989. View at MathSciNet - R. L. Burden and J. D. Faires,
*Numerical Analysis*, Brooks/Cole, Boston, Mass, USA, 9th edition, 2011. - E. Isaacson and H. B. Keller,
*Analysis of Numerical Methods*, John Wiley & Sons, New York, NY, USA, 1966. View at MathSciNet - M. Dehghan, M. Masjed-Jamei, and M. R. Eslahchi, “On numerical improvement of closed Newton-Cotes quadrature rules,”
*Applied Mathematics and Computation*, vol. 165, no. 2, pp. 251–260, 2005. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - E. Babolian, M. Masjedjamei, and M. R. Eslahchi, “On numerical improvement of Gauss-Legendre quadrature rules,”
*Applied Mathematics and Computation*, vol. 160, no. 3, pp. 779–789, 2005. View at Publisher · View at Google Scholar · View at Scopus - M. R. Eslahchi, M. Dehghan, and M. Masjed-Jamei, “On numerical improvement of the first kind Gauss-Chebyshev quadrature rules,”
*Applied Mathematics and Computation*, vol. 165, no. 1, pp. 5–21, 2005. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - M. Dehghan, M. Masjed-Jamei, and M. R. Eslahchi, “On numerical improvement of open Newton-Cotes quadrature rules,”
*Applied Mathematics and Computation*, vol. 175, no. 1, pp. 618–627, 2006. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - C. O. E. Burg, “Derivative-based closed Newton-Cotes numerical quadrature,”
*Applied Mathematics and Computation*, vol. 218, no. 13, pp. 7052–7065, 2012. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet