设函数 $f(x)$ 在 $(0,+\infty)$ 上可导, $f(1)=0$, 且满足
$$
\begin{gathered}
x(x+1) f^{\prime}(x)-(x+1) f(x)+\int_1^x f(t) d t=x-1 . \\
\text { 求 } \int_1^2 f(x) d x-3 f(2)+\lim _{x \rightarrow 1} \frac{\int_1^x \frac{\sin (t-1)^2}{t-1} d t}{f(x)} .
\end{gathered}
$$