Let $p \in (1,2]$ and also let $X = \mathbb{R}^n$. I want to calculate a gradient of a following function (i.e. $\nabla S$)
$$S(y) = \sup_{x \in X} \{ \langle x, y \rangle - \frac{1}{2(p-1)} \cdot ||x||_{p}^2 \}$$
My problem is that that $\sup$ is really irritant for me.
Particularly, I would like to use $p = 1+ \frac{1}{d}$ where $d>0$ is sufficiently big.
Can anyone help me?