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