Abstract
Numerical approximations of definite integrals and related error estimations can be made using Simpson’s rules (inequalities). There are two well-known rules: Simpson’s  rule or Simpson’s quadrature formula and Simpson’s  rule or Simpson’s second formula. The aim of the present paper is to extend several inequalities that hold for Simpson’s  rule to Simpson’s  rule. More precisely, we prove a weighted version of Simpson’s second type inequality and some Simpson’s second type inequalities for Lipschitzian, bounded variations, convex functions and the functions that belong to . Some applications of the second type Simpson’s inequalities relate to approximations of special means and Simpson’s  formula, and moments of random variables are made.
  1. Introduction and Preliminaries
In numerical approximation of definite integrals and related error estimation, there exist two methods known as Simpson’s rules. The first is Simpson’s    rule or Simpson’s quadrature formula.
      
      
        
      
      
      
      
    
The second is Simpson’s  rule or Simpson’s second formula.
      
      
        
      
      
      
      
    
The error estimation for Simpson’s  rule is called Simpson’s inequality (named by Dragomir []). Moreover, we name the error estimation for Simpson’s  rule as Simpson’s second inequality.
(1) Simpson’s inequality:
      
        
      
      
      
      
    
      where  is four times continuously differentiable on  and the following.
      
      
        
      
      
      
      
    
In recent years, many efforts have worked on refinements and generalizations of Simpson’s inequality. In fact, primary and main results about new Simpson’s type inequalities firstly appeared in [,,] for Lipschitzaian functions and functions of bounded variation. Some interesting sharp inequalities in connection with Simpson’s inequality are given in []. These include the weighted version of Simpson’s inequality especially for functions of bounded variation obtained in []. In papers [,], we can find Simpson’s inequality related to the functions for which its derivative absolute values are convex. For more works, we refer an interested reader to refer to [,,,,,] and the references within this work.
In recent years, less attention has been paid to the refinements and generalizations of Simpson’s second inequality:
(2) Simpson’s second inequality
      
        
      
      
      
      
    
      where  is four times continuously differentiable on  and . In [,], we can find some important numerical type results in connection with Simpson’s second inequality. For primary and general information about the Simpson’s second inequality, also refer to [,] and references therein.
Note that a new estimation for the left side of (1) and (2), with the new property for the function , is called Simpson’s type inequality and Simpson’s second type inequality, respectively. Throughout this paper, consider  as an interval and  as its interior.
Here, we provide some backgrounds for Simpson’s type inequality. In [], we can find the following results.
Theorem 1. 
Let  be a differentiable mapping on  such that  where . If  is a convex function on , then the following inequality holds.
      
        
      
      
      
      
    
For generalization of (3), see [,,,]. Moreover, in [], the authors obtained some results in connection with Simpson’s inequality for Lipschitzian bounded variation and some other types of functions. We listed two important results presented in [] as follows.
Theorem 2. 
Let  be an L-Lipschitzian mapping on . Then, we have the inequality as follows.
      
        
      
      
      
      
    
Theorem 3. 
Let  be a mapping of bounded variation on . Then, we have an inequality as follows:
      
        
      
      
      
      
    where  denotes the total variation of ξ on the interval . The constant  is the best possible.
As the main results, the authors of [,,] obtained some estimation type inequalities related to Simpson’s inequality based on three following lemmas, respectively. However, all of these lemmas are equivalent but have been used for different purposes. We listed these lemmas as the following.
Lemma 1. 
Let  be an absolutely continuous mapping on  where  with . Then, the following equality holds:
      
        
      
      
      
      
    where
      
        
      
      
      
      
    
Lemma 2. 
Let  be an absolutely continuous mapping on  such that  where  with . Then, the following equality holds:
      
        
      
      
      
      
    where
      
        
      
      
      
      
    
Lemma 3. 
Let  be an absolutely continuous mapping on  such that  where  with . Then, the following equality holds.
      
        
      
      
      
      
    
