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