Lecture 5
Lecture 5
Lecture 5
Xavier Cabezas
FCNM-ESPOL
July 20, 2020
Outline
Level sets
• Concave if −f is convex.
λx1 +(1−λ)x2
x1 x2 x1 x2
• An affine function (or map) is a linear map moved from the origin.
La (x) = x0 + M x, with x0 ∈ Rn .
.
Theorem
An affine map is both convex and concave.
.
Proof.
Level sets
Theorem
In a convex minimization problem any local minimum is a global
minimum (optimal solution).
Proof.
(by contradiction) Suppose x̄ is a local minimum but not a global
minimum. Then there is an x ∈ X such that f (x) < f (x̄).
Level sets
Level sets 10
Level sets
Theorem
Let f : C → R be a convex function over the convex set C ∈ Rn , the
level set levα f = { x ∈ C | f (x) ≤ α } is a convex set for all scalars α.
Proof.
If x1 , x2 ∈ levα f and λ ∈ [0, 1], then x = λx1 + (1 − λ)x2 ∈ C and
f (λx1 + (1 − λ)x2 ) ≤ λf (x1 ) + (1 − λ)f (x2 ) ≤ λα + (1 − λ)α = α,
then λx1 + (1 − λ)x2 ∈ levα f .
Level sets 11
Level sets examples
Convexity of level sets does not characterize convex functions. Level sets
characterize a wider family of functions, quasiconvex ones.
f α
α
levα f levα f
[ ] [ ]
x1 x2 x1 x2
(a) A convex function. (b) A Quasiconvex function.
Level sets 12
Outline
Level sets
(a) epi and hyp of a (b) epi and hyp of a (c) epi and hyp of a
function. convex function. concave function.
Theorem
Let f : C → R be a convex function over the convex set C ∈ Rn . f is
convex if and only if epi f is a convex set.
Proof.
⇒) Let (x1 , y1 ) ∈ epi f and (x2 , y2 ) ∈ epi f , i.e., f (x1 ) ≤ y1 and
f (x2 ) ≤ y2 . Then for λ ∈ [0, 1]
that implies that (λx1 + (1 − λ)x2 , λy1 + (1 − λ)y2 ) ∈ epi f , then epi f
is convex.
⇐) As an exercise!
f
epi f epi f
f (x)
f d0 (x − x0 )
f (x0 )
x0 x x0
(a) The subgradient at x0 . (b) Infinite subgradients at x0 .
−1
0
(a) A convex function. (b) Subdifferential function.
Theorem
Let C be a convex set of Rn and f : C → R be a differentiable function
over C. The function f is convex if and only if
f (x2 )
f f (x1 ) + ∇f (x1 )0 (x2 − x1 )
x1 x2
Proof.
⇒) Let x1 , x2 ∈ C and λ ∈ [0, 1]. Suppose that f is convex. Then
f ((1 − λ)x1 + λx2 ) ≤ (1 − λ)f (x1 ) + λf (x2 ) and rearranging terms we
have
f (x1 + λ(x2 − x1 )) − f (x1 )
≤ f (x2 ) − f (x1 ).
λ
Taking the limit when λ → 0+ we obtain the directional derivative in the
direction x2 − x1 on the left side. We know that this term is equal to
∇f (x1 )0 (x2 − x1 ). Then
Proof.
⇐) Suppose the inequality is true. Take z = λx1 + (1 − λ)x2 , by using
the inequality we obtain
Then f is convex.
Level sets