Convex function


 

Zobacz też:

In mathematics, a real-valued function f defined on an interval (or on any convex subset of some vector space) is called convex, or concave up, if for any two points x and y in its domain C and any t in [0,1], we have

f(tx+(1-t)y)\leq t f(x)+(1-t)f(y).
Convex function on an interval.
Convex function on an interval.

In other words, a function is convex if and only if its epigraph (the set of points lying on or above the graph) is a convex set.

A function is called strictly convex if

f(tx+(1-t)y) < t f(x)+(1-t)f(y)\,

for any t in (0,1) and x \neq y.

A function f is said to be concave if f is convex.

Contents

Properties

A function (in blue) is convex if and only if the region above its graph (in green) is a convex set.
A function (in blue) is convex if and only if the region above its graph (in green) is a convex set.

A convex function f defined on some open interval C is continuous on C and differentiable at all but at most countably many points. If C is closed, then f may fail to be continuous at the endpoints of C.

A function is midpoint convex on an interval C if

f\left( \frac{x+y}{2} \right) \le  \frac{f(x)+f(y)}{2}

for all x and y in C. This condition is only slightly weaker than convexity. For example, a real valued measurable function that is midpoint convex will be convex. In particular, a continuous function that is midpoint convex will be convex.

A differentiable function of one variable is convex on an interval if and only if its derivative is monotonically non-decreasing on that interval.

A continuously differentiable function of one variable is convex on an interval if and only if the function lies above all of its tangents: f(y) ≥ f(x) + f '(x) (yx) for all x and y in the interval. In particular, if f '(c) = 0, then c is a global minimum of f(x).

A twice differentiable function of one variable is convex on an interval if and only if its second derivative is non-negative there; this gives a practical test for convexity. If its second derivative is positive then it is strictly convex, but the converse does not hold. For example, the second derivative of f(x) = x4 is f "(x) = 12 x2, which is zero for x = 0, but x4 is strictly convex.

More generally, a continuous, twice differentiable function of several variables is convex on a convex set if and only if its Hessian matrix is positive semidefinite on the interior of the convex set.

Any local minimum of a convex function is also a global minimum. A strictly convex function will have at most one global minimum.

For a convex function f, the sublevel sets {x | f(x) < a} and {x | f(x) ≤ a} with aR are convex sets. However, a function whose sublevel sets are convex sets may fail to be a convex function; such a function is called a quasiconvex function.

Jensen's inequality applies to every convex function f. If X is a random variable taking values in the domain of f, then E f(X) \geq f(EX). (Here E denotes the mathematical expectation.)

Convex function calculus

Examples

See also

References

External links