1 Introduction

For a given \(n \in \mathbb {N}\) and an interval \(I \subset \mathbb {R}\), an n-variable mean on I is a function \(\mathscr {M}:I^n \rightarrow I\) such that

$$\begin{aligned} \min (x_1,\dots ,x_n)\le \mathscr {M}(x_1,\dots ,x_n) \le \max (x_1,\dots ,x_n) \quad \text { for all }x_1,\dots ,x_n \in I. \end{aligned}$$

The family of all n-variable means on I will be denoted by \(\mathcal {M}_n(I)\). We will also consider the family of means of any number of arguments

$$\begin{aligned} \mathcal {M}_\infty (I):=\bigg \{\mathscr {M}:\bigcup _{n=1}^\infty I^n \rightarrow I \,\,\Big \vert \,\, \mathscr {M}|_{I^n} \in \mathcal {M}_n(I)\text { for all }n \in \mathbb {N}\bigg \}. \end{aligned}$$

For example, the n-variable arithmetic mean (from now on denoted by \(\mathscr {A}_n\)) belongs to \(\mathcal {M}_n(\mathbb {R})\) for all \(n \in \mathbb {N}\), while the general arithmetic mean \(\mathscr {A}\) (which is defined for every finite vector of reals) is an element of \(\mathcal {M}_\infty (\mathbb {R})\).

Such a definition of \(\mathcal {M}_\infty \) causes an important drawback as there is no assertions binding the value of a given mean for different number of arguments. One of the plausible solutions has been recently proposed by the authors in [12]. In more details, a mean \(\mathscr {M}\in \mathcal {M}_\infty (I)\) is called repetition invariant provided

$$\begin{aligned} \mathscr {M}(\underbrace{x_1,\dots ,x_1}_{m\text {-times}},\dots ,\underbrace{x_n,\dots ,x_n}_{m\text {-times}}) =\mathscr {M}(x_1,\dots ,x_n) \end{aligned}$$

holds for all \(n,m\in \mathbb {N}\) and \((x_1,\dots ,x_n)\in I^n\). We also adopt the standard convention that properties of means like (Jensen) convexity, symmetry, continuity, etc. refer to the respective properties of the multivariable functions \(\mathscr {M}|_{I^n}\). In this spirit, one can easily see that the arithmetic mean is continuous, affine, symmetric, etc.

Let us now proceed to the main issue of this paper. Jensen convex and Jensen concave means are two narrow families which play an important role in the investigation of inequalities involving means, especially the Ingham–Jessen property. Recall that two means \(\mathscr {M}\in \mathcal {M}_m(I)\) and \(\mathscr {N}\in \mathcal {M}_n(I)\) form an Ingham–Jessen pair if

$$\begin{aligned}&\mathscr {N}\Big ( \mathscr {M}(x_{11},x_{12},\dots ,x_{1m}), \mathscr {M}(x_{21},x_{22},\dots ,x_{2m}),\dots ,\mathscr {M}(x_{n1},x_{n2},\dots ,x_{nm}) \Big ) \\&\quad \le \mathscr {M}\Big ( \mathscr {N}(x_{11},x_{21},\dots ,x_{n1}), \mathscr {N}(x_{12},x_{22},\dots ,x_{n2}),\dots ,\mathscr {N}(x_{1m},x_{2m},\dots ,x_{nm}) \Big ) \end{aligned}$$

for every matrix \(x \in I^{n\times m}\). A pair \(\mathscr {M},\mathscr {N}\in \mathcal {M}_\infty (I)\) is an Ingham–Jessen pair if their restrictions \(\mathscr {M}|_{I^n}\), \(\mathscr {N}|_{I^m}\) admit this property for all \(m,\,n \in \mathbb {N}\).

Whenever \(\mathscr {M},\,\mathscr {N}\in \mathcal {M}_\infty (I)\) are symmetric, repetition-invariant, and \((\mathscr {M},\mathscr {N})\) is an Ingham–Jessen pair, then we can derive several interesting inequalities, among others the mixed-means inequality [2, 20] and the Kedlaya inequality [6] (see also [12])

