1 Introduction

The convex functions satisfying the so-called engulfing property have been studied in connection with the solution to the Monge–Ampère equation. Several conditions on such functions have been proposed in order to preserve the harmony between measure theory (and, in particular, the Monge–Ampère measure related to a convex function) and the shape of the sections, with their induced geometry; in this framework, we would like to mention the celebrated \({\mathcal {C}}^{1,\beta }\)-estimate due to Caffarelli [1, 2], and the exhaustive book by Gutiérrez [3]. This study involved many authors with different points of view; very interesting are the papers by Gutiérrez and Huang [4], and by Forzani and Maldonado [5, 6]. Let us devote a few lines to the mentioned \({\mathcal {C}}^{1,\beta }\)-estimate: One of the proposed conditions on a convex function, with bounded sections, is the so-called (DC)-doubling property of the related Monge–Ampère measure (for details, see, for example, [6]); this condition plays a fundamental role in the whole theory of the Monge–Ampère equation, since it is equivalent to the engulfing property of the related function, and it implies that this function is strictly convex and in \( {{\mathcal C}}^{1,\beta }_\mathrm{loc}\). Due to this equivalence, the study of the engulfing property of a convex function is often moved to the study of the regularity of the related Monge–Ampère measure.

The purpose of this note, differently from the literature, is to bring into focus that strict convexity and differentiability are properties intrinsic to the engulfing. This is done by means of purely convex analytic elementary techniques, and without taking into account the properties of the related Monge–Ampère measure.

The paper is organized as follows: In Sect. 2, we recall the notion of engulfing for a convex function and introduce the notion of soft engulfing. We provide a fine monotonicity result for the subdifferential map of a convex function that enjoys the soft engulfing property. Furthermore, we prove that this property of the function entails continuous differentiability, as well as strict convexity. In Sect. 3, we prove the equivalence between the class of functions satisfying the engulfing property and the class of functions satisfying the condition, apparently milder, of soft engulfing. Finally, in Sect. 4, some further directions of investigation are traced.

2 Study of the Soft Engulfing Property of a Convex Function

Given a convex function \(\varphi :{\mathbb {R}}^n\rightarrow {\mathbb {R}}\), for every \(x_0\in {\mathbb {R}}^n,\) \(p\in \partial \varphi (x_0),\) and \(s>0,\) we will denote by \(S_{\varphi }(x_0,p,s)\) the section of \(\varphi \) at \((x_0,\ p),\) with height s, defined as follows:

$$\begin{aligned} S_\varphi (x_0,p,s)=\{x\in {\mathbb {R}}^n:\ \varphi (x)- \varphi (x_0)-p\cdot (x-x_0)<s\}. \end{aligned}$$
(1)

In case \(\varphi \) is differentiable at \(x_0,\) we will denote the section at \(x_0,\) with height s,  by \(S_\varphi (x_0,s),\) for short.

Definition 2.1

We say that a convex function \(\varphi \) satisfies the engulfing property (shortly, \(\varphi \in E(n,K),\) where n denotes the dimension of the domain), if there exists \(K> 1\) such that, for any \(x\in {\mathbb {R}}^n,\) \(p\in \partial \varphi (x),\) and \(t > 0\), if \(y\in S_\varphi (x,p,t)\), then

$$\begin{aligned} S_\varphi (x,p,t)\subset S_\varphi (y,q,Kt), \end{aligned}$$

for every \(q\in \partial \varphi (y)\). Likewise, we say that a convex function \(\varphi \) satisfies the soft engulfing property (shortly, \(\varphi \in E^{{\mathrm {soft}}}(n,K)\)), if there exists \(K>1\) such that, for any \(x\in {\mathbb {R}}^n,\) \(p\in \partial \varphi (x),\) and \(t > 0\), if \(y\in S_\varphi (x,p,t)\), then

$$\begin{aligned} x\in S_\varphi (y,q,Kt), \end{aligned}$$

for every \(q\in \partial \varphi (y)\).

Let us stress that, differently from the literature, in the previous definitions of the engulfing properties, we do not require either that the functions involved are differentiable or that their sections are bounded sets. Trivially, one has that \(E(n,K)\subset E^{{\mathrm {soft}}}(n,K);\) however, this “soft”  condition is only apparently milder that the previous one, as we will see later on.

