1 Introduction and preliminary

The important role played by Jensen’s inequality as an application of convex functions in mathematics, statistics, economics, probability theory, etc. is well known, see [14, 20]. Many other inequalities can be obtained from it. A function \(f: I\subseteq {\mathbb{R}} \rightarrow {\mathbb{R}}\) is said to be convex if

$$ f\bigl(t x + (1 - t)y\bigr) \leq t f(x) + (1 - t) f(y) $$

for every \(x, y \in I \) and \(t \in [0, 1] \). The classical integral form of Jensen’s inequality states that

$$ \begin{aligned} f \biggl( \frac{1}{d-c} \int _{c}^{d}g(x)\,dx \biggr)\leq \frac{1}{d-c} \int _{c}^{d}f\bigl(g(x)\bigr)\,dx, \end{aligned} $$
(1)

where g is an integrable function on \([c,d]\) with \(a\leq g(x)\leq b\) and f is a convex function on \([a,b]\). In recent years, many papers dealing with refinements of Jensen’s inequality for important generalized convex functions have appeared in the literature, see [68, 11, 16, 18, 22, 23] and the references therein.

The analogue of the arithmetic mean in the context of finite measure spaces \((X, \Sigma , \mu )\) is the integral arithmetic mean, which, for a μ-integrable function \(f:X\rightarrow{\mathbb{R}}\), is the number

$$ M_{1}(f):=\frac{1}{\mu (X)} \int _{X} f\,d\mu . $$

In probability theory, \(M_{1}(f)\) represents the mathematical expectation of the random variable f. There are many results on the integral arithmetic mean. A basic one is the integral form of Jensen’s inequality:

Theorem 1.1

Let \((X, \Sigma , \mu )\) be a finite measure space and \(g:X\rightarrow \mathbb{R}\) be a μ-integrable function. If f is a convex function given on an interval \(I\subseteq \mathbb{R}\) that includes the image of g, then \(M_{1}(g)\in I\) and

$$ f\bigl(M_{1}(g)\bigr) \leq M_{1}(f o g), $$

provided that \(f o g\) is μ-integrable.

A significant generalization of convex functions is that of invex functions introduced by Hanson in [5]. Recall some notions in the invexity analysis that will be used throughout the paper. A set \(S\subseteq {\mathbb{R}}\) is said to be invex with respect to the map \(\eta :S\times S\rightarrow \mathbb{R}\) if

$$ y+t\eta (x,y)\in S $$
(2)

for every \(x,y\in S\) and \(t\in [0,1]\). It is obvious that every convex set is invex with respect to the map \(\eta (x,y)=x-y\), but there exist invex sets that are not convex. Recall that for \(x,y\in S\) the η-path \(P_{xy}\) is a subset of S defined by

$$ P_{xy}:=\bigl\{ x+t\eta (y,x)| 0\leq t\leq 1\bigr\} . $$

An important generalization of convex functions is the class of preinvex functions introduced in [24, 25] by Weir and Mond and Weir and Jeyakumar and then applied to the establishment of the sufficient optimality conditions and duality in nonlinear programming. There have been some works in the literature that are investigated by preinvex functions (e.g. see [1, 2, 10, 12, 13, 21, 2527] and the references therein).

Let \(S\subseteq {\mathbb{R}}\) be an invex set with respect to \(\eta :S\times S\rightarrow \mathbb{R}\). Then the function \(f:S\rightarrow {\mathbb{R}}\) is said to be preinvex with respect to η if

$$ f\bigl(y+t\eta (x,y)\bigr)\leq tf(x)+(1-t)f(y) $$
(3)

for every \(x,y\in S\) and \(t\in [0,1]\). Every convex function is preinvex with respect to the map \(\eta (x,y)=x-y\), but the converse does not hold. Recall that the mapping \(\eta :S\times S\rightarrow \mathbb{R}\) is said to satisfy the conditions C if

$$ \begin{aligned} &\eta \bigl(y,y+t\eta (x,y)\bigr)=-t\eta (x,y), \\ &\eta \bigl(x,y+t\eta (x,y)\bigr)=(1-t)\eta (x,y) \end{aligned} $$