$$\begin{aligned}&\mathscr {N}\Big ( x_1, \mathscr {M}(x_1,x_2),\dots ,\mathscr {M}(x_1,x_2,\dots ,x_n) \Big ) \\&\quad \le \mathscr {M}\Big ( x_1,\mathscr {N}(x_1,x_2), \dots ,\mathscr {N}(x_1,x_2,\dots ,x_n) \Big ) \end{aligned}$$

which is valid for all \(n \in \mathbb {N}\) and \(x \in I^n\); see also the recent paper [4] for more examples.

In the simplest case when one of the means is the arithmetic mean, we easily obtain:

  1. (i)

    \((\mathscr {M},\mathscr {A})\) is an Ingham–Jessen pair if and only if \(\mathscr {M}\) is Jensen concave;

  2. (ii)

    \((\mathscr {A},\mathscr {N})\) is an Ingham–Jessen pair if and only if \(\mathscr {N}\) is Jensen convex.

Let us stress that, due to the Bernstein–Doetsch theorem [1], in the family of means, Jensen convexity and Jensen concavity coincide with convexity and concavity, respectively.

Following the ideas of convex embeddings (hulls, cones, and so on), there arises a natural problem: How can we associate a convex (or concave) mean to a given one? A quite similar and comprehensive study related to the homogeneity axiom has been presented recently by the authors [15].

The rest of this paper is split into two parts – we consider convex and concave envelopes in the abstract setting (Section 2) and in the quasiarithmetic setting (Section 3).

Let us now recall several elementary facts for the family of quasiarithmetic means. This family was axiomatized in the 1930s [5, 8, 10]. For a continuous and strictly monotone function \(f :I \rightarrow \mathbb {R}\), we define the quasiarithmetic mean \(\mathscr {A}_{f} \in \mathcal {M}_\infty (I)\) by

$$\begin{aligned} \mathscr {A}_{f}(x):=f^{-1} \bigg ( \frac{f(x_1)+\cdots +f(x_n)}{n} \bigg ),\quad \text {where }n \in \mathbb {N},\,x=(x_1,\dots ,x_n) \in I^n. \end{aligned}$$

The family of all quasiarithmetic means on I will be denoted by \(\mathcal {Q}(I)\). Obviously \(\mathcal {Q}(I) \subset \mathcal {M}_\infty (I)\). Furthermore, it was Knopp [7] who noticed that for \(I=\mathbb {R}_+\) and \(\pi _p(x):=x^p\) (\(p\ne 0\)) and \(\pi _0(x):=\ln x\), the quasiarithmetic mean \(\mathscr {A}_{\pi _p}\) coincides with the p-th power mean \(\mathscr {P}_p\).

