You may already have met a convex function -- one in which the points above the graph of the function (the ``supergraph'') form a convex set. Equivalently, a function is convex if the line joining two points on the graph of f always lies above the graph of f.
An obvious way to generate a convex set is as the intersection of a collection of half planes; hence the set of feasible solutions of a linear programming problem forms a (possibly empty) convex set.
There are other very natural ways to generate convex sets. Let
x1,
x2, ...,
xk be elements of
Rn. It is
essentially trivial to show that the set of all convex combinations of
x1,
x2, ...,
xk is a convex set. Here is the argument:
let
u =
1x1 +
2x2 +...+
kxk and
v =
x1 +
x2 +...+
xk be two convex
combinations of
x1,
x2, ...,
xk. Write down
u + (1 -
)v and show that, when
0
1, this is
also a convex combination of
x1,
x2, ...,
xk.
It is of interest that the set of optimal solutions of a linear programming problem is a convex set. The next two examples discuss this:
Solution Let
1x1 +
2x2 +...+
kxk be any convex combination of
x1,
x2, ...,
xk. Let the objective function be
c1x1 + c2x2 +...+ cnxn. Since
x1,
x2, ...,
xk
all have the same objective value, z say, then, for all i,
This solution can be written more simply by using matrix notation, letting the objective function be cTx.
Solution Let
v =
1x1 +
2x2 +...+
kxk
be any convex combination of
x1,
x2, ...,
xk.
Write
v = (1 -
k)u +
kxk,
where
x1 +
x2 +...+
xk-1.
We now return to our main thread; that convexity gives us a handle on uniqueness. It is geometrically clear that a (strictly) convex function cannot have two different local minima, while if the same value occurs as a local minimum at different places, the graph must be flat between them, so neither minimum is isolated (and f can't be strictly convex).
Say that f is concave if - f is convex. To help remember the difference, note that x2 is convex, while - x2 is concave.
Taylors theorem in its general form allows us to analyse f. At the point x, we have
![]()
![]()
Note that if f is linear then it is both convex and concave. The function f (x) = x12 + ... + xn2 is strictly convex, since
Ian Craw 2002-09-11