for every \(x,y\in S\) and \(t \in [0,1]\). From conditions C we have

$$ \eta \bigl(y+t_{2}\eta (x,y),y+t_{1}\eta (x,y)\bigr)=(t_{2}-t_{1})\eta (x,y) $$
(4)

for every \(x,y\in S\) and every \(t_{1},t_{2}\in [ 0, 1 ]\). The Hermite–Hadamard inequality for preinvex functions is introduced in [19] as follows:

$$ f\biggl(a+\frac{1}{2}\eta (b,a)\biggr)\leq \frac{1}{\eta (b,a)} \int _{a}^{a+\eta (b,a)}f(x)\,dx \leq \frac{f(a)+f(b)}{2}, $$
(5)

where \(a,b \in S\). Since then, numerous articles have been published in this category (see, for example, [9, 12] and the references therein). It would be worthwhile to give the exact (precise conditions) Jensen’s inequality for preinvex functions. We also recall the following theorem from [14, p. 25].

Theorem 1.2

Let \(f:I\rightarrow \mathbb{R}\) be a convex function on the interval \(I\subseteq \mathbb{R}\). Then f is continuous on the \({\textit{i}nt}(I)\) and has finite one-sided derivatives \(f_{-}^{\prime}(x)\) and \(f_{+}^{\prime}(x)\) at every point \(x\in {\textit{i}nt}(I)\). Moreover,

$$ f(y)\geq f(x)+(y-x)f_{+}^{\prime}(x) $$

for every \(y\in I\).

The main purpose of this paper is to introduce some generalized versions of integral Jensen’s inequality for preinvex functions defined on the invex subsets of a real line.

2 Main results

In this section we establish some versions of integral Jensen-type inequality for preinvex functions. At first, to reach our goal, in the following result some necessary and sufficient conditions for a real-valued function to be preinvex are introduced.

Proposition 2.1

Let \(S\subseteq \mathbb{R}\) be an invex set with respect to \(\eta : S \times S\rightarrow \mathbb{R}\). Suppose that f is a real-valued function on S. Then:

(i) If \(f:S\rightarrow \mathbb{R} \) is a preinvex function and η satisfies conditions C, then the restriction of f to any η-path in S is a convex function.

(ii) If for every \(x,y\in S, f(x+\eta (y,x))\leq f(y)\) and the restriction of f to any η-path in S is a convex function, then f is a preinvex function on S.

Proof

(i) Suppose that f is preinvex on S and \(x,y\in S\). Assume that \(z,w\in P_{xy}\) with \(z=x+t_{1}\eta (y,x)\) and \(w=x+t_{2}\eta (y,x)\) for some \(t_{1},t_{2}\in [0,1]\). By using (4) for every \(\lambda \in [0,1]\), we obtain

$$ \begin{aligned} (1-\lambda )z+\lambda w&=z+\lambda (w-z) \\ &=z+\lambda (t_{2}-t_{1})\eta (y,x) \\ &= z+\lambda \eta \bigl(x+t_{2}\eta (y,x),x+t_{1}\eta (y,x) \bigr) =z+\lambda \eta ( w,z). \end{aligned} $$

From this and the preinvexity of f we deduce that

$$ \begin{aligned} f\bigl((1-\lambda )z+\lambda w\bigr)=f\bigl(z+\lambda \eta ( w,z)\bigr)\leq (1-\lambda )f(z)+ \lambda f(w), \end{aligned} $$

which shows thatf is convex on \(P_{xy}\).

(ii) Let \(x,y\in S\) and \(t\in [0,1]\). By the convexity of f on the \(P_{xy}\), we have

$$ \begin{aligned} f\bigl(x+t\eta (y,x)\bigr)&=f\bigl((1-t)x+t\bigl(x+ \eta (y,x)\bigr)\bigr) \\ &\leq (1-t)f(x)+tf\bigl(x+\eta (y,x)\bigr) \leq (1-t)f(x)+tf(y), \end{aligned} $$

which shows the preinvexity of f on S, and the proof is completed. □

Remark 2.1

