Optimal. Leaf size=288 \[ -\frac {2 \tan ^{-1}\left (\frac {\sqrt {3} \sqrt [6]{a} \left (\sqrt [3]{a}-\sqrt [3]{2} \sqrt [3]{b} x\right )}{\sqrt {a-b x^3}}\right )}{3 \sqrt {3} \sqrt {a} \sqrt [3]{b}}-\frac {2 \sqrt [3]{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} \sqrt [3]{a} \sqrt [3]{b} \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.22, antiderivative size = 288, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.114, Rules used = {2159, 224,
2162, 209} \begin {gather*} -\frac {2 \sqrt [3]{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} \sqrt [3]{a} \sqrt [3]{b} \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 {2 \text {ArcTan}\left (\frac {\sqrt {3} \sqrt [6]{a} \left (\sqrt [3]{a}-\sqrt [3]{2} \sqrt [3]{b} x\right )}{\sqrt {a-b x^3}}\right )}{3 \sqrt {3} \sqrt {a} \sqrt [3]{b}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 224
Rule 2159
Rule 2162
Rubi steps
\begin {align*} \int \frac {1}{\left (2^{2/3} \sqrt [3]{a}-\sqrt [3]{b} x\right ) \sqrt {a-b x^3}} \, dx &=\frac {\int \frac {2^{2/3} \sqrt [3]{a}+2 \sqrt [3]{b} x}{\left (2^{2/3} \sqrt [3]{a}-\sqrt [3]{b} x\right ) \sqrt {a-b x^3}} \, dx}{3\ 2^{2/3} \sqrt [3]{a}}+\frac {\sqrt [3]{2} \int \frac {1}{\sqrt {a-b x^3}} \, dx}{3 \sqrt [3]{a}}\\ &=-\frac {2 \sqrt [3]{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} \sqrt [3]{a} \sqrt [3]{b} \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 {2 \text {Subst}\left (\int \frac {1}{1+3 a x^2} \, dx,x,\frac {1-\frac {\sqrt [3]{2} \sqrt [3]{b} x}{\sqrt [3]{a}}}{\sqrt {a-b x^3}}\right )}{3 \sqrt [3]{b}}\\ &=-\frac {2 \tan ^{-1}\left (\frac {\sqrt {3} \sqrt [6]{a} \left (\sqrt [3]{a}-\sqrt [3]{2} \sqrt [3]{b} x\right )}{\sqrt {a-b x^3}}\right )}{3 \sqrt {3} \sqrt {a} \sqrt [3]{b}}-\frac {2 \sqrt [3]{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} \sqrt [3]{a} \sqrt [3]{b} \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.16, size = 166, normalized size = 0.58 \begin {gather*} \frac {2 i \sqrt {\frac {\sqrt [3]{a}-\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 {i \sqrt {3}}{\sqrt [3]{-1}+2^{2/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 )}{\left (\sqrt [3]{-1}+2^{2/3}\right ) \sqrt [3]{b} \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 {1}{\left (2^{\frac {2}{3}} 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 {1}{- 2^{\frac {2}{3}} \sqrt [3]{a} \sqrt {a - b x^{3}} + \sqrt [3]{b} x \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 {1}{\sqrt {a-b\,x^3}\,\left (2^{2/3}\,a^{1/3}-b^{1/3}\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________