A function
is convex
if for any real numbers
,
each point
on the line segment joining
and
lies above or at the point
on the graph of
with the same
-coordinate.
Algebraically, this condition says that
Those who know what a convex set in geometry is
can interpret the condition as saying that
the set
of points above the graph of
is a convex set.
Loosely speaking, this will hold if the graph of
curves in the shape of a smile instead of a frown.
For example, the function
is convex,
as is
for any positive even integer.
One can also speak of a function
being convex
on an interval
.
This means that the condition (1) above
holds at least when
(and
and
).
For example,
one can show that
is convex on
,
and that
is convex on
.
Finally one says that a function
on an interval
is strictly convex,
if
For convenience, here is a brief list of some convex functions.
In these,
represents a positive integer,
represent real constants,
and
is the variable.
In fact, all of these are strictly convex on the interval given,
except for
and
when
is 0 or
.
| on all of
|
||
| on
|
||
| on
|
||
| on
|
||
| on
|
||
| on |
||
| on
|
||
| on |
||
| on all of
|
||
| on
|
A sum of convex functions is convex. Adding a constant or linear function to a function does not affect convexity.
Remarks (for those who know about continuity
and derivatives):
If one wants to prove rigorously that a function is convex,
instead of just guessing it from the graph,
it is often easier to use one of the criteria below instead
of the definition of convexity.