Note that Pavić in [19, p. 3576] Theorem 5.4 introduced a similar result to Proposition 2.1 (i) by using the convexity of a preinvex function on each invex hall in \({\mathbb{R}}^{n}\) instate of η-paths. But we do not know in general whether for each η the corresponding invex hall and η-paths are equivalent or not?

Note that by Proposition 2.1 we can construct several examples of preinvex functions. The next example illustrates how Proposition 2.1 works for particular nontrivial functions η and f.

Example 2.1

Let \(S:=[-3,-2]\cup [-1,2]\). It is easy to see that S is an invex set with respect to \(\eta : S \times S\rightarrow \mathbb{R}\) defined by

$$ \begin{aligned} \eta (x,y):= &\textstyle\begin{cases} x-y, & \text{$x,y\in [-3,-2]$,} \\ x-y, & \text{$x ,y\in [-1,2] $,} \\ -3-,y& \text{$x\in [-1,2], y\in [-3,-2]$,} \\ -1-y,& \text{$x\in [-3,-2], y\in [-1,2]$.} \end{cases}\displaystyle \end{aligned} $$

Moreover, η satisfies condition C (see [26, p., 231]). Then

$$ \begin{aligned} P_{yx}= &\textstyle\begin{cases} [y,x], & \text{$x,y\in [-3,-2] \text{ or } x,y\in [-1,2], y< x$,} \\ [x,y], & \text{$x,y\in [-3,-2] \text{ or } x,y\in [-1,2], x< y$,} \\ [-3, y],& \text{$x\in [-1,2], y\in [-3,-2]$,} \\ [-1, y],& \text{${ x\in [-3,2], y\in [-1,2]}$.} \end{cases}\displaystyle \end{aligned} $$

Define the function \(f:S\rightarrow \mathbb{R}\) as follows:

$$ \begin{aligned} f(x):= &\textstyle\begin{cases} e^{x},& \text{$x\in [-3,-2]$,} \\ x^{2}-4, & \text{$x \in [-1,2] $.} \end{cases}\displaystyle \end{aligned} $$

We see that for every \(x,y\in S\), \(f(y+\eta (x,y))\leq f(x)\) and η satisfies condition C. Simple computation shows that the restriction of f to any η-path \(P_{yx}\) in S is a convex function. Now, by Proposition 2.1 (ii), f is a preinvex function on S.

In the next example we obtain a preinvex function by combining Theorem 5 in [4, p. 319] and Theorem 1.2 in [24, p. 178].

Example 2.2

Let \(S:=\mathbb{R}\). Define the map η as follows:

$$ \begin{aligned} \eta (x,y):= &\textstyle\begin{cases} x-y, & \text{$ x\leq 0,y\leq 0$,} \\ x-y, & \text{$ x \geq 0,y\geq 0 $,} \\ y-x,& \text{otherwise.} \end{cases}\displaystyle \end{aligned} $$

Then the function \(f:S\rightarrow \mathbb{R}\) defined by \(f(x):= -4|x|+3e^{-|x|}\) is a preinvex function on S, which is not convex.

A generalization of Theorem 1.2 is given in the following theorem.

Theorem 2.1

Let \(S\subseteq \mathbb{R}\) be an invex set with respect to \(\eta : S \times S\rightarrow \mathbb{R}\), and η satisfies conditions C. Suppose that \(f:S\rightarrow \mathbb{R} \) is a preinvex function. Then:

(i) f has finite left and right derivatives at each point of \(int (S)\);

(ii) for every \(x,y\in int (S)\) with \(\eta (x,y)\neq 0\), we have

$$ f(y)\geq f(x)+\eta (y,x)f_{+}^{\prime}(x). $$
(6)

Proof

(i) Let \(x\in int(S)\). By the invexity of S there exist \(x_{1},x_{2} \in S\) and \(\delta >0\) such that

$$ x+t\eta (x_{1},x)< x< x+t\eta (x_{2},x) $$

for all \(t\in [0,\delta )\). Pick

$$ \begin{aligned}& A_{1}:=\bigl\{ x+t\eta (x_{1},x)|t\in [0,\delta )\bigr\} , \\ &A_{2}:=\bigl\{ x+t\eta (x_{2},x)|t\in [0,\delta )\bigr\} . \end{aligned} $$

