Optimal. Leaf size=75 \[ \frac {5}{64} \sqrt {x} \sqrt {1+x}+\frac {5}{32} x^{3/2} \sqrt {1+x}+\frac {5}{24} x^{3/2} (1+x)^{3/2}+\frac {1}{4} x^{3/2} (1+x)^{5/2}-\frac {5}{64} \sinh ^{-1}\left (\sqrt {x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 75, normalized size of antiderivative = 1.00, number of steps
used = 6, 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*} \frac {1}{4} x^{3/2} (x+1)^{5/2}+\frac {5}{24} x^{3/2} (x+1)^{3/2}+\frac {5}{32} x^{3/2} \sqrt {x+1}+\frac {5}{64} \sqrt {x} \sqrt {x+1}-\frac {5}{64} \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 \sqrt {x} (1+x)^{5/2} \, dx &=\frac {1}{4} x^{3/2} (1+x)^{5/2}+\frac {5}{8} \int \sqrt {x} (1+x)^{3/2} \, dx\\ &=\frac {5}{24} x^{3/2} (1+x)^{3/2}+\frac {1}{4} x^{3/2} (1+x)^{5/2}+\frac {5}{16} \int \sqrt {x} \sqrt {1+x} \, dx\\ &=\frac {5}{32} x^{3/2} \sqrt {1+x}+\frac {5}{24} x^{3/2} (1+x)^{3/2}+\frac {1}{4} x^{3/2} (1+x)^{5/2}+\frac {5}{64} \int \frac {\sqrt {x}}{\sqrt {1+x}} \, dx\\ &=\frac {5}{64} \sqrt {x} \sqrt {1+x}+\frac {5}{32} x^{3/2} \sqrt {1+x}+\frac {5}{24} x^{3/2} (1+x)^{3/2}+\frac {1}{4} x^{3/2} (1+x)^{5/2}-\frac {5}{128} \int \frac {1}{\sqrt {x} \sqrt {1+x}} \, dx\\ &=\frac {5}{64} \sqrt {x} \sqrt {1+x}+\frac {5}{32} x^{3/2} \sqrt {1+x}+\frac {5}{24} x^{3/2} (1+x)^{3/2}+\frac {1}{4} x^{3/2} (1+x)^{5/2}-\frac {5}{64} \text {Subst}\left (\int \frac {1}{\sqrt {1+x^2}} \, dx,x,\sqrt {x}\right )\\ &=\frac {5}{64} \sqrt {x} \sqrt {1+x}+\frac {5}{32} x^{3/2} \sqrt {1+x}+\frac {5}{24} x^{3/2} (1+x)^{3/2}+\frac {1}{4} x^{3/2} (1+x)^{5/2}-\frac {5}{64} \sinh ^{-1}\left (\sqrt {x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 47, normalized size = 0.63 \begin {gather*} \frac {1}{192} \left (\sqrt {x} \sqrt {1+x} \left (15+118 x+136 x^2+48 x^3\right )-15 \tanh ^{-1}\left (\sqrt {\frac {x}{1+x}}\right )\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 = 22.16, size = 130, normalized size = 1.73 \begin {gather*} \text {Piecewise}\left [\left \{\left \{\frac {-15 \sqrt {x} \text {ArcCosh}\left [\sqrt {1+x}\right ]-56 \left (1+x\right )^{\frac {7}{2}}-5 \left (1+x\right )^{\frac {3}{2}}-2 \left (1+x\right )^{\frac {5}{2}}+15 \sqrt {1+x}+48 \left (1+x\right )^{\frac {9}{2}}}{192 \sqrt {x}},\text {Abs}\left [1+x\right ]>1\right \}\right \},-\frac {I \left (1+x\right )^{\frac {9}{2}}}{4 \sqrt {-x}}-\frac {5 I \sqrt {1+x}}{64 \sqrt {-x}}+\frac {I \left (1+x\right )^{\frac {5}{2}}}{96 \sqrt {-x}}+\frac {I 5 \left (1+x\right )^{\frac {3}{2}}}{192 \sqrt {-x}}+\frac {I 5 \text {ArcSin}\left [\sqrt {1+x}\right ]}{64}+\frac {I 7 \left (1+x\right )^{\frac {7}{2}}}{24 \sqrt {-x}}\right ] \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 70, normalized size = 0.93
method | result | size |
meijerg | \(-\frac {15 \left (-\frac {\sqrt {\pi }\, \sqrt {x}\, \left (48 x^{3}+136 x^{2}+118 x +15\right ) \sqrt {1+x}}{360}+\frac {\sqrt {\pi }\, \arcsinh \left (\sqrt {x}\right )}{24}\right )}{8 \sqrt {\pi }}\) | \(44\) |
risch | \(\frac {\left (48 x^{3}+136 x^{2}+118 x +15\right ) \sqrt {x}\, \sqrt {1+x}}{192}-\frac {5 \sqrt {x \left (1+x \right )}\, \ln \left (x +\frac {1}{2}+\sqrt {x^{2}+x}\right )}{128 \sqrt {1+x}\, \sqrt {x}}\) | \(55\) |
default | \(\frac {\sqrt {x}\, \left (1+x \right )^{\frac {7}{2}}}{4}-\frac {\sqrt {x}\, \left (1+x \right )^{\frac {5}{2}}}{24}-\frac {5 \sqrt {x}\, \left (1+x \right )^{\frac {3}{2}}}{96}-\frac {5 \sqrt {x}\, \sqrt {1+x}}{64}-\frac {5 \sqrt {x \left (1+x \right )}\, \ln \left (x +\frac {1}{2}+\sqrt {x^{2}+x}\right )}{128 \sqrt {1+x}\, \sqrt {x}}\) | \(70\) |
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. 113 vs.
\(2 (47) = 94\).
time = 0.25, size = 113, normalized size = 1.51 \begin {gather*} \frac {\frac {15 \, {\left (x + 1\right )}^{\frac {7}{2}}}{x^{\frac {7}{2}}} + \frac {73 \, {\left (x + 1\right )}^{\frac {5}{2}}}{x^{\frac {5}{2}}} - \frac {55 \, {\left (x + 1\right )}^{\frac {3}{2}}}{x^{\frac {3}{2}}} + \frac {15 \, \sqrt {x + 1}}{\sqrt {x}}}{192 \, {\left (\frac {{\left (x + 1\right )}^{4}}{x^{4}} - \frac {4 \, {\left (x + 1\right )}^{3}}{x^{3}} + \frac {6 \, {\left (x + 1\right )}^{2}}{x^{2}} - \frac {4 \, {\left (x + 1\right )}}{x} + 1\right )}} - \frac {5}{128} \, \log \left (\frac {\sqrt {x + 1}}{\sqrt {x}} + 1\right ) + \frac {5}{128} \, \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.31, size = 44, normalized size = 0.59 \begin {gather*} \frac {1}{192} \, {\left (48 \, x^{3} + 136 \, x^{2} + 118 \, x + 15\right )} \sqrt {x + 1} \sqrt {x} + \frac {5}{128} \, \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 [A]
time = 20.00, size = 190, normalized size = 2.53 \begin {gather*} \begin {cases} - \frac {5 \operatorname {acosh}{\left (\sqrt {x + 1} \right )}}{64} + \frac {\left (x + 1\right )^{\frac {9}{2}}}{4 \sqrt {x}} - \frac {7 \left (x + 1\right )^{\frac {7}{2}}}{24 \sqrt {x}} - \frac {\left (x + 1\right )^{\frac {5}{2}}}{96 \sqrt {x}} - \frac {5 \left (x + 1\right )^{\frac {3}{2}}}{192 \sqrt {x}} + \frac {5 \sqrt {x + 1}}{64 \sqrt {x}} & \text {for}\: \left |{x + 1}\right | > 1 \\\frac {5 i \operatorname {asin}{\left (\sqrt {x + 1} \right )}}{64} - \frac {i \left (x + 1\right )^{\frac {9}{2}}}{4 \sqrt {- x}} + \frac {7 i \left (x + 1\right )^{\frac {7}{2}}}{24 \sqrt {- x}} + \frac {i \left (x + 1\right )^{\frac {5}{2}}}{96 \sqrt {- x}} + \frac {5 i \left (x + 1\right )^{\frac {3}{2}}}{192 \sqrt {- x}} - \frac {5 i \sqrt {x + 1}}{64 \sqrt {- x}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.01, size = 203, normalized size = 2.71 \begin {gather*} 2 \left (2 \left (\left (\left (\frac {1}{16} \sqrt {x} \sqrt {x}+\frac 1{96}\right ) \sqrt {x} \sqrt {x}-\frac {5}{384}\right ) \sqrt {x} \sqrt {x}+\frac {5}{256}\right ) \sqrt {x} \sqrt {x+1}+\frac {5}{128} \ln \left (\sqrt {x+1}-\sqrt {x}\right )\right )+4 \left (2 \left (\left (\frac {1}{12} \sqrt {x} \sqrt {x}+\frac 1{48}\right ) \sqrt {x} \sqrt {x}-\frac 1{32}\right ) \sqrt {x} \sqrt {x+1}-\frac {\ln \left (\sqrt {x+1}-\sqrt {x}\right )}{16}\right )+2 \left (2 \left (\frac {1}{8} \sqrt {x} \sqrt {x}+\frac 1{16}\right ) \sqrt {x} \sqrt {x+1}+\frac {\ln \left (\sqrt {x+1}-\sqrt {x}\right )}{8}\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.01 \begin {gather*} \int \sqrt {x}\,{\left (x+1\right )}^{5/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________