Convex Optimization 2 - Charalampos Salis
Convex Optimization 2 - Charalampos Salis
Convex Optimization 2 - Charalampos Salis
B USINESS
D EPARTMENT OF I NFORMATICS
Convex Optimization
Assignment 2
Salis Charalampos
1 Exercise 3.1
(a) From the definition of convexity, we have: ∀x, y ∈ domf and θ ∈ [0, 1]:
b−x
If θ = b−a ∈ [0, 1], because x ∈ (a, b], then:
b−x x−a
1−θ =1− b−a = b−a
2nd Part
2
From a geometrical standpoint, the inequality expresses that the slope between
the line segment [(b, f(b)), (x, f(x))] and the x axis is greater than the slope of the line
segment [(b, f(b)), (a, f(a))] and the x axis, which is also greater than the slope of the
line segment [(x, f(x)), (a, f(a))] and the x axis.
(c) Consider the inequality proved in (b). For the first part, we have:
3
f (b) − f (a) f (b) − f (x)
≤ ⇒
b−a b−x
f (b) − f (a) f (b) − f (x)
lim ≤ lim ⇒
x→b b−a x→b b−x
f (b) − f (a)
≤ f ′ (b)
b−a
2 Exercise 3.2
The first function cannot be quasi-concave (and, hence, concave), because the super-
level sets are not convex. Its epigraph is also not convex, hence the function cannot
be convex. However, the function is convex, because its sub-level sets are convex.
The sub-level sets of the second function are not convex, thus, the function cannot
be neither convex not quasi-convex. The super-level sets are concave, hence the
function is quasi-concave. The hypograph of the function is also not convex, hence
the function is not concave.
4
3 Exercise 3.3
Hence, g is concave.
4 Exercise 3.4
1st Part
Then:
Z 1 Z 1
1 1
(1 − λ)f (x)dλ + λf (y)dλ = f (x) + f (y)
0 0 2 2
Thus:
Z 1
1 1
f (x + λ(y − x))dλ ≤ f (x) + f (y)
0 2 2
5
2nd Part
Suppose ∃x, y ∈ domf and λ ∈ [0, 1], such that:
Then:
Z 1 Z 1 Z 1
f (x + λ(y − x))dλ > f (x) (1 − λ)dλ + f (y) λdλ
0 0 0
1 1
= f (x) + f (y)
2 2
R1
However: 0
f (x + λ(y − x))dλ ≤ 12 f (x) + 12 f (y). Thus, f is convex.
5 Exercise 3.5
F is differentiable, with:
Rx
F ′ (x) = − x12 0
f (t)dt + x1 f (x)
and:
Z x
2 2 1
F ′′ (x) = 3
f (t)dt − 2 f (x) + f ′ (x)
x 0 x x
Z x
2 x2 ′
= 3[ f (t)dt − xf (x) + f (x)]
x 0 2
Thus, F is convex.
6
6 Exercise 3.6
(a) Halfspace: The epigraph {(x, t)|f (x) ≤ t} must have the form {x|aT x ≤ b} to
be a halfspace. If f is an affine function, then: {(x, t)|f (x) ≤ t} = {(x, t)|cT x + d ≤
t} = {(x, t)|cT x ≤ t − d}, which is a halfspace.
(b) Convex Cone: In order for the epigraph to be a convex cone, we must have:
∀(x, t) ∈ epif ⇒ a(x, t) = (ax, at) ∈ epif , where a > 0, i.e. it must hold: ∀(x, t) :
f (x) ≤ t ⇒ f (ax) ≤ at. However, from the definition of the epigraph: f (x) ≤ t ⇒
af (x) ≤ at, which implies that: f (ax) = af (x).
7 Exercise 3.7
Suppose that f is not constant. Then ∃x, y ∈ Rn , such that: f (x) < f (y). We need
to prove that f is now not bounded. Consider z ∈ Rn , such that z > y. Then, from
Exercise 3.1, we have:
7
8 Exercise 3.15
(a) We have:
xa −1 DL’H xa log x
lima→0 ua (x) = lima→0 a = lima→0 1 = log x = u0 (x)
1a −1
ua (1) = 1 =0
axa−1
u′a (x) = a = xa−1 > 0, ∀x ∈ R∗+
9 Exercise 3.16
Thus, the Hessian is indefinite and the function is neither convex nor concave. It
is also not quasi-convex (sublevel sets are not convex), however is is quasi-concave
(superlevel sets are convex).
8
(d) Examine second-order condition:
" #
0 − x12
2
∇ f (x) = 2x1
2 ⇒ det = − x14 < 0
− x12 x32
2
2
∇2 f (x) = x2 2 ⇒ det = 0
2x21
− 2x
x22
1
x32
" #
2 −a(1 − a)xa−2
1 x1−a
2 a(1 − a)xa−1
1 x−a
2
∇ f (x) = ⇒
a(1 − a)xa−1
1 x−a
2 −a(1 − a)xa1 x−a−1
2
10 Exercise 3.22
Pm
(a) f (x) = − log(− log( i=1 exp aTi x + bi ))
9
(b) Rewriting f to utilize the tip:
√ q
xT x
f (x, u, v) = uv − xT x = u(v − u )
• g1 (u) = u is affine.
xT x
• g2 (u) = v − u is concave on R++
√
• h(x) = x1 x2 is convex and non-increasing.
Thus, f is convex.
Thus, f is convex.
||x||p
p
• g1 (x, t) = t − tp−1 is concave.
p−1
• g2 (x, t) = t p is also concave.
1 1
p 1− p
• h(x) = −x1 x2 is convex and non-increasing.
Thus, f is convex.
Thus, f is convex.
10
11 Exercise 3.43
We only consider the 1-dimensional case. Proving the general case can be made by
restricting the function to an arbitrary line and utilizing the results of the 1-dimensional
case.
We will prove that f must be quasi-convex. Assume that x < y and f (y) ≤ f (x).
Quasi-convexity holds if ∀z ∈ [x, y]: f (z) ≤ f (x). Suppose that ∃z ∈ [x, y], such that
f (z) > f (x) and without loss of generality, also assume that f ′ (z) < 0. By using the
above formula, we get:
f ′ (z)(x − z) ≤ 0 ⇒ f ′ (z) ≥ 0
Then:
12 Exercise 3.45
11
· First-order condition:
· Second-order condition:
• y T ∇f (x) = 0 ⇒ y1 = − yx2 x2 1
12