Motivated by the above works and results, we obtained some weighted Simpson’s second type inequalities for Lipschitzian functions, functions of bounded variation, functions for which its first derivative absolute values are convex and the functions that belong to . As applications of the obtained results, we provide some estimation type inequalities for special means, Simpson’s  formula and random variables.
In order to achieve the main results of this paper, we obtain some preliminary results by using the following assumption
Condition : We say that a function satisfies condition , if it is symmetric with respect to  and .
This kind of function  satisfying condition  exists. For example, the following is defined.
      
      
        
      
      
      
      
    
It is not hard to check that  is symmetric on  with respect to  and also
.
The following lemma is the basis for our main results about Simpson’s second type inequalities:
Lemma 4. 
Suppose that  is an absolutely continuous function on . Consider  with , such that  is integrable and satisfies condition . Then, we have the following:
      
        
      
      
      
      
    
where the following is the case.
      
        
      
      
      
      
    
Proof.  
Consider the following.
        
      
        
      
      
      
      
    
Moreover, also consider the following:
        
      
        
      
      
      
      
    
        and the following.
        
      
        
      
      
      
      
    
By integrating by parts in  and , we have the following::
        
      
        
      
      
      
      
    
      
        
      
      
      
      
    
        and the following is the case.
        
      
        
      
      
      
      
    
On the other hand, by using all conditions of  defined in condition , we obtain the following:
        
      
        
      
      
      
      
    
        which implies the following identity.
        
      
        
      
      
      
      
    
Now, by the changes of variable ,  and  in , respectively, we obtain the following:
        
      
        
      
      
      
      
    
      
        
      
      
      
      
    
        and the following is the case.
        
      
        
      
      
      
      
    
Thus, by (6), we obtain the following:
        
      
        
      
      
      
      
    
        where  is already defined.    □
Corollary 1. 
As a special case, if in Lemma 6 we consider , then we have the following identities:
      
        
      
      
      
      
    
or the following equivalently
      
        
      
      
      
      
    
where
      
        
      
      
      
      
    
Moreover, we have (see [,]) the following:
      
        
      
      
      
      
    
where the following is the case.
      
        
      
      
      
      
    
The above identities can be used in various conditions in connection with Simpson’s second type inequalities.
2. Functions of Bounded Variation
In this section we consider the bounded variation functions in order to present some new Simpson’s second type inequalities.
Definition 1  
([]). The function  is said to be of bounded variation on  if there is a constant  such that the following is the case:
      
        
      
      
      
      
    
for all partitions  of . If ξ is of bounded variation on , then the total variation of ξ on  is defined as follows.
      
        
      
      
      
      
    
The following Simpson’s second type inequality for bounded variation functions holds.
Theorem 4. 
Suppose that  is a function of bounded variation on . If  is integrable on ,  is integrable and satisfies condition , then the following is the case:
      
        
      
      
      
      
    where  denotes the total variation of ξ on  and . Moreover, inequality (7) is sharp.
Proof.  
First of all, let us note that any function of bounded variation defined on a closed, bounded interval of the real line is differentiable almost everywhere. Now, consider a countable family of partitions on  as follows:
        
      
        
      
      
      
      
    
        such that for , we have  Since  is of bounded variation on , then for , () we obtain the following case:
        
      
        
      
      
      
      
    
        where  is defined in Corollary 1. Since  is nondecreasing on intervals ,  and , then the data is as follows.
        
      
        
      
      
      
      
    
The above implies that . Thus, we deduce the result. For sharpness, consider  and the following.
        
      
        
      
      
      
      
    
Thus, we have the following:
        
      
        
      
      
      
      
    
        and the following is the case.
        
      
        
      
      
      
      
    
In other words, from the following inequality:
        
      
        
      
      
      
      
    
        we deduce that , which implies that the constant  is the best possible or inequality (7) is sharp.    □
Corollary 2. 
Suppose that  is a differentiable function on . If for any  with , the function  is integrable on , then the following is the case:
      
        
      
      
      
      
    