It is easy to see that \(A_{1}, A_{2},A:=A_{1}\cup A_{2}\) are convex sets and x is an interior point of S. Since f is preinvex on S, by Proposition 2.1 (i), f is convex on A. Therefore, both \(f_{-}^{\prime}(x)\) and \(f_{+}^{\prime}(x)\) are finite by Theorem 1.2.

(ii) Let \(x,y\in int (S)\) and \(t\in (0,1)\). By the preinvexity of f, we have

$$ f\bigl(x+t\eta (y,x)\bigr)\leq (1-t)f(x)+tf(y). $$

Dividing by t and taking limit as \(t\rightarrow 0\) imply that

$$ \begin{aligned} f(y)-f(x)&\geq \lim_{t\rightarrow 0} \frac{f(x+t\eta (y,x))-f(x)}{t} \\ &=\eta (y,x)\lim_{t\rightarrow 0} \frac{f(x+t\eta (y,x))-f(x)}{t\eta (y,x)} \\ &=\eta (y,x)\lim_{u\rightarrow 0}\frac{f(x+u)-f(x)}{u} \\ &=\eta (y,x)f_{+}^{\prime}(x). \end{aligned} $$

 □

The following example fulfills the conditions of Theorem 2.1.

Example 2.3

Pick \(S:=[-2,2]\) and define the mapping \(\eta : S \times S\rightarrow \mathbb{R}\) as follows:

$$ \begin{aligned} \eta (x,y):= &\textstyle\begin{cases} x-y, & \text{$ x\geq 0, y\geq 0$,} \\ x-y, & \text{$ x< 0 ,y< 0 $,} \\ -2-y,& \text{${x>0, y\leq 0}$,} \\ 2-y,& \text{${x\leq 0, y>0}$.} \end{cases}\displaystyle \end{aligned} $$

Then S is an invex set with respect to \(\eta (x,y)\), and η satisfies condition C. Now, the function \(f:S\rightarrow {\mathbb{R}} \) defined as \(f(x):= -2|x|\) is a preinvex function and has finite left and right derivatives at each point of \(int (S)=(-2,2)\), (see [27, p., 611]).

First of our approach is the following special case.

Theorem 2.2

Let \(S\subseteq \mathbb{R}\) be an invex set with respect to \(\eta : S \times S\rightarrow \mathbb{R}\), and η satisfies conditions C. Suppose that \(f:S\rightarrow \mathbb{R} \) is a preinvex function. Assume that \(g : J\rightarrow \mathbb{R}\) is an integrable function for some interval \(J\subseteq \mathbb{R}\). Let \(c,\,d\in J\), \(c< d\) be such that for every \(x\in [c,d]\), \(g(x)\in P_{ab} (\textit{or } P_{ba})\) for \(a:=g(c), b:=g(d) (\textit{or } b:=g(c), a:=g(d))\). Then the following inequality holds:

$$ \begin{aligned} &f \biggl(\frac{1}{d-c} \int _{c}^{d} g(x)\,dx \biggr) \\ &\quad\leq \frac{1}{\eta (b,a)} \int _{P_{ab}} fog(x)\,dx \biggl(\textit{or } \frac{1}{\eta (a,b)} \int _{P_{ba}} fog(x)\,dx \biggr), \end{aligned} $$
(7)

provided that \(fog\) is integrable, where \(\int _{P_{ab}}\) is denoted for integral over \(P_{ab}\).

Proof

Let \(a, b\in S\). By Proposition 2.1, f is convex on \(P_{ab} (\text{or } P_{ba})\). Hence, (7) is an immediate consequence of Jensen’s inequality (1). □

The following example gives an application of Theorem 2.2.

Example 2.4

Pick \(S:=I_{1}\cup I_{4}\), where

$$ I_{1}:=(-5, -3],\qquad I_{2}:=[-1,0],\qquad I_{3}:=[0, \sqrt{2}-1],\qquad I_{4}:=I_{2} \cup I_{3} . $$

Define the mapping \(\eta : S \times S\rightarrow S\) as follows:

