Convex function
A function for some interval is convex (sometimes written concave up) over if and only if the set of all points such that is convex. Equivalently, is convex if for every and every ,
Usually, when we do not specify , we mean .
We say that is concave (or, occasionally, that it is concave down) if is convex.
If is differentiable, then it is convex if and only if is non-decreasing. Similarly, if is twice differentiable, we say it is convex over an interval if and only if for all .
Note that in our previous paragraph, our requirements that is differentiable and twice differentiable are crucial. For a simple example, consider the function
,
defined over the non-negative reals. It is piecewise differentiable, but at infinitely many points (for all natural numbers , to be exact) it is not differentiable. Nevertheless, it is convex. More significantly, consider the function
over the interval . It is continuous, and twice differentiable at every point except . Furthermore, its second derivative is greater than 0, wherever it is defined. But its graph is shaped like a curvy W, and it is not convex over , although it is convex over and over .
This article is a stub. Help us out by expanding it.