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]
Exercise · ZW-SUBGRADIENT-008 · ★★☆ Intermediate
Choose one option.
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].
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.