Optimality and convexity practice
Original practice questions (PDF)
1. A quartic with two minimizers
Let on . Find all critical points, classify them using the second derivative, and determine the global minimum and its minimizers.
Solution to exercise 1
The derivative vanishes at . The second derivative is negative at zero and positive at , giving a local maximum and two local minima. Since , the global value is , attained at both and .
2. A quadratic in two variables
Let . Write and solve the first-order condition, compute the Hessian, and classify the critical point. Is it a global minimizer?
Solution to exercise 2
The equations and give . The Hessian has eigenvalues and , so is strictly convex and the point is its unique global minimizer.
3. A saddle point
For , verify stationarity at and compute the Hessian and its eigenvalues. Is the Hessian positive semidefinite? Give a direction in which decreases from the origin.
Solution to exercise 3
The gradient vanishes at the origin. The Hessian is , which is indefinite. Traveling in direction gives for , so the origin is not a local minimum.
4. Three convex sets?
Consider Prove that and are convex, and decide whether is convex.
Solution to exercise 4
The set is an intersection of halfspaces. The triangle inequality gives for points in and . The set is the epigraph of on . That function has second derivative . For any two points in its epigraph, the convex combination of their heights is therefore at least the reciprocal of the convex combination of their first coordinates.
5. Three convex functions?
On , let , , and . Prove convexity of and , and decide whether is convex.
Solution to exercise 5
A pointwise maximum of affine functions is convex. The exponential is convex since . The cubic has for , so it is not convex on .
6. Composition and addition
Let be convex, , and .
- Use the chord definition to prove that is convex.
- Use this result to prove convexity of .
- Prove that a sum of two convex functions is convex.
Solution to exercise 6
For , the affine map sends to . Applying the convexity inequality for gives the first result. The Euclidean norm is convex by the triangle inequality, so take and use the shift . Adding the two chord inequalities proves convexity of a sum.
7. Jensen’s inequality
State Jensen’s inequality. Verify it for and taking values 0 and 2 with equal probabilities, and for and uniform on .
Solution to exercise 7
For convex , when the expectations are defined. The two-point distribution gives and . If the PDF’s first distribution is read as continuous uniform on , its second moment is , so Jensen still holds. The uniform distribution gives and , with strict inequality from strict convexity.
8. Subgradients of norms and maxima
- Compute at .
- Give a subgradient of at .
- For , describe when the first term is uniquely active and when both terms are active.
Solution to exercise 8
At zero the absolute value has subdifferential . For the norm, any vector with is a subgradient, so works. For the maximum, the subdifferential is the convex hull of the active slopes. It is in the first case and in the second.
9. First-order certificates of global optimality
- Prove that is sufficient for a global minimum of a differentiable convex function on .
- For with , characterize the minimizers and give a condition for uniqueness.
- Apply the result to and .
Solution to exercise 9
The supporting inequality gives . For the quadratic, the minimizers solve . If a solution exists, the solution set is , with a unique minimizer when . If is outside the range of , a null-space direction gives unbounded descent. In the given example, solving the two equations gives .
10. A subgradient certificate
Let . Compute for , , and . Find a point where the subdifferential contains zero and justify global optimality.
Solution to exercise 10
The subdifferentials are , , and , respectively. Thus has . The subgradient inequality with certifies a global minimum.