For which values of $q \ge 1$ is $f(x) = |x-a|^q$ strictly convex with $a \in \mathbb{R}$ fixed? I know that if $q>1$, we have:
$\frac{d^2}{dx^2} |x-a|^q = q(q-1)|x-a|^{q-2} > 0$ for all $x \ne a$
So $f$ is strictly convex on $(-\infty,a)$ and $(a,\infty)$. But what about at $x=a$? Also what if $q=1$?
Is the answer to the question simply that $f$ is strictly convex for $q>1$ and convex for $q=1$?
Thanks for any help you can give!
Without loss of generality (using a translation), we can suppose that $a=0$.
For $q=1$, $f_q(x)= \vert x \vert^q$ is not strictly convex as for $x_1 =0$, $x_2=x>0$ and $\lambda \in (0,1)$, we have $f_1((1-\lambda)x_1 +\lambda x_2)= \lambda x_2$ without a strict inequality.
Now for $q > 1$ as you noticed, $f_q$ is strictly convex on both $(-\infty,0]$ and $[0,\infty)$. So let’s take $x_1<0<x_2$ and $\lambda \in (0,1)$. If $(1-\lambda)x_1 +\lambda x_2 <0$ we have $$f_q((1-\lambda)x_1 +\lambda x_2) < (1-\lambda)f_q(x_1) < (1-\lambda)f_q(x_1) +\lambda f_q(x_2)$$
The first inequality follows from the strict convexity of $f_q$ on $(-\infty,0]$ and the second one as $f_q(x_2) >0$.
As we can deal in a similar way for $(1-\lambda)x_1 +\lambda x_2 >0$, this complete the proof that $f_q$ is strictly convex.