Some doubt in calculating gradient of a function.

92 Views Asked by At

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?

1

There are 1 best solutions below

8
On BEST ANSWER

Because the squared euclidean $\ell_2$ norm is self-dual (see why here), we have $S_2(y) \equiv \frac{1}{2}\|y\|_2^2$ and so $\nabla S_2(y) \equiv y$.

In general, $S_p(y)$ will not be differentiable at the origin. Indeed, extending the above idea for the $p=2$ case, it's not difficult to show (e.g see this wikipedia page, in french) that

$$(\frac{1}{2}\|.\|_p^2)^* = \frac{1}{2}\|.\|_q^2, $$ where $q > 1$ is the harmonic conjugate of $p$, i.e $1/p + 1 / q = 1$.


Thus, in case $p \in (1, 2)$, your problem is reduced to studying the differentiability of a squared norm $\|.\|_q^2$ , with $q := p/(p-1) > 2$. Note that this is differentiable everywhere except perhaps at the origin, where you'll need to administer special treatment...