Optimal. Leaf size=59 \[ \frac{\pi x^3}{12}+\frac{x^{5/2}}{30}-\frac{x^{3/2}}{18}-\frac{1}{6} x^3 \tan ^{-1}\left (\sqrt{x}\right )+\frac{\sqrt{x}}{6}-\frac{1}{6} \tan ^{-1}\left (\sqrt{x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0259393, antiderivative size = 59, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 6, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {5159, 30, 5033, 50, 63, 203} \[ \frac{\pi x^3}{12}+\frac{x^{5/2}}{30}-\frac{x^{3/2}}{18}-\frac{1}{6} x^3 \tan ^{-1}\left (\sqrt{x}\right )+\frac{\sqrt{x}}{6}-\frac{1}{6} \tan ^{-1}\left (\sqrt{x}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5159
Rule 30
Rule 5033
Rule 50
Rule 63
Rule 203
Rubi steps
\begin{align*} \int -x^2 \tan ^{-1}\left (\sqrt{x}-\sqrt{1+x}\right ) \, dx &=-\left (\frac{1}{2} \int x^2 \tan ^{-1}\left (\sqrt{x}\right ) \, dx\right )+\frac{1}{4} \pi \int x^2 \, dx\\ &=\frac{\pi x^3}{12}-\frac{1}{6} x^3 \tan ^{-1}\left (\sqrt{x}\right )+\frac{1}{12} \int \frac{x^{5/2}}{1+x} \, dx\\ &=\frac{x^{5/2}}{30}+\frac{\pi x^3}{12}-\frac{1}{6} x^3 \tan ^{-1}\left (\sqrt{x}\right )-\frac{1}{12} \int \frac{x^{3/2}}{1+x} \, dx\\ &=-\frac{x^{3/2}}{18}+\frac{x^{5/2}}{30}+\frac{\pi x^3}{12}-\frac{1}{6} x^3 \tan ^{-1}\left (\sqrt{x}\right )+\frac{1}{12} \int \frac{\sqrt{x}}{1+x} \, dx\\ &=\frac{\sqrt{x}}{6}-\frac{x^{3/2}}{18}+\frac{x^{5/2}}{30}+\frac{\pi x^3}{12}-\frac{1}{6} x^3 \tan ^{-1}\left (\sqrt{x}\right )-\frac{1}{12} \int \frac{1}{\sqrt{x} (1+x)} \, dx\\ &=\frac{\sqrt{x}}{6}-\frac{x^{3/2}}{18}+\frac{x^{5/2}}{30}+\frac{\pi x^3}{12}-\frac{1}{6} x^3 \tan ^{-1}\left (\sqrt{x}\right )-\frac{1}{6} \operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\sqrt{x}\right )\\ &=\frac{\sqrt{x}}{6}-\frac{x^{3/2}}{18}+\frac{x^{5/2}}{30}+\frac{\pi x^3}{12}-\frac{1}{6} \tan ^{-1}\left (\sqrt{x}\right )-\frac{1}{6} x^3 \tan ^{-1}\left (\sqrt{x}\right )\\ \end{align*}
Mathematica [A] time = 0.0321391, size = 53, normalized size = 0.9 \[ \frac{1}{90} \left (-\sqrt{x} \left (-3 x^2+30 x^{5/2} \tan ^{-1}\left (\sqrt{x}-\sqrt{x+1}\right )+5 x-15\right )-15 \tan ^{-1}\left (\sqrt{x}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.051, size = 40, normalized size = 0.7 \begin{align*} -{\frac{{x}^{3}}{3}\arctan \left ( \sqrt{x}-\sqrt{x+1} \right ) }+{\frac{1}{30}{x}^{{\frac{5}{2}}}}-{\frac{1}{18}{x}^{{\frac{3}{2}}}}+{\frac{1}{6}\sqrt{x}}-{\frac{1}{6}\arctan \left ( \sqrt{x} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.59477, size = 53, normalized size = 0.9 \begin{align*} \frac{1}{3} \, x^{3} \arctan \left (\sqrt{x + 1} - \sqrt{x}\right ) + \frac{1}{30} \, x^{\frac{5}{2}} - \frac{1}{18} \, x^{\frac{3}{2}} + \frac{1}{6} \, \sqrt{x} - \frac{1}{6} \, \arctan \left (\sqrt{x}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.96665, size = 107, normalized size = 1.81 \begin{align*} \frac{1}{3} \,{\left (x^{3} + 1\right )} \arctan \left (\sqrt{x + 1} - \sqrt{x}\right ) + \frac{1}{90} \,{\left (3 \, x^{2} - 5 \, x + 15\right )} \sqrt{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.13207, size = 53, normalized size = 0.9 \begin{align*} -\frac{1}{3} \, x^{3} \arctan \left (-\sqrt{x + 1} + \sqrt{x}\right ) + \frac{1}{30} \, x^{\frac{5}{2}} - \frac{1}{18} \, x^{\frac{3}{2}} + \frac{1}{6} \, \sqrt{x} - \frac{1}{6} \, \arctan \left (\sqrt{x}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]