-3

Let $f(x)=\frac{|x|}{1+|x|}$, the domain of $f$ is $\mathbb{R}$. Clearly, $f$ is even, and is nondecreasing in $[0,\infty)$ and is nonincresing in $(-\infty,0)$. It seems that $f(x)$ is convex, but I don't know how to prove it by definition. I also tried to prove convexity using convexity preserving operations, but failed.

Thanks in advance.

1 Answers1

2

The function is $C^2$ for $x \ne 0$, so you can analyze convexity separately in $]-\infty,0[$ and $]0, +\infty[$ just by studying the sign of the second derivative.The function is not convex or concave in intervals that contain $x=0$.

PierreCarre
  • 20,974
  • 1
  • 18
  • 34