Lecture 6
Lecture 6
Lecture 6
Instructor: Quanquan Gu Date: Sep 12th
The following theorem provides a sufficient and necessary condition to verify a function
is convex.
where o(α) means limt→0 o(α)/α = 0. Also note that x + α(y − x) = αy + (1 − α)x. Thus,
it follows from (2) that
Let z ≡ αx+(1−α)y, since domf is a convex set, we have z ∈ domf . Since x, y, z ∈ domf ,
we have
αf (x) + (1 − α)f (y) ≥ αf (z) + α∇f (z)> (x − z) + (1 − α)f (z) + (1 − α)∇f (z)> (y − z)
1
And we are left with the right hand side equal to:
And since we know f (z) = f (αx+(1−α)y), we can conclude this is indeed a convex function.
In order to prove that a function is convex, we can use the definition. But sometimes
that can be tedious. In the following, we will introduce second order sufficient and necessary
condition for convex functions, which provides an easy way to prove a function is convex.
2
Let y → x, then z → x. By the continuity of ∇2 f (x), we then have
(y − x)> ∇2 f (x)(y − x) ≥ 0.
Therefore, by combining (5) and (7), we have f (y) ≥ f (x) + ∇f (x)> (y − x) . By the
first-order condition for convex functions, f is convex.
Now we will illustrate the application of second-order condition for convex functions with
several examples.
∇2 f (x) = P 0.
∇2 f (x) = A> A 0,