$$ \begin{aligned} \eta (x,y):= &\textstyle\begin{cases} x-y, & \text{$ x,y\in I_{i}, i=1,2,3$,} \\ -1-y,& \text{$x \in I_{1}, y\in I_{2}$,} \\ -y,& \text{$ x \in I_{1}, y\in I_{3} $,} \\ -3-y, & \text{$ x \in I_{4}, y\in I_{1} $.} \end{cases}\displaystyle \end{aligned} $$

It is easy to see that S is an invex set with respect to \(\eta : S \times S\rightarrow \mathbb{R}\) and η satisfies condition C. Define the integrable function \(g:[-\frac{\pi}{2}, \frac{\pi}{2}]\rightarrow \mathbb{R}\) as

$$ \begin{aligned} g(x):= &\textstyle\begin{cases} -5-2\sin x, & \text{$ -\frac{\pi}{2}\leq x< 0$,} \\ -1+\sqrt{2}\sin x, & \text{$ 0\leq x\leq \frac{\pi}{2}$.} \end{cases}\displaystyle \end{aligned} $$

Moreover, by using Proposition 2.1, the function \(f:S\rightarrow \mathbb{R}\) defined by

$$ \begin{aligned} f(x):= \textstyle\begin{cases} e^{x^{6}}, & \text{$ x\in I_{1} $,} \\ 1+x^{10}, & \text{$ x \in I_{4} $,} \end{cases}\displaystyle \end{aligned} $$

is a preinvex function. Let \(c,d\in [-\frac{\pi}{2}, \frac{\pi}{2}] \) with \(c< d\) and \(g(c):=b, g(d):=a\). To examine Theorem 2.2, we consider four cases.

(i) If \(a,b\in I_{i}, i=1,2,3\), then \(P_{ab}\) is the line segment between a and b; hence we obtain (7) by using Jensen’s inequality (1).

(ii) If \(a\in I_{4}\) and \(b\in I_{1}\), then \(c\in [-\frac{\pi}{2},0), d\in [0,\frac{\pi}{2}]\), and \(\eta (a,b)= -3-b\), so \(P_{ba}=[b, -3]\). Therefore,

$$ \begin{aligned} \frac{1}{d-c} \int _{c}^{d} g(x)\,dx&=\frac{1}{d-c} \biggl( \int _{c}^{0} (-5-2 \sin x)\,dx+ \int _{0}^{d}( -1+\sqrt{2}\sin x)\,dx \biggr) \\ &=\frac{1}{d-c} \{2+\sqrt{2}+5c-d-2\cos c-\sqrt{2}\cos d \} :=e_{1}. \end{aligned} $$
(8)

Now, by Theorem 2.2, we have

$$ \begin{aligned} f(e_{1}) \leq \frac{1}{\eta (a,b)} \int _{P_{ba}} fog(x)\,dx= \frac{1}{-3-b} \int _{b}^{-3} e^{(5+2\sin x)^{6}}\,dx. \end{aligned} $$
(9)

(iii) If \(a\in I_{1}\) and \(b\in I_{2}\), then \(c\in [0,\frac{\pi}{4}], d\in [-\frac{\pi}{2},0)\), and \(\eta (a,b)= -1-b\), so \(P_{ba}=[-1, b]\). Hence

$$ \begin{aligned} \frac{1}{d-c} \int _{c}^{d} g(x)\,dx&=\frac{1}{d-c} \biggl( \int _{d}^{0} (-5-2 \sin x)\,dx+ \int _{0}^{c}( -1+\sqrt{2}\sin x)\,dx \biggr) \\ &=\frac{1}{d-c} \{2+\sqrt{2}+5d-c-2\cos d-\sqrt{2}\cos c \} :=e_{2}. \end{aligned} $$
(10)

Thus by Theorem 2.2 we get

$$ \begin{aligned} f(e_{2}) \leq \frac{1}{-1-b} \int _{-1}^{b} {(-1+\sqrt{2}\sin x)^{10}} \,dx. \end{aligned} $$
(11)

(iv) If \(a\in I_{1}\) and \(b\in I_{3}\), then \(c\in [\frac{\pi}{4},\frac{\pi}{2}], d\in [-\frac{\pi}{2},0)\), and \(\eta (a,b)= -b\), so \(P_{ba}=[0, b]\). Hence by (10) we have

