Optimal. Leaf size=29 \[ -\frac {\sqrt {1+x^2} \tan ^{-1}(x)}{x}-\tanh ^{-1}\left (\sqrt {1+x^2}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 29, normalized size of antiderivative = 1.00, 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 = {5064, 272, 65,
213} \begin {gather*} -\frac {\sqrt {x^2+1} \tan ^{-1}(x)}{x}-\tanh ^{-1}\left (\sqrt {x^2+1}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 213
Rule 272
Rule 5064
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} \text {Subst}\left (\int \frac {1}{x \sqrt {1+x}} \, dx,x,x^2\right )\\ &=-\frac {\sqrt {1+x^2} \tan ^{-1}(x)}{x}+\text {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.02, size = 33, normalized size = 1.14 \begin {gather*} -\frac {\sqrt {1+x^2} \tan ^{-1}(x)}{x}+\log (x)-\log \left (1+\sqrt {1+x^2}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [A]
time = 5.78, size = 21, normalized size = 0.72 \begin {gather*} -\frac {\text {ArcTan}\left [x\right ] \sqrt {1+x^2}}{x}-\text {ArcSinh}\left [\frac {1}{x}\right ] \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.12, size = 56, normalized size = 1.93
method | result | size |
default | \(-\frac {\sqrt {\left (x -i\right ) \left (x +i\right )}\, \arctan \left (x \right )}{x}-\ln \left (1+\frac {i x +1}{\sqrt {x^{2}+1}}\right )+\ln \left (\frac {i x +1}{\sqrt {x^{2}+1}}-1\right )\) | \(56\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.36, size = 22, normalized size = 0.76 \begin {gather*} -\frac {\sqrt {x^{2} + 1} \arctan \left (x\right )}{x} - \operatorname {arsinh}\left (\frac {1}{{\left | x \right |}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 47, normalized size = 1.62 \begin {gather*} -\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 {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 4.53, size = 19, normalized size = 0.66 \begin {gather*} - \operatorname {asinh}{\left (\frac {1}{x} \right )} - \frac {\sqrt {x^{2} + 1} \operatorname {atan}{\left (x \right )}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 54 vs.
\(2 (25) = 50\).
time = 0.01, size = 65, normalized size = 2.24 \begin {gather*} \arctan x-2 \left (-\frac {\ln \left |\sqrt {x^{2}+1}-x-1\right |}{2}+\frac {\ln \left |\sqrt {x^{2}+1}-x+1\right |}{2}\right )+\frac {2 \arctan x}{\left (\sqrt {x^{2}+1}-x\right )^{2}-1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.03 \begin {gather*} \int \frac {\mathrm {atan}\left (x\right )}{x^2\,\sqrt {x^2+1}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________