Let us recall some well-known notions and results. Given a multivalued map \(T:{\mathbb {R}}^n\rightarrow {\mathcal P}({\mathbb {R}}^n),\) we denote by \(\mathrm {dom}(T)\) and \(\mathrm {gph}(T),\) respectively, the sets

$$\begin{aligned} \mathrm {dom}(T):=\{x\in {\mathbb {R}}^n:\, T(x)\ne \emptyset \}, \end{aligned}$$

and

$$\begin{aligned} \mathrm {gph}(T):=\{(x,p)\in {\mathbb {R}}^n\times {\mathbb {R}}^n:\, p\in T(x)\}. \end{aligned}$$

Given a convex function \(\varphi :{\mathbb {R}}^n\rightarrow {\mathbb {R}}\), the subdifferential \(\partial \varphi (x_0)\) of \(\varphi \) at \(x_0\) is defined as the set

$$\begin{aligned} \partial \varphi (x_0)=\{p\in {\mathbb {R}}^n:\, \varphi (x)\ge \varphi (x_0)+ p\cdot (x-x_0),\quad \forall x\in {\mathbb {R}}^n\}. \end{aligned}$$

The set \(\partial \varphi (x_0)\) is nonempty, compact and convex, and, if \(\varphi \) is differentiable at \(x_0,\) then \(\partial \varphi (x_0)=\{\nabla \varphi (x_0)\}.\) From a classical result in convex analysis, the convexity of \(\varphi \) is fully characterized by the nonemptiness of \(\partial \varphi (x),\) for every \(x\in {\mathbb {R}}^n.\) The subdifferential map \(\partial \varphi :{\mathbb {R}}^n\rightarrow {\mathcal P}({\mathbb {R}}^n)\) is given by \(x\mapsto \partial \varphi (x);\) its graph is a maximal monotone set, i.e. for every \((x,p),(y,q)\in \mathrm {gph}(\partial \varphi ),\) we have that

$$\begin{aligned} (p-q)\cdot (x-y) \ge 0, \end{aligned}$$

and \(\mathrm {gph}(\partial \varphi )\) cannot be extended to a monotone set without loosing the previous property (see, for instance, Theorem 23.4 in [7]).

The celebrated and already mentioned result due to Caffarelli establishes that, given a Borel measure \(\nu \) defined in \({\mathbb {R}}^n\), every strictly convex generalized solution (or Aleksandrov solution) \(\varphi \) of the Monge–Ampère equation

$$\begin{aligned} \mathrm{det}\, D^2\varphi =\nu \end{aligned}$$
(2)

must be in the class \({\mathcal C}^{1,\beta }_\mathrm{loc},\) for some \(\beta \in ]0,1[\). Let us recall briefly (see [3] for all the details) that the Monge–Ampère measure \(\mu _\varphi \) associated with \(\varphi \) is defined by

$$\begin{aligned}\mu _\varphi (E)=|\partial \varphi (E)|, \end{aligned}$$

where the set \(\{E\subset {\mathbb {R}}^n:\, \partial \varphi (E)\;\mathrm {is}\;\mathrm {Lebesgue}\;\mathrm {measurable}\}\) is a \(\sigma \)-algebra containing the Borel sets, and \(|\cdot |\) denotes the Lebesgue measure; moreover, \(\varphi \) is a generalized solution of (2) if \(\mu _\varphi =\nu \).

The study of the Monge–Ampère measure \(\mu _\varphi \) with the doubling property turns out to be intrinsically connected with the engulfing property of \(\varphi \). Our point of view takes advantage of convex analysis to investigate the properties of the functions \(\varphi \in E(n,K)\) and, in particular, the behaviour of the sections \(S_{\varphi }(x_0,p,s),\) when we let \(x_0\) and s vary.

In the sequel, our aim will be to shed some light on the properties enjoyed by the functions in the class \(E^{{\mathrm {soft}}}(n,K).\) The next proposition shows that the engulfing property of \(\varphi \) is related to the monotonicity of the subdifferential map \(\partial \varphi \). More precisely, it is known that, for every convex function \(\varphi ,\) the multivalued map \(\partial \varphi \) is monotone; the following result highlights a finer behaviour of this map:

Proposition 2.1

Let \(\varphi :{\mathbb {R}}^n\rightarrow {\mathbb {R}}\) be a function in \(E^{{\mathrm {soft}}}(n,K).\) Then,

