Optimal. Leaf size=52 \[ \frac{\sqrt{x^3} \tan ^{-1}\left (\sqrt{x}\right )}{x^{3/2}}-\frac{\sqrt{x^3} \tanh ^{-1}\left (\sqrt{x}\right )}{x^{3/2}}+\tan ^{-1}\left (\sqrt{x}\right )+\tanh ^{-1}\left (\sqrt{x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.183135, antiderivative size = 52, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 8, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.32, Rules used = {1593, 6725, 329, 212, 206, 203, 15, 298} \[ \frac{\sqrt{x^3} \tan ^{-1}\left (\sqrt{x}\right )}{x^{3/2}}-\frac{\sqrt{x^3} \tanh ^{-1}\left (\sqrt{x}\right )}{x^{3/2}}+\tan ^{-1}\left (\sqrt{x}\right )+\tanh ^{-1}\left (\sqrt{x}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1593
Rule 6725
Rule 329
Rule 212
Rule 206
Rule 203
Rule 15
Rule 298
Rubi steps
\begin{align*} \int \frac{\sqrt{x}-\sqrt{x^3}}{x-x^3} \, dx &=\int \frac{\sqrt{x}-\sqrt{x^3}}{x \left (1-x^2\right )} \, dx\\ &=\int \left (-\frac{1}{\sqrt{x} \left (-1+x^2\right )}+\frac{\sqrt{x^3}}{x \left (-1+x^2\right )}\right ) \, dx\\ &=-\int \frac{1}{\sqrt{x} \left (-1+x^2\right )} \, dx+\int \frac{\sqrt{x^3}}{x \left (-1+x^2\right )} \, dx\\ &=-\left (2 \operatorname{Subst}\left (\int \frac{1}{-1+x^4} \, dx,x,\sqrt{x}\right )\right )+\frac{\sqrt{x^3} \int \frac{\sqrt{x}}{-1+x^2} \, dx}{x^{3/2}}\\ &=\frac{\left (2 \sqrt{x^3}\right ) \operatorname{Subst}\left (\int \frac{x^2}{-1+x^4} \, dx,x,\sqrt{x}\right )}{x^{3/2}}+\operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\sqrt{x}\right )+\operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\sqrt{x}\right )\\ &=\tan ^{-1}\left (\sqrt{x}\right )+\tanh ^{-1}\left (\sqrt{x}\right )-\frac{\sqrt{x^3} \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\sqrt{x}\right )}{x^{3/2}}+\frac{\sqrt{x^3} \operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\sqrt{x}\right )}{x^{3/2}}\\ &=\tan ^{-1}\left (\sqrt{x}\right )+\frac{\sqrt{x^3} \tan ^{-1}\left (\sqrt{x}\right )}{x^{3/2}}+\tanh ^{-1}\left (\sqrt{x}\right )-\frac{\sqrt{x^3} \tanh ^{-1}\left (\sqrt{x}\right )}{x^{3/2}}\\ \end{align*}
Mathematica [A] time = 0.0603503, size = 49, normalized size = 0.94 \[ \frac{\left (x^{3/2}+\sqrt{x^3}\right ) \tan ^{-1}\left (\sqrt{x}\right )+\left (x^{3/2}-\sqrt{x^3}\right ) \tanh ^{-1}\left (\sqrt{x}\right )}{x^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.006, size = 41, normalized size = 0.8 \begin{align*}{\it Artanh} \left ( \sqrt{x} \right ) +\arctan \left ( \sqrt{x} \right ) +{\frac{1}{2}\sqrt{{x}^{3}} \left ( \ln \left ( -1+\sqrt{x} \right ) -\ln \left ( 1+\sqrt{x} \right ) +2\,\arctan \left ( \sqrt{x} \right ) \right ){x}^{-{\frac{3}{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \arctan \left (\sqrt{x}\right ) - \int \frac{\sqrt{x}}{2 \,{\left (x + 1\right )}}\,{d x} + \int \frac{1}{4 \,{\left (\sqrt{x} + 1\right )}}\,{d x} + \int \frac{1}{4 \,{\left (\sqrt{x} - 1\right )}}\,{d x} + \frac{1}{2} \, \log \left (\sqrt{x} + 1\right ) - \frac{1}{2} \, \log \left (\sqrt{x} - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.9677, size = 26, normalized size = 0.5 \begin{align*} 2 \, \arctan \left (\sqrt{x}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} - \int \frac{\sqrt{x}}{x^{3} - x}\, dx - \int - \frac{\sqrt{x^{3}}}{x^{3} - x}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.10667, size = 8, normalized size = 0.15 \begin{align*} 2 \, \arctan \left (\sqrt{x}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]