Exercise · ZW-SUBGRADIENT-008 · ★★☆ Intermediate

Let f(x) = |x| + x. What is the subdifferential at x = 0?

Choose one option.

Show answer
  • B. The interval [0, 2]

Explanation

Since f = 2max(x, 0), the subdifferential at 0 is 2 times [0, 1], that is [0, 2]. Forgetting the factor 2 when adding slopes gives the interval [-1, 1].

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-007 ZW-SUBGRADIENT-009 →