$$ \begin{aligned} &\frac{1}{d-c} \int _{c}^{d} g(x)\,dx\\ &\quad=\frac{1}{d-c} \biggl( \int _{d}^{0} (-5-2 \sin x)\,dx+ \int _{0}^{c}( -1+\sqrt{2}\sin x)\,dx \biggr) \\ &\quad=\frac{1}{d-c} \{4+5d-\sqrt{2}c-2\cos c-2\cos d \} :=e_{3}. \end{aligned} $$
(12)

So using Theorem 2.2 implies that

$$ \begin{aligned} f(e_{3}) \leq - \frac{1}{b} \int _{-\sqrt{2}}^{b} {(-1+\sqrt{2}\sin x)^{10}} \,dx. \end{aligned} $$
(13)

Motivated by [14, Theorem 1.8.1, p. 47] and [20, Theorem 2.23, p. 64], we introduce the following theorem, which is a generalization of Jensen’s Theorem 1.1 in the preinvex functions setting.

Theorem 2.3

Let \((X,\Sigma , \mu )\) be a finite measure space and \(g : X \rightarrow \mathbb{R}\) be a μ-integrable function. Suppose that \(S\subseteq \mathbb{R}\) is an invex set with respect to \(\eta : S \times S\rightarrow \mathbb{R}\) and S includes the image of g. If \(f:S\rightarrow \mathbb{R}\) is a preinvex function, then:

(i) \(M_{1}(g)\in S\);

(ii) If \(\psi (x):=\eta (g(x),M_{1}(g))\) and \(\psi (x)\neq 0\) for every \(x\in S\) such that \(g(x)\neq M_{1}(g)\), then there exists \(K\in \mathbb{R}\) such that the following inequality holds:

$$ \begin{aligned} f \biggl(\frac{1}{\mu (X)} \int _{X} g\,d\mu \biggr)\leq \frac{1}{\mu (X)} \int _{X} (fog)\,d\mu -K\frac{1}{\mu (X)} \int _{X} \psi \,d\mu , \end{aligned} $$
(14)

provided that ψ and \(fog\) are μ-integrable.

Proof

(i) If \(M_{1}(g)\notin S\), then \(g(x)\neq M_{1}(g)\) for every \(x\in X\), hence the function \(h:X\rightarrow \mathbb{R}\) defined by \(h(x):=M_{1}(g)-g(x)\) (or −h) is a positive function and

$$ \int _{X}h\,d\mu = \int _{X}\bigl(M_{1}(g)-g(x)\bigr)\,d\mu =\mu (X)M_{1}(g)- \int _{X}g\,d \mu =0, $$

which is a contradiction.

(ii) If \(M_{1}(g)\in {\mathrm{int}}(S)\) and \(K:=f_{+}^{\prime}(M_{1}(g))\), then by Theorem 2.1 we have

$$ \begin{aligned} f\bigl(g(x)\bigr)&\geq f \bigl(M_{1}(g)\bigr)+\eta \bigl(g(x),M_{1}(g) \bigr)f_{+}^{\prime}\bigl(M_{1}(g)\bigr) \\ &=f\bigl(M_{1}(g)\bigr)+\eta \bigl(g(x),M_{1}(g)\bigr)K \end{aligned} $$
(15)

for every \(x\in X\), and (14) follows by integrating both sides of (15) over X. Now, suppose that \(M_{1}(g):=b\) is a boundary point of S. Since \(\int _{X}(M_{1}(g)-g(x))\,d\mu =0\), so we have \(g=M_{1}(g)\) almost everywhere. Let \(A:=\{x\in X| g(x)=M_{1}(g)\}\), then

$$ f \biggl(\frac{1}{\mu (X)} \int _{X} g\,d\mu \biggr)=f(b) $$

and

$$ \int _{X} (fog)\,d\mu = \int _{A} f(b)\,d\mu =f(b), $$

equality in (14) holds if we choose \(K=0\). □

The following corollary is an immediate consequence of Theorem 2.3.

Corollary 2.1

Suppose that the conditions of Theorem 2.3are satisfied. Additionally, if

$$ \begin{aligned} \frac{1}{\mu (X)} \int _{X}\eta \bigl(g(x),M_{1}(g)\bigr)\,d\mu =0, \end{aligned} $$
(16)

