Optimal. Leaf size=17 \[ -\sinh ^{-1}(x)+\sqrt {1+x^2} \tan ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 17, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {5050, 221}
\begin {gather*} \sqrt {x^2+1} \text {ArcTan}(x)-\sinh ^{-1}(x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 221
Rule 5050
Rubi steps
\begin {align*} \int \frac {x \tan ^{-1}(x)}{\sqrt {1+x^2}} \, dx &=\sqrt {1+x^2} \tan ^{-1}(x)-\int \frac {1}{\sqrt {1+x^2}} \, dx\\ &=-\sinh ^{-1}(x)+\sqrt {1+x^2} \tan ^{-1}(x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 17, normalized size = 1.00 \begin {gather*} -\sinh ^{-1}(x)+\sqrt {1+x^2} \tan ^{-1}(x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.11, size = 54, normalized size = 3.18
method | result | size |
default | \(\sqrt {\left (x -i\right ) \left (x +i\right )}\, \arctan \left (x \right )+\ln \left (\frac {i x +1}{\sqrt {x^{2}+1}}-i\right )-\ln \left (\frac {i x +1}{\sqrt {x^{2}+1}}+i\right )\) | \(54\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 5.55, size = 15, normalized size = 0.88 \begin {gather*} \sqrt {x^{2} + 1} \arctan \left (x\right ) - \operatorname {arsinh}\left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.42, size = 23, normalized size = 1.35 \begin {gather*} \sqrt {x^{2} + 1} \arctan \left (x\right ) + \log \left (-x + \sqrt {x^{2} + 1}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 29 vs.
\(2 (14) = 28\).
time = 0.53, size = 29, normalized size = 1.71 \begin {gather*} \frac {x^{2} \operatorname {atan}{\left (x \right )}}{\sqrt {x^{2} + 1}} - \operatorname {asinh}{\left (x \right )} + \frac {\operatorname {atan}{\left (x \right )}}{\sqrt {x^{2} + 1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.47, size = 23, normalized size = 1.35 \begin {gather*} \sqrt {x^{2} + 1} \arctan \left (x\right ) + \log \left (-x + \sqrt {x^{2} + 1}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.06 \begin {gather*} \int \frac {x\,\mathrm {atan}\left (x\right )}{\sqrt {x^2+1}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________