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]

Explanation

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.

Study Continuous optimization in ZWMath →

Review the concept: Subgradient

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.

\[f(y) \geq f(x) + g^\top (y - x)\]

More practice problems: subgradient

← ZW-SUBGRADIENT-009