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