1 Introduction

In the theory of inequalities, convex functions are very important. The concept of convexity has been expanded and summarized in various ways. For example, Wu et al. [1] used the convexity to find estimates of upper bounds, Hu et al. [2] applied the concept of convexity via local fractional integral, Awan et al. [3] introduced a class of M-convex functions and discussed its properties, Samraiz et al. [4] explored mean type inequalities via different convexities. In continuation, we found plenty of papers [510] that have strong applications of theory of convexity. The convexity is also important to deal with nonlinear problems [11]. A generalization of convex functions to a real-valued functions defined on any real linear space is fairly natural [12]. In pure and applied mathematics, convex functions emerge in numerous problems. The idea of convexity is essential in studying both linear and nonlinear programming issues. Convexity has endless uses in industry, business, medicine, and art, which have a significant impact on our daily lives [13, 14]. Convex functions can be applied to solving problems in management, economics, and, in fact, our everyday lives. For further literature review, we refer the reader to [1517].

Definition 1.1

A function \(\psi :J\rightarrow \mathbb{R}\), where J is an interval on the real line, is said to be convex if for any two points ς and τ in J and for any \(0\leq s\leq 1\),

$$ \psi \bigl(s\varsigma +(1-s)\tau \bigr)\leq s\psi (\varsigma )+(1-s)\psi (\tau ). $$

In nonlinear analysis the Hermite–Hadamard inequality is significant. This idea of inequalities has been applied in a variety of ways [1820].

Definition 1.2

Let \(\psi :J\rightarrow \mathbb{R}\) be a convex mapping, where \(J\subseteq \mathbb{R}\). For any two points ς and τ in J with \(\varsigma <\tau \), we have

$$ \psi \biggl(\frac{\varsigma +\tau}{2} \biggr)\leq \frac{1}{\tau -\varsigma} \int _{\varsigma}^{\tau}\psi (z)\,dz\leq \frac{\psi (\varsigma )+\psi (\tau )}{2}. $$

If ψ is concave, then the inequalities are reversed.

Toader [21] (also see [22]) introduced the concept of an m-convex function as follows.

Definition 1.3

Let \(\psi :[0,a]\rightarrow \mathbb{R}\) be an m-convex mapping, where \(m\in (0,1]\). For any two points ς and τ in \([0,a]\) with \(s\in [0,1]\), we have

$$ \psi \bigl(s\varsigma +m(1-s)\tau \bigr)\leq s\psi (\varsigma )+m(1-s)\psi ( \tau ). $$

Definition 1.4

([23])

The beta function is a special function closely related to the gamma function and binomial coefficients. It is defined by the integral

$$ B(y,z)= \int _{0}^{1}s^{y-1}(1-s)^{z-1}\,ds,\quad \Re (z)>0, \Re (y)>0. $$

To establish the main results, we need some lemmas. The first following lemma is given in [13].

Lemma 1.5

Let \(J \subseteq \mathbb{R}\), and let \(\psi :J\to \mathbb{R}\) be a differentiable function on \(J^{0}\). If ς and τ are any two points in J with \(\varsigma < \tau \), then we have

$$ \frac{\psi (\varsigma )+\psi (\tau )}{2}-\frac{1}{\tau -\varsigma} \int _{\varsigma}^{\tau}\psi (z)\,dz=\frac{(\tau -\varsigma )^{2}}{2} \int _{0}^{1}s(1-s)\psi '' \bigl(s\varsigma +(1-s)\tau \bigr)\,ds. $$

Kirmaci et al. [24] proved the following lemma.

Lemma 1.6

Let \(\psi :J\to \mathbb{R}\) be a differentiable function on \(J^{0}\), and let \(J \subseteq \mathbb{R}\). If ς and τ are any two points in \(J^{0}\) with \(\varsigma <\tau \), then we have

$$\begin{aligned} &\frac{1}{\tau -\varsigma} \int _{\varsigma}^{\tau}\psi (z)\,dz-\psi \biggl( \frac{\varsigma +\tau}{2} \biggr) \\ &\quad =(\tau -\varsigma ) \biggl[ \int _{0}^{\frac{1}{2}}s\psi '\bigl(\tau +( \varsigma -\tau )s\bigr)\,ds+ \int _{ \frac{1}{2}}^{1}(s-1)\psi '\bigl(\tau +( \varsigma -\tau )s\bigr)\,ds \biggr]. \end{aligned}$$

The proof of the next lemma can be found in [13].

Lemma 1.7

Let \(\psi :J\to \mathbb{R}\) be a differentiable mapping on \(J^{0}\), where \(J \subseteq \mathbb{R}\) and \(\varsigma < \tau \). If ψ is convex, then we have the following inequalities:

$$ \psi \biggl(\frac{\varsigma +\tau}{2} \biggr)\leq \frac{1}{\tau -\varsigma} \int _{\varsigma}^{\tau}\psi (z)\,dz \leq \frac{1}{4} \biggl[2\psi \biggl(\frac{\varsigma +\tau}{2} \biggr)+ \psi \biggl(\frac{3\tau -\varsigma}{2} \biggr)+\psi \biggl( \frac{3\varsigma -\tau}{2} \biggr) \biggr] $$

and

$$\begin{aligned}& \biggl\vert \frac{1}{\tau -\varsigma} \int _{\varsigma}^{\tau}\psi (z)\,dz- \frac{\psi (\frac{\varsigma +\tau}{2} )}{2} \biggr\vert \leq \biggl\vert \frac{1}{4} \biggl[\psi \biggl(\frac{3\tau -\varsigma}{2} \biggr)+\psi \biggl(\frac{3\varsigma -\tau}{2} \biggr) \biggr] \biggr\vert . \end{aligned}$$

This paper is organized as follows. In Sect. 2, we establish Hermite–Hadamard-type inequalities via m-convex functions fruitfully applying the Hölder inequality. Some applications to special means of real numbers are discussed in Sect. 3. In the last section, we conclude about the findings of all previous sections.

2 Main results

This section is devoted to Hermite–Hadamard-type inequalities via m-convex functions fruitfully applying the Hölder inequality. To derive the results of this section, we use the definition and properties of the beta function. The first main result of this section is as follows.

Theorem 2.1

