Optimal. Leaf size=22 \[ \sqrt {x+x^2}+\tanh ^{-1}\left (\frac {x}{\sqrt {x+x^2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.00, antiderivative size = 22, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {678, 634, 212}
\begin {gather*} \sqrt {x^2+x}+\tanh ^{-1}\left (\frac {x}{\sqrt {x^2+x}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 634
Rule 678
Rubi steps
\begin {align*} \int \frac {\sqrt {x+x^2}}{x} \, dx &=\sqrt {x+x^2}+\frac {1}{2} \int \frac {1}{\sqrt {x+x^2}} \, dx\\ &=\sqrt {x+x^2}+\text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\frac {x}{\sqrt {x+x^2}}\right )\\ &=\sqrt {x+x^2}+\tanh ^{-1}\left (\frac {x}{\sqrt {x+x^2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 37, normalized size = 1.68 \begin {gather*} \sqrt {x (1+x)} \left (1+\frac {\tanh ^{-1}\left (\sqrt {\frac {x}{1+x}}\right )}{\sqrt {x} \sqrt {1+x}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 22, normalized size = 1.00
method | result | size |
default | \(\sqrt {x^{2}+x}+\frac {\ln \left (x +\frac {1}{2}+\sqrt {x^{2}+x}\right )}{2}\) | \(22\) |
trager | \(\sqrt {x^{2}+x}-\frac {\ln \left (2 \sqrt {x^{2}+x}-1-2 x \right )}{2}\) | \(26\) |
risch | \(\frac {x \left (1+x \right )}{\sqrt {x \left (1+x \right )}}+\frac {\ln \left (x +\frac {1}{2}+\sqrt {x^{2}+x}\right )}{2}\) | \(27\) |
meijerg | \(-\frac {-2 \sqrt {\pi }\, \sqrt {x}\, \sqrt {1+x}-2 \sqrt {\pi }\, \arcsinh \left (\sqrt {x}\right )}{2 \sqrt {\pi }}\) | \(29\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 1.44, size = 25, normalized size = 1.14 \begin {gather*} \sqrt {x^{2} + x} + \frac {1}{2} \, \log \left (2 \, x + 2 \, \sqrt {x^{2} + x} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.57, size = 25, normalized size = 1.14 \begin {gather*} \sqrt {x^{2} + x} - \frac {1}{2} \, \log \left (-2 \, x + 2 \, \sqrt {x^{2} + x} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {x \left (x + 1\right )}}{x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.46, size = 26, normalized size = 1.18 \begin {gather*} \sqrt {x^{2} + x} - \frac {1}{2} \, \log \left ({\left | -2 \, x + 2 \, \sqrt {x^{2} + x} - 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.08, size = 21, normalized size = 0.95 \begin {gather*} \frac {\ln \left (x+\sqrt {x\,\left (x+1\right )}+\frac {1}{2}\right )}{2}+\sqrt {x^2+x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________