Optimal. Leaf size=29 \[ -\frac{\sqrt{x^2+1} \tan ^{-1}(x)}{x}-\tanh ^{-1}\left (\sqrt{x^2+1}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0478196, antiderivative size = 29, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.267, Rules used = {4944, 266, 63, 207} \[ -\frac{\sqrt{x^2+1} \tan ^{-1}(x)}{x}-\tanh ^{-1}\left (\sqrt{x^2+1}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4944
Rule 266
Rule 63
Rule 207
Rubi steps
\begin{align*} \int \frac{\tan ^{-1}(x)}{x^2 \sqrt{1+x^2}} \, dx &=-\frac{\sqrt{1+x^2} \tan ^{-1}(x)}{x}+\int \frac{1}{x \sqrt{1+x^2}} \, dx\\ &=-\frac{\sqrt{1+x^2} \tan ^{-1}(x)}{x}+\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{x \sqrt{1+x}} \, dx,x,x^2\right )\\ &=-\frac{\sqrt{1+x^2} \tan ^{-1}(x)}{x}+\operatorname{Subst}\left (\int \frac{1}{-1+x^2} \, dx,x,\sqrt{1+x^2}\right )\\ &=-\frac{\sqrt{1+x^2} \tan ^{-1}(x)}{x}-\tanh ^{-1}\left (\sqrt{1+x^2}\right )\\ \end{align*}
Mathematica [A] time = 0.0248081, size = 33, normalized size = 1.14 \[ -\log \left (\sqrt{x^2+1}+1\right )-\frac{\sqrt{x^2+1} \tan ^{-1}(x)}{x}+\log (x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.099, size = 56, normalized size = 1.9 \begin{align*} -{\frac{\arctan \left ( x \right ) }{x}\sqrt{ \left ( x-i \right ) \left ( x+i \right ) }}-\ln \left ({(1+ix){\frac{1}{\sqrt{{x}^{2}+1}}}}+1 \right ) +\ln \left ({(1+ix){\frac{1}{\sqrt{{x}^{2}+1}}}}-1 \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.4316, size = 30, normalized size = 1.03 \begin{align*} -\frac{\sqrt{x^{2} + 1} \arctan \left (x\right )}{x} - \operatorname{arsinh}\left (\frac{1}{{\left | x \right |}}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.0765, size = 127, normalized size = 4.38 \begin{align*} -\frac{x \log \left (-x + \sqrt{x^{2} + 1} + 1\right ) - x \log \left (-x + \sqrt{x^{2} + 1} - 1\right ) + \sqrt{x^{2} + 1} \arctan \left (x\right )}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 21.4801, size = 19, normalized size = 0.66 \begin{align*} - \operatorname{asinh}{\left (\frac{1}{x} \right )} - \frac{\sqrt{x^{2} + 1} \operatorname{atan}{\left (x \right )}}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.08828, size = 73, normalized size = 2.52 \begin{align*} \frac{2 \, \arctan \left (x\right )}{{\left (x - \sqrt{x^{2} + 1}\right )}^{2} - 1} + \arctan \left (x\right ) - \log \left ({\left | -x + \sqrt{x^{2} + 1} + 1 \right |}\right ) + \log \left ({\left | -x + \sqrt{x^{2} + 1} - 1 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]