1. Introduction
Let 
 and 
 be such that 
. We consider the classes of functions
      
      where 
 is the left-side Liouville–Caputo fractional derivative of order 
 of 
f and 
 is the right-side Liouville–Caputo fractional derivative of order 
 of 
f. In this paper, we extend Dragomir–Agarwal inequality to the above classes of functions. Next, we provide an application to the special means of real numbers.
Let us mention some motivations for studying the proposed problems. Let 
 be a given function, where 
I is a certain interval of 
, and let 
 be such that 
. If 
f is convex in 
I, then
      
Inequality (
5) is known in the literature as Hermite–Hadamard’s inequality (see [
1,
2]). Several improvements and extensions of inequality (
5) to different types of convexity were established by many authors. In this direction, we refer the reader to [
2,
3,
4,
5,
6,
7,
8] and the references therein. In [
9], Dragomir and Agarwal established the following interesting result, which provides an estimate between the difference between the middle and right terms in inequality (
5).
Theorem 1 (Dragomir–Agarwal inequality)
. Let  be a given function, where I is a certain interval of , and let  be such that . If f is differentiable in  and  is convex in , then  The main idea for proving Theorem 1 is based on the following lemma [
9].
Lemma 1. Let  be a given function, where I is a certain interval of , and let  be such that . If f is differentiable in  and , then  In [
10], Pearce and Pečarić extended Theorem 1 to the case when 
 is concave. Using Lemma 1 and Jensen integral inequality, they obtained the following interesting result.
Theorem 2. Let  be a given function, where I is a certain interval of , and let  be such that . If f is differentiable in  and  is concave in , then  Motivated by the above cited works, our aim in this paper is to extend Theorems 1 and 2 to the classes of functions given by (1)–(4).
The rest of the paper is organized as follows. In 
Section 2, we recall some basic concepts on fractional calculus. In 
Section 3, we state and prove our main results. In 
Section 4, an application to special means of real numbers is provided.
  2. Preliminaries
In this section, we recall some basic notions on fractional calculus. For more details, we refer the reader to [
11,
12].
First, let us fix  with .
Definition 1. The left-side Riemann–Liouville fractional integral of order  of a function  is given bywhere Γ denotes the Gamma function.  Definition 2. The right-side Riemann–Liouville fractional integral of order  of a function  is given by  Lemma 2. Let  and . Then,whereand  Furthermore, for 
 and 
, we set
      
      and
      
Lemma 3. Let . Then,and  Lemma 4. Let  and . Then,  Definition 3. The left-side Liouville–Caputo fractional derivative of order  of a function  is given by  Definition 4. The right-side Liouville–Caputo fractional derivative of order  of a function  is given by  The following result is an immediate consequence of Lemma 2.
Lemma 5. Let  and . Then,whereand  Furthermore, for 
 and 
, we set
      
      and
      
The following result is an immediate consequence of Lemma 3.
Lemma 6. Let . Then,and  The following result provides sufficient conditions for the convexity and concavity of 
 (see [
13]).
Lemma 7. Let  and . If  in ,  and , then  is concave in . If  in ,  and , then  is convex in .
 Using Lemma 7, we deduce the following criteria for the convexity and concavity of .
Lemma 8. Let  and  be such thatIf  in  and , then  is concave in . If  in  and , then  is convex in .  Proof.  We have just to observe that, by (7), we have
        
        Next, using Lemma 7, the desired results follow. ☐
   3. Results and Discussion
In this section, we state and prove our main results. Just before, let us fix  and  with .
First, we shall establish the following fractional version of Lemma 1.
Lemma 9. Let . Then,  Proof.  By the definition of the left-side Liouville–Caputo fractional derivative of order α, we have
        
        Using the integration by parts rule given by Lemma 4, we obtain
        
        Next, the standard integration by parts rule yields
        
        On the other hand, by the definition of the right-side Riemann–Liouville fractional integral of order 
, we have
        
        Using the identity
        
        we obtain
        
        which yields
        
        and
        
        Using (
11), we obtain
        
        i.e.,
        
        Next, combining (
9), (
10) and (
12), we obtain
        
        Finally, the change of variable
        
        yields (
8). ☐
 Remark 1. Passing to the limit as  in (
8) 
and using Lemmas 3 and 6, we obtain (
6).
  Using a similar argument as in the proof of Lemma 9, we obtain the following fractional version of Lemma 1.
Lemma 10. Let . Then,  Remark 2. Passing to the limit as  in (
13) 
and using Lemmas 3 and 6, we obtain (
6).
  Our first main result is the following fractional version of Theorem 1.
Theorem 3. Let , where  is the class of functions given by (
1)
. Then,  Proof.  Let 
. Using Lemma 9, we obtain
        
        On the other hand, using the convexity of 
, we obtain
        
        Using the fact that 
 and
        
        we obtain
        
        Finally, combining (
15) and (
16), we obtain (
14). ☐
 Next, we discuss the case when , where  is the class of functions given by (2).
Theorem 4. Let . Then,  Proof.  Using Lemma 10, the convexity of 
 and a similar argument as in the proof of Theorem 3, we obtain (
17). ☐
 Furthermore, we consider the case when , where  is the class of functions given by (3). We obtain the following fractional version of Theorem 2.
Theorem 5. Let . Then,  Proof.  Using the concavity of 
 and Jensen integral inequality, we obtain
        
        Using Lemma 9 and the above inequality, (
18) follows. ☐
 Using a similar argument as in the proof of Theorem 5, we obtain the following result concerning the case when , where  is the class of functions given by (4).
Theorem 6. Let . Then,  Remark 3. Let us consider the classes of functionsObserve thatTo show this, let us consider as example the functionwhereWe have . Moreover,It can be easily seen that  is concave (so, nonconvex). On the other hand, we havewhich is a convex function in . Therefore,  but . Hence, Theorem 3 is a real extension of Theorem 1.    4. Applications to Special Means of Real Numbers
In this section, we provide some applications to special means of real numbers. Let
      
The quantity 
 is known in the literature as the arithmetic mean of u and v. Let
      
The quantity  can be considered as a fractional generalized ln-mean of u and v.
We have the following estimate.
Corollary 1. Let  and . Then,  Proof.  Let 
 and 
. Let us consider the function
        
        Using Lemma 8, we deduce that 
 is convex in 
, for every 
. Hence,
        
        Therefore, using Theorem 3, for all 
, we obtain
        
        Passing to the limit as 
 in (
21) and using Lemmas 3 and 6, we obtain (
19). ☐
 Remark 4. Let us consider the case . In this case, by (ii) and (iv), we have  is concave in , where f is the function given by (
20)
. Therefore, Theorem 1 cannot be applied. On the other hand, by Theorem 2, we havei.e.,Observe thatTherefore, the estimate (
19) 
is sharper than (
22)
.  Remark 5. Let us consider the case . In this case,  is convex in , where f is the function given by (
20) 
(). Therefore, by Theorem 1, we haveOn the other hand, taking  in (
19)
, we obtainObserve thatTherefore, (
24) 
is sharper than (
23)
.