$$\begin{aligned} \begin{array}{ll} \displaystyle \frac{K+1}{K}(\varphi (y)-\varphi (x)&{}-p\cdot (y-x))\le (p-q)\cdot (x-y)\\ &{}\le (K+1)\left( \varphi (y)-\varphi (x)-p\cdot (y-x)\right) ,\\ \end{array} \end{aligned}$$
(3)

for every \((x,p),(y,q)\in \mathrm {gph}(\partial \varphi ).\)

Proof   Take any \(\epsilon >0;\) we have that

$$\begin{aligned} \varphi (x)<\varphi (x)+\epsilon =\varphi (y)+q\cdot (x-y)+\varphi (x)-\varphi (y)-q\cdot (x-y)+\epsilon . \end{aligned}$$

Furthermore, \(q\in \partial \varphi (y)\) implies that \(\varphi (x)-\varphi (y)-q\cdot (x-y)\ge 0.\) Therefore,

$$\begin{aligned} x\in S_\varphi (y,q,\varphi (x)-\varphi (y)-q\cdot (x-y)+\epsilon ). \end{aligned}$$

By the soft engulfing property, \(y\in S_\varphi (x,p,K(\varphi (x)-\varphi (y)-q\cdot (x-y)+\epsilon )),\) for every \(p\in \partial \varphi (x),\) i.e.

$$\begin{aligned} \varphi (y)<\varphi (x)+p\cdot (y-x)+K\varphi (x)-K\varphi (y)-Kq\cdot (x-y)+K\epsilon . \end{aligned}$$

Letting \(\epsilon \searrow 0,\) we obtain

$$\begin{aligned} (K+1)\varphi (y)\le (K+1)\varphi (x)+(p+Kq)\cdot (y-x), \end{aligned}$$

for every \((x,p),(y,q)\in \mathrm {gph}(\partial \varphi ).\) By interchanging the roles of x and y,  we get

$$\begin{aligned} (K+1)\varphi (x)\le (K+1)\varphi (y)+(q+Kp)\cdot (x-y), \end{aligned}$$

for every \((x,p),(y,q)\in \mathrm {gph}(\partial \varphi ).\) From the inequalities above, we easily get

$$\begin{aligned} \frac{p+Kq}{K+1}\cdot (x-y)\le \varphi (x)-\varphi (y)\le \frac{q+Kp}{K+1}\cdot (x-y). \end{aligned}$$
(4)

From the first inequality in (4), it follows that

$$\begin{aligned} \frac{1}{K+1}(p-q)\cdot (x-y)\le \varphi (x)-\varphi (y)-q\cdot (x-y). \end{aligned}$$

The second inequality in (4) gives

$$\begin{aligned} \varphi (x)-\varphi (y)-q\cdot (x-y)\le \frac{K}{K+1}(p-q)\cdot (x-y), \end{aligned}$$

thereby showing the assertion. \(\square \)

The property (3) in Proposition 3, in fact, requires a sort of uniform control over the monotonicity of the subdifferential map in the whole \({\mathbb {R}}^n\). By means of (3), it is an easy task to verify that the function \(\varphi :{\mathbb {R}}\rightarrow {\mathbb {R}}\), defined by \(\varphi (x)=e^x\), is not in \(E^{{\mathrm {soft}}}(1,K),\) for any K; the reason of this exclusion does not depend on the asymmetry of this function, since one can easily prove that the function \(x\mapsto e^{x^2}\) is not in \(E^{{\mathrm {soft}}}(1,K),\) too.

Furthermore, while every strictly convex polynomial enjoys the engulfing property (see, for instance, [6]), not every strictly convex function with a “polynomial behaviour” does. The following example gives an idea to the nonfamiliar reader:

Example 2.1

   Let us consider the function \(\varphi :{\mathbb {R}}\rightarrow {\mathbb {R}}\) defined by

