2 - 4*sign(x) + x*sign(x) + |x|
$$x \operatorname{sign}{\left(x \right)} + \left|{x}\right| - 4 \operatorname{sign}{\left(x \right)} + 2$$
2*(-4*DiracDelta(x) + x*DiracDelta(x) + sign(x))
$$2 \left(x \delta\left(x\right) - 4 \delta\left(x\right) + \operatorname{sign}{\left(x \right)}\right)$$
2*(-4*DiracDelta(x, 1) + 3*DiracDelta(x) + x*DiracDelta(x, 1))
$$2 \left(x \delta^{\left( 1 \right)}\left( x \right) + 3 \delta\left(x\right) - 4 \delta^{\left( 1 \right)}\left( x \right)\right)$$
2*(-4*DiracDelta(x, 1) + 3*DiracDelta(x) + x*DiracDelta(x, 1))
$$2 \left(x \delta^{\left( 1 \right)}\left( x \right) + 3 \delta\left(x\right) - 4 \delta^{\left( 1 \right)}\left( x \right)\right)$$