provided that .
Proof.  
It is known that if a function is differentiable and its derivative is integrable, then
        
      
        
      
      
      
      
    
□
3. Lipschitzian Function
In this section, By the definition of Lipschitzian functions, we provide some new bounds for weighted Simpson’s  rule.
Definition 2  
([]). A function  is said to satisfy the Lipschitz condition on  if there is a constant  so that for any two points ,
      
        
      
      
      
      
    
3.1. is Lipschitzian
The following result is a consequence of Lemma 4.
Lemma 5. 
Suppose that  is an absolutely continuous function on . Consider  with  such that  is integrable and satisfies condition . Then, the following is the case:
      
        
      
      
      
      
    
where  was defined in Lemma 4.
Proof.  
Note that the following:
          
      
        
      
      
      
      
    
          is the case for all . To observe this, for example, consider  and, hence, , which in addition to the fact that  is symmetric on  with respect to  implies the following case.
          
      
        
      
      
      
      
    
For the cases  and , the proof is similar.
We have the following.
          
      
        
      
      
      
      
    
□
By using Lemma (5), we deduce the following estimation type result for weighted Simpson’s  rule.
Theorem 5. 
Suppose that  is a differentiable function on . Consider  with  such that  satisfies a Lipschitz condition on  and  is integrable and satisfies condition . Then, the following is the case:
      
        
      
      
      
      
    where  is Lipschitz constant for .
Proof.  
According to the definition of  and the fact that  satisfies a Lipschitz condition, there exists a constant  such that the following is the case.
          
      
        
      
      
      
      
    
Now, the respected result follows from Lemma 5.    □
Remark 1.(1) If in Theorem 5, we consider , then we obtain the following Simpson’s second type inequality.
      
        
      
      
      
      
    
(2) By the following identity:
      
        
      
      
      
      
    we can obtain the following new Simpson’s type inequality for the case that  is Lipschitzian with respect to the constant .
      
        
      
      
      
      
    
3.2. is Lipschitzian
For Lipschitzian functions, the following Simpson’s second type inequality holds.
Theorem 6. 
Suppose that  is a differentiable function on . Consider  with  such that  satisfies a Lipschitz condition on ,  is integrable and satisfies condition . Then, the following inequality holds:
      
        
      
      
      
      
    
where  is Lipschitz constant for ξ.
Proof.  
It is enough to follow the instructions used in the proof of Theorem 4 to obtain the following inequality.
          
      
        
      
      
      
      
    
Since , then by considering the following numerical inequalities:
          
      
        
      
      
      
      
    
          we have the following.
          
      
        
      
      
      
      
    
This completes the proof.    □
Example 1. 
Consider . By the mean value theorem for any  with , there exists  such that the following is the case.
      
        
      
      
      
      
    
Thus, we have the following:
      
        
      
      
      
      
    
which means we can consider  as Lipschitz constant. Now, from Theorem 6 with  and after some calculations, we obtain the following:
      
        
      
      
      
      
    
where .
Corollary 3. 
Suppose that  is a differentiable function on . If for any  with , we have  bounded on ,  is integrable and satisfies condition , then the following is the case.
      
        
      
      
      
      
    
Proof.  
It is known that a differentiable function  is Lipschitz continuous () if and only if it has bounded first derivative.    □
4. Derivatives Belong to
In this section, we present a Simpson’s second type inequality for differentiable functions for which derivatives belong to  spaces.
Theorem 7. 
Suppose that  is an absolutely continuous function on . If for any  with , we have  and  is integrable and satisfies condition , then the following is the case:
      
        
      
      
      
      
    where ,  and .
Proof.  
Suppose that  and  such that . By the use of Lemma 4 and Hölder’s inequality, we obtain the following.
        
      
        
      
      
      
      
    
The calculation of the above integrals implies the desired result.    □
Corollary 4. 
In the case where  in Theorem 7, we obtain the following inequality.
      
        
      
      
      
      
    
Moreover, if we allow  in above inequality, then we deduce the following.
      
        
      
      
      
      
    
