Difference between revisions of "Convex function"
(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>, | 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> | + | <center><math> \displaystyle \lambda f(x) + (1-\lambda)f(y) \ge f\left( \lambda x + (1-\lambda) y \right) </math>.</center> |
+ | We say that <math> \displaystyle f </math> is '''strictly convex''' if equality occurs only when <math> \displaystyle x=y </math> or <math> \lambda \in \{ 0,1 \} </math>. | ||
− | + | Usually, when we do not specify <math> \displaystyle I </math>, we mean <math> I = \mathbb{R} </math>. | |
− | 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 | + | We say that <math> \displaystyle f </math> is (strictly) '''concave''' (or, occasionally, that it is ''concave down'') if <math> \displaystyle -f </math> is (strictly) convex. |
+ | |||
+ | If <math> \displaystyle f </math> is differentiable on an interval <math> \displaystyle I </math>, then it is convex on <math> \displaystyle I </math> if and only if <math> \displaystyle f' </math> is non-decreasing on <math> \displaystyle I </math>. Similarly, if <math> \displaystyle f </math> is twice differentiable over an interval <math> \displaystyle I </math>, we say it is convex over <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 | 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 | ||
Line 22: | Line 25: | ||
{{stub}} | {{stub}} | ||
+ | |||
+ | == Resources == | ||
+ | |||
+ | * [[Jensen's Inequality]] | ||
+ | * [[Karamata's Inequality]] |
Revision as of 09:17, 17 June 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 ,
We say that is strictly convex if equality occurs only when or .
Usually, when we do not specify , we mean .
We say that is (strictly) concave (or, occasionally, that it is concave down) if is (strictly) convex.
If is differentiable on an interval , then it is convex on if and only if is non-decreasing on . Similarly, if is twice differentiable over an interval , we say it is convex over 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.