Evaluate $\int_{1/2014}^{2014} \frac{\tan^{-1}x}{x}dx$ using Differentiation Under the Integral Sign

Evaluate $$I=\int_{1/2014}^{2014} \dfrac{\tan^{-1}x}{x}\mathrm dx$$

I tried to solve this integral using Differentiation Under the Integral Sign. I thus redefined the integral as $$I(a)=\int_{1/2014}^{2014} \frac{\tan^{-1}(ax)}{x}\mathrm dx$$$$\Rightarrow I'(a)= \int_{1/2014}^{2014} \frac{1}{1+a^2x^2}\mathrm dx=\left(\dfrac{\tan^{-1}(ax)}{a}\right)_{1/2014}^{2014}$$ However from this point on I seem to be roaming around in circles. Could somebody please help me out with this integral?

Many thanks in anticipation! PS. I know that there are other methods of solving this integral. However, just for the sake of practice, I am specifically interested in a solution involving Differentiation Under the Integral Sign.

• What makes you think that there will be a nice solution involving differentiation under the integral sign? – Alex Zorn May 8 '18 at 19:32
• Frankly I don't know if there will be a nice solution using that method; however I still would like to try this integral using the specified method simply for the sake of practice. – Ishan May 8 '18 at 19:35
• Try the substitution $x\mapsto\frac1x$. I see that Donald Splutterwit's answer does this. – robjohn May 8 '18 at 19:38
• @robjohn Thanks for responding. Could you please however suggest how I could use Differentiation under the Integral Sign for this problem? – Ishan May 8 '18 at 19:41
• @Ishan: Differentiation under the integral sign seems to lead back to the same integral. Sometimes a particular tool doesn't work well for a particular job. That's why we have a toolbox. – robjohn May 8 '18 at 19:43

Note that \begin{eqnarray*} \tan^{-1}(x)+\tan^{-1}(1/x)=\frac{\pi}{2}. \end{eqnarray*} and \begin{eqnarray*} I= \int_{1/2014}^{2014} \frac{\tan^{-1}(x)}{x} dx =\frac{\pi}{2} \int_{1/2014}^{2014} \frac{dx}{x} + \int_{1/2014}^{2014} \frac{\tan^{-1}(1/x)}{1/x} \frac{-dx}{x^2}. \end{eqnarray*} Now substitute $u=1/x$ in the latter integral to obtain $-I$. ... should be a doddle from here ?

• Thanks, but I was actually hoping for a solution specifically using Differentiation under the Integral Sign. – Ishan May 8 '18 at 19:37
• @Ishan: Sometimes an integral is much easier to do in another way. – robjohn May 8 '18 at 19:41

This is too long for a comment; however, this might shed some light on why differentiation under the integral sign leads back to the same integral: \begin{align} &\int_0^1\left(\color{#C00}{\frac{\mathrm{d}}{\mathrm{d}a}\int_{1/2014}^{2014}\frac{\tan^{-1}(ax)}x\,\mathrm{d}x}\right)\mathrm{d}a\tag1\\ &=\int_0^1\left(\frac{\mathrm{d}}{\mathrm{d}a}\int_{a/2014}^{2014a}\frac{\tan^{-1}(x)}x\,\mathrm{d}x\right)\mathrm{d}a\tag2\\ &=\int_0^1\left(\color{#C00}{\frac{\tan^{-1}(2014a)}a-\frac{\tan^{-1}\left(\frac{a}{2014}\right)}a}\right)\mathrm{d}a\tag3\\ &=\int_0^{2014}\frac{\tan^{-1}(a)}a\,\mathrm{d}a-\int_0^{1/2014}\frac{\tan^{-1}(a)}a\,\mathrm{d}a\tag4\\ &=\int_{1/2014}^{2014}\frac{\tan^{-1}(a)}a\,\mathrm{d}a\tag5 \end{align} Explanation:
$(1)$: the integral for $a=0$ is $0$
$(2)$: substitute $x\mapsto x/a$
$(3)$: Fundamental Theorem of Calculus
$(4)$: substitute $a\mapsto a/2014$ on the left and $a\mapsto2014a$ on the right
$(5)$: subtract the integrals

No matter how you slice it, the red expressions are the same, and you will run back into the original integral.

Thus $$I' (a) =\int_{2014^{-1}}^{2014} \frac{1}{1+a^2 x^2 } dx =a^{-1}\int_{2014^{-1}a}^{2014 a}\frac{1}{1+t^2 } dt=a^{-1}\arctan t|_{2014^{-1}a}^{2014 a}$$

• Thanks, but could you please show me how to proceed from here? – Ishan May 8 '18 at 19:34
• This seems to lead back to the same integral. – robjohn May 8 '18 at 19:41