Some simple problems
- Show that f(x)=x2 is convex for x∈R using the definition of convexity. Hint: If you re-write the definition, f is convex if the following holds for all x,y∈Df and any λ∈[0,1] $\lambda f(x)+(1-\lambda)f(y)-f(\lambda x + (1-\lambda) y ) \geq 0$.
- Using the second order condition show that the following functions are convex on the specified domain.
- f(x)=ex is convex for x∈R.
- g(x)=−ln(x) is convex for x∈(0,∞).
- Let f(x)=x2 and g(x)=ex. Show that f(g(x)) and g(f(x)) is convex for x∈R. Also show that if f(x) is any convex function than h(x)=ef(x) is convex.
- A norm is any function that satisfy the following properties
- f(αx)=|α|f(x) for all α∈R.
- f(x+y)≤f(x)+f(y)
- f(x)≤0 for all x∈Rn with equality if and only if x=0
Using the definition of convexity, try to show that a function satisfying the properties above is convex (the third condition is not needed to show this).