Note that inequality (8) is special case of Corollary (3).
5. Convex Functions
In this section, we obtain some Simpson’s second type inequalities for the functions in which its first derivative absolute values are convex.
Theorem 8. 
Suppose that  is an absolutely continuous function on . If for any  with , we have  and it is convex on  and  is integrable and satisfies condition , then the following is the case.
      
        
      
      
      
      
    
Proof.  
By the fact that  is convex, we obtain the following.
        
      
        
      
      
      
      
    
Similarly, we have the following results for  and :
        
      
        
      
      
      
      
    
        and we obtain the following.
        
      
        
      
      
      
      
    
Now, by using identity (6) in Lemma 4 (with triangle inequality), the desired result is implied    □
Another Simpson’s second type inequality is presented in the following by using the well known Hölder’s inequality.
Theorem 9. 
Suppose that  is an absolutely continuous function on . If for any  with  we have  and it is convex on  and  is integrable and satisfies condition , then the following is the case:
      
        
      
      
      
      
    where ,  and .
Proof.  
By the use of Hölder’s inequality and the fact that  is convex, we obtain the following results:
        
      
        
      
      
      
      
    
      
        
      
      
      
      
    
        and the following is the case.
        
      
        
      
      
      
      
    
Finally, the identity (6) implies the result.    □
Finally, by using the known power mean inequality [], we can obtain the following Simpson’s second type inequality. The details are omitted.
Theorem 10. 
Suppose that  is an absolutely continuous function on . If for any  with  we have  and it is convex on  and  is integrable and satisfies condition , then the following is the case.
      
        
      
      
      
      
    
6. Applications
In this section, due to the applications of the obtained results in previous sections, we obtain some inequalities related to special means, the weighted Simpson’s  formula and random variables.
6.1. Special Means
Consider the following well-known means.
        
      
        
      
      
      
      
    
      
        
      
      
      
      
    
      
        
      
      
      
      
    
      
        
      
      
      
      
    
      
        
      
      
      
      
    
      
        
      
      
      
      
    
The following results in connection with special means hold.
Proposition 1. 
Consider  with .
(1) If , then the following is the case:
      
        
      
      
      
      
    
where the following is the case.
      
        
      
      
      
      
    
(2) If , then the following is the case:
      
        
      
      
      
      
    
where the following is the case.
      
        
      
      
      
      
    
(3) If  and  such that , then the following is the case:
      
        
      
      
      
      
    
where  is defined in Theorem 7.
Moreover, if  such that , then the following is the case.
      
        
      
      
      
      
    
(4) If  and , then the following is the case.
      
        
      
      
      
      
    
(5) If , then the following is the case.
      
        
      
      
      
      
    
Proof.  
Consider ,  and  in Theorems 4–8, respectively.    □
Proposition 2. 
Consider  with ,  and  as defined in Theorem 7. The following inequalities hold:
      
        
      
      
      
      
    
      
        
      
      
      
      
    
      
        
      
      
      
      
    
      
        
      
      
      
      
    
and the following is the case.
      
        
      
      
      
      
    
Proof.  
In Theorems 4–8, consider ,  and , respectively.    □
Proposition 3. 
If , then we obtain the following:
      
        
      
      
      
      
    
      
        
      
      
      
      
    
      
        
      
      
      
      
    
      
        
      
      
      
      
    
and the following is the case.
      
        
      
      
      
      
    
Proof.  
Consider ,  and  in Theorems 4–8, respectively.    □
6.2. Weighted Simpson’s Formula
Suppose that  is a partition of interval  as  with , . Consider the weighted Simpson’s  formula as the following:
      
        
      
      
      
      
    
        where the following is the case.
        
      
        
      
      
      
      
    
Moreover,  is the approximation error. In the following results, we obtain some bounds for approximation error of weighted Simpson’s  formula. For the case that the derivative satisfies a Lipschitz condition, we present the following proof.
Theorem 11. 
Suppose that  is a differentiable function on . Consider  with , such that  satisfies a Lipschitz condition on  and  is integrable and satisfies condition . Then, for every partition  of interval  defined as above, we have the following case.
      
        
      
      
      
      
    
