I want to check if the function $f(x)$ is convex, where
$$ f(x)=\bigl|a|x|-x\bigr|^2.$$
There are several possibilities to check if the function is convex:
- The second derivative: Not possible, because it is only subdifferential.
- Geometry: too complicated for this case.
- Convex inequality: $$f(tx+(1-t)y) \leqslant tf(x) + (1-t)f(y).$$
To 3: How to use the inequality? Can somebody help to put the function into the convex inequality?