An important subclass of this family (which contains power means) consists of the means which are generated by \(\mathcal {C}^2\) functions with a nowhere vanishing first derivative. This class of generating functions is denoted by \({\mathcal {C}}^{2\#}\) or, more frequently, \({\mathcal {C}}^{2\#}(I)\) if it is necessary to emphasize the domain. Indeed, in view of the Jensen inequality, one can easily show that for \(f,g \in {\mathcal {C}}^{2\#}\), the comparison inequality \(\mathscr {A}_{f}\le \mathscr {A}_{g}\) is equivalent to the inequality \(\tfrac{f''}{f'}\le \tfrac{g''}{g'}\) which is the comparability of two single-variable functions. For a detailed discussion concerning this relationship, we refer the reader to the paper by Mikusiński [9]. The operator \(f\mapsto \tfrac{f''}{f'}\) was used in several contexts by Pasteczka [16,17,18,19].

There are few approaches to convexity (or concavity) within this family. First, in the late 1980s, Páles [11] characterized the convexity of so-called quasideviation means (this family contains quasiarithmetic means). Later, the convexity of quasiarithmetic means was characterized by the authors [14] under the assumption that the mean is generated by a function from \({\mathcal {C}}^{2\#}\). The purpose of this paper is to prove that whenever a quasiarithmetic mean is convex (or concave), then its generator must belong to the class \({\mathcal {C}}^{2\#}\)—see Theorem 3.1 below. An extensive discussion concerning convexity and concavity in the weighted setting has been given recently by Chudziak et al. [3].

2 Abstract approach to envelopes

In this section, we prove a few preliminary results concerning convex and concave envelopes of means. Let us first introduce a formal definition of these operators.

Definition 2.1

Let \(\mathcal {S}\) be a set of real-valued functions which are defined on a convex set D of a linear space X. For a given function \(f :D \rightarrow I\), we define its \(\mathcal {S}\)-convex (resp. \(\mathcal {S}\)-concave) envelopes \({{\,\mathrm{conv}\,}}_\mathcal {S}(f):D \rightarrow [-\infty ,+\infty )\) and \({{\,\mathrm{conc}\,}}_\mathcal {S}(f) :D \rightarrow (-\infty ,+\infty ]\) by

$$\begin{aligned} {{\,\mathrm{conv}\,}}_\mathcal {S}(f)(x)&:=\sup \{g(x) :g \in \mathcal {S}, \ g \text { is a Jensen convex function, and }g \le f \},\\ {{\,\mathrm{conc}\,}}_\mathcal {S}(f)(x)&:=\inf \{g(x) :g \in \mathcal {S},\, g \text { is a Jensen concave function, and }g \ge f \}. \end{aligned}$$

Let us emphasize a few simple however important remarks. First, \({{\,\mathrm{conv}\,}}_\mathcal {S}(f)\) (resp. \({{\,\mathrm{conc}\,}}_\mathcal {S}(f)\)) is either finite everywhere or \({{\,\mathrm{conv}\,}}_\mathcal {S}(f)\equiv -\infty \) (resp. \({{\,\mathrm{conc}\,}}_\mathcal {S}(f)\equiv +\infty \)). Second, \({{\,\mathrm{conv}\,}}_\mathcal {S}(f)\) is a Jensen convex function (unless \({{\,\mathrm{conv}\,}}_\mathcal {S}(f) \equiv -\infty \)) and \({{\,\mathrm{conc}\,}}_\mathcal {S}(f)\) is a Jensen concave function (unless \({{\,\mathrm{conc}\,}}_\mathcal {S}(f) \equiv +\infty \)). Third, these operators are monotone functions of both f (with the pointwise ordering) and \(\mathcal {S}\) (with the inclusion ordering). Fourth, for every f and \(\mathcal {S}\) like above, the inequality \({{\,\mathrm{conv}\,}}_\mathcal {S}(f) \le f \le {{\,\mathrm{conc}\,}}_\mathcal {S}(f)\) holds. Fifth, a function \(f \in \mathcal {S}\) is Jensen convex (resp. Jensen concave) if and only if \({{\,\mathrm{conv}\,}}_\mathcal {S}(f)= f\) (resp. \({{\,\mathrm{conc}\,}}_\mathcal {S}(f)= f\)).

2.1 Envelopes in a family of means

We say that a family \(\mathcal {S}\subseteq \mathcal {M}_n(I)\) is permutation-closed if, for every \(\mathscr {M}\in \mathcal {S}\) and every permutation \(\sigma \) of \(\{1,\dots ,n\}\), the mean \(\mathscr {M}_\sigma :I^n \rightarrow I\) given by

$$\begin{aligned} \mathscr {M}_{\sigma }(x_1,\dots ,x_n):= \mathscr {M}(x_{\sigma (1)},\dots ,x_{\sigma (n)}) \quad (x_1,\dots ,x_n \in I) \end{aligned}$$

also belongs to \(\mathcal {S}\). We say that \(\mathscr {M}:I^n\rightarrow I\) is cyclically symmetric (resp. symmetric) if \(\mathscr {M}_\sigma =\mathscr {M}\) for all cyclic permutations (resp. for all permutations) \(\sigma \) of \(\{1,\dots ,n\}\).

Theorem 2.2

Let \(\mathcal {S}\subseteq \mathcal {M}_n(I)\) with \(\mathscr {A}_n \in \mathcal {S}\). A cyclically symmetric mean \(\mathscr {M}\in \mathcal {S}\) admits a Jensen convex (resp. Jensen concave) envelope in \(\mathcal {S}\) if and only if \(\mathscr {M}\ge \mathscr {A}_n\) (resp. \(\mathscr {M}\le \mathscr {A}_n\)).

Proof

First assume that there exists a Jensen convex mean \(\mathscr {N}\in \mathcal {S}\) such that \(\mathscr {N}\le \mathscr {M}\). If we apply this inequality to all cyclic permutations of a fixed vector \(x=(x_1,\dots ,x_n)\in I^n\), we obtain

$$\begin{aligned} \frac{1}{n} \sum _{\sigma \in {\text {Cyc}}_n} \mathscr {M}(x_{\sigma (1)},\dots ,x_{\sigma (n)})&\ge \frac{1}{n} \sum _{\sigma \in {\text {Cyc}}_n} \mathscr {N}(x_{\sigma (1)},\dots ,x_{\sigma (n)}). \end{aligned}$$

As \(\mathscr {M}\) is cyclically symmetric, the left hand side of the above inequality equals \(\mathscr {M}(x)\). On the other hand, by the Jensen convexity of \(\mathscr {N}\), we have

$$\begin{aligned}&\frac{1}{n} \sum _{\sigma \in {\text {Cyc}}_n} \mathscr {N}(x_{\sigma (1)},\dots ,x_{\sigma (n)})\\&\quad \ge \mathscr {N}\bigg (\frac{1}{n} \sum _{\sigma \in {\text {Cyc}}_n} x_{\sigma (1)},\dots ,\frac{1}{n} \sum _{\sigma \in {\text {Cyc}}_n} x_{\sigma (n)}\bigg )\\&\quad = \mathscr {N}\bigg (\frac{x_1+\dots +x_n}{n},\dots ,\frac{x_1+\dots +x_n}{n}\bigg )=\frac{x_1+\dots +x_n}{n}.\qquad \end{aligned}$$

This implies \(\mathscr {M}(x)\ge \mathscr {A}_n(x)\). As x was taken arbitrarily, we have \(\mathscr {M}\ge \mathscr {A}_n\).

Conversely, if \(\mathscr {M}\ge \mathscr {A}_n\), then, as \(\mathscr {A}_n\) is Jensen convex (in fact, Jensen affine), we have \(\mathscr {M}\ge {{\,\mathrm{conv}\,}}_\mathcal {S}(\mathscr {M})\ge \mathscr {A}_n\).

The proof of the second (i.e. concave) part is analogous. \(\square \)

Lemma 2.3

Let \(\mathcal {S}\subset \mathcal {M}_n(I)\) be a permutation-closed family. If \(\mathscr {M}\in \mathcal {S}\) is symmetric with respect to some permutation \(\sigma \) (that is \(\mathscr {M}_\sigma =\mathscr {M}\)), then so are \({{\,\mathrm{conv}\,}}_\mathcal {S}(\mathscr {M})\) and \({{\,\mathrm{conc}\,}}_\mathcal {S}(\mathscr {M})\).

Proof

One can easily show that \(({{\,\mathrm{conv}\,}}_\mathcal {S}(\mathscr {M}))_\sigma \) is Jensen convex and we have \(({{\,\mathrm{conv}\,}}_\mathcal {S}(\mathscr {M}))_\sigma \le \mathscr {M}_\sigma =\mathscr {M}\). This implies \(({{\,\mathrm{conv}\,}}_\mathcal {S}(\mathscr {M}))_\sigma \le {{\,\mathrm{conv}\,}}_\mathcal {S}(\mathscr {M})\).

On the other hand, \(\mathscr {M}\) is symmetric with respect to the inverse permutation \(\sigma ^{-1}\) as well. Thus \(({{\,\mathrm{conv}\,}}_\mathcal {S}(\mathscr {M}))_{\sigma ^{-1}} \le {{\,\mathrm{conv}\,}}_\mathcal {S}(\mathscr {M})\), which directly implies the inequality \({{\,\mathrm{conv}\,}}_\mathcal {S}(\mathscr {M}) \le ({{\,\mathrm{conv}\,}}_\mathcal {S}(\mathscr {M}))_\sigma \). Therefore \({{\,\mathrm{conv}\,}}_\mathcal {S}(\mathscr {M})=({{\,\mathrm{conv}\,}}_\mathcal {S}(\mathscr {M}))_\sigma \), and \({{\,\mathrm{conv}\,}}_\mathcal {S}(\mathscr {M})\) is symmetric with respect to \(\sigma \). The proof for \({{\,\mathrm{conc}\,}}_\mathcal {S}(\mathscr {M})\) is analogous. \(\square \)

2.2 Reflected means

Let us recall the notion of reflected means from the paper [13]. Let I be an interval, \(n \in \mathbb {N}\), and \(\mathscr {M} \in \mathcal {M}_n(I)\) be a mean. We define the reflected mean of \(\mathscr {M}\) as the function \({{\widehat{\mathscr {M}}}} :(-I)^n \rightarrow (-I)\) given by

$$\begin{aligned} {{\widehat{\mathscr {M}}}}(x_1,\dots ,x_n)=-\mathscr {M}(-x_1,\dots ,-x_n). \end{aligned}$$

Then it is easy to check that \(\mathscr {M}\) is convex (or concave) if and only if \({{\widehat{\mathscr {M}}}}\) is concave (or convex), respectively. Moreover \(\mathscr {M}\le \mathscr {N}\) if and only if \({{\widehat{\mathscr {M}}}} \ge {{\widehat{\mathscr {N}}}}\). This notion can be extended to the means from \(\mathcal {M}_\infty (I)\) in a similar way.

For a family of means \(\mathcal {S}\), we define its reflected family by \({{\widehat{\mathcal {S}}}}:=\{{{\widehat{\mathscr {M}}}} :\mathscr {M}\in \mathcal {S}\}\). Let us emphasize that for most families of means such reflection preserves the family (but reflects the interval). For example, reflected quasiarithmetic means on I are exactly quasiarithmetic means on \(-I\). The same is valid for deviation and quasideviation means. This duality swaps Jensen concave and Jensen convex envelopes.

Lemma 2.4

Let \(\mathcal {S}\) be a family of means on I and \(\mathscr {M}\in \mathcal {S}\). Then \(\widehat{{{\,\mathrm{conc}\,}}_\mathcal {S}(\mathscr {M})}={{\,\mathrm{conv}\,}}_{{{\widehat{\mathcal {S}}}}}({{\widehat{\mathscr {M}}}})\).

Proof

Indeed, for fixed \(n \in \mathbb {N}\) and \(x \in I^n\), one has

$$\begin{aligned} \widehat{{{\,\mathrm{conc}\,}}_\mathcal {S}(\mathscr {M})}(x)&=-{{\,\mathrm{conc}\,}}_\mathcal {S}(\mathscr {M})(-x)\\&=-\inf \{\mathscr {N}(-x) :\mathscr {N}\in \mathcal {S},\, \mathscr {N}\text { is Jensen concave and }\mathscr {N}\ge \mathscr {M}\}\\&=\sup \{{{\widehat{\mathscr {N}}}}(x) :\mathscr {N}\in \mathcal {S},\, \mathscr {N}\text { is Jensen concave and }\mathscr {N}\ge \mathscr {M}\}\\&=\sup \{{{\widehat{\mathscr {N}}}}(x) :{{\widehat{\mathscr {N}}}} \in {{\widehat{\mathcal {S}}}},\, {{\widehat{\mathscr {N}}}} \text { is Jensen convex and }{{\widehat{\mathscr {N}}}} \le {{\widehat{\mathscr {M}}}} \}\\&={{\,\mathrm{conv}\,}}_{{{\widehat{\mathcal {S}}}}}({{\widehat{\mathscr {M}}}})(x), \end{aligned}$$

which ends the proof. \(\square \)

3 Quasiarithmetic means

In the next result, we establish a complete characterization of the convexity of quasiarithmetic means.

Theorem 3.1

Let I be an open interval, \(f :I \rightarrow \mathbb {R}\) be a continuous, strictly monotone function. Then \(\mathscr {A}_{f}\) is convex if and only if the following two conditions are valid:

  1. (1)

    \(f \in {\mathcal {C}}^{2\#}(I)\);

  2. (2)

    either \(f''\) is nonvanishing and \(\frac{f'}{f''}\) is positive and concave, or \(f'' \equiv 0\).

Proof

The implication \((\Leftarrow )\) was already proved by the authors in [14]. It was also proved that, under the assumption that \(\mathscr {A}_{f}\) is convex, (1) implies (2). Therefore the only remaining part is to show that every convex quasiarithmetic mean is generated by a \({\mathcal {C}}^{2\#}\) function.

As \(\mathscr {A}_{f}\) is convex, by Theorem 2.2, we obtain \(\mathscr {A}_{f} \ge \mathscr {A}\). Thus, by Jensen’s inequality and the well-known identity \(\mathscr {A}_{f}=\mathscr {A}_{-f}\), one may assume without loss of generality that f is strictly increasing and convex. Then f has strictly positive one-sided derivatives \(f_+'\) and \(f_-'\) at every point of I.

Applying some general results concerning quasideviation means (cf. [11, Theorem 11]), it can be shown that \(\mathscr {A}_{f}\) is convex if and only if there exist \(a,\,b :I^2 \rightarrow \mathbb {R}\) such that

$$\begin{aligned} f\big ( \tfrac{x+y}{2}\big )-f\big ( \tfrac{u+v}{2}\big )\le a(u,v) (f(x)-f(u)) + b(u,v) (f(y)-f(v)) \end{aligned}$$
(3.1)

is valid for all \(x,y,u,v \in I\).

For \(x>u\) and \(y=v\), we obtain

$$\begin{aligned} \frac{f\big ( \frac{x+v}{2}\big )-f\big ( \frac{u+v}{2}\big )}{x-u} \le a(u,v) \cdot \frac{f(x)-f(u)}{x-u}. \end{aligned}$$

Upon taking the limit \(x \searrow u\), it follows that

$$\begin{aligned} \tfrac{1}{2} \cdot f'_+ \big ( \tfrac{u+v}{2}\big ) \le a(u,v) f'_+(u). \end{aligned}$$

Therefore

$$\begin{aligned} \frac{f'_+ \big ( \frac{u+v}{2}\big )}{2f'_+(u)}\le a(u,v). \end{aligned}$$

Analogously, we obtain

$$\begin{aligned} a(u,v) \le \frac{f'_- \big ( \frac{u+v}{2}\big )}{2f'_-(u)}, \end{aligned}$$

which implies the double inequality

$$\begin{aligned} \frac{f'_+ \big ( \frac{u+v}{2}\big )}{2f'_+(u)} \le a(u,v) \le \frac{f'_- \big ( \frac{u+v}{2}\big )}{2f'_-(u)}. \end{aligned}$$
(3.2)

Take \(p \in I\) arbitrarily. As f is convex, we know that \(f'_-(p) \le f'_+(p)\) and f is differentiable everywhere except at countably many points. In particular, one can take \(u_p \in I\) such that f is differentiable at \(u_p\) and \(v_p:=2p-u_p \in I\). Then (3.2) with \((u,v):=(u_p,v_p)\) simplifies to

$$\begin{aligned} \frac{f'_+(p)}{2f'(u_p)} \le \frac{f'_-(p)}{2f'(u_p)} \end{aligned}$$

which implies \(f'_+(p) \le f'_-(p)\). Consequently, f is differentiable at p. As f is convex, we get \(f \in {\mathcal {C}}^1(I)\) with \(f'\ne 0\) (in particular, \(f'\) is positive). Then, in view of (3.2) and the similar inequality for the function b, one gets

$$\begin{aligned} a(u,v) =\frac{f'\big ( \frac{u+v}{2}\big )}{2f'(u)}, \qquad b(u,v)=\frac{f'\big ( \frac{u+v}{2}\big )}{2f'(v)} \qquad (u,\, v \in I). \end{aligned}$$

Now condition (3.1) can be equivalently rewritten as

$$\begin{aligned} \frac{f\big ( \tfrac{x+y}{2}\big )-f\big ( \tfrac{u+v}{2}\big )}{f'\big ( \frac{u+v}{2}\big )}\le \frac{1}{2} \bigg (\! \frac{f(x)-f(u)}{f'(u)} + \frac{f(y)-f(v)}{f'(v)}\!\bigg )\ \ (x,y,u,v \in I).\nonumber \\ \end{aligned}$$
(3.3)

This implies that the two-variable continuous function \(F :I^2 \rightarrow \mathbb {R}\) given by

$$\begin{aligned} F(x,u):=\frac{f(x)-f(u)}{f'(u)} \end{aligned}$$

is convex on \(I^2\). In particular, for all fixed \(x\in I\), the mapping \(u\mapsto F_x(u):=F(x,u)\) is convex on I. Consequently, \(F_x\) is differentiable at every point of I from the left and from the right. However, as \(f \in {\mathcal {C}}^{1}(I)\), the mapping \(u \mapsto f(x)-f(u)\) is differentiable. Therefore \(f'\) is differentiable at every point of I both from the left and from the right. We will denote its one-sided derivatives by \(f''_-\) and \(f''_+\).

Let \(x\in I\) be fixed. By the convexity of \(F_x\), for all \(v \in I\), there exist a real number p(xv) such that

$$\begin{aligned} \frac{f(x)-f(u)}{f'(u)} - \frac{f(x)-f(v)}{f'(v)} \ge p(x,v)\cdot (u-v) \quad \text {for all }u,\,v \in I. \end{aligned}$$

Then, for all \(u,\,v \in I\),

$$\begin{aligned} \frac{(f(x)-f(v))(f'(v)-f'(u))-f'(v)(f(u)-f(v))}{f'(u)f'(v)} \ge p(x,v)\cdot (u-v) \end{aligned}$$

Now assume that \(u>v\) and divide by \(u-v\) side-by-side. Then we get

$$\begin{aligned} \frac{(f(x)-f(v))\frac{f'(v)-f'(u)}{u-v}-f'(v)\frac{f(u)-f(v)}{u-v}}{f'(u)f'(v)} \ge p(x,v). \end{aligned}$$

By taking the limit as \(u \searrow v\), we obtain

$$\begin{aligned} \frac{(f(v)-f(x))f''_+(v)-f'(v)^2}{f'(v)^2} \ge p(x,v). \end{aligned}$$

Repeating the same argumentation for \(u<v\), we similarly obtain

$$\begin{aligned} \frac{(f(v)-f(x))f''_-(v)-f'(v)^2}{f'(v)^2} \le p(x,v). \end{aligned}$$

The above inequalities then imply that

$$\begin{aligned} (f(v)-f(x))(f''_+(v)-f''_-(v))\ge 0 \quad \text {for all }x,\,v \in I. \end{aligned}$$

By taking x to be smaller and bigger than v, it follows that \(f''_+(v)=f''_-(v)\), which proves the differentiability of \(f'\) at v.

The remaining part is to show that \(f''\) is continuous. However, as \(F_x\) is convex and differentiable, we know that \(F_x'\) is continuous and the continuity of \(f''\) is straightforward. \(\square \)

Theorem 3.2

Let I be an interval, \(f \in {\mathcal {C}}^{2\#}(I)\) be a strictly increasing and convex function. Then \({{\,\mathrm{conv}\,}}_{\mathcal {Q}(I)}(\mathscr {A}_{f})=\mathscr {A}_{g}\) for some \(g \in {\mathcal {C}}^{2\#}(I)\).

Moreover either \(g''\equiv 0\) (and \(\mathscr {A}_{g}\) is the arithmetic mean) or \(g''\) is nowhere vanishing and \(\frac{g'}{g''}={{\,\mathrm{conc}\,}}_{{\mathcal {C}}(I)}\big (\frac{f'}{f''}\big )\).

Proof

Let P be the family of all strictly monotone, affine functions on I and denote

$$\begin{aligned} U:=\{ h \in {\mathcal {C}}(I) :\mathscr {A}_{h}\text { is Jensen convex and }\mathscr {A}_{h}\le \mathscr {A}_{f}\}. \end{aligned}$$

Then, by the previous theorem,

$$\begin{aligned} U=\{ h \in {\mathcal {C}}^{2\#}(I) :\mathscr {A}_{h}\text { is Jensen convex and }\mathscr {A}_{h}\le \mathscr {A}_{f}\}. \end{aligned}$$

Obviously \(P \subseteq U\) as \(\mathscr {A}\le \mathscr {A}_{f}\) and the arithmetic mean is convex. Moreover, by definition,

$$\begin{aligned} {{\,\mathrm{conv}\,}}_{\mathcal {Q}(I)}(\mathscr {A}_{f})(x)&=\sup \{\mathscr {A}_{h}(x) :h \in U\} \qquad \text { for all }x \in \bigcup _{n=1}^\infty I^n. \end{aligned}$$

If \(U=P\), then obviously \(\mathscr {A}_{h}=\mathscr {A}\) for all \(h \in U\) and \({{\,\mathrm{conv}\,}}_{\mathcal {Q}(I)}(\mathscr {A}_{f})=\mathscr {A}\). From now on assume that the set \(U_0:=U \setminus P\) is nonempty. Then, for every \(h \in U_0\), we have \(\mathscr {A}_{h} \ge \mathscr {A}\) and \(\mathscr {A}_{h} \ne \mathscr {A}\). In particular,

$$\begin{aligned} {{\,\mathrm{conv}\,}}_{\mathcal {Q}(I)}(\mathscr {A}_{f})(x) =\sup \{\mathscr {A}_{h}(x) :h \in U_0\} \qquad \text { for all }x \in \bigcup _{n=1}^\infty I^n. \end{aligned}$$
(3.4)

By virtue of Theorem 3.1, for all \(h \in U_0\), we have \(h \in {\mathcal {C}}^{2\#}(I)\), \(h''\) is nowhere vanishing, and \(\frac{h''}{h'}\) is positive and concave. Moreover, applying a well-known comparability criterion, we have \(\frac{h''}{h'} \le \frac{f''}{f'}\) for all \(h \in U_0\). In particular, \(\frac{f''}{f'}\) is positive on its domain.

On the other hand, it is relatively easy to verify that each function \(h:I \rightarrow \mathbb {R}\) satisfying all the properties above belongs to \(U_0\). Therefore

$$\begin{aligned} U_0=\big \{h \in {\mathcal {C}}^{2\#}(I) :h''\text { is nonvanishing, }\tfrac{h'}{h''}\text { is concave, and }\tfrac{h'}{h''} \ge \tfrac{f'}{f''}\big \}. \end{aligned}$$

Now define \(m:I \rightarrow \mathbb {R}\) by \(m:={{\,\mathrm{conc}\,}}_{{\mathcal {C}}(I)}\big (\frac{f'}{f''}\big )\). By \(m\ge \frac{f'}{f''}\), we know that m is positive. Thus the 2nd-order linear ordinary differential equation \(\frac{g'}{g''}=m\) has a solution \(g \in {\mathcal {C}}^{2\#}(I)\).

Obviously \(g''\) is nowhere vanishing and \(\frac{g'}{g''}\) is positive and concave. Thus Theorem 3.1 implies that \(\mathscr {A}_{g}\) is convex.

On the other hand, by the definition of the concave envelope for every \(h \in U_0\), we have \(\frac{h'}{h''} \ge \frac{g'}{g''}\) and therefore \(\mathscr {A}_{h}\le \mathscr {A}_{g}\). Applying this inequality to all \(h \in U_0\) in view of (3.4), one gets \({{\,\mathrm{conv}\,}}_{\mathcal {Q}(I)}(\mathscr {A}_{f})\le \mathscr {A}_{g}\).

To verify the converse inequality, observe that \(\frac{g''}{g'}=\frac{1}{m}\le \frac{f''}{f'}\) which implies \(\mathscr {A}_{g}\le \mathscr {A}_{f}\). Thus \(\mathscr {A}_{g}\) is a convex minorant of \(\mathscr {A}_{f}\), equivalently \(g \in U_0\). Applying the inequality (3.4), we obtain \({{\,\mathrm{conv}\,}}_{\mathcal {Q}(I)}(\mathscr {A}_{f})\ge \mathscr {A}_{g}\). \(\square \)

Using Lemma 2.4, we can formulate the result concerning concave envelopes in a family of quasiarithmetic means.

Corollary 3.3

Let I be an interval, \(f \in {\mathcal {C}}^{2\#}(I)\) be an increasing and concave function. Then \({{\,\mathrm{conc}\,}}_{\mathcal {Q}(I)}(\mathscr {A}_{f})=\mathscr {A}_{g}\) for some \(g \in {\mathcal {C}}^{2\#}(I)\).

Moreover either \(g''\equiv 0\) (and \(\mathscr {A}_{g}\) is the arithmetic mean) or \(g''\) is nowhere vanishing and \(\frac{g'}{g''}={{\,\mathrm{conv}\,}}_{{\mathcal {C}}(I)}\big (\frac{f'}{f''}\big )\).