then

$$ f \biggl(\frac{1}{\mu (X)} \int _{X} g\,d\mu \biggr)\leq \frac{1}{\mu (X)} \int _{X} (fog)\,d\mu . $$
(17)

Note that in the trivial case if \(\eta (y,x):=y-x\), then S and f will be a convex set and a convex function, respectively, and Corollary 2.1 gives us the usual Jensen’s inequality presented in Theorem 1.1. In the following corollary we obtain the left-hand side of Hermite–Hadamard inequality as a consequence of Theorem 2.3.

Corollary 2.2

Under the conditions of Theorem 2.3, if \(a, b\in S\) with \(\eta (b,a)\neq 0\) and \(a< a+\eta (b,a)\), then we have

$$ \begin{aligned} f \biggl(a+\frac{1}{2}\eta (b,a) \biggr)\leq \frac{1}{\eta (b,a)} \int _{a}^{a+ \eta (b,a)}f(x)\,dx. \end{aligned} $$
(18)

Proof

Let the function \(g:P_{ab}\rightarrow P_{ab}\) be defined by \(g(x)=x\). It is easy to see that

$$ M_{1}(g)=\frac{1}{\eta (b,a)} \int _{a}^{a+\eta (b,a)} x\,dx=a+ \frac{1}{2}\eta (b,a) $$

and

$$ \eta \bigl(g(x),M_{1}(g)\bigr)=\eta \biggl(x,a+\frac{1}{2}\eta (b,a)\biggr). $$

Now, if we use the change of variable \(x:=a+s\eta (b,a), s\in [0,1]\), then by (4) we obtain

$$ \begin{aligned} \int _{a}^{a+\eta (b,a)} \eta \bigl(g(x),M_{1}(g) \bigr)\,dx&= \int _{a}^{a+ \eta (b,a)} \eta \biggl(x,a+\frac{1}{2} \eta (b,a)\biggr)\,dx \\ &=\eta (b,a) \int _{0}^{1}\biggl(s-\frac{1}{2}\biggr) \,ds=0. \end{aligned} $$
(19)

Therefore, by Corollary 2.1, we deduce that

$$ \begin{aligned} f \biggl(a+\frac{1}{2}\eta (b,a) \biggr)&=f \biggl(\frac{1}{\eta (b,a)} \int _{a}^{a+\eta (b,a)} g(x)\,dx \biggr) \\ &\leq \frac{1}{\eta (b,a)} \int _{a}^{a+\eta (b,a)}f(x)\,dx, \end{aligned} $$
(20)

which is the left-hand side of inequality (5), and the proof is completed. □

To introduce an application of Theorem 2.3, we recall the definition of a special measure from [15, p. 262] and [17, p. 469], see also [3, 55–69]..

Definition 2.1

A real Borel measure μ on \(I=[a,b]\) is said to be

Steffensen–Popoviciu measure provided that

  1. (i)

    \(\mu (I)>0\),

  2. (ii)

    \(\int _{a}^{b} f(x)\,d\mu (x)\geq 0\) for every nonnegative \(f \in C\).

Several examples of Steffensen–Popoviciu measures can be found in [17, p. 471].

Example 2.5

Set \(X:=[-1,1]\). According to [17, p. 471], \(d\mu (x):= (x^{2}-a)\,dx\) for every \(0< a<\frac{1}{3}\) is a Steffensen–Popoviciu measure on X. Choose \(a:=\frac{1}{6}\). Then we have

$$ \mu (X)= \int _{[-1,1]}\biggl(x^{2}-\frac{1}{6}\biggr)\,dx= \int _{-1}^{1}\biggl(x^{2}- \frac{1}{6}\biggr)\,dx=\frac{1}{3}. $$

Define the μ-integrable function \(g:X\rightarrow \mathbb{R}\) as follows:

$$ g(x):=4x^{2}-1,\quad x\in [-1,1]. $$

Note that \(\text{Im} (g)=[-2,2]\), and by simple computation we obtain

