Exercise · ZW-SUBGRADIENT-010 · ★★★ Advanced
Let f(x) = max(x, 0) + 2·max(-x, 0) for x in R. What is the subdifferential at x = 0?
Choose one option.
Show answer
- D. The interval [-2, 1]
Exercise · ZW-SUBGRADIENT-010 · ★★★ Advanced
Choose one option.
The term \( \max(x,0) \) contributes \( [0,1] \) and \( 2\max(-x,0) \) contributes \( [-2,0] \); adding both sets gives \( [-2,1] \). Keeping only one of the intervals is the most frequent error.
The subgradient generalizes the gradient to convex functions that are not differentiable: at each point it is a vector g that gives an affine lower bound of f, that is, f(y) ≥ f(x) + gᵀ(y − x) for all y.