Proof.  
Suppose that  is the Lipschitzian constant for . By the use of Theorem 8 and the triangle inequality, we obtain the following.
          
      
        
      
      
      
      
    
□
Corollary 5. 
If we consider an equidistant partitioning in the above Theorem, i.e.,  for  and , then we obtain the following.
      
        
      
      
      
      
    
Remark 2. 
By the results obtained in Theorems 4 and 6–8, respectively, we have the following.
(1) In the case that ξ is Lipschitzian, we obtain the following.
      
        
      
      
      
      
    
If we consider an equidistant partitioning and , then the following is the case.
      
        
      
      
      
      
    
(2) For the case that  is convex, we have the following.
      
        
      
      
      
      
    
If we consider an equidistant partitioning and , then the following is the case.
      
        
      
      
      
      
    
(3) In the case that f is of bounded variation on , we obtain the following:
      
        
      
      
      
      
    where  Moreover, if we consider an equidistant partitioning, then the following is the case.
      
        
      
      
      
      
    
(4) For the case that , we have the following:
      
        
      
      
      
      
    where  is defined in Theorem 7. Moreover, if we consider an equidistant partitioning, then the following is the case.
      
        
      
      
      
      
    
Example 2. 
Consider . This function is convex, Lipschitzian and of bounded variation. Moreover, its derivative is Lipschitzian. It is not hard to see that  and . Thus, for , by Theorem 11 and Remark 2, the error estimations are the following, respectively:
      
        
      
      
      
      
    
      
        
      
      
      
      
    
      
        
      
      
      
      
    
and the following is the case.
      
        
      
      
      
      
    
6.3. Approximations of Moments of Random Variables
For , let  be a continuous probability density function related to a continuous random variable X that enjoys condition (*). For , suppose that the r-moment
        
      
        
      
      
      
      
    
        is finite. If we consider  and , then similar to the previous subsections, from Theorems 4–8, we can find bounds  such that (details are omitted) the following is the case:
      
        
      
      
      
      
    
        for suitable choices of r. Note that .
