§ 4. Convex functions of a real variable
Let be a subset of . a finite real function defined on , and let be the graph or representative set of the function in , the set of points , where runs through . It is convenient to say that a point of such that lies above (resp. strictly above, below, strictly below) if one has (resp. , , ). If and are two points of we denote by the closed segment with endpoints and ; if then is the graph of the linear function defined on ; we denote the slope of this segment by , and will make use of the following lemma, whose verification is immediate:
Lemma
Let , , be three points in such that . The following statements are equivalent:
a) B is below AC; b) C lies above the line passing through A and B; c) A is above the line passing through B and C; d) ; e) .
The lemma still holds when one replaces "above" (resp. "below") by "strictly above" (resp. "strictly below") and the sign by < (fig. 1).
!Graph showing points A, B, C, and segments labeled with x values a, b, c
Fig. 1
1. Definition of a convex function
Definition 1
We say that a finite numerical function , defined on an interval , is convex on if, no matter what the points of , (), every point of the graph of such that lies below the segment (or, what comes to the same, if every point of this segment lies above ) (fig. 2).
!Graph showing points M_x, M_z, M_{x'}, and curve G
Fig. 2
Taking account of the parametric representation of a segment (Gen. Top., VI, p. 35), the condition for to be convex on I is that one has the inequality
for each pair of points of I and every .
Definition 1 is equivalent to the following: the set of points in lying above the graph G of is convex. Indeed, this condition is clearly sufficient for to be convex on I; it is also necessary, for if is convex on I, and if are two points lying above G, then one has , from which, for ,
by (1), which shows that every point of the segment with endpoints and lies above G.
Remark
On sees in the same way that the set of points lying strictly above G is convex. Conversely, if this set is convex one has
for and ; on letting y tend to and approach in this formula it follows that is convex.
Example 1
Every (real) affine linear function is convex on .
Example 2
The function is convex on , since one has
for .
Example 3
The function is convex on , since
for .
It is clear that if is convex on I, then its restriction to any interval is convex on J.
Let be a convex function on I, and two points of I such that ; if is exterior to then lies above the line D joining and ; this is an immediate consequence of the lemma.
One deduces from this that if is a point such that and such that lies on the segment , then, for every other point such that the point also lies on the segment , for it follows from the above that is at the same time both above and below this segment; in other words, is then equal to an affine linear function on .
Definition 2
We say that a finite real function defined on an interval is strictly convex on I if, for any points of I (), every point of the graph G of such that lies strictly below the segment (or, what comes to the same, if every point of the segment, apart from the endpoints, lies strictly above G).
In other words, we must have the inequality
for every pair of distinct points of and every such that .
The remarks that precede def. 2 show that for a convex function to be strictly convex on it is necessary and sufficient that there be no interval contained in (not reducing to a single point) such that the restriction of to this interval is affine linear.
Of the examples above, the first and third are not strictly convex; on the other hand, is strictly convex on ; a similar calculation shows that is strictly convex on .
Proposition 1
Let be a finite real function, convex (resp. strictly convex) on an interval . For every family of distinct points of , and every family of real numbers such that and , we have
(resp.
Since the proposition (for convex functions) reduces to the inequality (1) for we argue by induction for . The number is ; it is immediate that if and are the smallest and largest of the then ; in other words, the point belongs to , and the induction hypothesis implies that ; moreover we have, from (1), that
One argues in the same way for strictly convex functions, starting from the inequality (2).
We say that a finite real function is concave (resp. strictly concave) on if is convex (resp. strictly convex) on . It comes to the same to say that for every pair of distinct points of and every such that one has
(resp. ).
2. Families of convex functions
Proposition 2
Let () be convex functions on an interval , and () be arbitrary positive numbers; then the function is convex on . Further, if for at least one index the function is strictly convex on , and , then is strictly convex on .
This follows immediately by applying the inequality (1) (resp. (2)) to each of the , multiplying the inequality for by , and then adding term-by-term.
Proposition 3
Let be a family of convex functions on an interval ; if the upper envelope of this family is finite at every point of then is convex on .
Indeed, the set of points lying above the graph of is the intersection of the convex sets formed by the points lying above the graph of each of the functions ; so it is convex.
Proposition 4
Let be a set of convex functions on an interval ; if is a filter on which converges pointwise on to a finite real function , then this function is convex on .
To see this it suffices to pass to the limit along in the inequality (1).
3. Continuity and differentiability of convex functions
Proposition 5
For a real finite function to be convex (resp. strictly convex) on an interval it is necessary and sufficient that for all the gradient
be an increasing (resp. strictly increasing) function of on .
This proposition is an immediate consequence of definitions 1 and 2 and of the lemma of I, p. 23.
Proposition 6
Let be a finite real function convex on an interval . Then at every interior point of the function is continuous, has finite right and left derivatives, and .
Indeed, for and the function is increasing (prop. 5) and bounded below, since if and we have
by prop. 5; this function therefore has a finite right limit at the point ; in other words, exists and is finite; further, letting approach () in (5), it follows that
for all belonging to I. In the same way one shows that exists and that
for and . On letting approach () in this last inequality we obtain . The existence of the left and right derivatives at the point clearly ensures the continuity of at this point.
Corollary 1
Let be a convex (resp. strictly convex) function on I; if and are two interior points of I such that one has* (fig. 3)
Fig. 3
(resp.
The double inequality (8) results from (6) and (7) by a simple change of notation. On the other hand, if is strictly convex and is such that one has, from (8) and prop. 5,
from which (9).
Corollary 2
If is convex (resp. strictly convex) on I then and are increasing (resp. strictly increasing) on the interior of I; the set of points in I at which is not differentiable is countable, and and are continuous at every point where is differentiable.
The first part follows immediately from (8) (resp. (9)) and the inequality
On the other hand, let E be the set of interior points of I where is not differentiable (that is ). For each let be the open interval ; it follows from (8) that if and are two points of E such that , then for all and all ; in other words, as runs through E the open nonempty intervals are pairwise disjoint; the set of such intervals is thus countable, and hence so is E. Finally, (resp. ) being increasing, it has a right limit and a left limit at every interior point of I; prop. 6 of I, p. 18 now shows that the right limit of (resp. ) at the point is equal to , and its left limit is , from which we have the last part of the corollary.
Let be a convex function on I, an interior point of I, and D a line passing through the point , with equation . It follows from the inequalities (8) that if then every point of the graph G lies above D, and, if is strictly convex, is the only point common to D and G; one says that D is a support line to G at the point . Conversely, if G lies above D, one has for every , from which for , and for ; on letting tend to in these inequalities it follows that .
In particular, if is differentiable at the point there is only one supporting line to G at the point , the tangent to G at .
Remark
If is a strictly convex function on an open interval I then is strictly increasing on I, so there are three possible cases, according to prop. 2 of I, p. 13: 1. is strictly decreasing on I; 2. is strictly increasing on I; 3. there is an such that is strictly decreasing for , and is strictly increasing for .
When is convex on I, but not strictly convex, can be constant on an interval contained in I; let be the largest open interval on which is constant (that is to say, the interior of the interval where ); then is strictly decreasing on the interval formed by the points such that (if it exists), strictly increasing on the interval formed by the points such that (if it exists).
In all cases one sees that possesses a right limit at the left-hand endpoint of (in ), and a left limit at the right-hand endpoint; these limits may be finite or infinite (cf. I, p. 46, exerc. 5, 6 and 7). By abuse of language one sometimes says that the continuous function (with values in ), equal to on the interior of , and extended by continuity to the endpoints of , is convex on .
4. Criteria for convexity
Proposition 7
Let be a finite real function defined on an interval . For to be convex on it is necessary and sufficient that for every pair of numbers of such that , and for every real number , the function attains its supremum on at one of the points .
The condition is necessary; indeed, since is convex on , the function is convex on ; one can therefore restrict oneself to the case . Then, for
The condition is sufficient. Let us take and let ; one has and therefore for all , and one can check immediately that this inequality is equivalent to the inequality (1) where one replaces by and by .
Proposition 8
For a finite real function to be convex (resp. strictly convex) on an open interval it is necessary and sufficient that it be continuous on , have a derivative at every point of the complement relative to of a countable subset of this interval, and that the derivative be increasing (resp. strictly increasing) on .
The condition is necessary, from prop. 6 and its corollary 2 (I, p. 27); let us show that it is sufficient. Suppose, therefore, that is increasing on , and that is not convex; there then exist (I, p. 27, prop. 5) three points of , such that , and ; but from the mean value theorem (I, p. 14, th. 1) one has
One thus has , contrary to the hypothesis that is increasing on .
If now we assume that is strictly increasing on , then is convex and cannot be equal to an affine linear function on any open interval contained in , for then would be constant on this interval, contrary to the hypothesis.
Corollary
Let be a finite real function, continuous and twice differentiable on an interval ; for to be convex on it is necessary and sufficient that for all ; for to be strictly convex on it is necessary and sufficient that the previous condition be satisfied and further that the set of points where be dense in .
This follows immediately from the preceding proposition, and from the corollary at I, p. 14.
Example
On the interval ] [ the function ( any real number) has a second derivative equal to ; thus it is strictly convex if or , and strictly concave if . \
In order to be able to formulate another criterion for convexity we make the following definition: given the graph of a finite real function defined on an interval and an interior point of , we shall say that a line passing through is locally above (resp. locally below) if there exists a neighbourhood of such that every point of contained in is above (resp. below) ; we shall say that is locally on at the point if there is a neighbourhood of such that the intersection of and is identical to that of and (in other words, if is simultaneously locally above and locally below ).
Proposition 9
Let be a real finite function which is upper semi-continuous on an open interval . For to be convex on it is necessary and sufficient that for every point of the graph of every line locally above at this point should be locally on (at the point ).
The condition is necessary: indeed, if is convex on then at every point of the graph of there exists a support line to : now is below , so a fortiori locally below (I, p. 29); if a line is locally above at the point it is locally above , so must coincide with , and consequently is locally on at the point .
The condition is sufficient. Indeed, suppose it is satisfied, and suppose that is not convex on ; then there are two points of () such that there are points of strictly above the segment (fig. 4). In other words, the function takes values on ; since is finite and upper semi-continuous on this compact interval its least upper bound on is finite and , and the set is closed and not empty (\emph{Gen. Top.}, IV, p. 361, th. 3 and prop. 1). Let be the greatest lower bound of ; we have . and at the point the line D with equation lies locally above G; but it cannot be locally on G at this point, since, for , one has , which signifies that is strictly below D. This has led us to a contradiction, which establishes the proposition.
Corollary 1
For a real finite function* defined on an open interval and upper semi-continuous on to be convex on it is necessary and sufficient that for all there should exist an such that the relation *entails
We have only to show that the condition is sufficient. Indeed, if at a point of the graph G of a line D is locally above G, then it is locally on G at this point; for, in the opposite case, for example, a point would be strictly below D, while a point would be below D: the mid-point of the segment would thus be strictly above D (fig. 5), and, in virtue of the hypothesis, would a fortiori be strictly below D, which is absurd.
!A graph showing a convex function with points M_{a-h}, M_a, M_{a+h} and a tangent line labeled D.
Fig. 5
Corollary 2
Let be a finite real function defined on an open interval . If for every point there is an open interval containing and such that the restriction of to is convex on , then is convex on .
It is clear that satisfies the criterion of prop. 9.
Exercises
See the exercises for § 4.