The question is $$ \int ^4 _{-4} (t-2)^2\delta'\left(-\frac13t+\frac12\right)dt $$
The solution of the text book is
\begin{align} \int ^4 _{-4} (t-2)^2\delta'\left(-\frac13t+\frac12\right)dt &=\int ^4 _{-4} 3(t-2)^2\delta'\left(t-\frac32\right)dt \\ &=\int ^4 _{-4} \left[{\frac34\delta'\left(t-\frac32\right)+3\delta\left(t-\frac32\right)}\right]dt\\ &=3 \end{align}
My solution is \begin{align*} \int ^4 _{-4} (t-2)^2\delta'\left(-\frac13t+\frac12\right)dt &=3\int ^4 _{-4} (t-2)^2\delta'\left(t-\frac32\right)dt \\ &=-3\int ^4 _{-4} \left[{\frac{d}{dt}(t-2)^2}\right]_\frac32 \delta\left(t-\frac32\right)dt\\ &=-3\cdot2\cdot\left(\frac32-2\right)\int ^4 _{-4}\delta\left(t-\frac32\right)dt\\ &=3\cdot1\\ &=3 \end{align*}
My solution is used the following equation derived by parts.
$if\ \ \ t_1 < t_0 < t_1,$ $$ \int ^{t_2} _{t_1} x(t) \delta ^ {(n)} (t-t_0) dt = (-1)^{(n)} \int ^{t_2} _{t_1} x^{(n)}(t) \delta(t-t_0) dt = (-1)^{(n)}x^{(n)} (t_0)\\ $$
The result is same as $3$. However, I cannot understand the textbook's solution.
Can someone explain how the first line became the second line in textbook's solution?