7. Conclusions
This paper is not only about the weighted version of Simpson’s 3/8 type inequalities. Lemma 4 is new in the literature even in the non-weighted version (Corollary 1) with a new method of proving. Furthermore, for the first time, we can find a Simpson’s 3/8 type inequality in the case that the derivatives of considered function is Lipschitzian. Furthermore, our results provide a more accurate approximation in connection with special means and weighted integrals. 
Author Contributions
Preparation of main results and applications, M.R.D.; writing review and editing, A.K. and M.D.L.S. All authors read and approved the final manuscript. All authors have read and agreed to the published version of the manuscrip.
Funding
This research was funded by the Basque Government Grant IT1207-19.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
Not applicable.
Acknowledgments
The authors are grateful to the referee(s) and the editor for their valuable comments and suggestions.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Dragomir, S.S.; Agarwal, R.P.; Cerone, P. On Simpson’s inequality and applications. J. Inequal. Appl. 2000, 5, 533–579. [Google Scholar] [CrossRef] [Green Version]
 - Pećaric, J.; Varošanec, S. A note on Simpson’s inequality for functions of bounded variation. Tamkang J. Math. 2000, 31, 239–242. [Google Scholar] [CrossRef]
 - Pećaric, J.; Varošanec, S. A note on Simpson’s inequality for Lipschitzian functions. Soochow J. Math. 2001, 27, 53–57. [Google Scholar]
 - Ujević, N. Sharp inequalities of Simpson type and Ostrowski type. Comput. Math. Appl. 2004, 48, 145–151. [Google Scholar] [CrossRef] [Green Version]
 - Tseng, K.-L.; Yang, G.-S.; Dragomir, S.S. On weighted Simpson type inequalities and applications. J. Math. Inequal. 2007, 1, 13–22. [Google Scholar] [CrossRef]
 - Sarikaya, M.Z.; Set, E.; Özdemir, E. On new inequalities of Simpson’s type for convex functions. Res. Rep. Coll. 2010, 60, 2191–2199. [Google Scholar]
 - Sarikaya, M.Z.; Set, E.; Özdemir, E. On new inequalities of Simpson’s type for s-convex functions. Comput. Math. Appl. 2010, 60, 2191–2199. [Google Scholar] [CrossRef] [Green Version]
 - Matić, M.; Pečarić, J.; Vukelić, A. On generalization of Bullen-Simpson’s inequality. Rocky Mountain J. Math. 2005, 35, 1727–1754. [Google Scholar] [CrossRef]
 - Chena, J.; Huang, X. Some New Inequalities of Simpson’s Type for s-convex Functions via Fractional Integrals. Filomat 2017, 31, 4989–4997. [Google Scholar] [CrossRef] [Green Version]
 - Abdeljawad, T.; Rashid, S.; Hammouch, Z.; Chu, Y.-M. Some new local fractional inequalities associated with generalized (s,m)-convex functions and applications. Adv. Differ. Equ. 2020, 2020, 1–27. [Google Scholar] [CrossRef]
 - Luo, C.-Y.; Du, T.-S.; Kunt, M.; Zhang, Y. New bounds considering the weighted Simpson-like type inequality and applications. J. Inequal. Appl. 2018, 2018, 1–20. [Google Scholar] [CrossRef] [PubMed]
 - Qaisar, S.; He, C.; Hussain, S. A generalizations of Simpson’s type inequality for differentiable functions using (α,m)-convex functions and applications. J. Inequal. Appl. 2013, 2013, 1–13. [Google Scholar] [CrossRef] [Green Version]
 - Uzair Awan, M.; Talib, S.; Kashuri, A.; Aslam Noor, M.; Chu, Y.-M. Estimates of quantum bounds pertaining to new q-integral identity with applications. Adv. Differ. Equ. 2020, 2020, 1–15. [Google Scholar]
 - Matić, M.; Pečarić, J.; Vukelić, A. Generalization of Bullen-Simpson’s 3/8 inequality. Math. Comput. Model. 2005, 41, 463–483. [Google Scholar] [CrossRef]
 - Dedić, L.J.; Matić, M.; Pečarić, J.; Vukelić, A. On Euler-Simpson 3/8 formulae. Nonlinear Stud. 2011, 18, 1–25. [Google Scholar]
 - Davis, P.J.; Rabinowitz, P. Methods of Numerical Integration; Academic Press: New York, NY, USA, 1975. [Google Scholar]
 - Krylov, V.I. Approximate Calculation of Integrals; Macmillan: New York, NY, USA, 1962. [Google Scholar]
 - Alomari, M.; Darus, M.; Dragomir, S.S. New inequalities of Simpson’s type for s-convex functions with applications. RGMIA Res. Rep. Coll. 2009, 12, 9. [Google Scholar]
 - Matłoka, M. Weighted Simpson type inequalities for h-convex functions. J. Nonlinear Sci. Appl. 2017, 10, 5770–5780. [Google Scholar] [CrossRef]
 - Erden, S.; Iftikhar, S.; Rostamian Delavar, M.; Kumam, P.; Thounthong, P.; Kumam, W. On generalizations of some inequalities for convex functions via quantum integrals. RACSAM 2020, 114, 110. [Google Scholar] [CrossRef]
 - Noor, M.A.; Noor, K.I.; Iftikhar, S. Newton’s inequalities for p-harmonic convex functions. Honam. Math. J. 2018, 40, 239–250. [Google Scholar]
 - Apostol, T.M. Mathematical Analysis; Addison-Wesley Publishing Company: Reading, MA, USA, 1974. [Google Scholar]
 - Robert, A.W.; Varbeg, D.E. Convex Functions; Academic Press: New York, NY, USA; London, UK, 1973. [Google Scholar]
 - Bullen, P.S. Handbook of Means and Their Inequalities; Springer: Kluwer, The Netherlands, 2003. [Google Scholar]
 
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.  | 
© 2021 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 (https://creativecommons.org/licenses/by/4.0/).