/ / Article

Research Article | Open Access

Volume 2014 |Article ID 109138 | https://doi.org/10.1155/2014/109138

Fiza Zafar, Saira Saleem, Clarence O. E. Burg, "New Derivative Based Open Newton-Cotes Quadrature Rules", Abstract and Applied Analysis, vol. 2014, Article ID 109138, 16 pages, 2014. https://doi.org/10.1155/2014/109138

# New Derivative Based Open Newton-Cotes Quadrature Rules

Revised21 Jan 2014
Accepted26 Jan 2014
Published03 Mar 2014

#### Abstract

Some new families of open Newton-Cotes rules which involve the combinations of function values and the evaluation of derivative at uniformly spaced points of the interval are presented. The order of accuracy of these numerical formulas is higher than that of the classical open Newton-Cotes formulas. An extensive comparison of the computational cost, order of accuracy, error terms, coefficients of the error terms, observed order of accuracy, CPU usage time, and results obtained from these formulas is given. The comparisons show that we have been able to define some new open Newton-Cotes rules which are superior to classical open rules for less number of nodes and less computational cost with increased order of accuracy.

#### 1. Introduction

In the recent past, the numerical quadrature rules were widely addressed in terms of their higher order of accuracy. The general form of any numerical integration formula is If the weights are constant and the nodes are equispaced within the interval , the formula (1) gives rise to the Newton-Cotes quadrature rules. In open Newton-Cotes formulae, function evaluation at the endpoints of the interval is excluded from the quadrature rule. That is, where are distinct integration points and are weights within the interval with , and .

The classical open rules are given as follows.

For , where .

For , where .

For , where .

For , where .

For , where .

The Newton-Cotes rules can be constructed by replacing the integrand with an interpolating polynomial of appropriate degree. Lagrangian interpolating polynomials are extensively used to construct the Newton-Cotes rules; however, it was noted later that if, instead of Lagrangian polynomials, Hermite’s interpolating polynomial is used which interpolates not only the function but also the first derivatives of the function at the selected nodes, a new class of integration rules are introduced called as the corrected Newton-Cotes formulas which include the first order derivative of the function as well.

The corrected Newton-Cotes formulas have greater degree of precision and are more accurate than the classical ones. For example, the Trapezoidal rule is improved by the corrected Trapezoidal rule with greater accuracy. Markoff also noticed that the Gaussian formulas can also be constructed by integrating a Hermitian interpolating polynomial. Numerous new quadratures were found which satisfy optimality properties for various classes of functions . These numerical quadratures have gained a lot of importance in recent years. A lot of work has been done in the numerical improvement of Newton-Cotes formulas. In 2003, Moawwad gave a unified approach for Newton-Cotes formulas of open as well as closed type by solving directly linear systems with coefficients matrices of Vandermonde type . In 2005, Sermutlu presented a detailed comparison of Newton-Cotes and Gaussian methods of quadrature . In 2005 and 2006, Dehghan and his companions  presented some new numerical integration formulas as an improvement of open, semiopen, and closed Newton-Cotes quadrature formulas. The new formulas by Dehghan et al. have an increased order of accuracy as compared to classical rules. The locations of boundaries along with weights were included as two additional parameters. The concept of degree of precision was used to set a system of nonlinear equations to obtain the approximate values of the parameters involved by solving the system approximately. In 2006, these authors introduced improvements of first and second kind Chebyshev-Newton-Cotes quadrature rules [7, 8]. In 2012, Burg introduced a new family of closed Newton-Cotes numerical integration formulas using first derivative values as well as functional values using the concept of degree of precision  to include additional parameters and thus to obtain new closed Newton-Cotes rules with increased order of accuracy. Recently, Burg and Degny  have also presented a new corrected family of midpoint rule involving odd order derivatives at the endpoints of the interval of integration. Also, in  Zhao and Li presented some new classes of midpoint derivatives based closed Newton-Cotes rules.

