The first derivative
[src]
-2*|x| + 2*x - 2*x*sign(x)
$$- 2 x \operatorname{sign}{\left(x \right)} + 2 x - 2 \left|{x}\right|$$
The second derivative
[src]
2*(1 - 2*sign(x) - 2*x*DiracDelta(x))
$$2 \left(- 2 x \delta\left(x\right) - 2 \operatorname{sign}{\left(x \right)} + 1\right)$$
The third derivative
[src]
-4*(3*DiracDelta(x) + x*DiracDelta(x, 1))
$$- 4 \left(x \delta^{\left( 1 \right)}\left( x \right) + 3 \delta\left(x\right)\right)$$