$$ \begin{aligned} M_{1}(g)=\frac{1}{\mu (X)} \int _{X} g\,d\mu =3 \int _{-1}^{1}\biggl(x^{2}- \frac{1}{6}\biggr) \bigl(4x^{2}-1\bigr)\,dx=\frac{22}{15}. \end{aligned} $$
(21)

Pick \(S:=[-2,2]\) and consider the mapping η defined in Example 2.3. Since \(f_{1}(x):=e^{x}\) is an increasing and convex function on \([-2,2]\) and \(h(x):=-2|x|\) is a preinvex function on \([-2,2]\), so by Theorem 5 in [4, p. 319] the function

$$ f(x):=e^{-2|x|} \quad{\text{for all }} x\in [-2, 2] $$

is a preinvex function (which is not convex). Since

$$ K=f_{+}^{\prime}\bigl(M_{1}(g)\bigr)=f_{+}^{\prime} \biggl(\frac{22}{15}\biggr)=-2f\biggl( \frac{22}{15}\biggr), $$

therefore by using Theorem 2.3 and equality (21), we get

$$ \begin{aligned} f\biggl(\frac{22}{15}\biggr)\leq 3 \int _{X} e^{-|4{x}^{{2}}-2|}\,d\mu +6f\biggl( \frac{22}{15} \biggr) \int _{X}\eta \biggl(4{x}^{{2}}-2,\frac{22}{15} \biggr) \,d\mu . \end{aligned} $$
(22)

Taking into account that \(4{x}^{{2}}-2\geq 0\) on \([-1,-\frac{\sqrt{2}}{2}]\cup [\frac{\sqrt{2}}{2},1]\) and \(4{x}^{{2}}-2\leq 0\) on \([-\frac{\sqrt{2}}{2}, \frac{\sqrt{2}}{2}]\), by using the definition of η, we obtain

$$ \begin{aligned} & \int _{-1}^{1}\eta \biggl(4{x}^{{2}}-2, \frac{22}{15}\biggr) \,d\mu \\ &\quad= \int _{-1}^{-\frac{\sqrt{2}}{2}}\biggl(x^{2}- \frac{1}{6}\biggr)\eta \biggl(4{x}^{{2}}-2, \frac{22}{15} \biggr) \,dx + \int _{-\frac{\sqrt{2}}{2}}^{\frac{\sqrt{2}}{2}}\biggl(x^{2}- \frac{1}{6}\biggr)\eta \biggl(4{x}^{{2}}-2,\frac{22}{15} \biggr) \,dx \\ &\qquad{}+ \int _{\frac{\sqrt{2}}{2}}^{1}\biggl(x^{2}- \frac{1}{6}\biggr)\eta \biggl(4{x}^{{2}}-2, \frac{22}{15} \biggr) \,dx \\ &= \int _{-1}^{-\frac{\sqrt{2}}{2}}\biggl(x^{2}- \frac{1}{6}\biggr) \biggl(4{x}^{{2}}- \frac{52}{15}\biggr) \,dx +\frac{8}{15} \int _{-\frac{\sqrt{2}}{2}}^{ \frac{\sqrt{2}}{2}}\biggl(x^{2}- \frac{1}{6}\biggr) \,dx \\ &\qquad{}+ \int _{\frac{\sqrt{2}}{2}}^{1}\biggl(x^{2}- \frac{1}{6}\biggr)\eta \biggl(4{x}^{{2}}- \frac{52}{15} \biggr) \,dx=-\frac{4\sqrt{2}-3}{45}. \end{aligned} $$
(23)

Therefore, by combining (22) and (23), we have

$$ \frac{9+8\sqrt{2}}{45}f\biggl(\frac{22}{15}\biggr)\leq \int _{X} e^{-|4{x}^{{2}}-2|}\,d \mu . $$

3 Conclusions

In this paper, we have used the class of preinvex functions, which is an important generalization of the class of convex functions. Some generalized versions of integral Jensen’s inequality are introduced in Theorems 2.1, 2.2, and 2.3. Theorem 2.3 is a new approach to Jensen’s integral inequality that is an improvement of Theorem 1.1. A version of Hermite–Hadamard inequality is also obtained as a consequence. The study of integral Jensen’s inequality for other types of generalized convex functions are our intend to explore in future works.