We, in this paper, construct a family of open Newton-Cotes formulas involving the first order derivatives at some or all nodes. The weights of the first derivative evaluation serve as additional parameters to increase the order of accuracy of these rules. The weights are determined by using the concept of degree of precision from a system of linear equations. The new formulas have increased order of accuracy for less number of nodes and less computational cost in comparison with the classical open Newton-Cotes rules.

#### 2. Methodology and Derivation of Derivative Based Open Quadrature Formulas

Let be a real valued function. Let the interval be subdivided into subintervals with as distinct nodes.

##### 2.1. Derivative Based Schemes

We introduce the following derivative based schemes for the open Newton-Cotes formulas.(1)Function value and first derivative at each point .The general form of the scheme is where and are the weights for the function and the derivative, respectively, and is the number of subintervals used in the basic formula.(2)Function value at each point and first derivative at each point .The general form of the scheme is where and are as defined above.(3)Function value at each point and first derivative at interior endpoints .The general form of the scheme is where and are as defined above.(4)Function value at each point and first derivative at .The general form of the scheme is where and are as defined above.

We, now, derive the formulas for these cases.

###### 2.1.1. Open Newton-Cotes Rules with Derivative at All Interior Nodes (ONC1)

We can generate a scheme with a higher precision than that of the open Newton-Cotes scheme by using the first derivative of the integrand at all nodes, except at the endpoints, within the numerical integration scheme. We assume that the interval is subdivided into subintervals out of which points are included in this problem. The procedure is given as where and are the weights for the function and the derivative, respectively, and is the number of subintervals used in the basic formula. We assume that degree of precision of (8) can be at most . This imparts the condition on (8) that it will be exact for all monomials from to . From the concept, we form a system of equations.

For example, for , the two equations which are generated by this approach are Solving these equations for the coefficients and , the following numerical quadrature rule is obtained: for which is the classical midpoint rule. The precision of this method is and it is rd order accurate.

For , the four equations generated are Solving these equations simultaneously for the unknown coefficients , and , the numerical quadrature rule becomes for . The precision of this method is and it is th order accurate and the associated composite method is of the th order. For this method in its basic form two function evaluations and two first derivative evaluations are required. In composite form, where is an integer divisible by 3, the method requires function evaluations and derivative evaluations.

For , the numerical quadrature rule is for . The precision of this method is with order local truncation error of the th order. The associated composite rule is th order accurate. For this method in its basic form three function evaluations and two first derivative evaluations are required. In composite form, where is an integer divisible by 4, the method requires function evaluations and derivative evaluations.

For , the numerical quadrature rule is for . The precision of this method is with local truncation error of the th order. The associated composite rule is th order accurate. For this method in its basic form four function evaluations and two first derivative evaluations are required. In composite form, where is an integer divisible by 5, the method requires function evaluations and derivative evaluations.

For , the numerical quadrature rule is for . The precision of this method is with local truncation error of the th order and the associated composite rule is th order accurate. For this method in its basic form five function evaluations and two first derivative evaluations are required. In composite form, where is an integer divisible by 6, the method requires function evaluations and derivative evaluations.

###### 2.1.2. Open Newton-Cotes Rules with Derivative at All Nodes including Endpoints (ONC2)

The procedure is given as where and are the weights for the function and the derivative, respectively, and is the number of subintervals used in the basic formula. We assume that degree of precision of (9) can be at most . This imparts the condition on (9) that it will be exact for all monomials from to . From the concept, we form a system of equations.

For example, for , the following numerical quadrature rule is obtained: for . The precision of this method is and it is th order accurate. The associated composite rule is th order accurate. For this method in its basic form one function evaluation and two first derivative evaluations are required. In composite form, the method requires function evaluations and only two additional derivative evaluations due to cancellation of the derivatives at the endpoints in contrast to one point classical open method.

For , the quadrature rule becomes for . The precision of this method is and it is th order accurate. The associated composite rule is th order accurate. For this method in its basic form two function evaluations and four first derivative evaluations are required. In composite form, where is an integer divisible by 3, the method requires function evaluations and derivative evaluations due to cancellation of the derivatives at the endpoints.

