If $$f(x)=\int_1^x\frac{\tan^{-1}t}{t}\,\mathrm dt,$$ find $f(e^2)-f\left(\dfrac{1}{e^2}\right)$.
I think that Newton-Leibniz formula should be applied but the problem is that that if I apply it, I would get $f'(x)$ but I have to find the answer in terms of $f(e^2)$ which involves no derivatives.
How to go about it?