Let \(\psi :J\subseteq \mathbb{R}\to \mathbb{R}\) be a differentiable function on \(J^{0}\), let \(\varsigma ,\tau \in J^{0}\) with \(\varsigma <\tau \), and let \(\varpi >1\). If \(|\psi '|^{\varrho}\) is m-convex on \([\varsigma ,\tau ]\) and \(\frac{1}{\varpi}+\frac{1}{\varrho}=1\), then

$$\begin{aligned} &\biggl\vert \frac{1}{\tau -\varsigma} \int _{\varsigma}^{\tau}\psi (z)\,dz- \psi \biggl( \frac{\varsigma +\tau}{2} \biggr) \biggr\vert \\ &\quad \leq \frac{\tau -\varsigma}{16} \biggl( \frac{4}{\varpi +1} \biggr)^{ \frac{1}{\varpi}} \biggl[ \biggl( \bigl\vert \psi '(\varsigma ) \bigr\vert ^{ \varrho}+3m \biggl\vert \psi ' \biggl(\frac{\tau}{m} \biggr) \biggr\vert ^{ \varrho} \biggr)^{\frac{1}{\varrho}} \\ & \qquad {}+ \biggl(3 \bigl\vert \psi '(\varsigma ) \bigr\vert ^{\varrho}+m \biggl\vert \psi ' \biggl(\frac{\tau}{m} \biggr) \biggr\vert ^{\varrho} \biggr)^{ \frac{1}{\varrho}} \biggr]. \end{aligned}$$
(2.1)

Proof

Using Lemma 1.6 and the Hölder inequality, we deduce

$$\begin{aligned} & \biggl\vert \frac{1}{\tau -\varsigma} \int _{\varsigma}^{\tau} \psi (z)\,dz-\psi \biggl( \frac{\varsigma +\tau}{2} \biggr) \biggr\vert \\ &\quad \leq (\tau -\varsigma ) \biggl[ \biggl( \int _{0}^{\frac{1}{2}}s^{ \varpi}\,ds \biggr)^{\frac{1}{\varpi}} \biggl( \int _{0}^{ \frac{1}{2}} \bigl\vert \psi ' \bigl(s\varsigma +(1-s)\tau \bigr) \bigr\vert ^{\varrho}\,ds \biggr)^{\frac{1}{\varrho}} \\ &\qquad {} + \biggl( \int _{\frac{1}{2}}^{1} \vert s-1 \vert ^{\varpi} \biggr)^{\frac{1}{\varpi}} \biggl( \int _{ \frac{1}{2}}^{1} \bigl\vert \psi ' \bigl(s\varsigma +(1-s)\tau \bigr) \bigr\vert ^{ \varrho}\,ds \biggr)^{\frac{1}{\varrho}} \biggr]. \end{aligned}$$
(2.2)

From the m-convexity of \(|\psi '|^{\varrho}\) we get

$$ \int _{0}^{\frac{1}{2}}s \bigl\vert \psi ' \bigl(s\varsigma +(1-s)\tau \bigr) \bigr\vert ^{\varrho}\,ds\leq \frac{1}{8} \biggl[ \bigl\vert \psi '(\varsigma ) \bigr\vert ^{\varrho}+3m \biggl\vert \psi ' \biggl( \frac{\tau}{m} \biggr) \biggr\vert ^{\varrho} \biggr]. $$
(2.3)

Similarly,

$$ \int _{\frac{1}{2}}^{1} \bigl\vert \psi '\bigl(s \varsigma +(1-s)\tau \bigr) \bigr\vert ^{\varrho}\,ds\leq \frac{1}{8} \biggl[3 \bigl\vert \psi '(\varsigma ) \bigr\vert ^{\varrho}+m \biggl\vert \psi ' \biggl(\frac{\tau}{m} \biggr) \biggr\vert ^{ \varrho} \biggr]. $$
(2.4)

Using relations (2.3) and (2.4) in (2.2), by simple calculations we obtain the desired result. □

Remark 2.2

If we set \(m=1\) in Theorem 2.1, then we get [14, Theorem 2.3].

Theorem 2.3

Let \(\psi :J\subseteq \mathbb{R}\to \mathbb{R}\) be a differentiable function on \(J^{0}\), let \(\varsigma ,\tau \in J^{0}\) with \(\varsigma <\tau \), and let \(\varpi >1\). If the mapping \(|\psi '|^{\varrho}\) is m-convex on \([\varsigma ,\tau ]\) and \(\frac{1}{\varpi}+\frac{1}{\varrho}=1\), then

$$\begin{aligned}& \biggl\vert \frac{1}{\tau -\varsigma} \int _{\varsigma}^{\tau}\psi (z)\,dz- \psi \biggl( \frac{\varsigma +\tau}{2} \biggr) \biggr\vert \\& \quad \leq \frac{\tau -\varsigma}{4} \biggl( \frac{4}{\varpi +1} \biggr)^{ \frac{1}{\varpi}} \biggl( \bigl\vert \psi '(\varsigma ) \bigr\vert +m \biggl\vert \psi ' \biggl(\frac{\tau}{m} \biggr) \biggr\vert \biggr). \end{aligned}$$
(2.5)

Proof

By using Theorem 2.1 with substitutions

$$\begin{aligned} &\varsigma _{1}= \bigl\vert \psi '(\varsigma ) \bigr\vert ^{\varrho},\qquad \tau _{1}=3m \biggl\vert \psi ' \biggl(\frac{\tau}{m} \biggr) \biggr\vert ^{ \varrho}, \\ &\varsigma _{2}=3 \bigl\vert \psi '(\varsigma ) \bigr\vert ^{\varrho}, \qquad \tau _{2}=m \biggl\vert \psi ' \biggl(\frac{\tau}{m} \biggr) \biggr\vert ^{ \varrho}, \end{aligned}$$

where \(0\leq \frac{1}{\varrho}<1\) for \(\varpi >1\), and using the inequality

$$ \sum_{p=1}^{n}(\varsigma _{p}+ \tau _{p})^{s}\leq \sum_{p=1}^{n} \varsigma _{p}^{s}+\sum_{p=1}^{n} \tau _{p}^{s} $$

for \(\varsigma _{i}, \tau _{i}\geq 0\) (\(i=1,2,\ldots ,n\)) and \(0\leq s<1\), we obtain inequality (2.5). □

Remark 2.4

If we set \(m=1\) in Theorem 2.3, then we get [14, Theorem 2.4].

Theorem 2.5

Let \(\psi :J\subseteq \mathbb{R}\to \mathbb{R}\) be a differentiable mapping on \(J^{0}\), let \(\varsigma ,\tau \in J^{0}\) with \(\varsigma <\tau \), and let \(m\tau \neq \varsigma \). If \(\psi ''\) is an m-convex function, then

$$\begin{aligned} & \frac{\psi (\varsigma )+m\psi (\tau )}{2}- \frac{1}{(m\tau -\varsigma )} \int _{\varsigma}^{m\tau}\psi (z)\,dz \\ &\quad =\frac{(m\tau -\varsigma )^{2}}{2} \int _{0}^{1}s(1-s)\psi '' \bigl(s \varsigma +m(1-s)\tau \bigr)\,ds \\ &\quad \leq \frac{(m\tau -\varsigma )^{2}}{24} \bigl[\psi ''(\varsigma )+m \psi ''(\tau ) \bigr]. \end{aligned}$$
(2.6)

Proof

Consider the middle part of (2.6), i.e.,

$$ I:=\frac{(m\tau -\varsigma )^{2}}{2} \int _{0}^{1}s(1-s)\psi '' \bigl(s \varsigma +m(1-s)\tau \bigr)\,ds. $$

Integrating by parts, we get

$$ I=-\frac{(m\tau -\varsigma )^{2}}{2} \int _{0}^{1} \frac{(1-2s)\psi '(s \varsigma +m(1-s)\tau )}{\varsigma -m \tau}\,ds. $$

Again integrating by parts, we obtain

$$ I=\frac{\psi (\varsigma )+m\psi (\tau )}{2}- \int _{0}^{1} \psi \bigl(s \varsigma +m(1-s)\tau \bigr)\,ds. $$

Using the change of variable \(z=s\varsigma +m(1-s)\tau \), where \(s\in [0,1]\), we get

$$\begin{aligned}& \frac{\psi (\varsigma )+m\psi (\tau )}{2}- \frac{1}{(m\tau -\varsigma )} \int _{\varsigma}^{m\tau}\psi (z)\,dz \\& \quad = \frac{(m\tau -\varsigma )^{2}}{2} \int _{0}^{1}s(1-s)\psi '' \bigl(s \varsigma +m(1-s)\tau \bigr)\,ds. \end{aligned}$$
(2.7)

Again considering the middle part of (2.6) and using the m-convexity of \(\psi ''\), we get

$$ \frac{(m\tau -\varsigma )^{2}}{2} \int _{0}^{1}s(1-s)\psi '' \bigl(s \varsigma +m(1-s)\tau \bigr)\,ds\leq \frac{(\tau m-\varsigma )^{2}}{24} \bigl[\psi ''(\varsigma )+m\psi ''(\tau ) \bigr]. $$
(2.8)

Combining (2.7) and (2.8), we achieve (2.6). □

Theorem 2.6

Let \(\psi :J\subseteq \mathbb{R}\to \mathbb{R}\) be a differentiable function on \(J^{0}\), and let \(\varsigma ,\tau \in J^{0}\) with \(\varsigma <\tau \). If \(\psi '\) is an m-convex function, then

$$\begin{aligned} &\frac{1}{m\tau -\varsigma} \int _{\varsigma}^{m\tau}\psi (z)\,dz-\psi \biggl( \frac{\varsigma +m\tau}{2} \biggr) \\ &\quad =(m\tau -\varsigma ) \biggl[ \int _{0}^{\frac{1}{2}}s\psi '\bigl(s \varsigma +m(1-s)\tau \bigr)\,ds+ \int _{\frac{1}{2}}^{1}(s-1)\psi '\bigl(s \varsigma +m(1-s)\tau \bigr)\,ds \biggr] \\ &\quad \leq \frac{(\tau m-\varsigma )^{2}}{8} \bigl[\psi '(\varsigma )+m \psi '(\tau ) \bigr]. \end{aligned}$$
(2.9)

Proof

Consider the middle part of (2.9), i.e.,

$$ I:=(m\tau -\varsigma ) \biggl[ \int _{0}^{\frac{1}{2}}s\psi '\bigl(s \varsigma +m(1-s)\tau \bigr)\,ds+ \int _{\frac{1}{2}}^{1}(s-1)\psi '\bigl(s \varsigma +m(1-s)\tau \bigr)\,ds \biggr]. $$

Integrating by parts, we get

$$ I=-\psi \biggl(\frac{\varsigma +m\tau}{2} \biggr)+ \int _{0}^{ \frac{1}{2}}\psi \bigl(s\varsigma +m(1-s)\tau \bigr)\,ds+ \int _{ \frac{1}{2}}^{1}\psi \bigl(s\varsigma +m(1-s)\tau \bigr)\,ds. $$

Using the change of variable \(z=s\varsigma +m(1-s)\tau \), where \(s\in [0,1]\), we get

$$\begin{aligned} &\frac{1}{m\tau -\varsigma} \int _{\varsigma}^{m\tau}\psi (z)\,dz-\psi \biggl( \frac{\varsigma +m\tau}{2} \biggr) \\ &\quad =(m\tau -\varsigma ) \biggl[ \int _{0}^{\frac{1}{2}}s\psi '\bigl(s \varsigma +m(1-s)\tau \bigr)\,ds+ \int _{\frac{1}{2}}^{1}(s-1)\psi '\bigl(s \varsigma +m(1-s)\tau \bigr)\,ds \biggr]. \end{aligned}$$
(2.10)

Again considering the middle part of (2.9) and using the m-convexity of \(\psi '\), we get

$$\begin{aligned} &(m\tau -\varsigma ) \biggl[ \int _{0}^{\frac{1}{2}}s\psi '\bigl(s\varsigma +m(1-s) \tau \bigr)\,ds+ \int _{\frac{1}{2}}^{1}(s-1)\psi '\bigl(s\varsigma +m(1-s)\tau \bigr)\,ds \biggr] \\ &\quad \leq \frac{(\tau m-\varsigma )^{2}}{8} \bigl[\psi '(\varsigma )+m \psi '(\tau ) \bigr]. \end{aligned}$$
(2.11)

Combining (2.10) and (2.11), we achieve (2.9). □

Theorem 2.7

Let \(\psi :J\subseteq \mathbb{R}\rightarrow \mathbb{R}\) be a differentiable mapping on \(J^{0}\), let \(\varsigma ,\tau \in J^{0}\) with \(\varsigma <\tau \), and \(\psi '\in C [\frac{3\varsigma -\tau}{2}, \frac{3\tau -\varsigma}{2} ]\) be such that \(\psi '(z)\in \mathbb{R}\) for all \(z\in (\frac{3\varsigma -\tau}{2},\frac{3\tau -\varsigma}{2} )\). If \(\varrho \geq 1\) and \(|\psi '|^{\varrho}\) is an m-convex mapping on \([\frac{3\varsigma -\tau}{2},\frac{3\tau -\varsigma}{2}]\), then we have the following inequality:

$$\begin{aligned} & \biggl\vert \frac{1}{\tau -\varsigma} \int _{\varsigma}^{\tau} \psi (z)\,dz-\psi \biggl( \frac{\varsigma +\tau}{2} \biggr) \biggr\vert \\ &\quad \leq \frac{\tau -\varsigma}{8} \biggl( \biggl\vert \psi ' \biggl( \frac{3\varsigma -\tau}{2} \biggr) \biggr\vert ^{\varrho}+m \biggl\vert \psi ' \biggl(\frac{3\tau -\varsigma}{2m} \biggr) \biggr\vert ^{\varrho} \biggr)^{ \frac{1}{\varrho}}. \end{aligned}$$

Proof

By Lemma 1.6 we have

$$\begin{aligned} &\frac{1}{2(\tau -\varsigma )} \int _{ \frac{3\varsigma -\tau}{2}}^{\frac{3\tau -\varsigma}{2}}\psi (z)\,dz- \psi \biggl( \frac{\varsigma +\tau}{2} \biggr) \\ &\quad =2(\tau -\varsigma ) \biggl( \int _{0}^{\frac{1}{2}}s\psi ' \biggl( \frac{3\tau -\varsigma}{2}+2(\varsigma -\tau )s \biggr)\,ds \\ &\qquad {}+ \int _{\frac{1}{2}}^{1}(s-1)\psi ' \biggl( \frac{3\tau -\varsigma}{2}+2(\varsigma -\tau )s \biggr)\,ds \biggr). \end{aligned}$$

By Lemma 1.7 we obtain

$$\begin{aligned} & \biggl\vert \frac{1}{\tau -\varsigma} \int _{\varsigma}^{\tau} \psi (z)\,dz-\psi \biggl( \frac{\varsigma +\tau}{2} \biggr) \biggr\vert \\ &\quad \leq (\tau -\varsigma ) \biggl( \int _{0}^{\frac{1}{2}}s \biggl\vert \psi ' \biggl(\frac{3\tau -\varsigma}{2}+2(\tau -\varsigma )s \biggr) \biggr\vert \,ds \\ &\qquad {} + \int _{\frac{1}{2}}^{1}(1-s) \biggl\vert \psi ' \biggl(\frac{3\tau -\varsigma}{2}+2(\tau -\varsigma )s \biggr) \biggr\vert \,ds \biggr). \end{aligned}$$
(2.12)

We consider the following two cases.

  1. (i)

    For \(\varrho =1\), using the m-convexity of \(|\psi '|\) on \([\frac{3\varsigma -\tau}{2},\frac{3\tau -\varsigma}{2} ]\) with \(s\in [0,1]\), we obtain

$$\begin{aligned} & \int _{0}^{\frac{1}{2}}s \biggl\vert \psi ' \biggl( \frac{3\tau -\varsigma}{2}+2(\varsigma -\tau )s \biggr) \biggr\vert \,ds \\ &\quad = \int _{0}^{\frac{1}{2}}s \biggl\vert \psi ' \biggl(s \biggl( \frac{3\varsigma -\tau}{2} \biggr)+m(1-s) \biggl( \frac{3\tau -\varsigma}{2m} \biggr) \biggr) \biggr\vert \,ds \\ &\quad \leq \frac{{ \vert \psi ' (\frac{3\varsigma -\tau}{2} ) \vert }+2m \vert \psi ' (\frac{3\tau -\varsigma}{2m} ) \vert }{24}. \end{aligned}$$
(2.13)

Similarly, we get

$$\begin{aligned} & \int _{\frac{1}{2}}^{1}(1-s) \biggl\vert \psi ' \biggl( \frac{3\tau -\varsigma}{2}+2(\tau -\varsigma )s \biggr) \biggr\vert \,ds \\ &\quad = \int _{\frac{1}{2}}^{1}(1-s) \biggl\vert \psi ' \biggl(s \biggl( \frac{3\varsigma -\tau}{2} \biggr)+m(1-s) \biggl( \frac{3\tau -\varsigma}{2m} \biggr) \biggr) \biggr\vert \,ds \\ &\quad \leq \frac{{2 \vert \psi ' (\frac{3\varsigma -\tau}{2} ) \vert }+m \vert \psi ' (\frac{3\tau -\varsigma}{2m} ) \vert }{24}. \end{aligned}$$
(2.14)

Substituting inequalities (2.13) and (2.14) into (2.12), we get

$$\begin{aligned} &\biggl\vert \frac{1}{\tau -\varsigma} \int _{\varsigma}^{\tau}\psi (z)\,dz- \psi \biggl( \frac{\varsigma +\tau}{2} \biggr) \biggr\vert \\ &\quad \leq \frac{\tau -\varsigma}{8} \biggl( \biggl\vert \psi ' \biggl( \frac{3\varsigma -\tau}{2} \biggr) \biggr\vert +m \biggl\vert \psi ' \biggl( \frac{3\tau -\varsigma}{2m} \biggr) \biggr\vert \biggr). \end{aligned}$$
  1. (ii)

    Now suppose that \(\varrho >1\). Using the Hölder inequality for \(\varrho >1\) and \(\varpi =\frac{\varrho}{\varrho -1}\), we get

$$\begin{aligned} & \int _{0}^{\frac{1}{2}}s \biggl\vert \psi ' \biggl( \frac{3\tau -\varsigma}{2}+2(\varsigma -\tau )s \biggr) \biggr\vert \,ds \\ &\quad = \int _{0}^{\frac{1}{2}}s \biggl\vert \psi ' \biggl(s \biggl( \frac{3\varsigma -\tau}{2} \biggr)+(1-s) \biggl( \frac{3\tau -\varsigma}{2} \biggr) \biggr) \biggr\vert \,ds \\ &\quad = \int _{0}^{\frac{1}{2}}s^{1-\frac{1}{\varrho}} \biggl(s^{ \frac{1}{\varrho}} \biggl\vert \psi ' \biggl(s \biggl( \frac{3\varsigma -\tau}{2} \biggr)+(1-s) \biggl( \frac{3\tau -\varsigma}{2} \biggr) \biggr) \biggr\vert \biggr)\,ds \\ &\quad \leq \biggl( \int _{0}^{\frac{1}{2}}s\,ds \biggr)^{1- \frac{1}{\varrho}} \biggl( \int _{0}^{\frac{1}{2}}s \biggl\vert \psi ' \biggl(s \biggl(\frac{3\varsigma -\tau}{2} \biggr)+(1-s) \biggl( \frac{3\tau -\varsigma}{2} \biggr) \biggr) \biggr\vert ^{\varrho}\,ds \biggr)^{ \frac{1}{\varrho}} \\ &\quad \leq \biggl(\frac{1}{8} \biggr)^{1-\frac{1}{\varrho}} \biggl( \int _{0}^{\frac{1}{2}}s \biggl\vert \psi ' \biggl(s \biggl( \frac{3\varsigma -\tau}{2} \biggr)+m(1-s) \biggl( \frac{3\tau -\varsigma}{2m} \biggr) \biggr) \biggr\vert ^{\varrho}\,ds \biggr)^{\frac{1}{\varrho}} \\ &\quad \leq \biggl(\frac{1}{8} \biggr)^{1-\frac{1}{\varrho}} \biggl( \frac{ \vert \psi ' (\frac{3\varsigma -\tau}{2} ) \vert ^{\varrho}+2m \vert \psi ' (\frac{3\tau -\varsigma}{2m} ) \vert ^{\varrho}}{24} \biggr)^{\frac{1}{\varrho}}. \end{aligned}$$
(2.15)

In the same way, we get

$$\begin{aligned} & \int _{\frac{1}{2}}^{1}(1-s) \biggl\vert \psi ' \biggl( \frac{3\tau -\varsigma}{2}+2(\tau -\varsigma )s \biggr) \biggr\vert \,ds \\ &\quad \leq \biggl(\frac{1}{8} \biggr)^{1-\frac{1}{\varrho}} \biggl( \frac{2 \vert \psi ' (\frac{3\varsigma -\tau}{2} ) \vert ^{\varrho}+m \vert \psi ' (\frac{3\tau -\varsigma}{2m} ) \vert ^{\varrho}}{24} \biggr)^{\frac{1}{\varrho}}. \end{aligned}$$
(2.16)

So inequalities (2.12), (2.15), and (2.16) prove the theorem. □

Remark 2.8

If we set \(m=1\) in Theorem 2.7, then we get [13, Theorem 1].

Theorem 2.9

Let \(\psi :J\subseteq \mathbb{R}\rightarrow \mathbb{R}\) be a differentiable function on \(J^{0}\), let \(\varsigma ,\tau \in J^{0}\) with \(\varsigma <\tau \), and let \(\psi '\in C [\frac{3\varsigma -\tau}{2}, \frac{3\tau -\varsigma}{2} ]\) be such that \(\psi '(z)\in \mathbb{R}\) for all \(z\in (\frac{3\varsigma -\tau}{2},\frac{3\tau -\varsigma}{2} )\). If \({\varrho}>1\) and \(|\psi '|^{\varrho}\) is an m-convex mapping on \([\frac{3\varsigma -\tau}{2},\frac{3\tau -\varsigma}{2}]\), then we have the following inequality:

$$\begin{aligned} & \biggl\vert \frac{1}{\tau -\varsigma} \int _{\varsigma}^{\tau} \psi (z)\,dz-\psi \biggl( \frac{\varsigma +\tau}{2} \biggr) \biggr\vert \\ &\quad \leq (\tau -\varsigma ) \biggl(\frac{1}{(\varpi +1)2^{\varpi +1}} \biggr)^{\frac{1}{\varpi}} \biggl( \frac{ \vert \psi ' (\frac{3\varsigma -\tau}{2} ) \vert ^{\varrho}+m \vert \psi ' (\frac{3\tau -\varsigma}{2m} ) \vert ^{\varrho}}{2} \biggr)^{\frac{1}{\varrho}} \end{aligned}$$
(2.17)

with \(\frac{1}{\varpi}+\frac{1}{\varrho}=1\).

Proof

By the Hölder inequality we have

$$\begin{aligned} & \int _{0}^{\frac{1}{2}}s \biggl\vert \psi ' \biggl(s \biggl( \frac{3\varsigma -\tau}{2} \biggr)+(1-s) \biggl( \frac{3\tau -\varsigma}{2} \biggr) \biggr) \biggr\vert \,ds \\ &\quad \leq \biggl( \int _{0}^{\frac{1}{2}}s^{\varpi}\,ds \biggr)^{ \frac{1}{\varpi}} \biggl( \int _{0}^{\frac{1}{2}} \biggl\vert \psi ' \biggl(s \biggl(\frac{3\varsigma -\tau}{2} \biggr)+(1-s) \biggl( \frac{3\tau -\varsigma}{2} \biggr) \biggr) \biggr\vert ^{\varrho}\,ds \biggr)^{ \frac{1}{\varrho}} \\ &\quad = \biggl( \int _{0}^{\frac{1}{2}}s^{\varpi}\,ds \biggr)^{ \frac{1}{\varpi}} \biggl( \int _{0}^{\frac{1}{2}} \biggl\vert \psi ' \biggl(s \biggl(\frac{3\varsigma -\tau}{2} \biggr)+m(1-s) \biggl( \frac{3\varsigma -\tau}{2m} \biggr) \biggr) \biggr\vert ^{\varrho}\,ds \biggr)^{\frac{1}{\varrho}} \\ &\quad \leq \biggl(\frac{1}{(\varpi +1)2^{\varpi +1}} \biggr)^{ \frac{1}{\varpi}} \\ &\qquad {}\times \biggl( \biggl\vert \psi ' \biggl( \frac{3\varsigma -\tau}{2} \biggr) \biggr\vert ^{\varrho} \int _{0}^{ \frac{1}{2}}s\,ds+m \biggl\vert \psi ' \biggl(\frac{3\tau -\varsigma}{2m} \biggr) \biggr\vert ^{\varrho} \int _{0}^{\frac{1}{2}}(1-s)\,ds \biggr)^{\frac{1}{\varrho}} \\ &\quad \leq \biggl(\frac{1}{2^{\varpi +1}(\varpi +1)} \biggr)^{ \frac{1}{\varpi}} \biggl( \frac{ \vert \psi ' (\frac{3\varsigma -\tau}{2} ) \vert ^{\varrho}+3m \vert \psi ' (\frac{3\tau -\varsigma}{2m} ) \vert ^{\varrho}}{8} \biggr)^{\frac{1}{\varrho}}. \end{aligned}$$
(2.18)

Similarly, we get

$$\begin{aligned} & \int _{\frac{1}{2}}^{1}(1-s) \biggl\vert \psi ' \biggl(s \biggl( \frac{3\tau -\varsigma}{2} \biggr)+(1-s) \biggl( \frac{3\tau -\varsigma}{2} \biggr) \biggr) \biggr\vert \,ds \\ &\quad \leq \biggl(\frac{1}{(\varpi +1)2^{\varpi +1}} \biggr)^{ \frac{1}{\varpi}} \biggl( \frac{3 \vert \psi ' (\frac{3\varsigma -\tau}{2} ) \vert ^{\varrho} +m \vert \psi ' (\frac{3\tau -\varsigma}{2m} ) \vert ^{\varrho}}{8} \biggr)^{\frac{1}{\varrho}}. \end{aligned}$$
(2.19)

Thus by combining inequalities (2.18) and (2.19) we get the required result. □

Remark 2.10

If we set \(m=1\) in Theorem 2.9, then we get [13, Theorem 2].

Corollary 2.11

Under the assumption? of Theorems 2.7and 2.9, we obtain the following inequality for \(\varrho >1\):

$$\begin{aligned} & \biggl\vert \frac{1}{\tau -\varsigma} \int _{\varsigma}^{\tau} \psi (z)\,dz-\psi \biggl( \frac{\varsigma +\tau}{2} \biggr) \biggr\vert \\ &\quad \leq \min \{K_{1},K_{2}\}(\tau -\varsigma ) \biggl( \biggl\vert \psi ' \biggl(\frac{3\varsigma -\tau}{2} \biggr) \biggr\vert ^{\varrho}+m \biggl\vert \psi ' \biggl(\frac{3\tau -\varsigma}{2m} \biggr) \biggr\vert ^{\varrho} \biggr)^{\frac{1}{\varrho}}, \end{aligned}$$
(2.20)

where \(K_{1}=\frac{1}{8}\), \(K_{2}= ( \frac{1}{(\varpi +1)2^{\varpi +1+\frac{1}{\varpi \varrho}}} )^{ \frac{1}{\varpi}}\), and \(\frac{1}{\varpi}+\frac{1}{\varrho}=1\).

Theorem 2.12

Let \(\psi :J\subseteq \mathbb{R}\rightarrow \mathbb{R}\) be a convex function such that \(\psi ''\) exists on \(J^{0}\), let \(\varsigma ,\tau \in J^{0}\) with \(\varsigma <\tau \), and let \(\psi '': [\frac{3\varsigma -\tau}{2},\frac{3\tau -\varsigma}{2} ]\rightarrow \mathbb{R}\) be a continuous function. If \({\varrho}\geq 1\) and \(|\psi ''|^{\varrho}\) is an m-convex function on \([\frac{3\varsigma -\tau}{2},\frac{3\tau -\varsigma}{2} ]\), then we have the following inequality:

$$\begin{aligned} & \biggl\vert \frac{1}{(\tau -\varsigma )} \int _{\varsigma}^{\tau} \psi (z)\,dz- \frac{\psi (\frac{3\varsigma -\tau}{2} )+\psi (\frac{3\tau -\varsigma}{2} )+2\psi (\frac{\varsigma +\tau}{2} )}{4} \biggr\vert \\ &\quad \leq \frac{(\tau -\varsigma )^{2}}{3} \biggl( \frac{ \vert \psi '' (\frac{3\varsigma -\tau}{2} ) \vert ^{\varrho}+m \vert \psi '' (\frac{3\tau -\varsigma}{2m} ) \vert ^{\varrho}}{2} \biggr)^{\frac{1}{\varrho}}. \end{aligned}$$
(2.21)

Proof

By Lemma 1.5 we have

$$\begin{aligned} & \frac{1}{2(\tau -\varsigma )} \int _{ \frac{3\varsigma -\tau}{2}}^{\frac{3\tau -\varsigma}{2}}\psi (z)\,dz \\ &\quad = \frac{\psi (\frac{3\tau -\varsigma}{2} )+\psi (\frac{3\varsigma -\tau}{2} )}{2} \\ &\qquad {} -2(\tau -\varsigma )^{2} \int _{0}^{1}s(1-s)\psi '' \biggl(s \biggl(\frac{3\varsigma -\tau}{2} \biggr)+(1-s) \biggl( \frac{3\tau -\varsigma}{2} \biggr) \biggr)\,ds. \end{aligned}$$
(2.22)

Thus by applying Lemma 1.7 to (2.22), we obtain

$$\begin{aligned} & \biggl\vert \frac{1}{\tau -\varsigma} \int _{\varsigma}^{\tau} \psi (z)\,dz- \frac{\psi (\frac{3\varsigma -\tau}{2} )+\psi (\frac{3\tau -\varsigma}{2} )+2\psi (\frac{\varsigma +\tau}{2} )}{4} \biggr\vert \\ &\quad \leq 2(\tau -\varsigma )^{2} \int _{0}^{1}s(1-s) \biggl\vert \psi '' \biggl(s \biggl(\frac{3\varsigma -\tau}{2} \biggr)+(1-s) \biggl( \frac{3\tau -\varsigma}{2} \biggr) \biggr) \biggr\vert \,ds. \end{aligned}$$
(2.23)

In the case \({\varrho}=1\) the function \(|\psi ''|\) is m-convex on \([\frac{3\varsigma -\tau}{2},\frac{3\tau -\varsigma}{2} ]\), and we get

$$\begin{aligned} & \int _{0}^{1}s(1-s) \biggl\vert \psi '' \biggl(s \biggl( \frac{3\varsigma -\tau}{2} \biggr)+(1-s) \biggl( \frac{3\tau -\varsigma}{2} \biggr) \biggr) \biggr\vert \,ds \\ &\quad \leq \biggl\vert \psi '' \biggl(\frac{3\varsigma -\tau}{2} \biggr) \biggr\vert \int _{0}^{1}s^{2}(1-s)\,ds+m \biggl\vert \psi '' \biggl( \frac{3\tau -\varsigma}{2m} \biggr) \biggr\vert \int _{0}^{1}s(1-s)^{2}\,ds \\ &\quad =\frac{1}{12} \biggl( \biggl\vert \psi '' \biggl(\frac{3\varsigma -\tau}{2} \biggr) \biggr\vert +m \biggl\vert \psi '' \biggl(\frac{3\tau -\varsigma}{2m} \biggr) \biggr\vert \biggr). \end{aligned}$$
(2.24)

By using this value in (2.23) we deduce that inequality (2.23) holds for \({\varrho}=1\).

Now assume that \({\varrho}>1\). Using the Hölder inequality for \(\frac{1}{\varrho}+\frac{1}{\varpi}=1\), we get

$$\begin{aligned} & \int _{0}^{1}\bigl(s-s^{2}\bigr) \biggl\vert \psi '' \biggl(s \biggl( \frac{3\varsigma -\tau}{2} \biggr)+(1-s) \biggl( \frac{3\tau -\varsigma}{2} \biggr) \biggr) \biggr\vert \,ds \\ &\quad = \int _{0}^{1} \bigl(\bigl(s-s^{2} \bigr)^{1-\frac{1}{\varrho}}\bigl(s-s^{2}\bigr)^{ \frac{1}{\varrho}} \bigr) \biggl\vert \psi '' \biggl(s \biggl( \frac{3\varsigma -\tau}{2} \biggr)+(1-s) \biggl( \frac{3\tau -\varsigma}{2} \biggr) \biggr) \biggr\vert \,ds \\ &\quad \leq \biggl( \int _{0}^{1}\bigl(s-s^{2}\bigr) \biggr)^{1- \frac{1}{\varrho}} \biggl(\bigl(s-s^{2}\bigr) \biggl\vert \psi '' \biggl(s \biggl( \frac{3\varsigma -\tau}{2} \biggr) +m(1-s) \biggl( \frac{3\tau -\varsigma}{2m} \biggr) \biggr) \biggr\vert ^{\varrho}\,ds \biggr)^{\frac{1}{\varrho}} \\ &\quad \leq \biggl(\frac{1}{6} \biggr)^{1-\frac{1}{\varrho}} \biggl( \biggl\vert \psi '' \biggl(\frac{3\varsigma -\tau}{2} \biggr) \biggr\vert ^{\varrho} \int _{0}^{1}\bigl(s^{2}-s^{3} \bigr)\,ds \\ &\qquad {}+m \biggl\vert \psi '' \biggl( \frac{3\tau -\varsigma}{2m} \biggr) \biggr\vert ^{\varrho} \int _{0}^{1}\bigl(s^{3}-2s^{2}+s \bigr)\,ds \biggr)^{\frac{1}{\varrho}} \\ &\quad \leq \biggl(\frac{1}{6} \biggr)^{1-\frac{1}{\varrho}} \biggl( \frac{ \vert \psi '' (\frac{3\varsigma -\tau}{2} ) \vert ^{\varrho} +m \vert \psi '' (\frac{3\tau -\varsigma}{2m} ) \vert ^{\varrho}}{12} \biggr)^{\frac{1}{\varrho}}. \end{aligned}$$

This completes the proof. □

Remark 2.13

  1. (i)

    If we set \(m=1\) in Theorem 2.12, then we get [13, Theorem 3].

  2. (ii)

    If \(\vert \psi ''(z) \vert \leq K\) on \([\frac{3\varsigma -\tau}{2},\frac{3\tau -\varsigma}{2} ]\) in Theorem 2.12, then we get

    $$\begin{aligned} & \biggl\vert \frac{1}{(\tau -\varsigma )} \int _{\varsigma}^{\tau} \psi (z)\,dz-\frac{1}{4} \biggl[ \psi \biggl(\frac{3\varsigma -\tau}{2} \biggr) +\psi \biggl(\frac{3\tau -\varsigma}{2} \biggr)+2\psi \biggl( \frac{\varsigma +\tau}{2} \biggr) \biggr] \biggr\vert \\ &\quad \leq \frac{K(\tau -\varsigma )^{2}}{3} \biggl(\frac{m+1}{2} \biggr)^{ \frac{1}{\varrho}}. \end{aligned}$$

Theorem 2.14

Let \(\psi :J^{0}\subseteq \mathbb{R}\rightarrow \mathbb{R}\) be a twice differentiable mapping on \(J^{0}\), let \(\varsigma ,\tau \in J^{0}\) with \(\varsigma <\tau \), and let \(\psi ''\in C [\frac{3\varsigma -\tau}{2} \frac{3\tau -\varsigma}{2} ]\) be such that \(\psi ''(z)\in \mathbb{R}\) for all \(z\in (\frac{3\varsigma -\tau}{2},\frac{3\tau -\varsigma}{2} )\). If \({\varrho}>1\) and \(|\psi ''|^{\varrho}\) is an m-convex function on \([\frac{3\varsigma -\tau}{2},\frac{3\tau -\varsigma}{2} ]\), then we have the following inequality:

$$\begin{aligned} & \biggl\vert \frac{1}{\tau -\varsigma} \int _{\varsigma}^{\tau} \psi (z)\,dz-\frac{1}{4} \biggl[ \psi \biggl(\frac{3\varsigma -\tau}{2} \biggr)+\psi \biggl(\frac{3\tau -\varsigma}{2} \biggr)+2\psi \biggl( \frac{\varsigma +\tau}{2} \biggr) \biggr] \biggr\vert \\ &\quad \leq \frac{(\tau -\varsigma )^{2}}{2} \biggl( \frac{\sqrt{\pi}\Gamma (\varpi +1)}{2\Gamma (\varpi +\frac{3}{2})} \biggr)^{\frac{1}{\varpi}} \biggl( \frac{ \vert \psi '' (\frac{3\varsigma -\tau}{2} ) \vert ^{\varrho}+m \vert \psi '' (\frac{3\tau -\varsigma}{2m} ) \vert ^{\varrho}}{2} \biggr), \end{aligned}$$

where \(\frac{1}{\varpi}+\frac{1}{\varrho}=1\).

Proof

Using first the Hölder inequality and then the m-convexity of the function \(|\psi ''|^{\varrho}\), we have

$$\begin{aligned} I :=& \int _{0}^{1}\bigl(s-s^{2}\bigr) \biggl\vert \psi '' \biggl(s \biggl( \frac{3\varsigma -\tau}{2} \biggr)+(1-s) \biggl( \frac{3\tau -\varsigma}{2} \biggr) \biggr) \biggr\vert \,ds \\ \leq& \biggl( \int _{0}^{1}\bigl(s-s^{2} \bigr)^{\varpi}\,ds \biggr)^{ \frac{1}{\varpi}} \biggl( \int _{0}^{1} \biggl\vert \psi '' \biggl(s \biggl(\frac{3\varsigma -\tau}{2} \biggr)+m(1-s) \biggl( \frac{3\tau -\varsigma}{2m} \biggr) \biggr) \biggr\vert ^{\varrho}\,ds \biggr)^{\frac{1}{\varrho}} \\ \leq& \biggl( \int _{0}^{1}\bigl(s-s^{2} \bigr)^{\varpi}\,ds \biggr)^{ \frac{1}{\varpi}} \\ &{}\times \biggl( \biggl\vert \psi '' \biggl( \frac{3\varsigma -\tau}{2} \biggr) \biggr\vert ^{\varrho} \int _{0}^{1}s\,ds+m \biggl\vert \psi '' \biggl(\frac{3\tau -\varsigma}{2m} \biggr) \biggr\vert ^{ \varrho} \int _{0}^{1}(1-s)\,ds \biggr)^{\frac{1}{\varrho}} . \end{aligned}$$

By the definition of the beta function we get

$$\begin{aligned} I \leq& \bigl[B(\varpi +1,\varpi +1) \bigr]^{\frac{1}{\varpi}} \\ &{}\times \biggl( \biggl\vert \psi '' \biggl(\frac{3\varsigma -\tau}{2} \biggr) \biggr\vert ^{ \varrho} \int _{0}^{1}s\,ds+m \biggl\vert \psi '' \biggl( \frac{3\tau -\varsigma}{2m} \biggr) \biggr\vert ^{\varrho} \int _{0}^{1}(1-s)\,ds \biggr)^{\frac{1}{\varrho}}. \end{aligned}$$

Using the equalities \(B(z,z)=2^{1-2z}B(\frac{1}{2},z)\) and \(B(y,z)=\frac{\Gamma (y)\Gamma (z)}{\Gamma (y+z)}\), we get

$$ I= \biggl( \frac{\sqrt{\pi} \Gamma (\varpi +1)}{\Gamma (\varpi +\frac{3}{2})2^{1+2\varpi}} \biggr)^{\frac{1}{\varpi}} \biggl( \frac{ \vert \psi '' (\frac{3\varsigma -\tau}{2} ) \vert ^{\varrho}+m \vert \psi '' (\frac{3\tau -\varsigma}{2m} ) \vert ^{\varrho}}{2} \biggr)^{\frac{1}{\varrho}}. $$
(2.25)

Finally, from (2.23) and (2.25) we obtain the desired result. □

Remark 2.15

  1. (i)

    If we set \(m=1\) in Theorem 2.14, then we get [13, Theorem 4];

  2. (ii)

    Using the assumptions of Theorem 2.14 with \(\psi ''(z)\leq K\) on \([\frac{3\varsigma -\tau}{2},\frac{3\tau -\varsigma}{2} ]\), we get

    $$\begin{aligned} & \biggl\vert \frac{1}{\tau -\varsigma} \int _{\varsigma}^{\tau} \psi (z)\,dz- \frac{\psi (\frac{3\varsigma -\tau}{2} ) + (\frac{3\tau -\varsigma}{2} )+2\psi (\frac{\varsigma +\tau}{2} )}{4} \biggr\vert \\ &\quad \leq K\frac{(\tau -\varsigma )^{2}}{2} \biggl(\frac{m+1}{2} \biggr)^{ \frac{1}{\varrho}} \biggl( \frac{\sqrt{\pi} \Gamma (\varpi +1)}{2\Gamma (\varpi +\frac{3}{2})} \biggr)^{\frac{1}{\varpi}}. \end{aligned}$$
    (2.26)

Theorem 2.16

Under the assumptions of Theorem 2.14, we have the following inequality:

$$\begin{aligned} & \biggl\vert \frac{1}{\tau -\varsigma} \int _{\varsigma}^{\tau} \psi (z)\,dz- \frac{\psi (\frac{3\varsigma -\tau}{2} )+ (\frac{3\tau -\varsigma}{2} )+2\psi (\frac{\varsigma +\tau}{2} )}{4} \biggr\vert \\ &\quad \leq (\tau -\varsigma )^{2}K(\varpi ,\varrho ) \biggl( \biggl\vert \psi '' \biggl(\frac{3\varsigma -\tau}{2} \biggr) \biggr\vert ^{\varrho}+m( \varrho +1) \biggl\vert \psi '' \biggl(\frac{3\tau -\varsigma}{2m} \biggr) \biggr\vert ^{\varrho} \biggr)^{\frac{1}{\varrho}}, \end{aligned}$$
(2.27)

where

$$ K(\varpi ,\varrho )=2 \biggl(\frac{1}{\varpi +1} \biggr)^{ \frac{1}{\varpi}} \biggl( \frac{1}{(\varrho +1)(\varrho +2)} \biggr)^{ \frac{1}{\varrho}}. $$

Proof

Using first the Hölder inequality and then the m-convexity, we get

$$\begin{aligned} & \int _{0}^{1}\bigl(s-s^{2}\bigr) \biggl\vert \psi '' \biggl(s \biggl( \frac{3\varsigma -\tau}{2} \biggr)+m(1-s) \biggl( \frac{3\tau -\varsigma}{2m} \biggr) \biggr) \biggr\vert \,ds \\ &\quad \leq \biggl( \int _{0}^{1}s^{\varpi}\,ds \biggr)^{ \frac{1}{\varpi}} \biggl( \int _{0}^{1}(1-s)^{\varrho} \biggl\vert \psi '' \biggl(s \biggl(\frac{3\varsigma -\tau}{2} \biggr)+m(1-s) \biggl( \frac{3\tau -\varsigma}{2m} \biggr) \biggr) \biggr\vert ^{\varrho}\,ds \biggr)^{\frac{1}{\varrho}} \\ &\quad \leq \biggl( \int _{0}^{1}s^{\varpi}\,ds \biggr)^{ \frac{1}{\varrho}} \\ &\qquad {}\times \biggl( \biggl\vert \psi '' \biggl( \frac{3\varsigma -\tau}{2} \biggr) \biggr\vert ^{\varrho} \int _{0}^{1}s(1-s)^{ \varrho}\,ds+m \biggl\vert \psi '' \biggl(\frac{3\tau -\varsigma}{2} \biggr) \biggr\vert ^{\varrho} \int _{0}^{1}(1-s)^{\varrho +1}\,ds \biggr)^{ \frac{1}{\varrho}} \\ &\quad = \biggl(\frac{1}{\varpi +1} \biggr)^{\frac{1}{\varpi}} \biggl(B(2, \varrho +1) \biggl\vert \psi '' \biggl(\frac{3\varsigma -\tau}{2} \biggr) \biggr\vert ^{\varrho}+ \frac{m \vert \psi '' (\frac{3\tau -\varsigma}{2m} ) \vert ^{\varrho}}{\varrho +2} \biggr)^{\frac{1}{\varrho}} \\ &\quad = \biggl(\frac{1}{\varpi +1} \biggr)^{\frac{1}{\varpi}} \biggl( \frac{\Gamma (2)\Gamma (\varrho +1)}{\Gamma (\varrho +3)} \biggl\vert \psi '' \biggl(\frac{3\varsigma -\tau}{2} \biggr) \biggr\vert ^{\varrho}+ \frac{m \vert \psi '' (\frac{3\tau -\varsigma}{2m} ) \vert ^{\varrho}}{\varrho +2} \biggr)^{\frac{1}{\varrho}} \\ &\quad = \biggl(\frac{1}{\varpi +1} \biggr)^{\frac{1}{\varpi}} \biggl( \frac{1}{(\varrho +1)(\varrho +2)} \biggr)^{\frac{1}{\varrho}} \\ &\qquad {}\times \biggl( \biggl\vert \psi '' \biggl(\frac{3\varsigma -\tau}{2} \biggr) \biggr\vert ^{ \varrho}+m(\varrho +1) \biggl\vert \psi '' \biggl( \frac{3\tau -\varsigma}{2m} \biggr) \biggr\vert ^{\varrho} \biggr)^{ \frac{1}{\varrho}}. \end{aligned}$$
(2.28)

Keeping in mind (2.23) and (2.28), we obtain (2.27). □

Remark 2.17

If we set \(m=1\) in Theorem 2.16, then we get [13, Theorem 5].

Theorem 2.18

Let \(\psi :J^{0}\subseteq \mathbb{R}\rightarrow \mathbb{R}\) be a twice differentiable function on \(J^{0}\), let \(\varsigma ,\tau \in J\) with \(\varsigma <\tau \), and let \(\psi ''\in C [\frac{3\varsigma -\tau}{2}, \frac{3\tau -\varsigma}{2} ]\) be such that \(\psi ''(z)\in \mathbb{R}\) for all \(z\in (\frac{3\varsigma -\tau}{2},\frac{3\tau -\varsigma}{2} )\). If \({\varrho}\geq 1\) and \(|\psi ''|^{\varrho}\) is an m-convex mapping on \([\frac{3\varsigma -\tau}{2},\frac{3\tau -\varsigma}{2}]\), then we have the following inequality:

$$\begin{aligned} & \biggl\vert \frac{1}{\tau -\varsigma} \int _{\varsigma}^{\tau} \psi (z)\,dz- \frac{\psi (\frac{3\varsigma -\tau}{2} )+\psi (\frac{3\tau -\varsigma}{2} )+2\psi (\frac{\varsigma +\tau}{2} )}{4} \biggr\vert \\ &\quad \leq (\tau -\varsigma )^{2}K_{2}(\varrho ) \biggl(2 \biggl\vert \psi '' \biggl(\frac{3\varsigma -\tau}{2} \biggr) \biggr\vert ^{\varrho}+m(q+1) \biggl\vert \psi '' \biggl(\frac{3\tau -\varsigma}{2m} \biggr) \biggr\vert ^{ \varrho} \biggr)^{\frac{1}{\varrho}}, \end{aligned}$$
(2.29)

where

$$ K_{2}(\varrho )= \biggl(\frac{2}{(\varrho +1)(\varrho +2)(\varrho +3)} \biggr)^{\frac{1}{\varrho}}. $$

Proof

Let \(\varrho >1\). Using first the Hölder inequality and then the m-convexity, we get

$$\begin{aligned} & \int _{0}^{1}\bigl(s-s^{2}\bigr) \biggl\vert \psi '' \biggl(s \biggl( \frac{3\varsigma -\tau}{2} \biggr)+m(1-s) \biggl( \frac{3\tau -\varsigma}{2m} \biggr) \biggr) \biggr\vert \,ds \\ &\quad = \int _{0}^{1}s^{1-\frac{1}{\varrho}} \biggl(s^{ \frac{1}{\varrho}}(1-s) \biggl\vert \psi '' \biggl(s \biggl( \frac{3\varsigma -\tau}{2} \biggr)+m(1-s) \biggl( \frac{3\tau -\varsigma}{2m} \biggr) \biggr) \biggr\vert \biggr)\,ds \\ &\quad \leq \biggl( \int _{0}^{1}s\,ds \biggr)^{1-\frac{1}{\varrho}} \biggl( \int _{0}^{1}s(1-s)^{\varrho} \biggl\vert \psi '' \biggl(s \biggl(\frac{3\varsigma -\tau}{2} \biggr)+m(1-s) \biggl( \frac{3\tau -\varsigma}{2m} \biggr) \biggr) \biggr\vert ^{\varrho}\,ds \biggr)^{\frac{1}{\varrho}} \\ &\quad \leq \biggl( \int _{0}^{1}s\,ds \biggr)^{1-\frac{1}{\varrho}} \biggl( \biggl\vert \psi '' \biggl(\frac{3\varsigma -\tau}{2} \biggr) \biggr\vert ^{ \varrho} \int _{0}^{1}s^{2}(1-s)^{\varrho}\,ds \\ &\qquad {} +m \biggl\vert \psi '' \biggl(\frac{3\tau -\varsigma}{2m} \biggr) \biggr\vert ^{\varrho} \int _{0}^{1}s(1-s)^{\varrho +1}\,ds \biggr)^{\frac{1}{\varrho}} \\ &\quad = \biggl(\frac{1}{2} \biggr)^{1-\frac{1}{\varrho}} \biggl(B(3,\varrho +1) \biggl\vert \psi '' \biggl(\frac{3\varsigma -\tau}{2} \biggr) \biggr\vert ^{ \varrho}+mB(2,\varrho +2) \biggl\vert \psi '' \biggl( \frac{3\tau -\varsigma}{2m} \biggr) \biggr\vert ^{\varrho} \biggr)^{ \frac{1}{\varrho}} \\ &\quad = \biggl(\frac{1}{2} \biggr)^{1-\frac{1}{\varrho}} \biggl( \frac{1}{(\varrho +1)(\varrho +2)(\varrho +3)} \biggr)^{ \frac{1}{\varrho}} \\ &\qquad {}\times \biggl(2 \biggl\vert \psi '' \biggl( \frac{3\varsigma -\tau}{2} \biggr) \biggr\vert ^{\varrho} +m(\varrho +1) \biggl\vert \psi '' \biggl(\frac{3\tau -\varsigma}{2m} \biggr) \biggr\vert ^{ \varrho} \biggr)^{\frac{1}{\varrho}}. \end{aligned}$$
(2.30)

In view of (2.23) and (2.30), we deduce that (2.29) holds when \(\varrho >1\). From (2.24) we deduce that (2.29) is true when \(\varrho =1\). This completes the proof of Theorem 2.18. □

Remark 2.19

If we set \(m=1\) in Theorem 2.18, then we get [13, Theorem 6].

3 Applications to special means

In this section, we skilfully use the main results of Sect. 2 to give some applications to special means of positive real numbers. We first need to recall the following basic definitions of different means and techniques of numerical integration. For arbitrary positive numbers ς, τ such that \(\varsigma \neq \tau \), we consider the following means.

  1. (i)

    The arithmetic mean:

    $$ \mathcal{A}:=\mathcal{A}(\varsigma ,\tau )=\frac{\varsigma +\tau}{2}. $$
  2. (ii)

    The geometric mean:

    $$ \mathcal{G}:=\mathcal{G}(\varsigma ,\tau )=\sqrt{\varsigma \tau}. $$
  3. (iii)

    The logarithmic mean:

    $$ \mathcal{L}(\varsigma ,\tau ):= \frac{\tau -\varsigma}{\log (\tau )-\log (\varsigma )}. $$
  4. (iv)

    The generalized logarithmic mean:

    $$ \mathcal{L}_{n}(\varsigma ,\tau ):= \biggl[ \frac{\tau ^{n+1}-\varsigma ^{n+1}}{(\tau -\varsigma )(n+1)} \biggr]^{ \frac{1}{n}}, $$

    where \(n\in \mathbb{Z}\setminus \{-1,0\}\);

  5. (v)

    The midpoint formula: Let d be a partition with points \(\varsigma =z_{0} < z_{1} <\cdots < z_{m-1} < z_{m}=\tau \) of the interval \([\varsigma ,\tau ]\) and consider the quadrature formula

    $$ \int _{\varsigma}^{\tau}\psi (z)\,dz=T_{j}(\psi ,d)+E_{j}(\psi ,d),\quad j=1,2, $$

    where

    $$ T_{1}(\psi ,d)=\sum_{j=0}^{m-1} \frac{\psi (z_{j})+\psi (z_{j+1})}{2} (z_{j+1}-z_{j} ) $$

    for the trapezoidal version, and

    $$ T_{2}(\psi ,d)=\sum_{j=0}^{m-1} \psi \biggl( \frac{z_{j}+z_{j+1}}{2} \biggr) (z_{j+1}-z_{j} ) $$

    for the midpoint version, whereas \(E_{j}(f,d)\) represents the approximation error.

Proposition 3.1

If \(n\in \mathbb{Z}\setminus \{-1,0\}\) and \(\varsigma ,\tau \in \mathbb{R}\) with \(0<\varsigma <\tau \), then we have the following inequality:

$$\begin{aligned} & \bigl\vert \mathcal{A}^{n}(\varsigma ,\tau )- \mathcal{L}_{n}^{n}( \varsigma ,\tau ) \bigr\vert \\ &\quad \leq \min \{K_{1},K_{2}\} \bigl(2^{\frac{1}{\varrho}} \vert n \vert (\tau - \varsigma ) \bigr) \biggl[\mathcal{A} \biggl( \biggl\vert \frac{3\varsigma -\tau}{2} \biggr\vert ^{(n-1)\varrho},m \biggl\vert \frac{3\tau -\varsigma}{2m} \biggr\vert ^{(n-1)\varrho} \biggr) \biggr]^{ \frac{1}{\varrho}}. \end{aligned}$$
(3.1)

Proof

Using Corollary 2.11 with substitution \(\psi (z)=z^{n}\), by simple mathematical calculations we get (3.1). □

Proposition 3.2

If \(\varsigma ,\tau \in \mathbb{R}\) with \(0 <\varsigma <\tau \), then we have the following inequality:

$$\begin{aligned}& \bigl\vert \mathcal{G}^{-2}(\varsigma ,\tau )- \mathcal{A}^{-2}(\varsigma , \tau ) \bigr\vert \\& \quad \leq \min \{K_{1},K_{2}\} \bigl(4^{\frac{1}{\varrho}}( \tau -\varsigma ) \bigr) \biggl[\mathcal{A} \biggl( \biggl\vert \frac{3\varsigma -\tau}{2} \biggr\vert ^{-3\varrho},m \biggl\vert \frac{3\tau -\varsigma}{2m} \biggr\vert ^{-3\varrho} \biggr) \biggr]^{ \frac{1}{\varrho}}. \end{aligned}$$
(3.2)

Proof

Using Corollary 2.11 with substitution \(\psi (z)=\frac{1}{z^{2}}\), by simple mathematical calculations we get (3.2). □

Proposition 3.3

If \(\varrho \geq 1\) and \(\varsigma ,\tau \in \mathbb{R}\) with \(0<\varsigma <\tau \), then we have the following inequality:

$$\begin{aligned} & \bigl\vert \mathcal{A}^{-1}(\varsigma ,\tau )- \mathcal{L}^{-1}( \varsigma ,\tau ) \bigr\vert \\ &\quad \leq \min \{K_{1},K_{2}\} \bigl(2^{\frac{1}{\varrho}}(\tau - \varsigma ) \bigr) \biggl[\mathcal{A} \biggl( \biggl\vert \frac{3\varsigma -\tau}{2} \biggr\vert ^{-2\varrho},m \biggl\vert \frac{3\tau -\varsigma}{2m} \biggr\vert ^{-2\varrho} \biggr) \biggr]^{ \frac{1}{\varrho}}. \end{aligned}$$
(3.3)

Proof

Using Corollary 2.11 with substitution \(\psi (z)=\frac{1}{z}\), by simple mathematical calculations we get (3.3). □

Proposition 3.4

If \(\varrho \geq 1\) and \(|\psi '|^{\varrho}\) is an m-convex function, then for every partition of \([\frac{3\varsigma -\tau}{2},\frac{3\tau -\varsigma}{2} ]\), the midpoint error satisfies

$$\begin{aligned} \bigl\vert E_{2}(\psi ;d) \bigr\vert &\leq \min (K_{1},K_{2})\sum_{j=0}^{m-1} (z_{j+1}-z_{j} )^{2} \biggl[ \biggl\vert \psi ' \biggl( \frac{3z_{j}-z_{j+1}}{2} \biggr) \biggr\vert ^{\varrho}+m \biggl\vert \psi ' \biggl(\frac{3z_{j+1}-z_{j}}{2m} \biggr) \biggr\vert ^{\varrho} \biggr]^{ \frac{1}{\varrho}} \\ &\leq 2\min (K_{1},K_{2})\sum_{j=0}^{m-1} (z_{j+1}-z_{j} )^{2}\max \biggl[ \biggl\vert \psi ' \biggl(\frac{3z_{j}-z_{j+1}}{2} \biggr) \biggr\vert ,m \biggl\vert \psi ' \biggl(\frac{3z_{j+1}-z_{j}}{2m} \biggr) \biggr\vert \biggr]. \end{aligned}$$

Proof

From Corollary 2.11 we obtain

$$\begin{aligned} & \biggl\vert \int _{z_{j}}^{z_{j+1}}\psi (z)\,dz (z_{j+1}-z_{j} )\psi \biggl(\frac{z_{j}+z_{j+1}}{2} \biggr) \biggr\vert \\ &\quad \leq \min (K_{1},K_{2}) (z_{j+1}-z_{j} )^{2} \biggl[ \biggl\vert \psi ' \biggl( \frac{3z_{j}-z_{j+1}}{2} \biggr) \biggr\vert ^{\varrho}+m \biggl\vert \psi ' \biggl(\frac{3z_{j+1}-z_{j}}{2m} \biggr) \biggr\vert ^{ \varrho} \biggr]^{\frac{1}{\varrho}}. \end{aligned}$$

On the other hand, we have

$$\begin{aligned} & \biggl\vert \biggl\{ \int _{\varsigma}^{\tau}\psi (z)\,dz-T_{2}( \psi ,d) \biggr\} \biggr\vert \\ &\quad = \Biggl\vert \sum_{j=0}^{m-1} \biggl\{ \int _{z_{j}}^{z_{j+1}} \psi (z)\,dz- (z_{j+1}-z_{j} )\psi \biggl( \frac{z_{j}+z_{j+1}}{2} \biggr) \biggr\} \Biggr\vert \\ &\quad \leq \min (K_{1},K_{2})\sum_{j=0}^{m-1} (z_{j+1}-z_{j} )^{2} \biggl[ \biggl\vert \psi ' \biggl(\frac{3z_{j}-z_{j+1}}{2} \biggr) \biggr\vert ^{\varrho} +m \biggl\vert \psi ' \biggl( \frac{3z_{j+1}-z_{j}}{2m} \biggr) \biggr\vert ^{\varrho} \biggr]^{ \frac{1}{\varrho}} \\ &\quad \leq 2\min (K_{1},K_{2})\sum_{j=0}^{m-1} (z_{j+1}-z_{j} )^{2}\max \biggl[ \biggl\vert \psi ' \biggl(\frac{3z_{j}-z_{j+1}}{2} \biggr) \biggr\vert ,m \biggl\vert \psi ' \biggl(\frac{3z_{j+1}-z_{j}}{2m} \biggr) \biggr\vert \biggr]. \end{aligned}$$

 □

4 Conclusions

Inequalities and convexity are correlated and are used to obtain optimal results. In this paper, we have used the m-convexity and Hölder inequality, which play an important role in optimization theory. A class of Hermite–Hadamard-type inequalities is developed using the traditional convex and m-convex maps. Furthermore, the main results are used to establish certain means, and quadrature formulae are used to calculate the error estimates. In future studies, the researchers can design similar forms of inequalities using various convexities.