Difference between revisions of "Convex function"
ComplexZeta (talk | contribs) |
(People! Not all functions are twice differentiable!!!) |
||
Line 1: | Line 1: | ||
− | + | A [[function]] <math>f: I \mapsto \mathbb{R}</math> for some interval <math> \displaystyle I \subseteq \mathbb{R} </math> is ''convex'' (sometimes written ''concave up'') over <math> \displaystyle I </math> if and only if the set of all points <math> \displaystyle (x,y) </math> such that <math> \displaystyle y \ge f(x) </math> is [[convex set | convex]]. Equivalently, <math> \displaystyle f </math> is convex if for every <math> \lambda \in [0,1] </math> and every <math> x,y \in I</math>, | |
+ | <center><math> \displaystyle \lambda f(x) + (1-\lambda)f(y) \ge f\left( \lambda x + (1-\lambda) y \right) </math>.</center> Usually, when we do not specify <math> \displaystyle I </math>, we mean <math> I = \mathbb{R} </math>. | ||
+ | |||
+ | We say that <math> \displaystyle f </math> is '''concave''' (or, occasionally, that it is ''concave down'') if <math> \displaystyle -f </math> is convex. | ||
+ | |||
+ | If <math> \displaystyle f </math> is differentiable, then it is convex if and only if <math> \displaystyle f' </math> is non-decreasing. Similarly, if <math> \displaystyle f </math> is twice differentiable, we say it is convex over an interval <math> \displaystyle I </math> if and only if <math> f(x) \ge 0 </math> for all <math> x \in I </math>. | ||
+ | |||
+ | Note that in our previous paragraph, our requirements that <math> \displaystyle f </math> is differentiable and twice differentiable are crucial. For a simple example, consider the function | ||
+ | <center> | ||
+ | <math> | ||
+ | f(x) = \lfloor x \rfloor (x - \lfloor x \rfloor ) + {\lfloor x \rfloor \choose 2} | ||
+ | </math>, | ||
+ | </center> | ||
+ | defined over the non-negative reals. | ||
+ | It is piecewise differentiable, but at infinitely many points (for all natural numbers <math> \displaystyle x </math>, to be exact) it is not differentiable. Nevertheless, it is convex. More significantly, consider the function | ||
+ | <center> | ||
+ | <math> | ||
+ | f(x) = \left( |x| - 1 \right)^2 | ||
+ | </math> | ||
+ | </center> | ||
+ | over the interval <math> \displaystyle [-2, 2] </math>. It is continuous, and twice differentiable at every point except <math> \displaystyle{} (0, 1) </math>. 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 <math> \displaystyle [-2,2] </math>, although it is convex over <math> \displaystyle [-2,0] </math> and over <math> \displaystyle [0,2] </math>. | ||
{{stub}} | {{stub}} |
Revision as of 21:21, 8 April 2007
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.