$$\begin{aligned} \varphi (x)= \left\{ \begin{array}{ll} x^4,&{} \;x\ge 0,\\ x^2,&{} \;x<0.\\ \end{array} \right. \end{aligned}$$
(5)

We show that \(\varphi \notin E^{{\mathrm {soft}}}(1,K),\) for any \(K>1.\) By contradiction, via Proposition 2.1, by taking \(x>0,\) and \(y=-x^k\) for some positive k,  we obtain

$$\begin{aligned}\begin{array}{ll} \frac{K+1}{K}\left( x^{2k}+3x^4+4x^{3+k}\right) &{}\le 4x^4+4x^{3+k}+2x^{k+1}+2x^{2k}\\ &{}\le (K+1)\left( x^{2k}+3x^4+4x^{3+k}\right) .\\ \end{array} \end{aligned}$$

If \(k\in ]1,3[,\) and \(x\searrow 0,\) then the previous inequalities fail.

We are now in the position to show that a function \(\varphi \in E^{{\mathrm {soft}}}(n,K)\) enjoys some regularity properties. Set

$$\begin{aligned} E^{{\mathrm {soft}}}(n):=\bigcup _{K>1} E^{{\mathrm {soft}}}(n,K). \end{aligned}$$

The following result holds:

Theorem 2.1

Let \(\varphi :{\mathbb {R}}^n\rightarrow {\mathbb {R}}\) be a convex function in \(E^{{\mathrm {soft}}}(n).\) Then,

  1. i.

    \(\varphi \in {\mathcal C}^1({\mathbb {R}}^n)\);

  2. ii.

    if, in addition, \(\varphi \) has bounded sections, then it is strictly convex.

Proof

   i. By the well-known characterization of differentiability for a real-valued convex function (see, for instance, Theorem 25.1 in [7]), \(\varphi \) is differentiable in \({\mathbb {R}}^n,\) if and only if, for every \(x\in {\mathbb {R}}^n,\) \(\partial \varphi (x)\) is a singleton. Suppose, by contradiction, that there exists \(\overline{x}\in {\mathbb {R}}^n\) such that \(p,q\in \partial \varphi (\overline{x}),\) \(p\ne q,\) and set \(v=q-p.\) Since \(\partial \varphi (\overline{x})\) is a convex set, the segment \(p+tv,\) with \(t\in [0,1],\) is contained in \(\partial \varphi (\overline{x}).\) If we consider the function

$$\begin{aligned} \psi :{\mathbb {R}}\rightarrow {\mathbb {R}}, \qquad \psi (s)=\varphi (\overline{x}+sv), \end{aligned}$$

one can easily see that \((p+tv)\cdot v\in \partial \psi (0),\) for every \(t\in [0,1].\) The function \(\psi \) is convex and belongs to \(E^{{\mathrm {soft}}}(1,K),\) being the restriction to a line of a function in \(E^{{\mathrm {soft}}}(n,K).\) In particular, \(\psi '\) is defined on a dense subset of \({\mathbb {R}},\) according to the Rademacher theorem. Let \(s<0\) be a point in the domain of \(\psi '.\) Taking into account the inequalities guaranteed by Proposition 2.1, for every \(t\in [0,1],\) we have that

$$\begin{aligned} \begin{array}{ll} \frac{K+1}{K}\left( \psi (0)-\psi (s)+\psi '(s)s\right) &{}\le (\psi '(s)-(p+tv)\cdot v) s\\ &{}\le (K+1)\left( \psi (0)-\psi (s)+\psi '(s)s\right) .\\ \end{array} \end{aligned}$$

Dividing by \(-s,\) we have

$$\begin{aligned} \begin{array}{ll} \frac{K+1}{K}\left( \frac{\psi (0)-\psi (s)}{-s}-\psi '(s)\right) &{}\le (p+tv)\cdot v-\psi '(s)\\ &{}\le (K+1)\left( \frac{\psi (0)-\psi (s)}{-s}-\psi '(s)\right) ,\\ \end{array} \end{aligned}$$

for every \(t\in [0,1].\) In particular,

$$\begin{aligned} \begin{array}{ll} \frac{K+1}{K}\left( \frac{\psi (0)-\psi (s)}{-s}-\psi '(s)\right) &{}\le p\cdot v-\psi '(s)< p\cdot v-\psi '(s)+\Vert v\Vert ^2 \\ &{}\le (K+1)\left( \frac{\psi (0)-\psi (s)}{-s}-\psi '(s)\right) ,\\ \end{array} \end{aligned}$$

and, therefore,

$$\begin{aligned} \left( \frac{K^2-1}{K}\right) \left( \frac{\psi (0)-\psi (s)}{-s}-\psi '(s)\right) \ge \Vert v\Vert ^2. \end{aligned}$$

Setting \(\frac{K^2-1}{K}=K_0\), and \(\frac{\Vert v\Vert ^2}{K_0}=T,\) we get that

$$\begin{aligned} \frac{\psi (0)-\psi (s)}{-s}-\psi '(s)\ge T; \end{aligned}$$

this is equivalent to say that \(0\notin S_{\psi }(s,T),\) for every \(s<0\) in the domain of \(\psi ',\) and for T independent of s. However, this cannot occur; otherwise, by the soft engulfing property enjoyed by \(\psi ,\) one would have \(s\notin S_{\psi }(0,(p+tv)\cdot v,T/K),\) for some \(t\in [0,1],\) not possible since \(S_{\psi }(0,(p+tv)\cdot v,T/K)\) is open, 0 is in the interior, and s can be taken close enough to 0. This proves that, for every \(x\in {\mathbb {R}}^n,\) \(\partial \varphi (x)\) is a singleton, and therefore, \(\varphi \) is differentiable on \({\mathbb {R}}^n.\) Finally, taking into account Theorem 25.5 in [7], since \(\varphi \) is a proper convex differentiable function, the gradient mapping \(\nabla \varphi \) is continuous within \({\mathbb {R}}^n.\)

ii. Firstly, note that the graph of \(\varphi \) does not contain any half-line; otherwise, \(\varphi \) would have at least an unbounded section. Thus, we will argue by contradiction, assuming that the graph of \(\varphi \) contains a segment, i.e. there exists \(x\in {\mathbb {R}}^n,\) \(v\in {\mathbb {R}}^n,\) such that \((x+sv,a+sb)\in \mathrm {gph}(\varphi ),\) if and only if \(s\in [-1,0].\) The problem can be reduced to a one-dimensional problem, by considering the function

$$\begin{aligned} \psi :{\mathbb {R}}\rightarrow {\mathbb {R}},\qquad \psi (s)=\varphi (x+sv). \end{aligned}$$

Since both the convexity and the engulfing property are invariant with respect to perturbations by affine functions, we can assume, without loss of generality, that \(\psi (s)=0,\) if and only if \(s\in [-1,0].\) Note that, due to convexity and differentiability, \(\partial \psi (s)=\{0\}\) for every \(s\in [-1,0]\); moreover,

$$\begin{aligned} \lim _{s\rightarrow -\infty }\psi (s)=+\infty ,\qquad \lim _{s\rightarrow +\infty }\psi (s)=+\infty , \end{aligned}$$

and, in particular, \(\psi \) establishes a one-to-one correspondence of \([0,+\infty [\) with itself. Let us consider the section \(S_\psi (-1,t);\) in particular,

$$\begin{aligned} \mathrm {cl}\,{S_{\psi }(-1,t)}\supset \{s>0:\, \psi (s)\le t\}. \end{aligned}$$

Let \(s_t\) be the unique positive point in \(\mathrm {cl}\,{S_{\psi }(-1,t)}\) such that \(\psi (s_t)=t.\) From the soft engulfing property,

$$\begin{aligned} -1\in \mathrm {cl}\,{S_{\psi }(s_t,Kt)}, \end{aligned}$$

i.e.

$$\begin{aligned} \psi (-1)-\psi (s_t)-\psi '(s_t)(-1-s_t)\le Kt, \end{aligned}$$

or, equivalently,

$$\begin{aligned} \psi '(s_t)(1+s_t)\le (1+K)\psi (s_t). \end{aligned}$$
(6)

From the first inequality in (3), taking \(x=0,\) and \(y=s_t\), we have that

$$\begin{aligned} \left( 1+\frac{1}{K}\right) \psi (s_t)\le \psi '(s_t)s_t. \end{aligned}$$
(7)

From (6) and (7), we get that

$$\begin{aligned} \left( 1+\frac{1}{K}\right) \psi (s_t)+\psi '(s_t)\le (1+K)\psi (s_t), \end{aligned}$$

or, equivalently,

$$\begin{aligned} \psi '(s_t)\le \left( K-\frac{1}{K}\right) \psi (s_t). \end{aligned}$$

Since \(\psi :[0,+\infty [\,\rightarrow [0,+\infty [\) is one-to-one, the previous inequality holds for all \(s=s_t>0.\) Then,

$$\begin{aligned} \frac{\psi '(s)}{\psi (s)}-\left( K-\frac{1}{K}\right) \le 0, \end{aligned}$$

i.e.

$$\begin{aligned} \frac{{d}}{{ds}}\left( \ln \psi (s)-\left( K-\frac{1}{K}\right) s\right) \le 0,\qquad \forall s>0. \end{aligned}$$

This implies that \(\ln \psi (s)-\left( K-\frac{1}{K}\right) s\) is decreasing on \(]0,+\infty [,\) and therefore, there exists

$$\begin{aligned} \lim _{s\searrow 0} \left( \ln \psi (s)-\left( K-\frac{1}{K}\right) s\right) =L>-\infty . \end{aligned}$$

Since \(\lim _{s\searrow 0}\psi (s)=0^+,\) we get a contradiction. \(\square \)

Remark 2.1

From the theorem above, if \(\varphi \in E^{{\mathrm {soft}}}(n,K)\), then \(\partial \varphi (x)=\{\nabla \varphi (x)\}\), for every \(x\in {\mathbb {R}}^n\), and relation (3) becomes, for every \(x, y\in {\mathbb {R}}^n\),

$$\begin{aligned} \begin{array}{ll} \displaystyle \frac{K+1}{K}&{}\left( \varphi (y)-\varphi (x)-\nabla \varphi (x)\cdot (y-x)\right) \le (\nabla \varphi (x)-\nabla \varphi (y))\cdot (x-y)\\ &{}\qquad \qquad \qquad \qquad \le (K+1)\left( \varphi (y)-\varphi (x)-\nabla \varphi (x)\cdot (y-x)\right) ,\\ \end{array} \end{aligned}$$
(8)

exactly as in Theorem 4 in [6].

Proposition 2.2

Let \(\varphi :{\mathbb {R}}^n\rightarrow {\mathbb {R}}\) be a convex function with bounded sections. If \(\varphi \in E^{{\mathrm {soft}}}(n,K),\) then \(\varphi \in E(n,K'),\) where \(K'=2K(K+1)\).

Proof

   Let \(\varphi \in E^{{\mathrm {soft}}}(n,K)\). From Theorem 2.1, this function is differentiable and strictly convex. Thus, by applying Theorem 4 in [6], the assertion follows. \(\square \)

3 Equivalence Between Engulfing and Soft Engulfing

In this section, we will show that the soft engulfing property, apparently less demanding than the engulfing one, requires in fact the same condition on the functions. We will first prove this result in the one-dimensional case.

Proposition 3.1

The following equality holds: \( E^{{\mathrm {soft}}}(1)=E(1). \) Moreover, the unique functions defined on \({\mathbb {R}},\) with some unbounded sections and enjoying the engulfing property, are affine.

Proof

   Let \(\varphi \in E^{{\mathrm {soft}}}(1,K);\) we have only to prove that \(\varphi \in E(1,K'),\) for some \(K'>1\). From Theorem 2.1-i, \(\varphi \) is differentiable everywhere. Firstly, let us assume that \(\varphi \) is an affine function. It is easy to see that \(S_\varphi (x,t)={\mathbb {R}},\) for every \(x\in {\mathbb {R}}\) and \(t>0;\) thus, \(\varphi \in E(1,K)\), for every \(K>1\).

Let us now assume that \(\varphi \) is not affine; we will show that all the sections are bounded and, by Proposition 2.2, the assertion will follow. Suppose, by contradiction, that there exists \(x_0\in {\mathbb {R}},\) and \(t>0,\) such that \(S_\varphi (x_0,t)\) is unbounded; since the sections are open and convex subsets of \({\mathbb {R}}\), and since \(\varphi \) is not affine, there exists \(\overline{x} \in {\mathbb {R}}\) such that, either

$$\begin{aligned} ]\overline{x},+\infty [=S_\varphi ( x_0,t),\qquad \text {with}\ \overline{x}>x_0, \end{aligned}$$

or

$$\begin{aligned} ]-\infty ,\overline{x}[ =S_\varphi ( x_0,t),\qquad \text {with}\ \overline{x}>x_0. \end{aligned}$$

Let us consider only the first case, since the second one can be treated similarly. For every \( x> x_0\), we have that \(x\in S_\varphi ( x_0,t)\) and, by the soft engulfing property, \(x_0 \in S_\varphi ( x ,Kt).\) Then,

$$\begin{aligned} \varphi (x)-\varphi (x_0)-\varphi '(x_0)(x-x_0)< & {} t,\\ \varphi (x_0)-\varphi (x)- \varphi '(x)(x_0-x)< & {} Kt, \end{aligned}$$

for every \(x> x_0.\) The two inequalities imply

$$\begin{aligned} (\varphi '(x)- \varphi '(x_0))(x-x_0)<(K+1)t,\qquad \forall \ x> x_0. \end{aligned}$$
(9)

The convexity of \(\varphi \) implies that \(\varphi '(x)\ge \varphi '(x_0)\). Taking \(x\rightarrow +\infty \) in (9), we must have \(\varphi '(x)=\varphi '(x_0),\) for every \(x>x_0\). Therefore, for every \(x\ge x_0,\) the equality \(\varphi (x)=\varphi (x_0)+\varphi '(x_0)(x-x_0)\) holds, and \(]\overline{x},+\infty [=S_\varphi ( x,t).\) Now, for every \(\epsilon >0,\) we have that \(\overline{x} +\epsilon \in S_\varphi ( x,t),\) for every \(x>x_0\); the soft engulfing property implies that \(x \in S_\varphi (\overline{x} +\epsilon ,Kt).\) Therefore,

$$\begin{aligned} \varphi (\overline{x} +\epsilon )-\varphi (x)-\varphi '(x_0)(\overline{x} +\epsilon -x)< & {} t,\\ \varphi (x)-\varphi (\overline{x} +\epsilon )-\varphi '(\overline{x}+\epsilon )(x-\overline{x} -\epsilon )< & {} Kt, \end{aligned}$$

for every \(\epsilon >0\) and \(x\ge x_0\). The two inequalities imply

$$\begin{aligned} (\varphi '(x_0)-\varphi '(\overline{x}+\epsilon ))(x-\overline{x} -\epsilon )<(K+1)t,\qquad \forall \epsilon >0,\ x\ge x_0. \end{aligned}$$
(10)

The convexity of \(\varphi \) gives that \(\varphi '(x_0)\ge \varphi '(\overline{x}+\epsilon )\). Taking \(x\rightarrow +\infty \) in (10), we obtain that \(\varphi '(x_0)= \varphi '(\overline{x}+\epsilon ),\) for every \(\epsilon \), i.e. \(\varphi '(\overline{x}+\epsilon )=\varphi '(x_0)\). Hence, since \(\varphi \) is continuous, \(\varphi (x)=\varphi (x_0)+\varphi '(x_0)(x-x_0)\) for every \(x\ge \overline{x}\). This implies that \(\overline{x}\in S_\varphi (x_0,t),\) which contradicts the assumption on \(S_\varphi (x_0,t)\). \(\square \)

The proof of the previous result in the case \(n>1\) is more delicate, since there exist convex functions, that are not affine, and whose graph contains lines:

Example 3.1

   Let \(\varphi _0:{\mathbb {R}}\rightarrow {\mathbb {R}}\) be defined by \(\varphi _0(x)=x^2\); \(\varphi _0\in E(1,K),\) for some K. If we consider the function \(\varphi :{\mathbb {R}}^2\rightarrow {\mathbb {R}}\) defined by \(\varphi (x,y)=x^2\), then, clearly, \(S_\varphi ((x,y),t)=S_{\varphi _0}(x,t)\times {\mathbb {R}}\). It is easy to verify that \(\varphi \in E(2,K)\).

Taking into account the result of the previous proposition, we are now in the position to state and prove our second main result, in the case \(n\ge 2.\)

Theorem 3.1

For every positive integer n,  the engulfing and the soft engulfing are equivalent properties, i.e. \( E^{{\mathrm {soft}}}(n)=E(n).\)

Proof

   We will show that if \(\varphi \in E^{{\mathrm {soft}}}(n,K)\), then \(\varphi \in E(n,K'),\) for some \(K'>1\). Let \(y\in S_{\varphi }(x,t);\) we will show that \(S_{\varphi }(y,t)\subseteq S_{\varphi }(x,K't).\)

Suppose, first, that \(\varphi (0)=0\) and \(\nabla \varphi (0)=0,\) and take any \(z\in S_\varphi (y,t),\) \(z\ne x.\) Let us consider the set

$$\begin{aligned} \tilde{I}=\{w\in {\mathbb {R}}^n:\, w=(1-s)x+sz,\,s\in {\mathbb {R}}\}\cap S_{\varphi }(y,t) \end{aligned}$$

and denote by I the convex subset of \({\mathbb {R}}\) defined as

$$\begin{aligned} I=\{s\in {\mathbb {R}}:\, (1-s)x+sz\in \tilde{I}\}. \end{aligned}$$

I can be bounded, or unbounded. From Proposition 3.1, if I is unbounded, then \(I={\mathbb {R}},\) and the function \(s\mapsto \varphi _{x,z}(s)=\varphi ((1-s)x+sz)\) is affine, i.e. there exists \(q\in {\mathbb {R}}\) such that \(\varphi _{x,z}(s)=\varphi _{x,z}(0)+qs.\) This implies that, for every \(h\in {\mathbb {R}},\) for every \(l>0,\)

$$\begin{aligned} S_{\varphi _{x,z}}(h,l)={\mathbb {R}}. \end{aligned}$$

In particular, if \(l=t,\) this implies that \(0\in S_{\varphi _{x,z}}(h,t),\) for every \(h\in {\mathbb {R}}.\) From the soft engulfing property, by choosing \(h=1,\) one has that \(1\in S_{\varphi _{x,z}}(0,Kt),\) i.e.

$$\begin{aligned} \varphi _{x,z}(1)<\varphi _{x,z}(0)+\varphi '_{x,z}(0)+Kt, \end{aligned}$$

or, equivalently,

$$\begin{aligned} \varphi (z)<\varphi (x)+\nabla \varphi (x)\cdot (z-x)+Kt. \end{aligned}$$

This proves that \(z\in S_{\varphi }(x,Kt).\)

Suppose now that I is bounded. In this case, by the convexity of \(\varphi _{x,z},\) let \(s_1<s_2\) be the real numbers such that

$$\begin{aligned} t=\varphi _{x,z}(s_1)=\varphi _{x,z}(s_2),\qquad I=]s_1,s_2[. \end{aligned}$$

By the Rolle theorem, there exists \(s_0\in ]s_1,s_2[\) such that \(\varphi '_{x,z}(s_0)=0.\) Then, for some \(l>0,\) one has that

$$\begin{aligned} I=S_{\varphi _{x,z}}(s_0,l), \end{aligned}$$

i.e.

$$\begin{aligned} \varphi _{x,z}(s_1)-\varphi _{x,z}(s_0)=l=\varphi _{x,z}(s_2)-\varphi _{x,z}(s_0). \end{aligned}$$

The function \(\varphi _{x,z}\) is nonnegative, and therefore, \(l\le t.\) Since \(\varphi _{x,z}(0)=\varphi (x)\), and \(x\in S_{\varphi }(y,t),\) we have that

$$\begin{aligned} 0\in S_{\varphi _{x,z}}(s_0,t). \end{aligned}$$

Since \(\varphi _{x,z}\in E^{{\mathrm {soft}}}(1,K),\) from Proposition 3.1, we get that \(\varphi _{x,z}\in E(1,K')\), with \(K'=2K(K + 1)\), and

$$\begin{aligned} S_{\varphi _{x,z}}(s_0, t)\subseteq S_{\varphi _{x,z}}(0,K't). \end{aligned}$$

In particular, \(z\in S_\varphi (y,t)\) implies that \(1\in S_{\varphi _{x,z}}(s_0, t).\) Thus,

$$\begin{aligned} 1\in S_{\varphi _{x,z}}(0,K't), \end{aligned}$$

i.e.

$$\begin{aligned} z\in S_\varphi (x,K't). \end{aligned}$$

In the general case, we can consider the function \(\psi (x)=\varphi (x)-\varphi (0)-\nabla \varphi (0)\cdot x,\) and note that \(\psi \in E(n,K)\) \((E^{{\mathrm {soft}}}(n,K)),\) if and only if \(\varphi \) satisfies the same engulfing condition.

\(\square \)

4 Conclusions

The engulfing property of a convex function is a rather technical condition that arises in connection with the Monge–Ampère measure. We introduce a relaxed version of that property, called soft engulfing, and prove that it is actually equivalent to the original property. Additionally, we show that a convex function with the engulfing property is continuously differentiable, and, in case it has bounded sections, and it is strictly convex. All this is done by means of purely convex analytic elementary techniques. Following this line of investigation, our aim is to study the engulfing property in the sub-Riemannian setting of the Heisenberg group \({\mathbb {H}}^n,\) by considering the so-called H-convex functions, and the notion of sections for such functions, which takes into account the peculiar geometry of \({\mathbb {H}}^n \) (see, for instance, [8]). In this framework, some important results and tools of the classical convex analysis can be fruitfully extended (see, for instance, [9]) and applied to the investigation of the engulfing property in \({\mathbb {H}}^n\) (see [10]).