For , the numerical quadrature rule is for . The precision of this method is with local truncation error of the th order. The associated composite rule is th order accurate. For this method in its basic form three function evaluations and four first derivative evaluations are required. In composite form, where is an integer divisible by , the method requires function evaluations and derivative evaluations due to cancellation of the derivatives at the endpoints.

For , the numerical quadrature rule is for . The precision of this method is with local truncation error of the th order. The associated composite rule is th order accurate. For this method in its basic form four function evaluations and six first derivative evaluations are required. In composite form, where is an integer divisible by , the method requires function evaluations and derivative evaluations due to cancellation of the derivatives at the endpoints.

For , the numerical quadrature rule is for . The precision of this method is with local truncation error of the th order and the associated composite rule is th order accurate. For this method in its basic form five function evaluations and six first derivative evaluations are required. In composite form, where is an integer divisible by , the method requires function evaluations and derivative evaluations due to cancellation of the derivatives at the endpoints of the basic form.

###### 2.1.3. Open Newton-Cotes Rules with Derivative at Interior Endpoints (ONC3)

In this approach, the evaluation of the derivative is restricted for the two points only, while maintaining the improvement of order of accuracy. These numerical integration formulas follow the same behaviour as the Newton-Cotes formulas with respect to being even or odd.

These numerical integration formulas are two order of magnitude greater than the corresponding open Newton-Cotes formulas.(i)If is even, the precision is .(ii)If is odd, the precision is .

The general form of the scheme is In these composite forms, all of the interior derivative calculations cancel so that the only derivative calculations are required for the composite form.

For , the quadrature formula is given as which is the midpoint rule.

The four equations are shown below for : Solving these equations for unknown parameters we get This scheme has precision and th order local truncation error and the associated composite rule is th order accurate which is the same as (16).

For , the optimal quadrature formula is This scheme has precision and th order local truncation error and the associated composite rule is th order accurate. For this method in its basic form three function evaluations and two first derivative evaluations are required. In composite form, where is an integer divisible by , the method requires function evaluations and derivative evaluations.

For , the optimal quadrature formula is This scheme has precision and th order local truncation error and the associated composite rule is th order accurate. For this method in its basic form four function evaluations and two first derivative evaluations are required. In composite form, where is an integer divisible by 5, the method requires function evaluations and derivative evaluations.

For , This scheme has precision and th order local truncation error and the associated composite rule is th order accurate. For this method in its basic form five function evaluations and two first derivative evaluations are required. In composite form, where is an integer divisible by 6, the method requires function evaluations and derivative evaluations.

###### 2.1.4. Open Newton-Cotes Rules with Derivative at Endpoints (ONC4)

The general form of the scheme is For , the quadrature rule is for which is the same as (21).

For , the four equations are given below:

By solving these equations, we get the following rule: for . This scheme has precision and th order local truncation error and the associated composite rule is th order accurate.

For , the quadrature rule is for . This scheme has precision and th order local truncation error and the associated composite rule is th order accurate.

For , the quadrature rule is for . This scheme has precision and th order local truncation error and the associated composite rule is th order accurate.

For , the quadrature rule is for . This scheme has precision and th order local truncation error and the associated composite rule is th order accurate.

It may be observed that all these methods require only two additional first derivative evaluations in their basic as well as in the composite form due to cancellation of the derivatives at the endpoints in contrast to the classical open rules of the respective domain.

##### 2.2. Error Analysis

Error Analysis Approach 1. To find error term, several methods can be used. Using the precision, the error term is related to the difference between the quadrature formula for the polynomial and the exact result where is the precision of the quadrature formula. This difference yields the coefficient for the th derivative of .

Error Analysis Approach 2. The third approach is based on the interpolating polynomials. The error analysis is carried out by using the classical approach of examining the integral of the remainder term of the Lagrange interpolating polynomial. Thus, we conjecture the following theorem for the error analysis of open derivative based quadrature by following an approach similar to .

