Optimal. Leaf size=44 \[ -\frac {\sqrt {a x^3} \tan ^{-1}\left (\sqrt {x}\right )}{x^{3/2}}+\frac {\sqrt {a x^3} \tanh ^{-1}\left (\sqrt {x}\right )}{x^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 44, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.316, Rules used = {15, 1598, 335,
304, 209, 212} \begin {gather*} \frac {\sqrt {a x^3} \tanh ^{-1}\left (\sqrt {x}\right )}{x^{3/2}}-\frac {\sqrt {a x^3} \text {ArcTan}\left (\sqrt {x}\right )}{x^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 15
Rule 209
Rule 212
Rule 304
Rule 335
Rule 1598
Rubi steps
\begin {align*} \int \frac {\sqrt {a x^3}}{x-x^3} \, dx &=\frac {\sqrt {a x^3} \int \frac {x^{3/2}}{x-x^3} \, dx}{x^{3/2}}\\ &=\frac {\sqrt {a x^3} \int \frac {\sqrt {x}}{1-x^2} \, dx}{x^{3/2}}\\ &=\frac {\left (2 \sqrt {a x^3}\right ) \text {Subst}\left (\int \frac {x^2}{1-x^4} \, dx,x,\sqrt {x}\right )}{x^{3/2}}\\ &=\frac {\sqrt {a x^3} \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\sqrt {x}\right )}{x^{3/2}}-\frac {\sqrt {a x^3} \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sqrt {x}\right )}{x^{3/2}}\\ &=-\frac {\sqrt {a x^3} \tan ^{-1}\left (\sqrt {x}\right )}{x^{3/2}}+\frac {\sqrt {a x^3} \tanh ^{-1}\left (\sqrt {x}\right )}{x^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 30, normalized size = 0.68 \begin {gather*} \frac {\sqrt {a x^3} \left (-\tan ^{-1}\left (\sqrt {x}\right )+\tanh ^{-1}\left (\sqrt {x}\right )\right )}{x^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.20, size = 44, normalized size = 1.00
method | result | size |
default | \(-\frac {\sqrt {a \,x^{3}}\, \sqrt {a}\, \left (\arctan \left (\frac {\sqrt {a x}}{\sqrt {a}}\right )-\arctanh \left (\frac {\sqrt {a x}}{\sqrt {a}}\right )\right )}{x \sqrt {a x}}\) | \(44\) |
meijerg | \(-\frac {\sqrt {a \,x^{3}}\, \left (\ln \left (1-\left (x^{2}\right )^{\frac {1}{4}}\right )-\ln \left (1+\left (x^{2}\right )^{\frac {1}{4}}\right )+2 \arctan \left (\left (x^{2}\right )^{\frac {1}{4}}\right )\right )}{2 \left (x^{2}\right )^{\frac {3}{4}}}\) | \(44\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.63, size = 32, normalized size = 0.73 \begin {gather*} -\sqrt {a} \arctan \left (\sqrt {x}\right ) + \frac {1}{2} \, \sqrt {a} \log \left (\sqrt {x} + 1\right ) - \frac {1}{2} \, \sqrt {a} \log \left (\sqrt {x} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] Leaf count of result is larger than twice the leaf count of optimal. 68 vs.
\(2 (32) = 64\).
time = 0.34, size = 127, normalized size = 2.89 \begin {gather*} \left [-\sqrt {a} \arctan \left (\frac {\sqrt {a x^{3}}}{\sqrt {a} x}\right ) + \frac {1}{2} \, \sqrt {a} \log \left (\frac {a x^{2} + a x + 2 \, \sqrt {a x^{3}} \sqrt {a}}{x^{2} - x}\right ), -\sqrt {-a} \arctan \left (\frac {\sqrt {a x^{3}} \sqrt {-a}}{a x}\right ) + \frac {1}{2} \, \sqrt {-a} \log \left (\frac {a x^{2} - a x - 2 \, \sqrt {a x^{3}} \sqrt {-a}}{x^{2} + x}\right )\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 {a x^{3}}}{x^{3} - x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.74, size = 43, normalized size = 0.98 \begin {gather*} -\frac {{\left (\frac {a^{2} \arctan \left (\frac {\sqrt {a x}}{\sqrt {-a}}\right )}{\sqrt {-a}} + a^{\frac {3}{2}} \arctan \left (\frac {\sqrt {a x}}{\sqrt {a}}\right )\right )} \mathrm {sgn}\left (x\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {\sqrt {a\,x^3}}{x-x^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________