Optimal. Leaf size=10 \[ -2 \tanh ^{-1}\left (\sqrt {1+x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.00, antiderivative size = 10, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {65, 213}
\begin {gather*} -2 \tanh ^{-1}\left (\sqrt {x+1}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 213
Rubi steps
\begin {align*} \int \frac {1}{x \sqrt {1+x}} \, dx &=2 \text {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,\sqrt {1+x}\right )\\ &=-2 \tanh ^{-1}\left (\sqrt {1+x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 10, normalized size = 1.00 \begin {gather*} -2 \tanh ^{-1}\left (\sqrt {1+x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [C] Result contains higher order function than in optimal. Order 9 vs. order 3 in
optimal.
time = 1.91, size = 25, normalized size = 2.50 \begin {gather*} \text {Piecewise}\left [\left \{\left \{-2 \text {ArcCoth}\left [\sqrt {1+x}\right ],\text {Abs}\left [1+x\right ]>1\right \}\right \},-2 \text {ArcTanh}\left [\sqrt {1+x}\right ]\right ] \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 9, normalized size = 0.90
method | result | size |
derivativedivides | \(-2 \arctanh \left (\sqrt {1+x}\right )\) | \(9\) |
default | \(-2 \arctanh \left (\sqrt {1+x}\right )\) | \(9\) |
trager | \(-\ln \left (\frac {2 \sqrt {1+x}+2+x}{x}\right )\) | \(18\) |
meijerg | \(\frac {\left (\ln \left (x \right )-2 \ln \left (2\right )\right ) \sqrt {\pi }-2 \sqrt {\pi }\, \ln \left (\frac {1}{2}+\frac {\sqrt {1+x}}{2}\right )}{\sqrt {\pi }}\) | \(32\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 19 vs.
\(2 (8) = 16\).
time = 0.25, size = 19, normalized size = 1.90 \begin {gather*} -\log \left (\sqrt {x + 1} + 1\right ) + \log \left (\sqrt {x + 1} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 19 vs.
\(2 (8) = 16\).
time = 0.33, size = 19, normalized size = 1.90 \begin {gather*} -\log \left (\sqrt {x + 1} + 1\right ) + \log \left (\sqrt {x + 1} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.29, size = 26, normalized size = 2.60 \begin {gather*} \begin {cases} - 2 \operatorname {acoth}{\left (\sqrt {x + 1} \right )} & \text {for}\: \left |{x + 1}\right | > 1 \\- 2 \operatorname {atanh}{\left (\sqrt {x + 1} \right )} & \text {otherwise} \end {cases} \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. 20 vs.
\(2 (8) = 16\).
time = 0.00, size = 31, normalized size = 3.10 \begin {gather*} 2 \left (\frac {\ln \left |\sqrt {x+1}-1\right |}{2}-\frac {\ln \left (\sqrt {x+1}+1\right )}{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.16, size = 8, normalized size = 0.80 \begin {gather*} -2\,\mathrm {atanh}\left (\sqrt {x+1}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________