Optimal. Leaf size=22 \[ \sqrt {x} \sqrt {1+x}-\sinh ^{-1}\left (\sqrt {x}\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 = {52, 56, 221}
\begin {gather*} \sqrt {x} \sqrt {x+1}-\sinh ^{-1}\left (\sqrt {x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 52
Rule 56
Rule 221
Rubi steps
\begin {align*} \int \frac {\sqrt {x}}{\sqrt {1+x}} \, dx &=\sqrt {x} \sqrt {1+x}-\frac {1}{2} \int \frac {1}{\sqrt {x} \sqrt {1+x}} \, dx\\ &=\sqrt {x} \sqrt {1+x}-\text {Subst}\left (\int \frac {1}{\sqrt {1+x^2}} \, dx,x,\sqrt {x}\right )\\ &=\sqrt {x} \sqrt {1+x}-\sinh ^{-1}\left (\sqrt {x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(48\) vs. \(2(22)=44\).
time = 0.04, size = 48, normalized size = 2.18 \begin {gather*} \frac {\sqrt {\frac {x}{1+x}} \left (\sqrt {x} (1+x)-\sqrt {1+x} \tanh ^{-1}\left (\sqrt {\frac {x}{1+x}}\right )\right )}{\sqrt {x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(38\) vs.
\(2(16)=32\).
time = 0.38, size = 39, normalized size = 1.77
method | result | size |
meijerg | \(\frac {\sqrt {\pi }\, \sqrt {x}\, \sqrt {1+x}-\sqrt {\pi }\, \arcsinh \left (\sqrt {x}\right )}{\sqrt {\pi }}\) | \(27\) |
default | \(\sqrt {x}\, \sqrt {1+x}-\frac {\sqrt {x \left (1+x \right )}\, \ln \left (x +\frac {1}{2}+\sqrt {x^{2}+x}\right )}{2 \sqrt {x}\, \sqrt {1+x}}\) | \(39\) |
risch | \(\sqrt {x}\, \sqrt {1+x}-\frac {\sqrt {x \left (1+x \right )}\, \ln \left (x +\frac {1}{2}+\sqrt {x^{2}+x}\right )}{2 \sqrt {x}\, \sqrt {1+x}}\) | \(39\) |
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. 49 vs.
\(2 (16) = 32\).
time = 0.28, size = 49, normalized size = 2.23 \begin {gather*} \frac {\sqrt {x + 1}}{\sqrt {x} {\left (\frac {x + 1}{x} - 1\right )}} - \frac {1}{2} \, \log \left (\frac {\sqrt {x + 1}}{\sqrt {x}} + 1\right ) + \frac {1}{2} \, \log \left (\frac {\sqrt {x + 1}}{\sqrt {x}} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.34, size = 28, normalized size = 1.27 \begin {gather*} \sqrt {x + 1} \sqrt {x} + \frac {1}{2} \, \log \left (2 \, \sqrt {x + 1} \sqrt {x} - 2 \, x - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 0.83, size = 63, normalized size = 2.86 \begin {gather*} \begin {cases} \sqrt {x} \sqrt {x + 1} - \operatorname {acosh}{\left (\sqrt {x + 1} \right )} & \text {for}\: \left |{x + 1}\right | > 1 \\i \operatorname {asin}{\left (\sqrt {x + 1} \right )} - \frac {i \left (x + 1\right )^{\frac {3}{2}}}{\sqrt {- x}} + \frac {i \sqrt {x + 1}}{\sqrt {- x}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.49, size = 22, normalized size = 1.00 \begin {gather*} \sqrt {x + 1} \sqrt {x} + \log \left (\sqrt {x + 1} - \sqrt {x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.72, size = 26, normalized size = 1.18 \begin {gather*} \sqrt {x}\,\sqrt {x+1}-2\,\mathrm {atanh}\left (\frac {\sqrt {x}}{\sqrt {x+1}-1}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________