Optimal. Leaf size=268 \[ \frac {4 \tanh ^{-1}\left (\frac {\left (\sqrt [3]{a}-\sqrt [3]{b} x\right )^2}{3 \sqrt [6]{a} \sqrt {a-b x^3}}\right )}{9 \sqrt [6]{a} b^{2/3}}-\frac {2 \sqrt {2+\sqrt {3}} \left (\sqrt [3]{a}-\sqrt [3]{b} x\right ) \sqrt {\frac {a^{2/3}+\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2}{\left (\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{b} x\right )^2}} F\left (\sin ^{-1}\left (\frac {\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{b} x}{\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{b} x}\right )|-7-4 \sqrt {3}\right )}{3 \sqrt [4]{3} b^{2/3} \sqrt {\frac {\sqrt [3]{a} \left (\sqrt [3]{a}-\sqrt [3]{b} x\right )}{\left (\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{b} x\right )^2}} \sqrt {a-b x^3}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.20, antiderivative size = 268, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.129, Rules used = {2164, 224,
2163, 212} \begin {gather*} \frac {4 \tanh ^{-1}\left (\frac {\left (\sqrt [3]{a}-\sqrt [3]{b} x\right )^2}{3 \sqrt [6]{a} \sqrt {a-b x^3}}\right )}{9 \sqrt [6]{a} b^{2/3}}-\frac {2 \sqrt {2+\sqrt {3}} \left (\sqrt [3]{a}-\sqrt [3]{b} x\right ) \sqrt {\frac {a^{2/3}+\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2}{\left (\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{b} x\right )^2}} F\left (\text {ArcSin}\left (\frac {\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{b} x}{\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{b} x}\right )|-7-4 \sqrt {3}\right )}{3 \sqrt [4]{3} b^{2/3} \sqrt {\frac {\sqrt [3]{a} \left (\sqrt [3]{a}-\sqrt [3]{b} x\right )}{\left (\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{b} x\right )^2}} \sqrt {a-b x^3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 224
Rule 2163
Rule 2164
Rubi steps
\begin {align*} \int \frac {x}{\left (2 \sqrt [3]{a}+\sqrt [3]{b} x\right ) \sqrt {a-b x^3}} \, dx &=\frac {\int \frac {1}{\sqrt {a-b x^3}} \, dx}{3 \sqrt [3]{b}}-\frac {\int \frac {2 \sqrt [3]{a}-2 \sqrt [3]{b} x}{\left (2 \sqrt [3]{a}+\sqrt [3]{b} x\right ) \sqrt {a-b x^3}} \, dx}{3 \sqrt [3]{b}}\\ &=-\frac {2 \sqrt {2+\sqrt {3}} \left (\sqrt [3]{a}-\sqrt [3]{b} x\right ) \sqrt {\frac {a^{2/3}+\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2}{\left (\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{b} x\right )^2}} F\left (\sin ^{-1}\left (\frac {\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{b} x}{\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{b} x}\right )|-7-4 \sqrt {3}\right )}{3 \sqrt [4]{3} b^{2/3} \sqrt {\frac {\sqrt [3]{a} \left (\sqrt [3]{a}-\sqrt [3]{b} x\right )}{\left (\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{b} x\right )^2}} \sqrt {a-b x^3}}+\frac {\left (4 \sqrt [3]{a}\right ) \text {Subst}\left (\int \frac {1}{9-a x^2} \, dx,x,\frac {\left (1-\frac {\sqrt [3]{b} x}{\sqrt [3]{a}}\right )^2}{\sqrt {a-b x^3}}\right )}{3 b^{2/3}}\\ &=\frac {4 \tanh ^{-1}\left (\frac {\left (\sqrt [3]{a}-\sqrt [3]{b} x\right )^2}{3 \sqrt [6]{a} \sqrt {a-b x^3}}\right )}{9 \sqrt [6]{a} b^{2/3}}-\frac {2 \sqrt {2+\sqrt {3}} \left (\sqrt [3]{a}-\sqrt [3]{b} x\right ) \sqrt {\frac {a^{2/3}+\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2}{\left (\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{b} x\right )^2}} F\left (\sin ^{-1}\left (\frac {\left (1-\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{b} x}{\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{b} x}\right )|-7-4 \sqrt {3}\right )}{3 \sqrt [4]{3} b^{2/3} \sqrt {\frac {\sqrt [3]{a} \left (\sqrt [3]{a}-\sqrt [3]{b} x\right )}{\left (\left (1+\sqrt {3}\right ) \sqrt [3]{a}-\sqrt [3]{b} x\right )^2}} \sqrt {a-b x^3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 10.53, size = 371, normalized size = 1.38 \begin {gather*} \frac {2 \sqrt {\frac {\sqrt [3]{a}-\sqrt [3]{b} x}{\left (1+\sqrt [3]{-1}\right ) \sqrt [3]{a}}} \left (\left (-2+\sqrt [3]{-1}\right ) \left (\sqrt [3]{-1} \sqrt [3]{a}+\sqrt [3]{b} x\right ) \sqrt {\frac {\sqrt [3]{-1} \left (\sqrt [3]{a}+\sqrt [3]{-1} \sqrt [3]{b} x\right )}{\left (1+\sqrt [3]{-1}\right ) \sqrt [3]{a}}} F\left (\sin ^{-1}\left (\sqrt {\frac {\sqrt [3]{a}-(-1)^{2/3} \sqrt [3]{b} x}{\left (1+\sqrt [3]{-1}\right ) \sqrt [3]{a}}}\right )|\sqrt [3]{-1}\right )+\frac {2 \sqrt [3]{-1} \left (1+\sqrt [3]{-1}\right ) \sqrt [3]{a} \sqrt {\frac {\sqrt [3]{a}-(-1)^{2/3} \sqrt [3]{b} x}{\left (1+\sqrt [3]{-1}\right ) \sqrt [3]{a}}} \sqrt {1+\frac {\sqrt [3]{b} x}{\sqrt [3]{a}}+\frac {b^{2/3} x^2}{a^{2/3}}} \Pi \left (\frac {2 \sqrt {3}}{3 i+\sqrt {3}};\sin ^{-1}\left (\sqrt {\frac {\sqrt [3]{a}-(-1)^{2/3} \sqrt [3]{b} x}{\left (1+\sqrt [3]{-1}\right ) \sqrt [3]{a}}}\right )|\sqrt [3]{-1}\right )}{\sqrt {3}}\right )}{\left (-2+\sqrt [3]{-1}\right ) b^{2/3} \sqrt {\frac {\sqrt [3]{a}-(-1)^{2/3} \sqrt [3]{b} x}{\left (1+\sqrt [3]{-1}\right ) \sqrt [3]{a}}} \sqrt {a-b x^3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.05, size = 0, normalized size = 0.00 \[\int \frac {x}{\left (2 a^{\frac {1}{3}}+b^{\frac {1}{3}} x \right ) \sqrt {-b \,x^{3}+a}}\, 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 [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \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 {x}{\left (2 \sqrt [3]{a} + \sqrt [3]{b} x\right ) \sqrt {a - b x^{3}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {x}{\left (b^{1/3}\,x+2\,a^{1/3}\right )\,\sqrt {a-b\,x^3}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________