Let my function be $f(x)=e^{|x|}$. I wish to find $f''(x)$, this can be done as-
$f'(x)=$sgn$(x)e^{|x|}$
$f''(x)=$sgn$(x)^2e^{|x|} =e^{|x|}$
In Mathematica, I am trying to plot $f''(x)$, it presents an empty plot.
f[x_] := E^Abs[x];
Plot[f[x], {x, -1, 1}]
g[x_] = D[f[x], {x, 2}]
Plot[g[x], {x, -1, 1}]
Could anyone please locate the error.


Exp[Piecewise[{{x, x > 0}, {-x, x < 0}}, 0]]should also work in version 9 for your purposes. – J. M.'s missing motivation Oct 10 '18 at 10:53