What is a subgradient of a convex function at a non-differentiable point, and what is the subdifferential of at ? Why can the subgradient method increase the objective on some steps, and why must its step size decay instead of staying constant?
Linear algebra and optimisation, Subgradient methods
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you know how subgradients generalise gradients to kinks like and why constant-step subgradient descent cannot converge.
Key idea
A vector is a subgradient of convex at if the linear function with slope stays globally beneath : for all . Because is not guaranteed to be a descent direction on every step and subgradients need not vanish near a kink, the step size must shrink to zero.
Steps
- Define the subgradient and subdifferential: is a subgradient of convex at if for all . The set of all subgradients at is the subdifferential . When is differentiable at , .
- Compute : we need for all . Testing gives and gives ; conversely, satisfies . Hence .
- Explain why the objective can rise: need not be a descent direction at a kink. For example, on at , the vector is a valid subgradient (since ), yet stepping along gives for every because climbing the steeper wall outweighs descending . Even in 1-D on from with , raises from to .
- Explain why must decay: for , every non-zero has . With a fixed , each step moves by distance , so iterates bounce across at distance forever instead of converging. Standard convergence needs with (e.g. ).
Common mistakes
- Thinking only needs to hold locally near . For a convex function, the subgradient inequality holds globally for all .
- Applying standard gradient-descent intuition that decreases monotonically and keeping constant.
How long your answer should be
Half a page; 4–5 minutes.
Last checked on 4 December 2026.
Read this
Previous in Linear algebra and optimisation: What is the Armijo (sufficient decrease) condition in backtracking line search, why is simply requiring not enough to guarantee convergence, and what step size does backtracking choose on from in direction with initial , shrink factor and ?
Next in Linear algebra and optimisation: How is the Lagrange dual function defined for a constrained optimisation problem, why is always concave even when the primal problem is non-convex, and how do you prove weak duality ()?