Integrate using differentiation w.r.t. parameter only: $\int_0^{\pi/2} x\cot(x)dx$. We can express this as $\int_0^{\pi/2} x\cdot\frac{\cos(x)}{\sin(x)}dx$.
We can substitute $u=\sin(x)$ to start but I am not sure if that will do us any good.
If we use $x_i$ as a parameter, the answer is of the form. $\lim_{x_i \to 1}I(xi)=\lim_{x_i \to 1}\frac{\pi}{2}\ln(\xi+1)$.
NOTE: Only use differentiation with respect to parameters.