Optimal. Leaf size=98 \[ \frac {\tan ^{-1}\left (\frac {1+\frac {2 \sqrt [3]{a+b} x}{\sqrt [3]{a+b x^3}}}{\sqrt {3}}\right )}{\sqrt {3} \sqrt [3]{a+b}}+\frac {\log \left (1-x^3\right )}{6 \sqrt [3]{a+b}}-\frac {\log \left (\sqrt [3]{a+b} x-\sqrt [3]{a+b x^3}\right )}{2 \sqrt [3]{a+b}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 98, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.048, Rules used = {384}
\begin {gather*} \frac {\log \left (1-x^3\right )}{6 \sqrt [3]{a+b}}-\frac {\log \left (x \sqrt [3]{a+b}-\sqrt [3]{a+b x^3}\right )}{2 \sqrt [3]{a+b}}+\frac {\tan ^{-1}\left (\frac {\frac {2 x \sqrt [3]{a+b}}{\sqrt [3]{a+b x^3}}+1}{\sqrt {3}}\right )}{\sqrt {3} \sqrt [3]{a+b}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 384
Rubi steps
\begin {align*} \int \frac {1}{\left (1-x^3\right ) \sqrt [3]{a+b x^3}} \, dx &=\text {Subst}\left (\int \frac {1}{1-(a+b) x^3} \, dx,x,\frac {x}{\sqrt [3]{a+b x^3}}\right )\\ &=\frac {1}{3} \text {Subst}\left (\int \frac {1}{1-\sqrt [3]{a+b} x} \, dx,x,\frac {x}{\sqrt [3]{a+b x^3}}\right )+\frac {1}{3} \text {Subst}\left (\int \frac {2+\sqrt [3]{a+b} x}{1+\sqrt [3]{a+b} x+(a+b)^{2/3} x^2} \, dx,x,\frac {x}{\sqrt [3]{a+b x^3}}\right )\\ &=-\frac {\log \left (1-\frac {\sqrt [3]{a+b} x}{\sqrt [3]{a+b x^3}}\right )}{3 \sqrt [3]{a+b}}+\frac {1}{2} \text {Subst}\left (\int \frac {1}{1+\sqrt [3]{a+b} x+(a+b)^{2/3} x^2} \, dx,x,\frac {x}{\sqrt [3]{a+b x^3}}\right )+\frac {\text {Subst}\left (\int \frac {\sqrt [3]{a+b}+2 (a+b)^{2/3} x}{1+\sqrt [3]{a+b} x+(a+b)^{2/3} x^2} \, dx,x,\frac {x}{\sqrt [3]{a+b x^3}}\right )}{6 \sqrt [3]{a+b}}\\ &=-\frac {\log \left (1-\frac {\sqrt [3]{a+b} x}{\sqrt [3]{a+b x^3}}\right )}{3 \sqrt [3]{a+b}}+\frac {\log \left (1+\frac {(a+b)^{2/3} x^2}{\left (a+b x^3\right )^{2/3}}+\frac {\sqrt [3]{a+b} x}{\sqrt [3]{a+b x^3}}\right )}{6 \sqrt [3]{a+b}}-\frac {\text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1+\frac {2 \sqrt [3]{a+b} x}{\sqrt [3]{a+b x^3}}\right )}{\sqrt [3]{a+b}}\\ &=\frac {\tan ^{-1}\left (\frac {1+\frac {2 \sqrt [3]{a+b} x}{\sqrt [3]{a+b x^3}}}{\sqrt {3}}\right )}{\sqrt {3} \sqrt [3]{a+b}}-\frac {\log \left (1-\frac {\sqrt [3]{a+b} x}{\sqrt [3]{a+b x^3}}\right )}{3 \sqrt [3]{a+b}}+\frac {\log \left (1+\frac {(a+b)^{2/3} x^2}{\left (a+b x^3\right )^{2/3}}+\frac {\sqrt [3]{a+b} x}{\sqrt [3]{a+b x^3}}\right )}{6 \sqrt [3]{a+b}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.87, size = 189, normalized size = 1.93 \begin {gather*} \frac {-2 \sqrt {-6+6 i \sqrt {3}} \tan ^{-1}\left (\frac {3 \sqrt [3]{a+b} x}{\sqrt {3} \sqrt [3]{a+b} x-\left (3 i+\sqrt {3}\right ) \sqrt [3]{a+b x^3}}\right )+\left (1+i \sqrt {3}\right ) \left (2 \log \left (2 \sqrt [3]{a+b} x+\left (1+i \sqrt {3}\right ) \sqrt [3]{a+b x^3}\right )-\log \left (\left (-\sqrt [3]{a+b} x+\sqrt [3]{a+b x^3}\right ) \left (2 i \sqrt [3]{a+b} x+\left (i+\sqrt {3}\right ) \sqrt [3]{a+b x^3}\right )\right )\right )}{12 \sqrt [3]{a+b}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {cought exception: maximum recursion depth exceeded} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.04, size = 0, normalized size = 0.00 \[\int \frac {1}{\left (-x^{3}+1\right ) \left (b \,x^{3}+a \right )^{\frac {1}{3}}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 559 vs.
\(2 (78) = 156\).
time = 118.52, size = 1252, normalized size = 12.78
result too large to display
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 {1}{x^{3} \sqrt [3]{a + b x^{3}} - \sqrt [3]{a + b x^{3}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] N/A
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Could not integrate} \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 \frac {1}{\left (x^3-1\right )\,{\left (b\,x^3+a\right )}^{1/3}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________