Theorem 1 (see ). Suppose a function . Let be the degree polynomial such that at locations with and . At each location , let be the number of derivatives that are equal to zero at starting with the first derivative through the th derivative or with . Then, there exists such that

Theorem 2 (conjectured error theorem for derivative based numerical quadrature formulas). Suppose . Let be a th degree polynomial such that at locations where and at each location ; let be the number of the first derivative of and that agree at starting with the first derivative through the th derivative or with . Let . If , then there exists a location such that Let . If , then there exists a location such that

This theorem can be used to calculate the error terms of our scheme as follows.

Theorem 3 (function value and first derivative at each point ). Suppose . Let be a degree polynomial that agrees with and the first derivative of at locations where and . Then, there exists a location such that

Proof. Putting in (44) and using Theorem 1, we get the required result.

Theorem 4 (function value at each point and first derivative at each point ). Suppose . Let be a degree polynomial that agrees with and the first derivative of at locations where and . Then, there exists a location such that

Proof. Putting in (44) and using Theorem 1, we get the required result.

Theorem 5 (function value at each point and first derivative at ). Let be odd. Suppose . Let be a degree polynomial that agrees with and the first derivative of at locations and . Then, there exists a location such that Let be even and suppose . Let be a degree polynomial; then

Proof. Putting in (45) Theorem 1, we get the required result.

Theorem 6 (function value and higher order derivative at a single interval; that is, ). Suppose . Let be a degree polynomial that agrees with and the first derivative of at locations and . Then, there exists a location such that

Proof. Using Theorem 1, the above theorem can be proved easily.

We, now, show that these higher order derivatives based quadrature formulas are computationally efficient. The numerical results are obtained in Maple 13 using a precision of twenty decimal digits.

#### 3. Computational Efficiency of Derivative Based Open Rules

Now, we will use the following notations in the comparison tables.ONC for classical open numerical quadrature rule.ONC1 for open numerical quadrature with derivative at all interior points.ONC2 for open numerical quadrature with derivative at all points including endpoints.ONC3 for open numerical quadrature with derivative used only at interior endpoints.ONC4 for open numerical quadrature with derivative used only at exterior endpoints.

Table 1 compares the coefficient of the classical open Newton-Cotes formulas with newly developed open Newton-Cotes formulas with derivatives. The order described in the first column is the order of the composite formula; represents the number of nodes. The columns below each heading of the open type quadrature rules represent the coefficients of the error terms. It may be observed from the table that the new method ONC2 has prominently smaller error term coefficients.

 Order ONC ONC1 ONC2 ONC3 ONC4

Tables 2, 3, 4, 5 and 6 show the number of function and derivative evaluations for the classical open Newton-Cotes rules and the new derivative based open Newton-Cotes formulas, as well as their orders of accuracy. These results will be used in Tables 7 and 8 to determine the number of function and derivative evaluations sufficient to reduce the error in the calculations below some threshold. The results in Table 4 show that ONC2 is a highly attractive option because it has the highest order of accuracy in contrast to the other methods and is twice the value of . Additionally, as shown in Table 1, the coefficients for the leading order error term for ONC2 decrease more rapidly than the other formulas. The results in Table 6 show that ONC4 is also a better option due to the increase in the order of accuracy by a factor of two over the classical open Newton-Cotes formulas but includes only two additional derivative evaluations, regardless of the number of intervals for a certain scheme. Because ONC2 and ONC4 have clear advantages to ONC1 and ONC3, we will focus our analysis on these two methods.

 Order FE in basic form DE in basic form FE in composite form DE in composite form
 Order FE in basic form DE in basic form FE in composite form DE in composite form
 Order FE in basic form DE in basic form FE in composite form DE in composite form
 Order FE in basic form DE in basic form FE in composite form DE in composite form
 Order FE in basic form DE in basic form FE in composite form DE in composite form
 Formula Order FE in composite form DE in composite form Total ONC 9129 14908 141 172 50 ONC2 69 46 27 26 29 ONC4 69 118 32 42 22
 Formula Order FE in composite form DE in composite form Total ONC